:root { --bg:#0f1419; --card:#1a212b; --line:#2a3340; --blue:#4a90d9; --blue2:#6fb1ff; --green:#3ec07a; --red:#e06c5a; --txt:#e6edf3; --muted:#8b98a5; }
* { box-sizing: border-box; }
body { margin:0; font-family: -apple-system,"PingFang SC","Microsoft YaHei",system-ui,sans-serif; background:var(--bg); color:var(--txt); line-height:1.6; }
header { padding:18px 24px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
header h1 { font-size:18px; margin:0; }
header .sub { color:var(--muted); font-size:13px; }
nav a { color:var(--blue2); text-decoration:none; font-size:13px; padding:6px 12px; border:1px solid var(--line); border-radius:8px; }
nav a:hover { background:var(--card); }
.wrap { max-width:980px; margin:0 auto; padding:24px; }
.searchbar { display:flex; gap:10px; margin-bottom:18px; }
.searchbar input[type=text] { flex:1; padding:12px 14px; border-radius:10px; border:1px solid var(--line); background:var(--card); color:var(--txt); font-size:15px; }
.searchbar select { padding:12px; border-radius:10px; border:1px solid var(--line); background:var(--card); color:var(--txt); }
button { cursor:pointer; border:none; border-radius:10px; padding:12px 18px; font-size:14px; background:var(--blue); color:#fff; }
button.ghost { background:transparent; border:1px solid var(--line); color:var(--txt); }
button.green { background:var(--green); }
button.red { background:var(--red); }
.stats { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:20px; }
.stat { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 16px; flex:1; min-width:120px; }
.stat b { display:block; font-size:24px; color:var(--blue2); }
.stat span { color:var(--muted); font-size:12px; }
.chips { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.chip { font-size:12px; padding:4px 10px; border-radius:20px; background:var(--card); border:1px solid var(--line); color:var(--muted); }
.chip.on { color:#fff; background:var(--blue); border-color:var(--blue); }
.doc { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px 18px; margin-bottom:12px; }
.doc h3 { margin:0 0 6px; font-size:16px; }
.doc .meta { color:var(--muted); font-size:12px; margin-bottom:8px; }
.doc .excerpt { color:#c5d0db; font-size:14px; }
.tags { margin-top:8px; }
.tag { font-size:11px; padding:2px 8px; border-radius:6px; background:#243447; color:var(--blue2); margin-right:6px; }
.empty { color:var(--muted); text-align:center; padding:40px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:20px; margin-bottom:16px; }
label { display:block; font-size:13px; color:var(--muted); margin:10px 0 6px; }
input,textarea,select { width:100%; padding:11px 13px; border-radius:10px; border:1px solid var(--line); background:#11161d; color:var(--txt); font-size:14px; font-family:inherit; }
textarea { min-height:160px; resize:vertical; }
.row { display:flex; gap:10px; }
.row > * { flex:1; }
.note { font-size:13px; color:var(--muted); }
.result { margin-top:14px; font-size:14px; white-space:pre-wrap; word-break:break-word; }
.result.ok { color:var(--green); }
.result.quar { color:var(--red); }
.q-item { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:10px; }
.q-item .reason { color:var(--red); font-size:13px; }
.q-actions { margin-top:8px; display:flex; gap:8px; }
.h2 { font-size:15px; margin:24px 0 10px; color:var(--muted); }

/* 移动端适配 */
@media (max-width: 768px) {
  header { padding: 10px 14px; gap: 8px; flex-wrap: wrap; }
  header h1 { font-size: 15px; width: 100%; }
  header .sub { font-size: 11px; width: 100%; }
  header nav { width: 100%; justify-content: flex-end; }
  header nav a { font-size: 12px; padding: 4px 8px; }
  header #userStatus { margin-left: 0; }
}
