:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --border: #e5e7eb;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.nav { max-width: 820px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--text); }
.brand span { color: var(--primary); }
.gh { color: var(--muted); text-decoration: none; font-size: .9rem; }
main { max-width: 820px; margin: 0 auto; padding: 32px 20px 60px; }
h1 { font-size: 1.9rem; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 24px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
#rcj-search { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: .95rem; background: var(--surface); }
#rcj-search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.count { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.list { display: flex; flex-direction: column; gap: 14px; }
.q { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.q-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tag { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.tag-year { background: #eff6ff; color: #1d4ed8; }
.tag-type { background: #f0fdf4; color: #15803d; }
.q-no { margin-left: auto; color: var(--muted); font-size: .78rem; }
.q-stem { margin: 0; font-size: 1rem; line-height: 1.7; }
.q-foot { margin-top: 10px; font-size: .8rem; color: #92400e; background: #fef3c7; display: inline-block; padding: 3px 9px; border-radius: 999px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
.note { margin-top: 28px; font-size: .9rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.backlink { display: inline-block; margin-bottom: 18px; color: var(--primary); font-weight: 600; text-decoration: none; }
.backlink:hover { text-decoration: underline; }
