/* 站点 · 整站 demo：页面级样式（首页任务、弹窗、SQL、项目、面经、AI、指南、简历、会员、账号、个人中心）
   沿用 app.css 的变量与原则：白底、单一品牌色、细线分组，不用阴影卡片墙。 */

/* ---------- 公共补充 ---------- */
.h1 { margin: 0; font-size: 28px; line-height: 1.3; letter-spacing: -.01em; }
.lead { margin: 8px 0 0; max-width: 720px; color: var(--ink-2); font-size: 16px; }
.eyebrow { margin: 0 0 6px; color: var(--brand-ink); font-size: 13px; font-weight: 600; }
.narrow { max-width: 760px; }
.btn.danger { color: #fff; background: var(--red); border-color: var(--red); }
.btn.danger:hover { background: #9c443f; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.stat-line { display: flex; gap: 24px; white-space: nowrap; }
.stat-line span { display: grid; color: var(--mute); font-size: 12.5px; text-align: right; }
.stat-line b { color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .chips a, .chips span { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; white-space: nowrap; }
.chips button:hover, .chips a:hover { border-color: #c9ced4; color: var(--ink); }
.chips .on { color: var(--brand-ink); background: var(--brand-weak); border-color: #bcd0f3; font-weight: 600; }
.chips.static span, .chips.static a { height: 24px; padding: 0 8px; background: var(--bg-2); border-radius: 4px; font-size: 12.5px; }
.empty-box { padding: 48px 24px; text-align: center; border: 1px dashed #d5d9de; border-radius: var(--radius); }
.empty-box b { display: block; font-size: 16px; }
.empty-box p { margin: 6px 0 16px; color: var(--mute); font-size: 14px; }
.side-link { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; color: var(--ink-2); font-size: 14px; }
.side-link:hover { color: var(--brand); }
.tips { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }
.tips li { padding: 3px 0; }
mark { padding: 0 1px; color: inherit; background: #fff0b3; border-radius: 2px; }
.qr { display: grid; place-items: center; flex: none; width: 76px; height: 76px; color: var(--mute); background: var(--bg-2); border: 1px dashed #c9ced4; border-radius: 4px; font-size: 11px; line-height: 1.4; text-align: center; }
.qr.big { width: 148px; height: 148px; font-size: 13px; }
img.qr { display: block; padding: 3px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.hide-s { display: inline; }

/* 页脚：演示身份切换 */
.demo-id { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.demo-id button { height: 26px; padding: 0 10px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 13px; font-size: 12px; }
.demo-id button:hover { border-color: #c9ced4; }
.demo-id button.on { color: #fff; background: var(--ink); border-color: var(--ink); }
.demo-id button[data-as="reset"] { margin-left: 6px; border-style: dashed; }


/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(31,35,40,.38); animation: fadeIn .12s ease; }
.modal-box { width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow: auto; padding: 22px 24px; background: #fff; border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.modal-box h3 { margin: 0; font-size: 17px; }
.modal-box .prose table { width: 100%; border-collapse: collapse; font-size: 13px; }
.modal-box .prose th, .modal-box .prose td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.modal-box .prose th { width: 92px; color: var(--ink-2); white-space: nowrap; }
.modal-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
/* SQL「支持语法」速查弹窗 */
.modal-box.syntax-guide { max-width: 780px; padding: 0; }
.syntax-guide .sg-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.syntax-guide .sg-head h3 { margin: 2px 0 6px; font-size: 18px; }
.syntax-guide .sg-head p.small { margin: 0; line-height: 1.6; }
.syntax-guide .sg-kicker { margin: 0; color: var(--brand); font-size: 12px; font-weight: 600; }
.syntax-guide .sg-x { flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: var(--mute); background: none; border: 0; border-radius: var(--radius); cursor: pointer; }
.syntax-guide .sg-x:hover { color: var(--ink); background: var(--bg-2); }
.syntax-guide .sg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 22px 0; }
.syntax-guide .sg-card { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.syntax-guide .sg-card h4 { margin: 0; font-size: 14px; }
.syntax-guide .sg-card > p { margin: 3px 0 0; color: var(--mute); font-size: 12px; line-height: 1.55; }
.syntax-guide .sg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.syntax-guide .sg-chips code { padding: 2px 7px; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 4px; font: 12px/1.6 var(--mono); }
.syntax-guide .sg-ex, .syntax-guide .sg-warn { margin: 12px 22px 0; }
.syntax-guide .sg-ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.syntax-guide .sg-grid > *, .syntax-guide .sg-ex-grid > * { min-width: 0; }
.syntax-guide .sg-ex-grid b { display: block; margin-bottom: 4px; font-size: 12px; color: var(--ink-2); }
.syntax-guide .sg-ex-grid pre { margin: 0; padding: 10px 12px; overflow-x: auto; background: #f6f8fa; border: 1px solid var(--line); border-radius: var(--radius); font: 12px/1.6 var(--mono); }
.syntax-guide .sg-warn { background: var(--amber-weak); border-color: #efdcb8; }
.syntax-guide .sg-warn h4 { color: var(--amber); }
.syntax-guide .sg-warn ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.syntax-guide .modal-act { padding: 0 22px 18px; }
@media (max-width: 720px) {
  .syntax-guide .sg-grid, .syntax-guide .sg-ex-grid { grid-template-columns: 1fr; }
  .syntax-guide .sg-head, .syntax-guide .sg-grid { padding-left: 16px; padding-right: 16px; }
  .syntax-guide .sg-ex, .syntax-guide .sg-warn { margin-left: 16px; margin-right: 16px; }
  .syntax-guide .modal-act { padding: 0 16px 16px; }
}
.ta { width: 100%; padding: 8px 10px; border: 1px solid #d5d9de; border-radius: var(--radius); font-size: 14px; line-height: 1.6; resize: vertical; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- 详情页：评论与私密笔记 ---------- */
.cmt { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.cmt-new { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; margin-bottom: 8px; }
.cmt-new textarea { width: 100%; padding: 7px 10px; border: 1px solid #d5d9de; border-radius: var(--radius); font-size: 14px; resize: vertical; }
.cmt-new .btn { margin-top: 2px; }
.cm { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.cm-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.cm-h time { color: var(--mute); font-size: 12.5px; }
.cm p { margin: 3px 0 2px; color: var(--ink-2); font-size: 14.5px; }
.cm .btn.ghost.sm { height: 24px; margin-left: -8px; padding: 0 8px; color: var(--mute); font-size: 12.5px; }
.cm.sub { margin-top: 8px; padding: 10px 12px; background: var(--bg-2); border: 0; border-radius: var(--radius); }
.note-it { padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.note-it:first-child { border-top: 0; padding-top: 0; }
.note-it q, .note-q { display: block; padding-left: 8px; color: var(--ink-2); border-left: 2px solid #9fbaec; quotes: none; }
.note-it p { margin: 4px 0 0; }
.note-q { margin: 0 0 10px; font-size: 13.5px; }
.note-pop { position: absolute; z-index: 40; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; color: #fff; background: var(--ink); border: 0; border-radius: 6px; font-size: 13px; transform: translateX(-50%); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
mark.note-hl { background: #ffe9b8; border-bottom: 1.5px solid #e0b03c; }

/* ---------- SQL 练习 ---------- */
.lv { font-size: 13px; font-weight: 600; white-space: nowrap; }
.lv-1 { color: var(--green); } .lv-2 { color: var(--amber); } .lv-3 { color: var(--red); }
.sd { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; vertical-align: 0; }
.sd-ok { background: var(--green); }
.sd-bad { background: #fff; border: 2px solid var(--red); }
.sd-none { background: #fff; border: 1.5px solid #c5cbd2; }
.sd-t { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.sd-t-ok { color: var(--green); background: var(--green-weak); }
.sd-t-bad { color: var(--red); background: var(--red-weak); }
.sqltable td.c-st { width: 28px; }
.sqltable td.c-n { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.path { margin-bottom: 32px; }
.path-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.path-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.path-stages a { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; padding: 12px 14px 14px; border-left: 1px solid var(--line); }
.path-stages a:first-child { border-left: 0; }
.path-stages a:hover { background: var(--bg-2); }
.path-stages a.on { background: var(--brand-weak); }
.path-stages a.on::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand); }
.path-stages .n { grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; color: var(--ink-2); background: var(--bg-2); border-radius: 50%; font-size: 12px; font-weight: 700; }
.path-stages a.on .n { color: #fff; background: var(--brand); }
.path-stages b { font-size: 14px; }
.path-stages small { color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.path-stages .pbar { grid-column: 1 / -1; margin-top: 8px; }
.pbar { display: block; height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--green); }
.path-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 6px; }
.path-list a { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.path-list a:hover span { color: var(--brand); }
.path-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 工作台：左题面 / 右编辑器 / 底部上下题 */
.sql-ws { grid-template-rows: minmax(0, 1fr) 44px; }
.sql-ws .l, .sql-ws .r { min-height: 0; }
.ws-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-top: 1px solid var(--line); background: #fff; font-size: 13.5px; }
.ws-foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.ws-foot a:hover { color: var(--brand); }
.ws-t { margin: 4px 0 0; font-size: 20px; line-height: 1.4; }
.ws-act { border-top: 1px solid var(--line); }
.ws-act kbd, .res-empty kbd { padding: 0 4px; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; }
.tabs.sm { margin: 16px 0 12px; }
.tabs.sm button { height: 34px; font-size: 13.5px; }
.schema .tabs.sm { margin: 0 0 8px; }
.schema .sp, .tabs .sp { flex: 1; }
.prose.sm { font-size: 14.5px; line-height: 1.75; }
.prose.sm h3 { margin: 18px 0 6px; font-size: 15px; }
.prose.sm ol, .prose.sm ul { padding-left: 20px; }
.res-empty { padding: 28px 16px; color: var(--mute); font-size: 13px; text-align: center; }
.res-h { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
.result .ok svg.i, .result .bad svg.i { vertical-align: -3px; }
.lockcard { margin: 16px 0; padding: 20px; background: var(--amber-weak); border: 1px solid #efdcb8; border-radius: var(--radius); }
.lockcard h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; }
.lockcard p { margin: 6px 0 14px; color: var(--ink-2); font-size: 14px; }
.subs > div { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.subs > div > span:first-child { display: inline-block; margin-right: 8px; padding: 0 7px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.subs .ok { color: var(--green); background: var(--green-weak); }
.subs .bad { color: var(--red); background: var(--red-weak); }
.subs pre { margin: 8px 0 0; padding: 8px 10px; max-height: 120px; overflow: auto; background: var(--bg-2); border-radius: 4px; font-size: 12px; }
.sql-ws.focus { position: fixed; inset: 0; z-index: 50; height: 100vh; background: #fff; grid-template-columns: minmax(0, 1fr); }
.sql-ws.focus .l, .sql-ws.focus .ws-foot { display: none; }

/* ---------- 项目学习 ---------- */
svg.arch { display: block; width: 100%; height: auto; }
svg.arch rect { fill: #fff; stroke: #c9ced4; stroke-width: 1.2; }
svg.arch rect.done { fill: var(--green-weak); stroke: var(--green); }
svg.arch text { fill: var(--ink); font-size: 12.5px; font-family: var(--font); }
svg.arch path { stroke: #9aa3ad; stroke-width: 1.2; fill: none; }
svg.arch marker path { fill: #9aa3ad; stroke: none; }
.proj-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.proj { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 36px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.proj:hover h2 { color: var(--brand); }
.proj-arch { padding: 18px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.proj-arch.big { margin-top: 22px; padding: 22px 20px; }
.proj-body h2 { margin: 4px 0 6px; font-size: 21px; }
.proj-body p { margin: 0; color: var(--ink-2); }
.kvs { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; }
.kvs span, .kvs > div { display: grid; font-size: 13.5px; }
.kvs small, .kvs dt { color: var(--mute); font-size: 12px; }
.kvs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.proj-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.chapters { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.chapters a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.chapters a:hover .t { color: var(--brand); }
.chapters .n { flex: none; width: 24px; color: var(--mute); font-size: 12.5px; }
.chapters .t { flex: 1; min-width: 0; }
.chapters a.done .t { color: var(--ink-2); }
.chapters a.cur { background: var(--brand-weak); margin: 0 -10px; padding-left: 14px; padding-right: 14px; border-radius: 4px; }
.chapters .ok { color: var(--green); }

/* ---------- 真实面经 ---------- */
.round { margin-top: 26px; }
.round h2.sec { justify-content: flex-start; gap: 8px; }
.ivq { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.ivq li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.ivq .n { color: var(--mute); font-size: 12.5px; }
.ivq p { margin: 0; font-size: 15px; }
.ivq .type { color: var(--mute); font-size: 12px; }
.ivq li.blur > div, .ivq li.blur > a, .ivq li.blur > span:last-child { filter: blur(4px); user-select: none; pointer-events: none; }

/* ---------- AI 知识 ---------- */

/* ---------- 专题指南（SEO 落地页） ---------- */
.guide { max-width: 960px; }
.stages { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.stages li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.stages .n { color: var(--brand); font-size: 15px; font-weight: 700; }
.stages h3 { margin: 0; font-size: 16px; }
.stages p { margin: 3px 0 4px; color: var(--ink-2); font-size: 14.5px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid4 > div { display: block; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid4 b { display: block; font-size: 15px; }
.grid4 p { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; }
.grid4 .n { display: block; margin-bottom: 6px; color: var(--mute); font-size: 12px; }
.idx { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.idx li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); break-inside: avoid; font-size: 14px; }
.idx li > a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idx li > a:hover { color: var(--brand); }
.idx li > span { display: flex; flex: none; align-items: center; gap: 6px; }
.big-form { display: flex; gap: 8px; }
.big-form .input-icon { flex: 1; }
.big-form .input { height: 44px; font-size: 16px; }
.big-form .input-icon svg { top: 14px; }
.big-form .btn { height: 44px; }

/* ---------- 简历模板库 /resumes ---------- */
.rs-g { margin-top: 30px; }
.rs-g header { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rs-g h2 { flex: none; margin: 0; font-size: 19px; }
.rs-g h2 small { margin-left: 10px; color: var(--mute); font-size: 13.5px; font-weight: 400; }
.rs-g header p { margin: 0; max-width: 560px; color: var(--ink-2); font-size: 13.5px; text-align: right; }
.rt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rt { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.rt:hover { border-color: var(--brand); }
.rt:hover h3 { color: var(--brand); }
/* 缩略图：真实简历按 A4 宽 794px 缩放，132 / 794 ≈ .1662 */
.rt-th { position: relative; width: 132px; aspect-ratio: 210 / 297; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 2px; }
.rt-th .sheet { position: absolute; left: 0; top: 0; width: 794px; min-height: 1123px; padding: 52px 56px; transform: scale(.1662); transform-origin: 0 0; pointer-events: none; }
.rt-b { display: flex; flex-direction: column; min-width: 0; }
.rt-m { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 13px; }
.rt h3 { margin: 8px 0 2px; font-size: 16.5px; line-height: 1.4; }
.rt-b > p { margin: 0 0 10px; color: var(--ink-2); font-size: 13.5px; }
.rt-k { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-k span { padding: 1px 8px; color: var(--ink-2); background: var(--bg-2); border-radius: 3px; font-size: 12.5px; line-height: 1.7; }
.rt-f { margin-top: auto; padding-top: 10px; color: var(--mute); font-size: 12.5px; }
.paper .h { background: var(--rc, #9aa3ad); }

/* 模板详情 /resumes/:id */
.rd { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 40px; align-items: start; }
.rd-side .h1 { margin-top: 10px; font-size: 25px; }
.rd-side .lead { font-size: 14.5px; }
.rd-kv { margin: 16px 0 0; border-top: 1px solid var(--line-2); }
.rd-kv div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.rd-kv dt { color: var(--mute); }
.rd-kv dd { margin: 0; }
.rd-act { display: grid; gap: 8px; margin: 18px 0 30px; }
.rd-act .btn.lg { justify-content: center; }
.rd-act2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rd-act2 .btn { justify-content: center; }
.rd-act p { margin: 2px 0 0; }
.rd-steps { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: s; }
.rd-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; counter-increment: s; }
.rd-steps li::before { content: counter(s); grid-row: span 2; color: var(--brand); font: 600 13px/1.65 var(--mono); }
.rd-steps span { color: var(--ink-2); }
.side-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.side-link > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.side-link:hover { color: var(--brand); }
.side-link svg.i { flex: none; width: 14px; height: 14px; color: var(--mute); }
.rd-note { margin-top: 22px; }
.rd-paper { position: relative; background: #fff; border: 1px solid var(--line); }
.rd-paper .sheet { padding: 48px 54px 56px; }
.rd-paper.lock { max-height: 860px; overflow: hidden; }
.rd-paper.lock::after { content: ""; position: absolute; left: 0; right: 0; top: 380px; bottom: 0; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 45%); }
.a4-lock { position: absolute; left: 50%; bottom: 40px; z-index: 2; width: min(420px, calc(100% - 40px)); transform: translateX(-50%); padding: 18px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.a4-lock b { font-size: 16px; }
.a4-lock p { margin: 4px 0 12px; color: var(--ink-2); font-size: 13.5px; }
.rd-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.rd-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.rd-nav a:hover { border-color: var(--brand); color: var(--brand); }
.rd-nav a span { display: grid; min-width: 0; }
.rd-nav small { color: var(--mute); font-size: 12px; }
.rd-nav-n { grid-column: 2; justify-content: flex-end; text-align: right; }

/* ---------- 简历内容（编辑器预览 + 模板详情共用） ---------- */
.sheet { --rc: #1f56c4; color: #222; background: #fff; font-size: 13px; line-height: 1.7; }
.sheet.sz-compact { font-size: 12px; line-height: 1.55; }
.sheet.sz-loose { font-size: 14px; line-height: 1.85; }
.sh-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 6px; }
.sh-head .ph { display: grid; place-items: center; flex: none; width: 76px; height: 100px; color: #9aa3ad; background: #f3f4f6; border: 1px solid #e3e5e8; font-size: 11px; }
.sh-id { flex: 1; min-width: 0; }
.sheet h1 { margin: 0; font-size: 2em; line-height: 1.2; }
.sheet .intent { margin-top: 4px; color: #444; font-weight: 600; }
.sheet .ct { margin-top: 4px; color: #555; font-size: .92em; }
.sheet .ct i, .sheet .intent i { margin: 0 8px; color: #c9ced4; font-style: normal; font-weight: 400; }
.sheet h2 { margin: 1.4em 0 .5em; padding-bottom: 3px; color: var(--rc); border-bottom: 1.5px solid var(--rc); font-size: 1.08em; }
.sheet .row2 { display: flex; justify-content: space-between; gap: 12px; margin-top: .5em; font-weight: 600; }
.sheet .row2 span:last-child { flex: none; color: #666; font-weight: 400; font-variant-numeric: tabular-nums; }
.sheet .sub { color: #555; font-size: .95em; }
.sheet ul { margin: .2em 0 .4em; padding-left: 1.3em; }
.sheet p { margin: .2em 0; }
.sheet .sk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; }
.sheet .sk span { display: flex; justify-content: space-between; border-bottom: 1px dotted #ddd; }
.sheet .sk b { font-weight: 500; }
.sheet .sk span { color: #666; }
.sheet .sk b { color: #222; }
.sheet .dh { margin: .5em 0 .05em; color: #333; font-weight: 600; font-size: .95em; }
.sheet .intro { margin: .25em 0 .1em; color: #444; }
.sheet ul.skd { margin: 0; }
.sheet ul.skd li { margin: .12em 0; }
.sheet b { font-weight: 600; }
/* 五种模板 */
.sheet.t-minimal h2 { color: #222; border-bottom: 0; font-size: .95em; letter-spacing: .12em; }
.sheet.t-minimal h2::before { content: ""; display: inline-block; width: 16px; height: 2px; margin-right: 8px; vertical-align: middle; background: var(--rc); }
.sheet.t-minimal .sk span { border: 0; }
.sheet.t-tech h2 { padding: 2px 0 2px 10px; color: #222; border: 0; border-left: 3px solid var(--rc); background: #f6f7f8; font-family: var(--mono); font-size: 1em; }
.sheet.t-tech .row2 span:last-child, .sheet.t-tech .sub { font-family: var(--mono); font-size: .9em; }
.sheet.t-creative .sh-head { margin: -1px -1px 8px; padding: 18px 20px; color: #fff; background: var(--rc); border-radius: 4px; }
.sheet.t-creative .sh-head .intent, .sheet.t-creative .sh-head .ct { color: rgba(255,255,255,.88); }
.sheet.t-creative .sh-head .ct i { color: rgba(255,255,255,.5); }
.sheet.t-creative h2 { display: inline-block; padding: 1px 10px; color: var(--rc); background: color-mix(in srgb, var(--rc) 10%, #fff); border: 0; border-radius: 3px; }
.sheet.t-elegant .sh-head { justify-content: center; text-align: center; padding-bottom: 10px; border-bottom: 3px double var(--rc); }
.sheet.t-elegant h1 { font-family: "Songti SC", "STSong", serif; letter-spacing: .2em; }
.sheet.t-elegant h2 { text-align: center; border-bottom: 0; font-family: "Songti SC", "STSong", serif; letter-spacing: .3em; }

/* ---------- 简历中心 ---------- */
.drafts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 22px; }
.draft .thumb { display: block; aspect-ratio: 210 / 297; padding: 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.draft .thumb:hover { border-color: var(--brand); }
.draft h4 { margin: 10px 0 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft h4:hover { color: var(--brand); }
.draft p { margin: 2px 0 8px; color: var(--mute); font-size: 12.5px; }
.draft-act { display: flex; gap: 4px; }
.draft.new { display: grid; place-items: center; align-content: center; gap: 6px; aspect-ratio: 210 / 297; padding: 16px; color: var(--ink-2); background: none; border: 1.5px dashed #c9ced4; border-radius: 3px; text-align: center; }
.draft.new:hover { border-color: var(--brand); color: var(--brand); }
.draft.new > span { display: grid; place-items: center; width: 36px; height: 36px; background: var(--bg-2); border-radius: 50%; }
.draft.new small { color: var(--mute); font-size: 12px; }

/* ---------- 简历编辑器 ---------- */
body.bare { padding-bottom: 0; }
.bd-bar { position: sticky; top: 56px; z-index: 20; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--line); }
.bd-bar .sp { flex: 1; }
.bd-title { min-width: 0; width: 260px; height: 32px; padding: 0 8px; background: none; border: 1px solid transparent; border-radius: 4px; font-size: 15px; font-weight: 600; }
.bd-title:hover { border-color: var(--line); }
.bd-title:focus { outline: none; border-color: var(--brand); }
.save-st { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 12.5px; white-space: nowrap; }
.save-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.save-st[data-s="dirty"]::before { background: #d9a441; }
.save-st[data-s="ing"]::before { background: var(--brand); animation: pulse 1s infinite; }
.save-st[data-s="err"] { color: var(--red); }
.save-st[data-s="err"]::before { background: var(--red); }
@keyframes pulse { 50% { opacity: .3; } }
.bd-switch { display: none; }
.builder.bd { height: calc(100vh - 56px - 48px); grid-template-columns: 400px minmax(0, 1fr); }
.builder .form { padding-top: 4px; }
.builder .form .tabs.sm { position: sticky; top: -4px; z-index: 2; margin: 0 -22px 4px; padding: 0 12px; background: #fff; }
.builder .sheet { width: 794px; max-width: none; min-height: 1123px; padding: 52px 56px; }
.builder .preview { display: flex; justify-content: center; align-items: flex-start; }
.fgroup > b { align-items: center; }
.fgroup > b .btn { height: 26px; margin-right: -8px; font-weight: 500; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.item { margin-bottom: 12px; padding: 10px 12px 2px; background: var(--bg-2); border-radius: var(--radius); }
.it-bar { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; color: var(--mute); font-size: 12.5px; }
.it-bar span { flex: 1; }
.it-bar button, .order button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; color: var(--ink-2); background: none; border: 0; border-radius: 4px; }
.it-bar button:hover:not(:disabled), .order button:hover:not(:disabled) { background: #e9ebee; color: var(--ink); }
.it-bar button:disabled, .order button:disabled { opacity: .3; cursor: default; }
.it-bar svg.i, .order svg.i { width: 14px; height: 14px; }
.sk-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 30px; gap: 6px; margin-bottom: 6px; }
.sk-row .btn { width: 30px; height: 36px; padding: 0; }
.sk-row.sk-d { grid-template-columns: minmax(0, 1fr) 30px; padding: 8px 8px 2px; background: var(--bg-2); border-radius: var(--radius); }
.sk-row.sk-d textarea { grid-column: 1 / -1; width: 100%; min-height: 58px; padding: 7px 10px; border: 1px solid #d5d9de; border-radius: var(--radius); background: #fff; font-size: 13.5px; line-height: 1.6; resize: vertical; }
.photo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.photo { display: grid; place-items: center; width: 54px; height: 70px; color: var(--mute); background: var(--bg-2); border: 1.5px dashed #c9ced4; border-radius: 4px; font-size: 11px; }
.photo.on { color: var(--green); background: var(--green-weak); border: 1.5px solid var(--green); }
.tpl-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tpl-pick button { display: grid; justify-items: center; gap: 6px; padding: 8px 4px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 12.5px; }
.tpl-pick button.on { color: var(--brand-ink); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); font-weight: 600; }
.mini { display: grid; gap: 3px; width: 34px; height: 46px; padding: 5px 4px; background: #fff; border: 1px solid #e3e5e8; }
.mini em { display: block; height: 3px; background: #d5d9de; }
.mini em:first-child { height: 6px; background: #9aa3ad; }
.mini.m-classic em:nth-child(2) { border-bottom: 1px solid var(--brand); }
.mini.m-tech em:nth-child(n+2) { border-left: 2px solid var(--brand); }
.mini.m-creative em:first-child { height: 10px; background: var(--brand); }
.mini.m-elegant em:first-child { width: 60%; justify-self: center; }
.mini.m-minimal em { background: #e6e8eb; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.swatches button { width: 26px; height: 26px; padding: 0; background: var(--c); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.swatches button.on { box-shadow: 0 0 0 2px var(--c); }
.sw-custom { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 4px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; font-size: 12.5px; cursor: pointer; }
.sw-custom.on { border-color: var(--brand); }
.sw-custom input { width: 20px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.order { margin: 0; padding: 0; list-style: none; }
.order li { display: flex; align-items: center; gap: 8px; height: 40px; margin-bottom: 4px; padding: 0 6px 0 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; cursor: grab; }
.order li span { flex: 1; }
.order li > svg.i { color: var(--mute); }
.order li.drag { opacity: .4; }
.order li.over { border-color: var(--brand); }

/* ---------- 会员 ---------- */
.price-top { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; margin-bottom: 48px; }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 28px 0 0; padding: 0; list-style: none; }
.perks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.perks li > svg.i { margin-top: 3px; color: var(--brand); }
.perks b { display: block; color: var(--ink); font-size: 15px; }
.buy { padding: 22px; border: 1px solid var(--line); border-radius: 8px; }
.buy h3 { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.vip-bar { display: flex; gap: 8px; margin: -4px 0 16px; padding: 10px 12px; color: var(--green); background: var(--green-weak); border-radius: var(--radius); font-size: 13.5px; }
.vip-bar svg.i { margin-top: 3px; }
.plan-opts { display: grid; gap: 8px; }
.plan-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.plan-opt:hover { border-color: #c9ced4; }
.plan-opt.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: #f6f9fe; }
.plan-opt input { accent-color: var(--brand); }
.po-t { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; }
.po-t b { font-size: 16px; }
.po-t .pill { justify-self: start; }
.po-t small { grid-column: 1 / -1; color: var(--mute); font-size: 12.5px; }
.plan-opt strong { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pay-m { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 14px; }
.alipay { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.alipay i { display: grid; place-items: center; width: 20px; height: 20px; color: #fff; background: #1677ff; border-radius: 4px; font-size: 11px; font-style: normal; }
.plans.p2 { grid-template-columns: 1.4fr 1fr 1fr; margin-bottom: 40px; }
.plans.p2 .ph { min-height: 112px; }
.plans.p2 > div:first-child .ph { display: flex; align-items: flex-end; padding-bottom: 12px; }
.plans.p2 > div:first-child .ph h3 { color: var(--mute); font-size: 13px; }
.plans.p2 > div:first-child .cell { color: var(--ink-2); }
.plans .yes svg.i { stroke-width: 2.4; }
.faq.narrow { max-width: 760px; }

/* 支付结果 */
.pay-res { max-width: 520px; margin: 32px auto 0; text-align: center; }
.pr-ic { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; color: #fff; border-radius: 50%; background: var(--mute); }
.pr-ic svg.i { width: 28px; height: 28px; stroke-width: 2.4; }
.pay-res[data-s="success"] .pr-ic { background: var(--green); }
.pay-res[data-s="pending"] .pr-ic { background: #d9a441; }
.pay-res[data-s="error"] .pr-ic { background: var(--red); }
.pay-res[data-s="confirming"] .pr-ic { background: none; }
.spin { width: 40px; height: 40px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-res h1 { margin: 0; font-size: 24px; }
.pay-res > p { margin: 8px 0 0; color: var(--ink-2); }
.pr-act { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.pr-order { display: grid; margin: 32px 0 0; padding: 4px 18px; text-align: left; background: var(--bg-2); border-radius: var(--radius); }
.pr-order > div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pr-order > div:last-child { border-bottom: 0; }
.pr-order dt { color: var(--mute); }
.pr-order dd { margin: 0; }
.demo-note { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin: 40px 0 0; color: var(--mute); font-size: 13px; }
.demo-note a { color: var(--ink-2); text-decoration: underline; text-decoration-color: #c9ced4; text-underline-offset: 3px; }
.demo-note a.on { color: var(--brand); text-decoration-color: var(--brand); }

/* ---------- 岗位投递 ---------- */
.jcount { display: flex; align-items: center; gap: 4px; margin: 18px 0 4px; color: var(--mute); font-size: 13.5px; }
.jcount b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.jcount .link { margin-left: 10px; background: none; border: 0; padding: 0; font-size: 13.5px; }
.jco { padding: 16px 0 10px; border-bottom: 1px solid var(--line); }
.jco header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.jco header > div { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.jco header b { font-size: 16px; font-weight: 600; }
.jco header small { color: var(--mute); font-size: 12.5px; }
.jco header .btn { flex: none; }
.jco header .btn svg.i { width: 13px; height: 13px; }
.jr { display: grid; grid-template-columns: minmax(0, 1fr) auto 150px; align-items: center; gap: 12px; min-height: 38px; margin-left: 40px; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.jr:first-of-type { border-top: 0; }
.jt { min-width: 0; color: var(--ink); overflow-wrap: anywhere; padding: 7px 0; }
.jc { color: var(--mute); font-size: 13px; text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.jc b { color: var(--ink-2); font-weight: 600; }
.jmore { margin: 2px 0 4px 40px; padding: 4px 0; color: var(--brand); background: none; border: 0; font-size: 13.5px; }
.jmore:hover { text-decoration: underline; }
.jpage { display: flex; margin: 20px auto 0; }
.jmeta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; }
.jmeta dt { color: var(--mute); }
.jmeta dd { margin: 0; color: var(--ink); }
@media (max-width: 600px) {
  .rt { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .rt-th { width: 84px; }
  .rt-th .sheet { transform: scale(.1058); }
  .rt h3 { margin-top: 6px; font-size: 15.5px; }
  .rt-k span:nth-child(n+3) { display: none; }
  .rd-paper { margin-inline: -8px; }
  .rd-paper .sheet { padding: 22px 18px 28px; }
  .rd-paper .sheet .row2 { flex-direction: column; gap: 0; }
  .rd-nav { grid-template-columns: minmax(0, 1fr); }
  .rd-nav-n { grid-column: 1; }
  .jr { grid-template-columns: minmax(0, 1fr) auto; margin-left: 0; gap: 0 10px; padding: 6px 0; }
  .jt { padding: 0; }
  .jc { grid-column: 1 / -1; text-align: left; white-space: normal; }
  .jmore { margin-left: 0; }
}

/* ---------- 更新日志 ---------- */
.updates-page { max-width: 1060px; }
.updates-page .page-h { align-items: baseline; margin-bottom: 24px; }
.updates-updated { color: var(--mute); font-size: 12px; white-space: nowrap; }
.updates-updated time { margin-left: 8px; }
.updates-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.updates-release { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.updates-date { padding-top: 3px; color: var(--mute); font-size: 13px; }
.updates-body { min-width: 0; }
.updates-body h2 { margin: 0 0 20px; font-size: 20px; line-height: 1.5; }
.updates-note { margin: -10px 0 20px; color: var(--mute); font-size: 13px; }
.updates-items { margin: 0; padding: 0; list-style: none; }
.updates-items li + li { margin-top: 24px; }
.updates-item-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.updates-item-heading h3 { margin: 0; font-size: 15px; font-weight: 600; }
.updates-items p { margin: 8px 0; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.updates-action { font-size: 13px; }
.updates-end { margin: 28px 0 0; color: var(--mute); font-size: 13px; text-align: center; }
@media (max-width: 600px) {
  .updates-page .page-h { flex-direction: column; gap: 10px; }
  .updates-release { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .updates-body h2 { font-size: 18px; margin-bottom: 16px; }
}

/* ---------- 关于 ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; max-width: 980px; }
.about .prose h1 { margin-bottom: 20px; }
.about .prose h2 { margin-top: 32px; font-size: 18px; }
.about-r { display: grid; gap: 24px; align-content: start; }
.about-r .qr.big { margin-top: 4px; }

/* ---------- 登录注册 ---------- */
.auth .l h2 { line-height: 1.4; }
.auth .l li { grid-template-columns: 22px 1fr; }
.auth .l li > svg.i { margin-top: 4px; color: var(--brand); }
.field .err { display: none; color: var(--red); font-size: 12.5px; }
.field.bad .err { display: block; }
.field.bad .input { border-color: var(--red); }
.field .hint { color: var(--mute); font-size: 12px; }
.field .hint:empty { display: none; }
.field.bad .hint { display: none; }
.field .input:disabled { color: var(--mute); background: var(--bg-2); }
.pw { position: relative; display: block; }
.pw .input { width: 100%; padding-right: 40px; }
.pw button { position: absolute; right: 4px; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: var(--mute); background: none; border: 0; transform: translateY(-50%); }
.form-row { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 18px; }
.form-row label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.form-row input { accent-color: var(--brand); }
.note-ok { display: flex; gap: 8px; margin: 14px 0 10px; padding: 12px 14px; color: var(--green); background: var(--green-weak); border-radius: var(--radius); font-size: 14px; }
.note-ok svg.i { margin-top: 3px; }
.auth .r .link svg.i { vertical-align: -3px; }

/* ---------- 个人中心 ---------- */
.me > aside { position: sticky; top: 72px; align-self: start; }
.me-id { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.me-id b { display: block; font-size: 15px; }
.me-id small { color: var(--mute); font-size: 12.5px; }
.avatar.lg { width: 40px; height: 40px; font-size: 16px; }
.avatar.xl { width: 64px; height: 64px; font-size: 24px; }
.me-out { margin: 14px 0 0 -10px; color: var(--mute); }
.me-main { min-width: 0; }
.me-h { margin: 0 0 18px; font-size: 22px; }
.me-h-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.me-h-row .me-h { margin: 0; }
.me-sub { margin: -10px 0 16px; color: var(--ink-2); font-size: 14px; }
.stats b small { color: var(--mute); font-size: 14px; font-weight: 400; }
.trend-wrap { margin-top: 28px; }
.trend-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.trend { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.trend i { flex: 1; min-height: 2px; background: #a9c1ef; border-radius: 2px 2px 0 0; }
.trend i:hover { background: var(--brand-ink); }
.trend i.today { background: var(--brand); }
.trend-x { display: flex; justify-content: space-between; margin-top: 6px; color: var(--mute); font-size: 12px; }
.dir-bars a { display: grid; grid-template-columns: 92px minmax(0, 1fr) 64px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.dir-bars a:hover .tag { text-decoration: underline; }
.dir-bars .small { text-align: right; font-variant-numeric: tabular-nums; }
.vip-card p { margin: 0 0 4px; }
.vip-card .btn { margin-top: 8px; }
.guide-l { margin: 0; padding: 0; list-style: none; }
.guide-l li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }
.guide-l i { display: grid; place-items: center; width: 18px; height: 18px; color: #fff; border: 1.5px solid #c5cbd2; border-radius: 50%; font-style: normal; }
.guide-l i svg.i { width: 11px; height: 11px; stroke-width: 3; }
.guide-l li.ok i { background: var(--green); border-color: var(--green); }
.guide-l li.ok a { color: var(--mute); text-decoration: line-through; }
.guide-l a:hover { color: var(--brand); }
.set { max-width: 520px; margin-bottom: 36px; }
.set-f .btn { margin-top: 4px; }
.lrows { border-top: 1px solid var(--line-2); }
.lrow { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.lrow > .sd { justify-self: center; }
.lt { min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt:hover { color: var(--brand); }
.lm { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 12.5px; white-space: nowrap; }
.lrows.fav .btn.ghost svg.i { color: #d9a441; fill: #f3cf74; }
.ntf > div > a { min-width: 0; }
.ntf > div > a:hover h4 { color: var(--brand); }
.ntf h4 { display: flex; align-items: center; gap: 8px; }
.ntf h4 .pill { height: 19px; padding: 0 6px; font-size: 11.5px; font-weight: 500; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .rt-grid { grid-template-columns: minmax(0, 1fr); }
  .rd { grid-template-columns: 300px minmax(0, 1fr); gap: 28px; }
  .drafts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proj { grid-template-columns: 300px minmax(0, 1fr); gap: 28px; }
  .builder.bd { grid-template-columns: 360px minmax(0, 1fr); }
  .builder .sheet { transform: scale(.8); transform-origin: top center; margin-bottom: -224px; }
  .price-top { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; }
}
@media (max-width: 900px) {
  .rd { grid-template-columns: minmax(0, 1fr); }
  .rs-g header { flex-direction: column; gap: 4px; }
  .rs-g header p { text-align: left; }
  .stat-line { gap: 18px; }
  .stat-line span { text-align: left; }
  .path-stages { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
  .path-list { grid-template-columns: minmax(0, 1fr); }
  .sql-ws { grid-template-rows: auto; }
  .sql-ws .r { min-height: 0; }
  .ws-foot { height: 48px; position: sticky; bottom: 56px; }
  .sql-ws.focus .r { grid-template-rows: auto minmax(0, 1fr) auto minmax(140px, .7fr); height: 100vh; }
  .proj { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idx { columns: 1; }
  .drafts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .builder.bd { grid-template-columns: minmax(0, 1fr); height: auto; }
  .builder.bd .preview { display: none; padding: 12px; overflow-x: auto; }
  .builder.bd.show-pv .form { display: none; }
  .builder.bd.show-pv .preview { display: block; }
  .builder .sheet { width: 100%; min-height: 0; padding: 28px 24px; transform: none; margin: 0; }
  .bd-switch { display: inline-flex; }
  .bd-title { width: 180px; }
  .price-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .plans.p2 { grid-template-columns: minmax(0, 1fr); }
  .plans.p2 .ph { min-height: 0; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .me > aside { position: static; }
  .me-id { margin-bottom: 10px; }
  .me-out { display: none; }
}
@media (max-width: 600px) {
  .h1 { font-size: 23px; }
  .lead { font-size: 15px; }
  .stat-line b { font-size: 17px; }
  .path-h { flex-direction: column; gap: 2px; }
  .ws-t { font-size: 18px; }
  .ws-bar { overflow-x: auto; }
  .ws-bar .btn { flex: none; }
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  .stages li { grid-template-columns: 34px minmax(0, 1fr); }
  .stages li > a { grid-column: 2; }
  .ivq li { grid-template-columns: 26px minmax(0, 1fr); }
  .ivq li > a, .ivq li > span:last-child { grid-column: 2; }
  .drafts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .bd-bar { gap: 6px; padding: 0 8px; }
  .bd-title { width: auto; flex: 1; }
  .bd-bar .sp, .save-st { display: none; }
  .hide-s { display: none; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .tpl-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet .sk { grid-template-columns: minmax(0, 1fr); }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .buy { padding: 16px; }
  .pr-act { flex-direction: column; }
  .lrow { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .lrow .lm { grid-column: 2; grid-row: 2; }
  .lrow > .btn, .lrow > a.btn { grid-column: 3; grid-row: 1 / span 2; }
  .lt { white-space: normal; }
  .dir-bars a { grid-template-columns: 80px minmax(0, 1fr) 52px; }
  .trend { gap: 2px; height: 96px; }
  .me-h-row { flex-wrap: wrap; gap: 8px; }
  .cmt-new { grid-template-columns: 28px minmax(0, 1fr); }
  .cmt-new .btn { grid-column: 2; justify-self: end; }
}

/* ---------- 视频讲解：列表 ---------- */
.vd-cont { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.vd-cont:hover { border-color: #c9d8f5; }
.vd-cont img { width: 44px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; flex: none; }
.vd-cont > div { flex: 1; min-width: 0; }
.vd-cont small { display: block; color: var(--mute); font-size: 12.5px; }
.vd-cont b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-cont-p { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.vd-cont-p .pbar { width: 180px; flex: none; }
.vd-cont-p .pbar i, .vc-s .pbar i { background: var(--brand); }
.vd-cont .btn { flex: none; }
.vd-g { margin-top: 28px; }
.vd-g h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 17px; }
.vd-g h2 small { color: var(--mute); font-size: 13px; font-weight: 400; }
.vc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 20px 16px; }
.vc { display: block; min-width: 0; }
.vc-img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #0f1830; border-radius: var(--radius); }
.vc-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.vc:hover .vc-img img { opacity: .9; }
.vc-dur { position: absolute; right: 6px; bottom: 8px; padding: 0 6px; color: #fff; background: rgba(0,0,0,.72); border-radius: 3px; font-size: 12px; line-height: 20px; }
.vc-done { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 0 7px 0 5px; color: #fff; background: var(--green); border-radius: 3px; font-size: 12px; line-height: 20px; }
.vc-done svg.i { width: 13px; height: 13px; stroke-width: 2.4; vertical-align: 0; }
.vc-pg { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.28); }
.vc-pg i { display: block; height: 100%; background: #fff; }
.vc h3 { margin: 8px 0 2px; font-size: 15px; line-height: 1.45; }
.vc:hover h3 { color: var(--brand); }
.vc p { margin: 0; color: var(--mute); font-size: 13px; line-height: 1.5; }
.vd-foot { margin-top: 32px; }

/* ---------- 视频讲解：播放页 ---------- */
.vd { display: grid; gap: 20px; align-items: start; }
.vd.is-h { grid-template-columns: minmax(0, 1fr) 380px; }
.vd.is-v { grid-template-columns: auto minmax(0, 560px); justify-content: center; gap: 28px; }
.vp { background: #000; border-radius: var(--radius); overflow: hidden; }
.vp .vbox { display: block; width: 100%; background: #000; }
.vp .vbox > div { width: 100% !important; height: 100% !important; }
.vp .vbox > .empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 240px; padding: 32px 20px; color: #e2e8f0; }
.vp .empty p { max-width: 440px; color: #cbd5e1; }
#video-usage:empty, [data-video-usage]:empty { display: none; }
.vd.is-h .vp .vbox { aspect-ratio: 16 / 9; }
.vd.is-v .vp .vbox { height: min(calc(100vh - 150px), 760px); min-height: 480px; width: auto; aspect-ratio: 9 / 16; }
.vd-resume { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--ink-2); font-size: 13.5px; }
.vd-resume[hidden] { display: none; }
.vd-resume.is-err { color: var(--red, #d93025); }
.vd-resume .link { color: var(--brand); background: none; border: 0; padding: 0; }
.vd-side { display: flex; flex-direction: column; min-height: 0; padding: 16px 16px 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.vd-meta { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 13px; }
.vd-side h1 { margin: 8px 0 0; font-size: 21px; line-height: 1.35; }
.vd-side .lead { margin-top: 4px; font-size: 14.5px; }
.vd-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 8px; }
.vd-bar .seg small { color: var(--mute); font-weight: 400; }
.vd-list { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -8px; padding: 0 0 8px; overscroll-behavior: contain; }
.vd-list [hidden] { display: none; }
.vch, .vln { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; width: 100%; padding: 7px 8px; color: var(--ink-2); background: none; border: 0; border-radius: 4px; text-align: left; font-size: 14px; line-height: 1.6; }
.vch:hover, .vln:hover { background: var(--bg-2); }
.vch .mono, .vln .mono { color: var(--mute); font-size: 12.5px; line-height: 22px; }
.vch { padding-block: 9px; }
.vch.on, .vln.on { color: var(--brand-ink); background: var(--brand-weak); }
.vch.on .mono, .vln.on .mono { color: var(--brand); }
.vch.on span:last-child { font-weight: 600; }
.vd-tx h4 { margin: 14px 8px 4px; color: var(--ink); font-size: 13px; font-weight: 600; }
.vd-tx h4:first-child { margin-top: 2px; }
.vd-sec { margin-top: 40px; }
.vd-sec h2.sec { justify-content: flex-start; gap: 10px; }
.vd-sec h2.sec a { margin-left: auto; color: var(--brand); font-size: 14px; font-weight: 400; }
.vd-qs { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 10px; }
.vd-qs a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.vd-qs a:hover { border-color: #c9d8f5; }
.vd-qs b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; }
.vd-qs a > svg.i { color: var(--mute); }
.vd-qst { flex: none; font-size: 12.5px; color: var(--mute); }
.vd-qst.st-1 { color: var(--red); } .vd-qst.st-2 { color: var(--amber); } .vd-qst.st-3 { color: var(--green); }
.vc-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.vc-s { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.vc-s:hover { border-color: #c9d8f5; }
.vc-s img { width: 40px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 3px; flex: none; }
.vc-s b { display: block; font-size: 14px; font-weight: 500; line-height: 1.45; }
.vd-detail .prev-next { margin-top: 40px; }

/* 题目详情页里的视频入口 */
.q-vid { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2); font-size: 13.5px; }
.q-vid:hover { border-color: #c9d8f5; }
.q-vid img { width: 32px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 3px; flex: none; }
.q-vid b { display: block; color: var(--ink); font-size: 14.5px; }
.q-vid .go { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; flex: none; color: var(--brand); font-weight: 600; }
.q-vid .go svg.i { width: 13px; height: 13px; fill: currentColor; }

@media (max-width: 900px) {
  .vd.is-h, .vd.is-v { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .vd.is-v .vd-main { display: flex; flex-direction: column; align-items: center; }
  .vd.is-v .vp .vbox { height: min(72vh, 640px); min-height: 0; }
  .vd-side { height: auto !important; padding: 12px 12px 6px; }
  .vd-list { max-height: 420px; }
  .vd-qs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .vc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .vc h3 { font-size: 14px; }
  .vc p { display: none; }
  .vd-cont-p .pbar { width: 90px; }
  .vd-cont .btn { display: none; }
  .vd-detail .wrap, .vd-detail { padding-inline: 16px; }
  .vd.is-v .vp .vbox { height: min(64vh, 560px); }
  .vd.is-h .vd-main { margin-inline: -16px; }
  .vd.is-h .vp { border-radius: 0; }
  .vd-side h1 { font-size: 18px; }
  .vc-row { grid-template-columns: minmax(0, 1fr); }
  .q-vid { font-size: 12.5px; }
}

/* ---------- 打印：会员导出 PDF 只打印简历 ----------
   必须放在文件末尾：A4 打印宽度约 720px，会命中上面 max-width 900/1100 的响应式规则
   （隐藏预览区、缩放简历），写在前面会被覆盖，导出成空白页。
   其它元素用 display:none 移除而不是 visibility 隐藏，避免表单撑出多余的空白页。
   命名页 resume 页边距设为 0（只作用于简历编辑器），浏览器就不会加日期、标题、网址、页码这些页眉页脚；
   页边距改由简历自己的 padding 提供，clone 让分页后每一页都有上下留白。 */
@page resume { size: A4; margin: 0; }
@media print {
  body:has(#bd) > :not(#app), body:has(#bd) #app > :not(main), #app .bd-bar, .builder.bd .form { display: none !important; }
  body:has(#bd), body:has(#bd) main { background: #fff; padding: 0; margin: 0; }
  .builder.bd { page: resume; display: block; height: auto; overflow: visible; background: #fff; }
  .builder.bd .preview { display: block !important; height: auto; padding: 0; overflow: visible; background: #fff; }
  .builder.bd .sheet { width: auto; max-width: none; min-height: 0; margin: 0; padding: 12mm 14mm; border: 0; transform: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
}
