/* 站点 · 整站重构 demo
   原则：白底、一个品牌色、系统字体 + 等宽字体；不用渐变、发光、emoji、阴影卡片墙。 */
:root {
  --brand: #1f56c4;
  --brand-ink: #17439b;
  --brand-weak: #eef3fc;
  --ink: #1f2328;
  --ink-2: #47505a;
  --mute: #676f79; /* 白底 5.1:1，灰底 4.7:1 */
  --line: #e6e8eb;
  --line-2: #f0f1f3;
  --bg-2: #f7f8f9;
  --red: #b6534d;
  --red-weak: #f8ecea;
  --amber: #a86b12;
  --amber-weak: #f9f0e1;
  --green: #1f7a4d;
  --green-weak: #e8f3ec;
  --blue: #2563eb;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 6px;
  --w: 1360px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; color: var(--ink); background: #fff; font: 15px/1.6 var(--font); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, pre, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: var(--w); margin: 0 auto; padding-inline: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ---------- Header ---------- */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.hd .wrap { height: 56px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: .01em; white-space: nowrap; }
.logo-mark { width: 28px; height: 28px; flex: none; display: block; }
.nav { display: flex; gap: 2px; height: 100%; }
.nav a, .nav button { position: relative; display: flex; align-items: center; height: 100%; padding: 0 12px; color: var(--ink-2); border: 0; background: none; font-size: 14.5px; white-space: nowrap; }
.nav a:hover, .nav button:hover { color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 600; }
.nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--brand); }
.nav a.nav-vip { color: var(--brand); font-weight: 600; }
.nav a.nav-vip:hover { color: var(--brand-ink); }
.nav-label { position: relative; display: inline-block; }
.update-dot { position: absolute; top: -2px; right: -8px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.update-dot[hidden], [data-notification-count][hidden] { display: none; }
.hd-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.search-trigger { display: flex; align-items: center; gap: 8px; width: 220px; height: 34px; padding: 0 10px; color: var(--mute); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); font-size: 13.5px; text-align: left; }
.search-trigger kbd { margin-left: auto; }
kbd { padding: 1px 5px; color: var(--mute); background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; font-size: 11px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink-2); background: none; border: 0; border-radius: var(--radius); }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 15px; height: 15px; padding: 0 4px; color: #fff; background: var(--red); border-radius: 8px; font-size: 10px; line-height: 15px; text-align: center; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; color: var(--brand-ink); background: var(--brand-weak); border-radius: 50%; font-size: 12px; font-weight: 700; }
.avatar.has-img { overflow: hidden; background: var(--line); }
.avatar.has-img img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vip { padding: 1px 6px; color: var(--amber); border: 1px solid #e8d3ad; border-radius: 4px; font-size: 11px; font-weight: 600; }
.menu-btn { display: none; }

/* ---------- Footer ---------- */
.ft { margin-top: 80px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.ft .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 36px 24px 28px; }
.ft h4 { margin: 0 0 10px; color: var(--ink); font-size: 13px; }
.ft a { display: block; padding: 2px 0; }
.ft a:hover { color: var(--ink); }
.ft .copy { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line-2); }

/* ---------- Common ---------- */
.page { padding-top: 32px; }
.crumb { display: flex; gap: 6px; color: var(--mute); font-size: 13px; margin-bottom: 10px; }
.crumb a:hover { color: var(--ink); }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.page-h h1 { margin: 0; font-size: 26px; line-height: 1.3; letter-spacing: -.01em; }
.page-h p { margin: 6px 0 0; color: var(--ink-2); }
h2.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; font-size: 17px; }
h2.sec a { color: var(--brand); font-size: 13.5px; font-weight: 500; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; color: var(--ink); background: #fff; border: 1px solid #d5d9de; border-radius: var(--radius); font-size: 14px; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: #b9bfc6; background: var(--bg-2); }
.btn.pri { color: #fff; background: var(--brand); border-color: var(--brand); }
.btn.pri:hover { background: var(--brand-ink); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 15px; }
.btn.ghost { border-color: transparent; background: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--bg-2); color: var(--ink); }
.link { color: var(--brand); }
.link:hover { text-decoration: underline; }
.tag { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, #9aa3ad); }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; font-size: 12px; white-space: nowrap; }
.pill.brand { color: var(--brand-ink); background: var(--brand-weak); border-color: #c9d8f5; }
.pill.amber { color: var(--amber); background: var(--amber-weak); border-color: #efdcb8; }
.pill.red { color: var(--red); background: var(--red-weak); border-color: #eccfcb; }
.lock { color: var(--amber); }
.input, .select { height: 36px; padding: 0 10px; background: #fff; border: 1px solid #d5d9de; border-radius: var(--radius); font-size: 14px; }
.input:focus, .select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,86,196,.14); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 10px; top: 10px; color: var(--mute); }
.input-icon .input { padding-left: 32px; width: 100%; }
.seg { display: inline-flex; padding: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.seg button { height: 30px; padding: 0 12px; color: var(--ink-2); background: none; border: 0; border-radius: 4px; font-size: 13.5px; }
.seg button.on { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 600; }
.rule { height: 1px; margin: 28px 0; background: var(--line); border: 0; }
.empty { padding: 48px 0; color: var(--mute); text-align: center; }
.note-demo { margin: 0 0 16px; padding: 8px 12px; color: var(--ink-2); background: var(--bg-2); border-left: 3px solid #c9ced4; font-size: 13px; }
.bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.bar .g { background: var(--green); } .bar .a { background: #d9a441; } .bar .r { background: var(--red); } .bar .b { background: var(--brand); }

/* side panels: 不是卡片墙，用细线分组 */
.side { display: grid; gap: 24px; align-content: start; }
.panel { padding-top: 14px; border-top: 1px solid var(--line); }
.panel h3 { margin: 0 0 10px; font-size: 13px; color: var(--mute); font-weight: 600; letter-spacing: .02em; }
.panel.box { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.kv { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; }
.kv b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 状态圆点：未学 / 不会 / 模糊 / 掌握 ---------- */
.st { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 1.5px solid #c5cbd2; border-radius: 50%; background: #fff; }
.st[data-s="1"] { border-color: var(--red); background: var(--red-weak); }
.st[data-s="2"] { border-color: #e0b03c; background: #fdf5dc; }
.st[data-s="3"] { border-color: var(--green); background: var(--green); }
.st[data-s="3"]::after { content: ""; width: 7px; height: 4px; margin-top: -2px; border: solid #fff; border-width: 0 0 1.8px 1.8px; transform: rotate(-45deg); }
.st-legend { display: flex; gap: 14px; color: var(--mute); font-size: 12.5px; }
.st-legend span { display: inline-flex; align-items: center; gap: 5px; }
.st-legend .st { width: 12px; height: 12px; border-width: 1.5px; }
.st-legend .st::after { display: none; }
.mark { display: inline-flex; gap: 6px; }
.mark button { height: 30px; padding: 0 12px; background: #fff; border: 1px solid #d5d9de; border-radius: var(--radius); font-size: 13px; color: var(--ink-2); }
.mark button[data-v="1"].on { color: var(--red); border-color: var(--red); background: var(--red-weak); }
.mark button[data-v="2"].on { color: var(--amber); border-color: #d9a441; background: var(--amber-weak); }
.mark button[data-v="3"].on { color: var(--green); border-color: var(--green); background: var(--green-weak); }

/* ---------- 首页 ---------- */
.home-top { padding: 28px 0 22px; border-bottom: 1px solid var(--line); }
.home-top h1 { margin: 0; font-size: 24px; line-height: 1.35; letter-spacing: -.01em; }
.home-top p { margin: 4px 0 18px; color: var(--mute); font-size: 14.5px; }
.home-top.in { padding-top: 24px; }
.top-row { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.top-row .big-search { height: auto; min-height: 56px; }
.resume-mini { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 16px; padding: 8px 16px 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.resume-mini:hover { border-color: var(--brand); }
.resume-mini .k { grid-column: 1; color: var(--mute); font-size: 12px; }
.resume-mini b { grid-column: 1; overflow: hidden; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.resume-mini .go { grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: 14px; font-weight: 600; }
.resume-mini .go svg { width: 15px; height: 15px; }
.resume-mini .pg { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line-2); }
.resume-mini .pg i { display: block; height: 100%; background: var(--brand); }
.big-search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 680px; height: 50px; padding: 0 16px; color: var(--mute); background: #fff; border: 1px solid #cfd4d9; border-radius: 8px; font-size: 15.5px; text-align: left; }
.big-search:hover { border-color: var(--brand); }
.big-search kbd { margin-left: auto; }
.dir-line { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 18px; font-size: 14px; }
.dir-line a { color: var(--ink-2); }
.dir-line a:hover { color: var(--brand); }
.dir-line a b { margin-left: 4px; color: var(--mute); font-weight: 400; font-variant-numeric: tabular-nums; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 32px; }
.start { margin-bottom: 36px; }
.start-l { border: 1px solid var(--line); border-radius: var(--radius); }
.start-l a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.start-l a:first-child { border-top: 0; }
.start-l a > div { flex: 1; min-width: 0; }
.start-l .k { display: block; color: var(--mute); font-size: 12.5px; }
.start-l b { display: block; margin-top: 1px; font-size: 15.5px; }
.start-l p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; }
.start-l .go { color: var(--mute); }
.start-l a:hover b, .start-l a:hover .go { color: var(--brand); }
.home-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 40px; }
.home-more a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.home-more a:hover h4 { color: var(--brand); }
.home-more h4 { margin: 0; font-size: 15px; }
.home-more p { margin: 2px 0 0; color: var(--mute); font-size: 13.5px; }
.home-more span { color: var(--mute); font-size: 13px; white-space: nowrap; }

/* ---------- 题库表格 ---------- */
.q-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
/* 筛选行 */
.fbox { display: grid; gap: 4px; margin-bottom: 14px; }
.fsearch { margin-bottom: 8px; }
.frow { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.frow[hidden] { display: none; }
.frow .fl { flex: none; width: 46px; color: var(--mute); font-size: 13px; line-height: 30px; }
.fopts { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; }
.frow > .fopts:last-child, .frow > .fopts:nth-last-child(2) { flex: 1; }
.fopts + .fl { margin-left: 24px; }
.fopts button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; color: var(--ink-2); background: none; border: 0; border-radius: 4px; font-size: 13.5px; white-space: nowrap; }
.fopts button:hover { color: var(--ink); background: var(--bg-2); }
.fopts button.on { color: var(--brand-ink); background: var(--brand-weak); font-weight: 600; }
.fopts button small { color: var(--mute); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.fopts button.on small { color: var(--brand); }
.fopts .st { width: 11px; height: 11px; border-width: 1.5px; }
.fopts .st::after { display: none; }
.frow .fend { margin-left: auto; line-height: 30px; }
.frow.fold:not(.open) .fopts { max-height: 30px; overflow: hidden; }
.frow > .fopts:nth-last-child(2) { flex: 1; }
.fmore { flex: none; height: 30px; padding: 0 4px; color: var(--brand); background: none; border: 0; font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filters .input-icon { flex: 1; min-width: 220px; }
.chk { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13.5px; white-space: nowrap; }
.qtable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.qtable th { padding: 9px 10px; color: var(--mute); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 500; text-align: left; white-space: nowrap; }
.qtable th.sortable { cursor: pointer; user-select: none; }
.qtable th.sortable:hover { color: var(--ink); }
.qtable td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.qtable tr.row:hover td { background: #fafbfb; }
.qtable td.c-st { width: 40px; }
.qtable td.c-t a { font-weight: 500; }
.qtable td.c-t a:hover { color: var(--brand); }
.qtable td.c-n { width: 70px; color: var(--mute); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qtable td.c-c { width: 110px; white-space: nowrap; }
.qtable td.c-f { width: 70px; font-size: 13px; white-space: nowrap; }
.freq-3 { color: var(--brand); font-weight: 600; } .freq-2 { color: var(--ink-2); } .freq-1 { color: var(--mute); }
.qtable .exp { display: none; margin-top: 8px; padding: 10px 12px; color: var(--ink-2); background: var(--bg-2); border-radius: 4px; font-size: 14px; }
.qtable tr.open .exp { display: block; }
.qtable .exp .act { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.toggle-a { margin-left: 6px; color: var(--mute); background: none; border: 0; font-size: 12.5px; }
.toggle-a:hover { color: var(--brand); }
mark { background: #fff1a8; color: inherit; padding: 0 1px; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; color: var(--mute); font-size: 13px; }

/* ---------- 阅读页：三栏 ---------- */
.read { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: 40px; padding-top: 24px; }
.read.zen { grid-template-columns: 0 minmax(0, 800px) 0; justify-content: center; }
.read.zen .read-l, .read.zen .read-r { visibility: hidden; }
.read-l, .read-r { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 92px); overflow: auto; font-size: 13.5px; }
.read-l h4 { margin: 0 0 6px; color: var(--mute); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.read-l .grp + .grp { margin-top: 18px; }
.read-l .grp.sub + .grp.sub { margin-top: 2px; }
.read-l .grp.sub summary { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 -8px; color: var(--ink-2); font-weight: 600; border-radius: 4px; cursor: pointer; list-style: none; }
.read-l .grp.sub summary::-webkit-details-marker { display: none; }
.read-l .grp.sub summary:hover { background: var(--bg-2); }
.read-l .grp.sub summary .t { flex: 1; min-width: 0; }
.read-l .grp.sub summary small { color: var(--mute); font-weight: 400; font-variant-numeric: tabular-nums; }
.read-l .grp.sub summary svg { width: 13px; height: 13px; color: var(--mute); transition: transform .15s; }
.read-l .grp.sub[open] summary svg { transform: rotate(90deg); }
.read-l .grp.sub[open] { padding-bottom: 8px; }
.read-l .grp.sub > a { padding-left: 28px; }
.read-l .grp.sub[open] summary { color: var(--ink); }
.gn { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; color: var(--mute); font-size: 11px; font-style: normal; font-weight: 600; border: 1px solid var(--line); border-radius: 50%; font-variant-numeric: tabular-nums; }
.fopts .gn { width: 16px; height: 16px; margin-right: 5px; font-size: 10px; }
.fopts button.on .gn { color: inherit; border-color: currentColor; }
.gpath { margin: 0; padding: 0; list-style: none; }
.gpath button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; margin: 0 -8px; width: calc(100% + 16px); color: var(--ink-2); font: inherit; font-size: 14px; text-align: left; background: none; border: 0; border-radius: 4px; cursor: pointer; }
.gpath button:hover { background: var(--bg-2); color: var(--ink); }
.gpath .t { flex: 1; min-width: 0; }
.gpath small { color: var(--mute); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.gpath li.on button { color: var(--brand-ink); background: var(--brand-weak); font-weight: 600; }
.gpath li.on .gn { color: var(--brand); border-color: var(--brand); }
.read-l a { display: flex; gap: 8px; align-items: flex-start; padding: 5px 8px; margin: 0 -8px; color: var(--ink-2); border-radius: 4px; line-height: 1.45; }
.read-l a:hover { background: var(--bg-2); color: var(--ink); }
.read-l a.on { color: var(--brand-ink); background: var(--brand-weak); font-weight: 600; }
.read-l a .st { flex: none; width: 12px; height: 12px; margin-top: 3px; border-width: 1.5px; }
.read-l a .st::after { display: none; }
.read-l a .lock { margin-left: auto; }
.read-l .prog { margin-bottom: 14px; color: var(--mute); font-size: 12.5px; }
.read-l .prog .bar { margin-top: 6px; }
.toc a { display: block; padding: 3px 0 3px 12px; color: var(--mute); border-left: 2px solid var(--line); line-height: 1.45; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--brand-ink); border-left-color: var(--brand); }
.read-r .panel { margin-top: 20px; }
.article { min-width: 0; max-width: 800px; }
.article h1 { margin: 0; font-size: 28px; line-height: 1.35; letter-spacing: -.01em; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 0 0; color: var(--mute); font-size: 13px; }
.meta-actions { display: flex; gap: 6px; margin-left: auto; }
.answer { margin: 24px 0 28px; padding: 14px 18px; background: var(--brand-weak); border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; }
.answer b { display: block; margin-bottom: 4px; color: var(--brand-ink); font-size: 13px; }
.prose { font-size: 16px; line-height: 1.85; }
.prose h2 { display: flex; align-items: baseline; gap: 10px; margin: 44px 0 10px; font-size: 21px; line-height: 1.4; }
.prose h2 .n { color: var(--brand); font: 600 15px var(--mono); }
.prose h2 .jump { margin-left: auto; color: var(--brand); background: none; border: 0; font-size: 13px; font-weight: 500; white-space: nowrap; }
.prose h2 .jump:hover { text-decoration: underline; }
.prose h3 { margin: 26px 0 6px; font-size: 17px; }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 4px 0; }
.prose code { padding: 1px 5px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 4px; font-size: .86em; }
.prose pre { margin: 14px 0; padding: 14px 16px; overflow: auto; background: #f6f8fa; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13.5px; line-height: 1.65; }
.prose pre code { padding: 0; background: none; border: 0; font-size: inherit; }
.prose table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg-2); font-weight: 600; }
.prose .key { margin: 16px 0; padding: 10px 14px; border-left: 3px solid #c9ced4; background: var(--bg-2); font-size: 15px; }
.prose .key b:first-child { color: var(--ink); }
.prose blockquote { margin: 14px 0; padding: 4px 16px; color: var(--ink-2); border-left: 3px solid var(--line); }
.prose details { margin: 8px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose summary { padding: 12px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::before { content: "+"; display: inline-block; width: 18px; color: var(--mute); font-family: var(--mono); }
.prose details[open] summary::before { content: "−"; }
.prose details > div { padding: 0 16px 12px 34px; font-size: 15px; }
.read-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 44px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.prev-next a { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.prev-next a:hover { border-color: var(--brand); }
.prev-next a small { display: block; color: var(--mute); font-size: 12px; }
.prev-next a:last-child { text-align: right; }
.paywall { position: relative; margin-top: 8px; }
.paywall .fade { height: 120px; margin-top: -120px; position: relative; background: linear-gradient(rgba(255,255,255,0), #fff); }
.paywall .box { padding: 22px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); }
.paywall .box h3 { margin: 0 0 6px; font-size: 17px; }
.paywall .box p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }

/* ---------- 分步图解（移植自课程 DiagramFrame + StepPlayer） ---------- */
.dg-frame { --node: #3f4a56; --replica: #c5ccd4; --cur: #1f2328; --control: #5b6676; --data: #2563eb; --ack: #059669; --warn: #c98a24; --err: #b6534d; --dmute: #66717e; --panel: #fff; --dline: #dce2e8;
  margin: 8px 0 8px; border: 1px solid var(--dline); border-radius: 10px; background: #fbfcfd; overflow: hidden; }
.dg-frame.fs { display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
.dg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 16px 10px; border-bottom: 1px solid var(--dline); background: #fff; }
.dg-head .kicker { display: block; color: var(--dmute); font: 700 10px/1.2 var(--mono); letter-spacing: .08em; }
.dg-head h3 { margin: 5px 0 0; font-size: 15px; line-height: 1.35; }
.dg-actions { display: flex; align-items: center; gap: 12px; }
.dg-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 12px; color: #6d7885; font-size: 11.5px; }
.dg-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dg-legend i { width: 14px; height: 0; border-top: 2.5px solid var(--lc); }
.dg-legend i.dash { border-top-style: dashed; }
.dg-legend i.box { width: 10px; height: 10px; border: 2px solid var(--lc); border-radius: 3px; }
.dg-canvas { padding: 10px 14px 6px; }
.dg-canvas svg { display: block; width: 100%; height: auto; max-height: min(70vh, 540px); }
.dg-frame.fs .dg-canvas svg { max-height: calc(100vh - 170px); }
.dg-player { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 12px 16px 13px; border-top: 1px solid var(--dline); background: #fff; outline: none; }
.dg-player:focus-visible { box-shadow: inset 0 0 0 2px rgba(37,99,235,.25); }
.dg-cap { min-width: 0; display: grid; gap: 2px; }
.dg-cap strong { font-size: 14px; }
.dg-cap span { color: #5f6b78; font-size: 13.5px; line-height: 1.55; }
.dg-ctrl { display: flex; align-items: center; gap: 6px; }
.dg-ctrl button { display: grid; place-items: center; width: 32px; height: 32px; color: var(--ink-2); background: #fff; border: 1px solid #d5d9de; border-radius: 6px; }
.dg-ctrl button:hover:not(:disabled) { border-color: #aab2bb; color: var(--ink); }
.dg-ctrl button:disabled { opacity: .4; cursor: default; }
.dg-count { min-width: 40px; margin-left: 4px; color: var(--dmute); font: 700 12px var(--mono); text-align: right; }
.dg-dots { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; }
.dg-dot { width: 9px; height: 9px; padding: 0; border: 1px solid #bbc6d0; border-radius: 50%; background: #fff; transition: transform .2s, background-color .2s; }
.dg-dot:hover { transform: scale(1.25); }
.dg-dot.done { border-color: #8a95a3; background: var(--replica); }
.dg-dot.on { width: 12px; height: 12px; border-color: var(--cur); background: var(--cur); box-shadow: 0 0 0 3px rgba(31,35,40,.12); }
.dg-dot.fail.on { border-color: var(--err); background: var(--err); box-shadow: 0 0 0 3px rgba(182,83,77,.14); }
.dg-cap-fig { margin: 6px 0 0; color: var(--mute); font-size: 13px; text-align: center; }

/* svg 内部 */
.dg { font-family: var(--font); user-select: none; }
.dg text { fill: #2b3742; }
.dg .t-mute { fill: var(--dmute); } .dg .t-xs { font-size: 10.5px; } .dg .t-sm { font-size: 12px; } .dg .t-lb { font-size: 14px; font-weight: 700; } .dg .t-mono { font-family: var(--mono); }
.dg .panel { fill: var(--panel); stroke: var(--dline); stroke-width: 1.5; }
.dg .rack { fill: #f8f9fa; stroke: #cdd3d9; stroke-width: 1.2; stroke-dasharray: 5 4; }
.dg .box-c { fill: var(--panel); stroke: var(--control); stroke-width: 2; }
.dg .box-dn { fill: var(--panel); stroke: var(--node); stroke-width: 2; }
.dg .box-dn.sel { stroke: var(--data); stroke-width: 3; }
.dg .box-dn.bad { stroke: var(--err); stroke-width: 3; fill: #fcf4f3; }
.dg .phase { fill: var(--panel); stroke: var(--dline); }
.dg .phase.done { fill: #f1f3f5; stroke: var(--replica); }
.dg .phase.on { fill: var(--cur); stroke: var(--cur); }
.dg .phase.on.fail { fill: var(--err); stroke: var(--err); }
.dg .phase-t.on { fill: #fff; font-weight: 700; }
.dg .ctl { fill: none; stroke: var(--control); stroke-width: 2; stroke-dasharray: 7 5; marker-end: url(#m-ctl); }
.dg .dat { fill: none; stroke: var(--data); stroke-width: 3; marker-end: url(#m-dat); }
.dg .ackf { fill: none; stroke: var(--ack); stroke-width: 3; marker-end: url(#m-ack); }
.dg .setup { fill: none; stroke: var(--control); stroke-width: 2; stroke-dasharray: 4 4; marker-end: url(#m-ctl); }
.dg .errf { fill: none; stroke: var(--err); stroke-width: 3; marker-end: url(#m-err); }
.dg .live { animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.dg .q { fill: #fff; stroke: #c3ccd5; }
.dg .q.on { fill: var(--data); stroke: var(--data); }
.dg .q.ackd { fill: var(--ack); stroke: var(--ack); }
.dg .fillbg { fill: #edf1f4; } .dg .fill { fill: var(--node); transition: width .5s; }
.dg .fill.full { fill: var(--ack); }
.dg .pk { fill: var(--data); }
.dg .ak { fill: var(--ack); }
.dg .pk, .dg .ak { animation: hop 1.4s linear infinite; }
@keyframes hop { from { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { transform: translateX(var(--d)); opacity: 0; } }
.dg .pk.v, .dg .ak.v { animation-name: hopv; }
@keyframes hopv { from { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { transform: translateY(var(--d)); opacity: 0; } }
.dg * { transition: opacity .35s, stroke .35s, fill .35s; }
.dg .dim { opacity: .16; }
.dg .gone { opacity: 0; }
.dg .gone.pk, .dg .gone.ak { animation: none; }
.dg.rm *, .dg.rm .live, .dg.rm .pk, .dg.rm .ak { animation: none !important; transition: none !important; }


/* ---------- SQL 练习 ---------- */
.sql-ws { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); height: calc(100vh - 56px); border-top: 0; }
.sql-ws .l { overflow: auto; padding: 20px 24px 40px; border-right: 1px solid var(--line); }
.sql-ws .r { display: grid; grid-template-rows: auto minmax(160px, 1fr) auto minmax(140px, .8fr); min-height: 0; }
.ws-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ws-bar .sp { flex: 1; }
.editor { display: grid; grid-template-columns: 40px 1fr; min-height: 0; overflow: auto; background: #fbfcfc; font: 13.5px/1.7 var(--mono); }
.editor .ln { padding: 10px 8px 10px 0; color: #b0b7bf; text-align: right; user-select: none; white-space: pre; }
.editor textarea { width: 100%; height: 100%; min-height: 200px; padding: 10px 12px; border: 0; background: transparent; resize: none; font: inherit; outline: none; white-space: pre; }
.editor.cm-on { display: block; overflow: hidden; }
.editor.cm-on > .ln, .editor.cm-on > textarea { display: none; }
.editor .cm-editor { height: 100%; }
.editor .cm-editor.cm-focused { box-shadow: inset 0 0 0 2px var(--brand-weak); }
.result { overflow: auto; padding: 0 0 12px; font-size: 13px; }
.result table { border-collapse: collapse; min-width: 100%; font-family: var(--mono); font-size: 12.5px; }
.result th, .result td { padding: 6px 12px; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
.result th { position: sticky; top: 0; background: var(--bg-2); color: var(--ink-2); font-weight: 600; }
.result .ok { padding: 10px 12px; color: var(--green); background: var(--green-weak); font-family: var(--font); }
.result .bad { padding: 10px 12px; color: var(--red); background: var(--red-weak); font-family: var(--font); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; height: 40px; padding: 0 12px; color: var(--ink-2); background: none; border: 0; font-size: 14px; }
.tabs button.on { color: var(--ink); font-weight: 600; }
.tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--brand); }
.schema { margin: 10px 0; font: 12.5px/1.7 var(--mono); }
.schema table { border-collapse: collapse; width: 100%; }
.schema th, .schema td { padding: 4px 10px; border: 1px solid var(--line); text-align: left; }
.schema th { background: var(--bg-2); }

/* ---------- 列表行（文章 / 面经 / 简历 / 通知） ---------- */
.rows > a, .rows > div.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.rows > a:hover h3 { color: var(--brand); }
.rows h3 { margin: 0; font-size: 16px; line-height: 1.45; }
.rows p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rows .m { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; color: var(--mute); font-size: 12.5px; }
.rows .side-n { color: var(--mute); font-size: 13px; text-align: right; white-space: nowrap; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
.tabline { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.tabline a, .tabline button { position: relative; padding: 9px 12px; color: var(--ink-2); background: none; border: 0; font-size: 14px; }
.tabline .on { color: var(--ink); font-weight: 600; }
.tabline .on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--brand); }
.tabline span { color: var(--mute); font-size: 12px; margin-left: 3px; }

/* 简历模板格 */
.resume-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.resume-grid a { display: block; }
.resume-grid .thumb { aspect-ratio: 210 / 297; padding: 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.resume-grid a:hover .thumb { border-color: var(--brand); }
.resume-grid h4 { margin: 10px 0 0; font-size: 14px; }
.resume-grid p { margin: 2px 0 0; color: var(--mute); font-size: 12.5px; }
.paper { font-size: 6px; line-height: 1.6; color: #555; }
.paper .nm { font-size: 11px; font-weight: 700; color: #222; }
.paper .hr { height: 1px; margin: 5px 0; background: #ddd; }
.paper .ln { height: 3px; margin: 3px 0; background: #e8eaed; border-radius: 1px; }
.paper .h { margin-top: 6px; height: 4px; width: 30%; background: var(--rc, #9aa3ad); }

/* 简历编辑器 */
.builder { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100vh - 56px); }
.builder .form { overflow: auto; padding: 20px 22px 60px; border-right: 1px solid var(--line); }
.builder .preview { overflow: auto; padding: 28px; background: var(--bg-2); }
.builder .sheet { max-width: 680px; margin: 0 auto; padding: 44px 48px; background: #fff; border: 1px solid var(--line); font-size: 13px; line-height: 1.7; min-height: 900px; }
.sheet h1 { margin: 0; font-size: 24px; }
.sheet h2 { margin: 20px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 14px; }
.sheet .row2 { display: flex; justify-content: space-between; font-weight: 600; }
.sheet ul { margin: 4px 0; padding-left: 18px; }
.fgroup { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.fgroup > b { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.field { display: grid; gap: 4px; margin-bottom: 10px; font-size: 13px; color: var(--ink-2); }
.field .input, .field textarea { width: 100%; }
.field textarea { min-height: 84px; padding: 8px 10px; border: 1px solid #d5d9de; border-radius: var(--radius); font-size: 13.5px; line-height: 1.6; resize: vertical; }
.ai-tip { margin-top: 6px; padding: 8px 10px; background: var(--bg-2); border-left: 2px solid var(--brand); color: var(--ink-2); font-size: 12.5px; }

/* 会员价格 */
.plans { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plans > div { padding: 18px 18px; border-left: 1px solid var(--line); }
.plans > div:first-child { border-left: 0; background: var(--bg-2); }
.plans .ph { min-height: 124px; }
.plans .ph h3 { margin: 0; font-size: 15px; }
.plans .ph .p { margin: 8px 0 2px; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.plans .ph .p small { font-size: 14px; font-weight: 400; color: var(--mute); }
.plans .ph .s { color: var(--mute); font-size: 12.5px; }
.plans .rec { position: relative; background: #fbfdfc; }
.plans .rec::before { content: ""; position: absolute; left: -1px; right: -1px; top: 0; height: 3px; background: var(--brand); }
.plans .cell { height: 40px; display: flex; align-items: center; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.plans .yes { color: var(--brand); } .plans .no { color: #c0c6cc; }
.faq details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }

/* 表单页：登录注册 */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 56px); }
.auth .l { padding: 72px 64px; background: var(--bg-2); border-right: 1px solid var(--line); }
.auth .l h2 { margin: 0 0 8px; font-size: 24px; }
.auth .l ul { padding: 0; margin: 28px 0 0; list-style: none; }
.auth .l li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; }
.auth .l li b { display: block; color: var(--ink); }
.auth .r { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth form { width: 100%; max-width: 360px; }
.auth form h1 { margin: 0 0 4px; font-size: 24px; }
.auth form .field { margin-bottom: 14px; }
.auth form .input { height: 40px; }
.auth form .auth-tabs { margin: 0 0 20px; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.or { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--mute); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 个人中心 */
.me { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
.me-nav a { display: flex; justify-content: space-between; padding: 7px 10px; margin: 0 -10px; color: var(--ink-2); border-radius: 4px; font-size: 14px; }
.me-nav a:hover { background: var(--bg-2); }
.me-nav a.on { color: var(--brand-ink); background: var(--brand-weak); font-weight: 600; }
.me-nav a span { color: var(--mute); font-size: 12.5px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); }
.stats > div { padding: 14px 16px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.stats span { color: var(--mute); font-size: 12.5px; }
.heat { display: grid; grid-template-rows: repeat(7, 11px); grid-auto-flow: column; grid-auto-columns: 11px; gap: 3px; }
.heat i { border-radius: 2px; background: #eef0f2; }
.heat i[data-l="1"] { background: #d6e2f8; } .heat i[data-l="2"] { background: #9fbaec; } .heat i[data-l="3"] { background: #5583da; } .heat i[data-l="4"] { background: #17439b; }

/* 通知 */
.ntf > div { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.ntf .u { width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--brand); }
.ntf .u.r { background: transparent; }
.ntf h4 { margin: 0; font-size: 14.5px; }
.ntf p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; }
.ntf time { color: var(--mute); font-size: 12.5px; white-space: nowrap; }

/* 搜索弹层 */
.cmdk { position: fixed; inset: 0; z-index: 50; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(20,24,28,.32); }
.cmdk.open { display: flex; }
.cmdk-box { width: 100%; max-width: 640px; background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.2); overflow: hidden; }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.cmdk-in input { flex: 1; height: 52px; border: 0; outline: none; font-size: 16px; }
.cmdk-list { max-height: 56vh; overflow: auto; padding: 6px; }
.cmdk-list .g { padding: 8px 10px 4px; color: var(--mute); font-size: 12px; }
.cmdk-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; font-size: 14.5px; }
.cmdk-list a.on { background: var(--brand-weak); }
.cmdk-list a .tag { margin-left: auto; }
.cmdk-foot { display: flex; gap: 14px; padding: 8px 14px; color: var(--mute); border-top: 1px solid var(--line); font-size: 12px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translateX(-50%) translateY(20px); padding: 9px 14px; color: #fff; background: #23292f; border-radius: 6px; font-size: 13.5px; opacity: 0; transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* 移动端底部导航 */
.tabbar { display: none; }
.mobile-nav { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .read { grid-template-columns: 220px minmax(0, 1fr); }
  .read-r { display: none; }
}
@media (max-width: 1280px) {
  .search-trigger { width: 150px; white-space: nowrap; overflow: hidden; }
  .search-trigger kbd { display: none; }
  .hd .wrap { gap: 18px; }
  .nav a { padding: 0 9px; }
  .nav a.on::after { left: 9px; right: 9px; }
}
/* 导航平铺 8 项后，1180 以下搜索收成图标 */
@media (max-width: 1180px) {
  .search-trigger { display: none; }
  .hd-right .search-m { display: grid; }
  .nav a { padding: 0 8px; font-size: 14px; }
  .nav a.on::after { left: 8px; right: 8px; }
}
@media (max-width: 900px) {
  .nav, .search-trigger { display: none; }
  .menu-btn { display: grid; }
  .hd .wrap { gap: 12px; }
  .home-grid, .q-layout, .two { grid-template-columns: minmax(0, 1fr); }
  .read { grid-template-columns: minmax(0, 1fr); }
  .read > .read-l { display: none; }
  .resume-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plans > div:first-child { display: none; }
  .plans > div { border-left: 0; border-top: 1px solid var(--line); }
  .plans .cell[data-k]::before { content: attr(data-k); flex: 1; color: var(--mute); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth .l { display: none; }
  .me { grid-template-columns: minmax(0, 1fr); }
  .me-nav { display: flex; overflow-x: auto; gap: 4px; }
  .me-nav a { margin: 0; white-space: nowrap; }
  .sql-ws, .builder { grid-template-columns: minmax(0, 1fr); height: auto; }
  .sql-ws .l, .builder .form { border-right: 0; border-bottom: 1px solid var(--line); }
  .sql-ws .r { grid-template-rows: auto 260px auto 220px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ft .wrap { grid-template-columns: 1fr 1fr; }
  .home-more { grid-template-columns: minmax(0, 1fr); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); height: 56px; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--mute); font-size: 11px; }
  .tabbar a.on { color: var(--brand); }
  .tabbar svg.i { width: 20px; height: 20px; }
  body { padding-bottom: 56px; }
  .mobile-nav { position: fixed; inset: 56px 0 0; z-index: 29; padding: 12px 24px; background: #fff; display: none; overflow: auto; }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 16px; }
}
@media (max-width: 600px) {
  .frow { flex-wrap: wrap; }
  .frow .fl { width: 40px; }
  .fopts { flex: 1 1 calc(100% - 48px) !important; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .fopts::-webkit-scrollbar { display: none; }
  .fopts + .fl { margin-left: 0; }
  .frow .fend { margin-left: 46px; }
  .fmore { display: none; }
  .frow.fold:not(.open) .fopts { max-height: none; }
  .wrap { padding-inline: 16px; }
  .home-grid { padding-top: 24px; }
  .home-top { padding: 22px 0 18px; }
  .home-top h1 { font-size: 21px; }
  .top-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .page-h { flex-direction: column; align-items: flex-start; }
  .page-h h1 { font-size: 22px; }
  .qtable thead { display: none; }
  .qtable td.c-c, .qtable td.c-f { display: none; }
  .qtable td.c-n { width: auto; }
  .qtable tr:has(.mob-meta) td.c-n { display: none; }
  .big-search { height: 46px; font-size: 15px; }
  .big-search kbd, .big-search .eg { display: none; }
  .qtable .mob-meta { display: flex !important; }
    .article h1 { font-size: 23px; }
  .prose { font-size: 15.5px; }
  .meta-actions { margin-left: 0; }
  .dg-head { flex-direction: column; }
  .dg-legend { justify-content: flex-start; }
  .dg-player { grid-template-columns: minmax(0, 1fr); }
  .dg-ctrl { justify-content: space-between; }
  .dg-canvas { padding: 8px 4px 4px; }
  .dg-canvas svg { max-height: none; }
  .resume-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .prev-next { grid-template-columns: minmax(0, 1fr); }
  .prev-next a:last-child { text-align: left; }
  .ft .wrap { grid-template-columns: minmax(0, 1fr); }
  .builder .preview { padding: 12px; }
  .builder .sheet { padding: 24px 20px; min-height: 0; }
}
.qtable .mob-meta { display: none; gap: 10px; margin-top: 4px; color: var(--mute); font-size: 12.5px; }

/* ---------- 第 N 轮：锐评后的交互修正 ---------- */
.search-m, .toc-m { display: none; }
.crumb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crumb-row .crumb { margin-bottom: 0; }
.article .crumb-row { margin-bottom: 10px; }
/* 状态圆圈：圆圈本身不变，点击区域扩到 38px */
button.st[data-id] { position: relative; }
button.st[data-id]::before { content: ""; position: absolute; inset: -10px; }
button.st[data-id]:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.st-pop { position: absolute; z-index: 55; display: flex; gap: 2px; padding: 4px; background: #fff; border: 1px solid #d5d9de; border-radius: 8px; box-shadow: 0 6px 20px rgba(31,35,40,.12); }
.st-pop button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; color: var(--ink-2); background: none; border: 0; border-radius: 5px; font-size: 13.5px; white-space: nowrap; }
.st-pop button:hover, .st-pop button:focus-visible { background: var(--bg-2); color: var(--ink); outline: none; }
.st-pop button.on { color: var(--ink); font-weight: 600; background: var(--bg-2); }
.st-pop button .st { width: 13px; height: 13px; }
.st-pop button .st::after { display: none; }
.st-pop .clr { color: var(--mute); border-left: 1px solid var(--line); border-radius: 0 5px 5px 0; }
/* 首页「该复习了」 */
.rv { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.rv:last-of-type { border-bottom: 0; }
.rv .st { width: 12px; height: 12px; margin-top: 5px; }
.rv b { display: block; font-weight: 400; font-size: 14px; line-height: 1.5; }
.rv:hover b { color: var(--brand); }
.rv small { color: var(--mute); font-size: 12.5px; }
/* 题库 */
.qtable td.c-f small.fn { display: block; color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.a-hit { margin-left: 6px; padding: 0 5px; color: var(--ink-2); background: var(--bg-2); border-radius: 3px; font-size: 12px; }
.fhint { color: var(--mute); font-size: 13px; line-height: 30px; }
.fchk { display: inline-flex; gap: 14px; }
/* 详情页：翻页依据 */
.pn-pos { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 28px; }
.pn-pos .link { font-size: 13px; }
.pn-pos button.link { padding: 0; background: none; border: 0; }
.pn-pos + .prev-next { margin-top: 8px; }
/* 窄屏目录抽屉 */
.modal.drawer { place-items: stretch end; padding: 0; }
.drawer-box.read-l { position: static; width: min(340px, 88vw); max-height: none; height: 100%; padding: 0 20px 24px; overflow: auto; background: #fff; font-size: 14px; animation: drawerIn .16s ease; }
.drawer-h { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin: 0 -20px 12px; padding: 10px 12px 10px 20px; background: #fff; border-bottom: 1px solid var(--line); }
@keyframes drawerIn { from { transform: translateX(24px); opacity: 0; } }
/* SQL 工作台：桌面不显示面板切换 */
.ws-seg { display: none; }
@media (max-width: 900px) {
  .hd-right .search-m { display: grid; }
  .toc-m { display: inline-flex; }
  [data-zen] { display: none; }
  /* SQL 工作台：题目 / 写 SQL / 结果 一次只显示一个 */
  .ws-seg { position: sticky; top: 56px; z-index: 6; display: flex; background: #fff; border-bottom: 1px solid var(--line); }
  .ws-seg button { position: relative; flex: 1; height: 44px; color: var(--mute); background: none; border: 0; font-size: 14.5px; }
  .ws-seg button.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); }
  .ws-seg .dot { position: absolute; top: 12px; margin-left: 3px; width: 6px; height: 6px; background: var(--brand); border-radius: 50%; }
  .sql-ws .r { display: flex; flex-direction: column; }
  .sql-ws[data-pane="l"] .r { display: none; }
  .sql-ws[data-pane="ed"] .l, .sql-ws[data-pane="res"] .l { display: none; }
  .sql-ws[data-pane="ed"] .result { display: none; }
  .sql-ws[data-pane="ed"] .editor { height: max(240px, calc(100vh - 56px - 44px - 44px - 44px - 56px)); }
  .sql-ws[data-pane="res"] .r > .ws-bar:first-child, .sql-ws[data-pane="res"] .editor { display: none; }
  .sql-ws[data-pane="res"] .result { min-height: calc(100vh - 56px - 44px - 44px - 56px); }
  .sql-ws[data-pane="ed"] .ws-foot, .sql-ws[data-pane="res"] .ws-foot { display: none; }
  .sql-ws .ws-act { position: sticky; bottom: 56px; z-index: 5; background: #fff; }
  .sql-ws [data-focus], .ws-keys { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 公司 logo */
.co-lg { flex: none; width: 18px; height: 18px; background: #fff; border: 1px solid var(--line-2); border-radius: 4px; object-fit: contain; }
.co-lg.md { width: 28px; height: 28px; border-radius: 7px; }
.co-lg.lg { width: 52px; height: 52px; border-radius: 12px; }
.co-txt { display: inline-grid; place-items: center; color: var(--mute); background: var(--bg-2); font-size: 11px; font-weight: 600; }
/* 真实面经：只显示公司、校招 / 社招、发布日期，按月分组 */
.iv-page .fbox, .ivlist { max-width: 1040px; }
.iv-mo { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 2px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.iv-mo:first-child { margin-top: 8px; }
.iv-mo small { color: var(--mute); font-size: 12.5px; font-weight: 400; }
.ivr { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.ivr b { flex: none; font-size: 15px; font-weight: 600; }
.ivr:hover b { color: var(--brand); }
.ty { display: inline-flex; flex: none; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12.5px; }
.ty-x { color: var(--brand-ink); background: var(--brand-weak); }
.ty-s { color: var(--ink-2); background: var(--bg-2); }
.ty-i { color: var(--brand-ink); background: #fff; box-shadow: inset 0 0 0 1px #b9cbef; }
.ivhit { flex: 1; min-width: 0; overflow: hidden; color: var(--mute); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.ivr time { flex: none; margin-left: auto; color: var(--mute); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ivhit + time { margin-left: 16px; }
.iv-h { display: flex; align-items: center; gap: 16px; }
.iv-h .meta { margin-top: 4px; }
.iv-o { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; color: var(--ink-2); font-size: 13.5px; }
.iv-o:hover time { color: var(--brand); }
.iv-o time { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .ivr { flex-wrap: wrap; row-gap: 2px; padding: 10px 0; }
  .ivhit { flex-basis: 100%; order: 5; padding-left: 40px; }
  .ivhit + time { margin-left: auto; }
  .co-lg.lg { width: 44px; height: 44px; border-radius: 10px; }
}
