/* 字体随项目一起部署，不依赖 Google Fonts（国内无法访问） */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F6F6F2;
  --surface: #FFFFFF;
  --ink: #0F1115;
  --ink-2: #4B5160;
  --ink-3: #8B90A0;
  --line: #E7E6E0;
  --line-2: #D9D8D0;
  --night: #0A0B0F;
  --night-2: #13151B;
  --night-line: rgba(255, 255, 255, .09);
  --accent: #5B4CFF;
  --accent-soft: #EEECFF;
  --lime: #C8FF4D;
  --good: #0E9F6E;
  --good-soft: #E3F6EE;
  --warn: #D97706;
  --warn-soft: #FDF1DD;
  --bad: #E0452B;
  --bad-soft: #FDE7E2;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 17, 21, .04), 0 8px 24px -12px rgba(15, 17, 21, .12);
  --sans: 'Inter', -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --serif: 'Songti SC', serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
textarea, input, select { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
mark { background: rgba(200, 255, 77, .55); color: inherit; border-radius: 4px; padding: 0 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: transform .15s, background .2s, box-shadow .2s, opacity .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-lime { background: var(--lime); color: #0B0D0A; box-shadow: 0 0 0 1px rgba(200, 255, 77, .4), 0 10px 30px -8px rgba(200, 255, 77, .45); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #22252d; }
.btn-line { border: 1px solid var(--line-2); background: var(--surface); }
.btn-line:hover { border-color: var(--ink-3); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px rgba(91, 76, 255, .7); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: #fff; }
.logo-dark { color: var(--ink); }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 17l4.5 4.5L23 11' stroke='%23C8FF4D' stroke-width='3.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.logo-ai { font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 6px; border-radius: 6px; background: var(--lime); color: #0B0D0A; margin-left: -3px; }

/* ---------- landing nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; backdrop-filter: blur(14px); background: rgba(10, 11, 15, .55); border-bottom: 1px solid var(--night-line); }
.nav-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; gap: 4px; }
.nav-links > * { color: rgba(255, 255, 255, .7); font-size: 14px; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links > *:hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 150px 0 0; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none; background:
  radial-gradient(40% 38% at 50% 22%, rgba(91, 76, 255, .42), transparent 70%),
  radial-gradient(28% 26% at 74% 36%, rgba(200, 255, 77, .14), transparent 70%),
  radial-gradient(30% 30% at 24% 40%, rgba(56, 189, 248, .14), transparent 70%); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(60% 50% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000 30%, transparent 75%); }
.hero-in { position: relative; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 13px; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.hero-title { font-size: clamp(44px, 7.4vw, 92px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; margin: 26px auto 0; max-width: 980px; }
.hero-title em { color: var(--lime); font-size: 1.08em; letter-spacing: -.02em; }
.hero-sub { max-width: 680px; margin: 26px auto 0; font-size: 17px; color: rgba(255, 255, 255, .66); line-height: 1.8; }
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .45); flex-wrap: wrap; }
.hero-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

/* mockup */
.mock { position: relative; max-width: 1000px; margin: 72px auto 0; border-radius: 18px 18px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; padding: 0 10px; box-shadow: 0 -30px 120px -30px rgba(91, 76, 255, .55); text-align: left; }
.mock-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 8px; }
.mock-bar > span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.mock-url { margin: 0 auto; font: 12px var(--mono); color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .05); padding: 4px 14px; border-radius: 8px; }
.mock-body { display: grid; grid-template-columns: 170px 1fr; gap: 10px; background: var(--night-2); border-radius: 12px 12px 0 0; padding: 14px; border: 1px solid var(--night-line); border-bottom: 0; }
.mock-side { display: flex; flex-direction: column; gap: 4px; }
.ms { font-size: 13px; color: rgba(255, 255, 255, .5); padding: 9px 10px; border-radius: 9px; display: flex; gap: 10px; }
.ms b { font: 500 11px var(--mono); padding-top: 2px; }
.ms.done b { color: var(--lime); }
.ms.on { background: rgba(255, 255, 255, .07); color: #fff; }
.mock-main { display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px; }
.card-d { background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line); border-radius: 12px; padding: 18px; }
.mk-label { font-size: 12px; color: rgba(255, 255, 255, .5); }
.mk-big { font-size: 56px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin: 4px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.mk-up { font-size: 14px; font-weight: 600; color: var(--lime); letter-spacing: 0; }
.mk-bars { display: grid; gap: 8px; }
.mk-bars > div { display: grid; grid-template-columns: 64px 1fr 26px; align-items: center; gap: 10px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.mk-bars b { font: 500 12px var(--mono); color: #fff; text-align: right; }
.bar { height: 6px; border-radius: 99px; background: rgba(127, 127, 127, .18); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent); }
.bar i.lime { background: var(--lime); }
.mk-spark { margin-top: 18px; }
.mk-spark svg { width: 100%; height: 48px; display: block; }
.mk-v { display: flex; justify-content: space-between; font: 11px var(--mono); color: rgba(255, 255, 255, .4); margin-top: 6px; }
.mk-row { display: flex; align-items: center; gap: 10px; }
.mk-old { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .45); text-decoration: line-through; text-decoration-color: rgba(224, 69, 43, .7); }
.mk-issues { display: flex; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.mk-issues span { font-size: 11px; padding: 3px 9px; border-radius: 99px; background: rgba(224, 69, 43, .14); color: #FF9C88; }
.mk-new { font-size: 15px; line-height: 1.7; color: #fff; padding: 14px; border-radius: 10px; background: rgba(200, 255, 77, .06); border: 1px solid rgba(200, 255, 77, .18); }
.mk-new mark { background: rgba(200, 255, 77, .22); color: var(--lime); }

/* strip */
.strip { background: var(--night); border-top: 1px solid var(--night-line); color: rgba(255, 255, 255, .5); }
.strip-in { display: flex; align-items: center; gap: 32px; height: 76px; overflow: hidden; }
.strip-label { font-size: 13px; white-space: nowrap; }
.strip-roles { display: flex; gap: 34px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: rgba(255, 255, 255, .32); white-space: nowrap; }

/* ---------- sections ---------- */
.sec { padding: 120px 0; }
.sec-tint { background: #EFEEE8; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.eyebrow { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 16px; }
.sec-head h2, .cta-in h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; }
.sec-head h2 em, .cta-in h2 em { font-size: 1.08em; }
.sec-head p { margin-top: 18px; font-size: 17px; color: var(--ink-2); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--surface); padding: 30px 26px 26px; display: flex; flex-direction: column; min-height: 290px; transition: background .2s; }
.step:hover { background: #FCFCFA; }
.step-n { font: 500 13px var(--mono); color: var(--ink-3); margin-bottom: 56px; }
.step h3 { font-size: 22px; letter-spacing: -.02em; }
.step p { color: var(--ink-2); font-size: 14.5px; margin-top: 10px; flex: 1; }
.step-out { margin-top: 22px; font-size: 12px; font-weight: 600; color: var(--accent); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.b { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); overflow: hidden; }
.b h3 { font-size: 19px; letter-spacing: -.02em; }
.b p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.b-radar { grid-column: span 3; display: grid; grid-template-columns: 1fr 220px; align-items: center; gap: 20px; }
.b-vis { width: 100%; color: var(--ink); }
.b-vis text { font-size: 12px; fill: var(--ink-3); }
.b-rank { grid-column: span 3; }
.rank-mini { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.rank-mini li { display: grid; grid-template-columns: 96px 1fr 30px; align-items: center; gap: 12px; font-size: 14px; }
.rank-mini b { font: 500 13px var(--mono); text-align: right; }
.rank-mini li:first-child .bar i { background: var(--ink); }
.b-diff { grid-column: span 6; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.b-diff .diff-mini { margin-top: 0; }
.diff-mini { margin-top: 16px; display: grid; gap: 8px; font-size: 14px; }
.d-old { color: var(--ink-3); text-decoration: line-through; }
.d-why { font-size: 12px; color: var(--bad); }
.d-new { background: var(--good-soft); border-radius: 10px; padding: 12px; }
.b-stable, .b-honest, .b-private { grid-column: span 2; }
.big-num { font-size: 44px; font-weight: 700; letter-spacing: -.04em; margin-bottom: 18px; line-height: 1; }
.b-stable .big-num { color: var(--accent); }
.b-honest .big-num { font-family: var(--mono); font-size: 34px; color: var(--warn); }
.b-private { background: var(--night); color: #fff; border-color: var(--night); }
.b-private p { color: rgba(255, 255, 255, .6); }
.b-private .big-num { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lime); font-size: 52px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; }
.cmp th, .cmp td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp th { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.cmp td:first-child { font-weight: 600; }
.cmp td:not(:first-child):not(.hl) { color: var(--ink-3); }
.cmp .hl { background: #F4F2FF; color: var(--ink); font-weight: 600; }
.cmp th.hl { color: var(--accent); }

.cta-band { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 120px 0; text-align: center; }
.cta-band .hero-glow { inset: -40% -10% auto; }
.cta-in { position: relative; }
.cta-in h2 em { color: var(--lime); }
.cta-in p { color: rgba(255, 255, 255, .6); margin: 16px 0 34px; font-size: 17px; }
.foot { padding: 36px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-in .muted { margin-left: auto; }

/* ---------- app ---------- */
.app-top { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 28px; padding: 0 24px; background: rgba(246, 246, 242, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.app-tabs { display: flex; gap: 2px; }
.app-tabs a { font-size: 14px; padding: 7px 14px; border-radius: 999px; color: var(--ink-2); }
.app-tabs a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.app-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mode { font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.mode::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.mode.ai::before { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }

.app-body { display: grid; grid-template-columns: 250px 1fr; max-width: 1320px; margin: 0 auto; gap: 32px; padding: 32px 24px 80px; }
.stepper { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.stepper-title { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); padding: 0 12px 10px; }
.sp { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; transition: background .2s; position: relative; }
.sp:not(:disabled):hover { background: rgba(15, 17, 21, .04); }
.sp:disabled { cursor: not-allowed; opacity: .45; }
.sp-n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 500 12px var(--mono); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.sp-t { font-size: 14px; font-weight: 600; line-height: 1.3; }
.sp-s { font-size: 12px; color: var(--ink-3); }
.sp.done .sp-n { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.sp.on { background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.sp.on .sp-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper-foot { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.stepper-foot b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 4px; }

.stage { min-width: 0; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.stage-head h1 { font-size: 34px; letter-spacing: -.035em; line-height: 1.15; font-weight: 700; }
.stage-head h1 em { font-size: 1.08em; color: var(--accent); }
.stage-head p { color: var(--ink-2); margin-top: 6px; font-size: 15px; }
.kicker { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 8px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card + .card { margin-top: 16px; }
.gap-top, .re-grid { margin-bottom: 16px; }
.gap-top > .card, .re-grid > .card, .input-grid > .card { margin-top: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-h h3 { font-size: 16px; letter-spacing: -.01em; }
.card-h .sub { font-size: 13px; color: var(--ink-3); }

/* input stage */
.input-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.ta { width: 100%; min-height: 420px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; background: #FBFBF9; padding: 16px 18px; font-size: 14px; line-height: 1.75; outline: none; transition: border-color .2s, box-shadow .2s; }
.ta:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
.ta-sm { min-height: 140px; }
.ta-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 10px; gap: 12px; flex-wrap: wrap; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--ink-3); }
.sel, .inp { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #FBFBF9; outline: none; width: 100%; }
.sel:focus, .inp:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.side-note { font-size: 13px; color: var(--ink-2); display: grid; gap: 10px; }
.side-note li { list-style: none; display: grid; grid-template-columns: 22px 1fr; }
.side-note li::before { content: '✓'; color: var(--good); font-weight: 700; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* explore */
.hero-res { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--night); color: #fff; border-color: var(--night); position: relative; overflow: hidden; }
.hero-res > * { position: relative; z-index: 1; }
.hero-res::after { content: ''; position: absolute; inset: auto -10% -60% 40%; height: 300px; background: radial-gradient(closest-side, rgba(91, 76, 255, .45), transparent); pointer-events: none; }
.hero-res .kicker { color: rgba(255, 255, 255, .45); }
.hero-res h2 { font-size: 28px; letter-spacing: -.03em; }
.hero-res p { color: rgba(255, 255, 255, .6); font-size: 14px; margin-top: 4px; }
.ring { position: relative; width: 104px; height: 104px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .rv { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.ring.sm { width: 64px; height: 64px; }
.ring.sm .rv { font-size: 19px; }
.role-list { display: grid; gap: 12px; margin-top: 16px; }
.role { display: grid; grid-template-columns: 34px 64px 1.1fr 1.3fr auto; gap: 20px; align-items: center; padding: 18px 22px; }
.role-chips { grid-column: 3 / -1; }
.role.top { box-shadow: var(--shadow), 0 0 0 2px var(--ink); }
.role-rank { font: 500 13px var(--mono); color: var(--ink-3); }
.role-name { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.role-en { font-size: 12px; color: var(--ink-3); }
.role .badge { margin-top: 6px; }
.dims { display: grid; gap: 6px; }
.dim { display: grid; grid-template-columns: 56px 1fr 26px; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-2); }
.dim b { font: 500 12px var(--mono); text-align: right; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.chip.ok { background: var(--good-soft); border-color: transparent; color: #08704E; }
.chip.miss { background: transparent; border-style: dashed; color: var(--ink-3); }
.chip.miss.w3 { border-color: var(--bad); color: var(--bad); }
.badge { display: inline-flex; align-self: flex-start; white-space: nowrap; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.badge.good { background: var(--good-soft); color: #08704E; }
.badge.ok { background: var(--accent-soft); color: var(--accent); }
.badge.warn { background: var(--warn-soft); color: #A15C04; }
.badge.bad { background: var(--bad-soft); color: var(--bad); }

/* gap */
.gap-top { display: grid; grid-template-columns: 340px 1fr; gap: 16px; }
.radar-card { display: flex; flex-direction: column; align-items: center; }
.radar { width: 100%; max-width: 300px; color: var(--ink); }
.radar text { font-size: 11px; fill: var(--ink-2); font-family: var(--sans); }
.radar .val { font: 600 11px var(--mono); fill: var(--ink); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; background: var(--accent); }
.legend i.prev { background: none; border-top: 2px dashed var(--ink-3); height: 0; }
.dim-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dc { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.dc-v { font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin: 6px 0 10px; }
.dc-t { font-size: 13px; font-weight: 600; }
.dc p { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.kw { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.kw h4 { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.prio { list-style: none; display: grid; }
.prio li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.prio li:first-child { border-top: 0; padding-top: 0; }
.prio b { font-size: 14.5px; display: block; }
.prio span { font-size: 13px; color: var(--ink-2); }
.tag { font: 600 11px var(--mono); padding: 3px 8px; border-radius: 6px; height: fit-content; text-align: center; }
.tag-p0 { background: var(--bad); color: #fff; }
.tag-p1 { background: var(--warn-soft); color: #A15C04; }
.tag-p2 { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }

/* rewrite */
.rw-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 16px; }
.rw-stats { display: flex; gap: 22px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.rw-stats b { color: var(--ink); font-size: 15px; margin-right: 4px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 36px; height: 21px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(15px); }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.rw { padding: 0; overflow: hidden; transition: box-shadow .2s, opacity .2s; }
.rw.off { opacity: .62; }
.rw-h { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.rw-h .src { font-size: 11.5px; color: var(--ink-3); }
.rw-h .actions { margin-left: auto; }
.rw-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; }
.rw-col { padding: 18px 20px; }
.rw-col + .rw-col { border-left: 1px solid var(--line); }
.rw-col h5 { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 10px; }
.rw-old { font-size: 14px; color: var(--ink-2); }
.rw-issues { list-style: none; display: grid; gap: 7px; font-size: 13px; }
.rw-issues li { display: grid; grid-template-columns: 14px 1fr; gap: 6px; color: var(--ink-2); }
.rw-issues li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); margin-top: 8px; }
.rw-new { width: 100%; min-height: 96px; resize: vertical; border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; background: var(--good-soft); font-size: 14px; line-height: 1.7; outline: none; }
.rw-new:focus { border-color: var(--good); background: #fff; }
.rw-preview { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.ph { background: var(--warn-soft); color: #A15C04; font-weight: 600; }
.star { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: #FBFBF9; }
.star div { padding: 12px 20px; font-size: 12.5px; color: var(--ink-2); }
.star div + div { border-left: 1px solid var(--line); }
.star b { font: 700 12px var(--mono); color: var(--accent); margin-right: 6px; }
.tip { padding: 10px 20px; font-size: 12.5px; color: var(--accent); background: var(--accent-soft); }
.check { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); }
.check.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn { height: 32px; padding: 0 12px; border-radius: 99px; font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }

/* reeval */
.re-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.cmp-score { display: flex; align-items: center; gap: 22px; }
.cmp-score .from { font-size: 40px; font-weight: 700; letter-spacing: -.04em; color: var(--ink-3); }
.cmp-score .to { font-size: 64px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.cmp-score .arrow { font-size: 24px; color: var(--ink-3); }
.delta { font: 600 13px var(--mono); padding: 4px 10px; border-radius: 99px; }
.delta.up { background: var(--good-soft); color: #08704E; }
.delta.down { background: var(--bad-soft); color: var(--bad); }
.delta.eq { background: var(--bg); color: var(--ink-3); }
.ddims { display: grid; gap: 14px; margin-top: 22px; }
.dd { display: grid; grid-template-columns: 70px 1fr 90px; gap: 12px; align-items: center; font-size: 13px; }
.dd-bars { position: relative; height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.dd-bars i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.dd-bars .p { background: var(--line-2); }
.dd-bars .c { background: var(--accent); mix-blend-mode: multiply; }
.dd-n { font: 500 12px var(--mono); text-align: right; }
.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 18px 1fr auto; gap: 14px; padding: 12px 0; position: relative; align-items: center; }
.timeline li::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li:first-child::before { top: 50%; }
.timeline li:last-child::before { bottom: 50%; }
.timeline .tdot { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); position: relative; z-index: 1; }
.timeline li.cur .tdot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline .tv { font-size: 14px; font-weight: 600; }
.timeline .tm { font-size: 12px; color: var(--ink-3); }
.timeline .ts { font: 600 18px var(--sans); letter-spacing: -.02em; }
.spark { width: 100%; height: 90px; display: block; margin: 6px 0 4px; }
.warn-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: #7A4603; font-size: 13px; margin-top: 12px; }

/* reports */
.reports { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; animation: rise .35s ease; }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.rep-grid .card + .card { margin-top: 0; }
.rep { cursor: pointer; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 14px; }
.rep:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15, 17, 21, .05), 0 18px 40px -18px rgba(15, 17, 21, .25); }
.rep-h { display: flex; justify-content: space-between; gap: 10px; }
.rep-h h3 { font-size: 18px; letter-spacing: -.02em; }
.rep-meta { font-size: 12px; color: var(--ink-3); }
.rep-score { display: flex; align-items: baseline; gap: 10px; font-size: 36px; font-weight: 700; letter-spacing: -.04em; }
.rep-score small { font-size: 15px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.rep-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 12px; }
.empty { text-align: center; padding: 70px 24px; }
.empty h3 { font-size: 20px; letter-spacing: -.02em; }
.empty p { color: var(--ink-2); margin: 8px 0 22px; }

/* loader + toast */
.loader { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(246, 246, 242, .72); backdrop-filter: blur(8px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.loader-card { width: min(420px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 30px 80px -30px rgba(15, 17, 21, .35); }
.loader-card h3 { font-size: 18px; letter-spacing: -.02em; margin: 16px 0 14px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#loaderSteps { list-style: none; display: grid; gap: 10px; font-size: 14px; }
#loaderSteps li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-3); transition: color .2s; }
#loaderSteps li::before { content: '○'; font-size: 13px; }
#loaderSteps li.on { color: var(--ink); font-weight: 600; }
#loaderSteps li.on::before { content: '●'; color: var(--accent); animation: pulse 1s infinite; }
#loaderSteps li.ok { color: var(--ink-2); }
#loaderSteps li.ok::before { content: '✓'; color: var(--good); font-weight: 700; }
@keyframes pulse { 50% { opacity: .3; } }
.loader-bar { height: 4px; border-radius: 99px; background: var(--bg); margin-top: 20px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .35s ease; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .role { grid-template-columns: 30px 56px 1fr auto; }
  .role .chips-col { grid-column: 3 / -1; grid-row: 2; }
  .role > .btn { grid-column: 4; grid-row: 1; }
  .role-chips { grid-column: 3 / -1; }
  .gap-top, .re-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .bento .b { grid-column: span 6 !important; }
  .b-radar, .b-diff { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .app-body { grid-template-columns: 1fr; padding-top: 16px; }
  .stepper { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .stepper-title, .stepper-foot { display: none; }
  .sp { grid-template-columns: 26px auto; flex: none; }
  .sp-s { display: none; }
  .input-grid { grid-template-columns: 1fr; }
  .rw-grid { grid-template-columns: 1fr; }
  .rw-col + .rw-col { border-left: 0; border-top: 1px solid var(--line); }
  .star { grid-template-columns: 1fr 1fr; }
  .star div:nth-child(3) { border-left: 0; }
  .star div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 116px; }
  .br-d { display: none; }
  .mock-main { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step-n { margin-bottom: 20px; }
  .sec { padding: 80px 0; }
  .strip-label { display: none; }
  .app-top { gap: 12px; padding: 0 16px; }
  .app-top .logo-ai, .mode { display: none; }
  .app-tabs a { padding: 7px 10px; }
  .app-body, .reports { padding-left: 16px; padding-right: 16px; }
  .stage-head h1 { font-size: 27px; }
  .card { padding: 18px; }
  .hero-res { grid-template-columns: auto 1fr; }
  .hero-res .actions { grid-column: 1 / -1; }
  .role { grid-template-columns: 56px 1fr; gap: 14px; }
  .role-rank { display: none; }
  .role .chips-col, .role > .btn, .role-chips { grid-column: 1 / -1; grid-row: auto; }
  .dim-cards, .kw { grid-template-columns: 1fr; }
  .dd { grid-template-columns: 60px 1fr 80px; }
  .foot-in .muted { margin-left: 0; }
  .rw-h { padding: 12px 16px; }
  .rw-h b { white-space: nowrap; }
  .rw-h .src { display: none; }
  .rw-h .actions { flex-wrap: nowrap; }
}

/* ---------- v2：账号 / 模式 / 证据 / 反馈 ---------- */
code { font: 12.5px var(--mono); background: rgba(127, 127, 127, .12); padding: 1px 6px; border-radius: 6px; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-login { color: rgba(255, 255, 255, .8); font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.nav-login:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.note { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line-2); font-size: 14px; color: var(--ink-2); margin-bottom: 16px; flex-wrap: wrap; }
.note-accent { background: var(--accent-soft); border: 1px solid rgba(91, 76, 255, .18); color: #3B2FC9; }
.note b { color: inherit; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.mode-card { text-align: left; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s, transform .15s; }
.mode-card:hover { transform: translateY(-1px); }
.mode-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.mc-t { font-size: 17px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.mode-card.on .mc-t::after { content: '✓'; font-size: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin-left: auto; }
.mc-d { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.ta-xs { min-height: 76px; }
.hint-c { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 10px; }

.eng { display: inline-flex; align-items: center; gap: 5px; font: 600 10.5px var(--sans); letter-spacing: .02em; text-transform: none; padding: 2px 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); vertical-align: 1px; margin-left: 6px; }
.eng.ai { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.eng.ai::before { content: '✦'; }

.sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.sig-grid .card + .card { margin-top: 0; }
.ticks { list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ticks li { display: grid; grid-template-columns: 18px 1fr; }
.ticks li::before { content: '✓'; color: var(--good); font-weight: 700; }
.ticks.miss li::before { content: '!'; color: var(--warn); }
.dir { display: grid; gap: 18px; }
.dir.top { box-shadow: var(--shadow), 0 0 0 2px var(--ink); }
.dir-h { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dir-h .btn { margin-left: auto; }
.dir-reason { font-size: 14.5px; color: var(--ink-2); }
.dir .kw { margin-top: 0; }
.growth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gw { background: #FBFBF9; padding: 16px; font-size: 13px; }
.gw-t { font: 600 11px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.gw b { font-size: 14px; display: block; margin-bottom: 6px; }
.gw ul { padding-left: 16px; color: var(--ink-2); display: grid; gap: 3px; }
.proj { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.proj b { color: var(--ink); margin-right: 6px; }

.hero-res .conf { white-space: nowrap; display: inline-block; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .5); margin-left: 8px; letter-spacing: 0; }
.hero-res { margin-bottom: 16px; }
.gap-even { grid-template-columns: 1fr 1fr; }
.dd-w { grid-template-columns: 110px 1fr 40px; }
.cov { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 14px; margin-bottom: 8px; }
.cov b { font-size: 28px; letter-spacing: -.03em; }
.fine { font-size: 12px; color: var(--ink-3); margin-top: 12px; display: block; }
.reqs { list-style: none; display: grid; }
.reqs li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.reqs li:first-child { border-top: 0; padding-top: 0; }
.reqs .badge { justify-content: center; }
.reqs b { font-size: 14px; font-weight: 600; }
.req-cat { font-size: 11.5px; color: var(--ink-3); margin-left: 8px; }
q { display: block; quotes: none; font-size: 12.5px; color: var(--ink-2); background: var(--bg); border-left: 3px solid var(--good); padding: 5px 10px; border-radius: 0 8px 8px 0; margin-top: 6px; }
q::before { content: '原文 · '; color: var(--ink-3); }
.h4 { font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 20px 0 8px; }
.evid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.evid li { display: grid; grid-template-columns: 130px 1fr; gap: 10px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--ink-3); }
.evid li.hit { color: var(--ink-2); }
.ev-k { font-weight: 600; color: var(--ink); }
.evid li:not(.hit) .ev-k { color: var(--ink-3); }
.ev-k i { font-style: normal; font-size: 10px; color: var(--bad); margin-left: 5px; font-weight: 600; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.three .card + .card { margin-top: 0; }
.issues { list-style: none; display: grid; }
.issues li { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.issues li:first-child { border-top: 0; padding-top: 0; }
.issues li.muted { display: block; }
.issues b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.issues span:not(.badge) { display: block; margin-top: 2px; }
.dim-tag { font-size: 11.5px !important; color: var(--accent) !important; margin-top: 4px !important; }
.rw-prob { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.rw-imp { font-size: 12.5px; color: var(--good); margin-top: 8px; }

/* feedback */
.fb { display: grid; gap: 14px; }
.fb h3 { font-size: 16px; }
.fb-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.fb-l { font-size: 13px; color: var(--ink-2); min-width: 96px; }
.fb .chips { flex: 1; }
.fb .chip { cursor: pointer; }
.fb-guest, .fb-done { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.fb-done { color: #08704E; }
.fb-detail { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: var(--bg); }
.stars { display: flex; gap: 2px; margin-right: auto; }
.stars button { font-size: 24px; line-height: 1; color: var(--line-2); transition: color .15s, transform .15s; }
.stars button:hover { transform: scale(1.12); }
.stars button.on { color: #F5B301; }
.stars.sm button { font-size: 18px; }
.link { font-size: 13px; color: var(--accent); font-weight: 600; }

/* reports */
.rep-stats { display: flex; gap: 26px; font-size: 13px; color: var(--ink-2); margin-bottom: 16px; }
.rep-stats b { font-size: 20px; color: var(--ink); margin-right: 4px; letter-spacing: -.02em; }
.rep .eng { margin-left: 0; height: fit-content; }
.empty-ic { font-size: 30px; margin-bottom: 8px; }

/* account */
.acct { position: relative; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #8B7CFF); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.menu { position: absolute; right: 0; top: 44px; width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(15, 17, 21, .35); padding: 6px; z-index: 50; display: grid; }
.menu-h { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.menu-h b { font-size: 14px; }
.menu-h span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.menu a, .menu button { text-align: left; font-size: 14px; padding: 9px 12px; border-radius: 9px; }
.menu a:hover, .menu button:hover { background: var(--bg); }

/* modal */
.modal { border: 0; padding: 0; background: transparent; margin: auto; max-width: calc(100vw - 32px); }
.modal::backdrop { background: rgba(10, 11, 15, .45); backdrop-filter: blur(6px); }
.modal[open] { animation: rise .25s ease; }
.modal-card { position: relative; width: 420px; max-width: 100%; background: var(--surface); border-radius: 22px; padding: 30px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); display: grid; gap: 14px; color: var(--ink); }
#profileDlg .modal-card { width: 520px; }
.modal-card h2 { font-size: 26px; letter-spacing: -.03em; margin-top: 6px; }
.modal-sub { font-size: 14px; color: var(--ink-2); margin-top: -8px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; color: var(--ink-3); }
.modal-x:hover { background: var(--bg); color: var(--ink); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; }
.seg button { height: 36px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.f { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-err { min-height: 18px; font-size: 13px; color: var(--bad); margin: -4px 0; }
.perks { list-style: none; display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; }
.perks li::before { content: '✓ '; color: var(--good); font-weight: 700; }

@media (max-width: 900px) {
  .modes, .three, .sig-grid, .gap-even, .growth { grid-template-columns: 1fr; }
  .evid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .app-right .btn-dark { display: none; }
  .evid li { grid-template-columns: 110px 1fr; }
  .reqs li { grid-template-columns: 1fr; gap: 6px; }
  .reqs .badge { justify-self: start; }
  .f-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 24px 20px; }
}

/* 上传 / 拖拽 */
.drop { position: relative; }
.drop-hint { position: absolute; inset: 0; display: none; place-items: center; border-radius: 12px; border: 2px dashed var(--accent); background: rgba(238, 236, 255, .92); color: var(--accent); font-weight: 700; font-size: 16px; pointer-events: none; }
.drop.over .drop-hint { display: grid; }

/* ================= 05 简历成稿 ================= */
.live { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding: 14px 20px; margin-bottom: 16px; }
.live-i { display: flex; align-items: baseline; gap: 8px; }
.live-i span { font-size: 12px; color: var(--ink-3); }
.live-i b { font-size: 22px; letter-spacing: -.03em; }
.live-i b small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.live-i.warn b { color: var(--warn); }
.live-i.ok b { color: var(--ink); }
.live-note { flex-basis: 100%; font-size: 11.5px; color: var(--ink-3); margin-top: -4px; }
.build { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.build-main { min-width: 0; background: #E9E8E2; border-radius: var(--radius); padding: 24px; }
.paper-wrap { position: relative; overflow: hidden; }
.paper-scale { width: 794px; transform-origin: top left; }
.build-side { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; padding: 16px; }
.build-side .card + .card { margin-top: 0; }
.seg4 { grid-template-columns: repeat(4, 1fr); position: sticky; top: -16px; z-index: 2; margin: -16px -16px 0; border-radius: 0; padding: 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.seg4 button { font-size: 12.5px; height: 32px; }
.seg4 button.on { background: var(--bg); box-shadow: none; }
.side-body { display: grid; gap: 12px; padding-top: 14px; }
.side-h { font-size: 12px; font-weight: 600; color: var(--ink-3); display: flex; justify-content: space-between; margin-top: 4px; }
.side-h span { color: var(--accent); }
.side-p { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.ok-t { color: #08704E; }
.warn-t { color: #A15C04; }
.sug, .probe { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; font-size: 13px; }
.probe.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sug-h { display: flex; justify-content: space-between; align-items: center; }
.sug-old { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(224, 69, 43, .5); font-size: 12.5px; }
.sug-src { font-size: 11.5px; color: var(--ink-3); }
.sug-new { background: var(--good-soft); border-radius: 8px; padding: 8px 10px; }
.sug .btn { justify-self: start; }
.focus-card { background: var(--accent-soft); border-radius: 12px; padding: 12px; display: grid; gap: 8px; font-size: 13px; }
.focus-card h4 { font-size: 11px; color: var(--accent); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.probe-mini { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); }
.probe-mini .badge { justify-self: start; }
.heat-score { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: linear-gradient(120deg, #FFF1E6, #FFF8E1); }
.heat-score b { font-size: 34px; letter-spacing: -.04em; color: #C2410C; }
.heat-score span { font-size: 13px; font-weight: 600; line-height: 1.4; }
.heat-score small { font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.heat-list { list-style: none; display: grid; gap: 6px; font-size: 13px; }
.heat-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.probe-sum { display: flex; gap: 6px; }
.probe-t { font-weight: 600; }
.probe-r { font-size: 12px; color: var(--ink-3); }
.probe ol { padding-left: 18px; display: grid; gap: 6px; }
.probe li b { display: block; font-weight: 600; font-size: 13px; }
.probe li span { font-size: 12px; color: var(--ink-3); }
.tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tpl { border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; gap: 3px; text-align: left; font-size: 12px; }
.tpl.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tpl small { font-size: 10.5px; color: var(--ink-3); line-height: 1.35; }
.tpl-th { display: grid; gap: 4px; height: 58px; padding: 7px; border-radius: 6px; background: #fff; border: 1px solid var(--line); margin-bottom: 4px; }
.tpl-th i { display: block; height: 4px; border-radius: 2px; background: #D9D8D0; }
.tpl-th i:first-child { width: 50%; height: 7px; background: #333; }
.tpl-th i:nth-child(2) { width: 34%; background: var(--ra); }
.th-modern { border-top: 4px solid var(--ra); }
.th-modern i:first-child { background: var(--ra); }
.th-minimal { justify-items: center; }
.th-minimal i:nth-child(2) { background: #bbb; }
.swatches { display: flex; gap: 10px; }
.sw { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.lock { border-radius: 12px; padding: 12px 14px; background: #FFF7ED; border: 1px solid #FED7AA; display: grid; gap: 6px; font-size: 12.5px; color: #7C2D12; }
.lock ul { list-style: none; display: grid; gap: 4px; }
.exp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }

/* ---------- A4 简历纸面 ---------- */
.r-page {
  --ra: #1F3A8A; --rt: #1A1D24; --rs: #5A6070;
  position: relative; width: 794px; min-height: 1123px; background: #fff; color: var(--rt);
  padding: var(--py, 44px) var(--px, 54px) calc(var(--py, 44px) - 4px); box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 16px 40px -18px rgba(0, 0, 0, .3);
  font-size: var(--fs, 13.4px); line-height: var(--lh, 1.62);
  font-family: -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Inter', sans-serif;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; text-align: left;
}
.r-head { margin-bottom: calc(var(--sg, 14px) * .9); }
.r-head h1 { font-size: calc(var(--fs, 13.4px) * 2.1); font-weight: 700; letter-spacing: .02em; line-height: 1.25; margin: 0; }
.r-tag { font-size: calc(var(--fs, 13.4px) * 1.04); color: var(--rs); margin-top: 3px; }
.r-contact { font-size: calc(var(--fs, 13.4px) * .93); color: var(--rs); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 0 8px; }
.r-sep { color: #B5B8C0; }
.r-sec { margin-top: var(--sg, 14px); }
.r-sec h2 { position: relative; font-size: calc(var(--fs, 13.4px) * 1.12); font-weight: 700; color: var(--ra); border-bottom: 1.5px solid var(--ra); padding-bottom: 3px; margin: 0 0 calc(var(--eg, 8px) * .9); letter-spacing: .04em; }
.r-ent { margin-bottom: var(--eg, 8px); }
.r-eh { position: relative; display: flex; align-items: baseline; gap: 12px; }
.r-et { flex: 1; }
.r-et b { font-weight: 700; }
.r-date { color: var(--rs); font-size: calc(var(--fs, 13.4px) * .93); white-space: nowrap; font-variant-numeric: tabular-nums; }
.r-page ul { margin: 3px 0 0; padding-left: 17px; list-style: disc; }
.r-b { position: relative; padding: 0; margin: 1px 0; }
.r-b::marker { color: var(--ra); }
.r-num { font-weight: 700; color: var(--rt); }
.r-page mark.ph { background: #FEF3C7; color: #92400E; border-radius: 3px; padding: 0 2px; font-weight: 600; }
/* 现代 */
.tpl-modern { border-top: 8px solid var(--ra); padding-top: calc(var(--py, 44px) - 4px); }
.tpl-modern .r-head h1 { color: var(--ra); font-size: calc(var(--fs, 13.4px) * 2.25); }
.tpl-modern .r-sec h2 { border-bottom: 0; padding: 0 0 0 12px; text-transform: uppercase; }
.tpl-modern .r-sec h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--ra); }
.tpl-modern .r-sec h2 { border-bottom: 1px solid #E5E7EB; padding-bottom: 5px; }
/* 极简 */
.tpl-minimal .r-head { text-align: center; }
.tpl-minimal .r-contact { justify-content: center; }
.tpl-minimal .r-head h1 { font-size: calc(var(--fs, 13.4px) * 1.95); letter-spacing: .12em; }
.tpl-minimal .r-sec h2 { color: var(--rt); font-size: var(--fs, 13.4px); letter-spacing: .3em; border-bottom: 1px solid #D1D5DB; }
.tpl-minimal .r-b::marker { color: #9CA3AF; }

/* 编辑态 */
.paper-scale [data-f] { outline: none; border-radius: 3px; transition: background .15s, box-shadow .15s; }
.paper-scale [data-f]:hover { box-shadow: 0 0 0 1px rgba(91, 76, 255, .35); }
.paper-scale [data-f]:focus { box-shadow: 0 0 0 2px var(--accent); background: rgba(91, 76, 255, .04); }
.paper-scale [data-f]:empty::before { content: attr(data-ph); color: #B5B8C0; }
.paper-scale .r-et, .paper-scale .r-bt, .paper-scale .r-tagt { display: inline-block; min-width: 40px; }
.paper-scale .r-bt { display: inline; }
.r-b.focus { background: rgba(91, 76, 255, .05); border-radius: 4px; }
.r-tools { position: absolute; right: -6px; top: 50%; transform: translate(100%, -50%); display: none; gap: 2px; z-index: 3; }
.r-tools button { height: 22px; min-width: 22px; padding: 0 6px; border-radius: 6px; background: var(--ink); color: #fff; font: 600 11px var(--sans); white-space: nowrap; }
.r-tools button:hover { background: var(--accent); }
.r-b:hover > .r-tools, .r-eh:hover > .r-tools, .r-sec h2:hover > .r-tools { display: flex; }
.r-b > .r-tools, .r-eh > .r-tools, .r-sec h2 > .r-tools { right: -4px; transform: translateY(-50%); padding: 3px; border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.r-addsec { margin-top: 16px; width: 100%; height: 34px; border: 1.5px dashed #D1D5DB; border-radius: 8px; color: #9CA3AF; font-size: 13px; }
.r-addsec:hover { border-color: var(--accent); color: var(--accent); }
.r-break { position: absolute; left: 0; right: 0; border-top: 2px dashed #F59E0B; font: 600 11px var(--sans); color: #B45309; text-align: right; padding-right: 8px; pointer-events: none; }
.r-dot { position: absolute; left: -30px; top: .62em; width: 8px; height: 8px; border-radius: 50%; }
.lv-ok { background: #10B981; } .lv-mid { background: #F59E0B; } .lv-bad { background: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
/* HR 视线热力 */
.r-page.heat [data-f] { background-image: linear-gradient(90deg, rgba(255, 72, 0, calc(var(--h, 0) * .5)) 0%, rgba(255, 170, 0, calc(var(--h, 0) * .28)) 55%, rgba(255, 170, 0, 0) 100%); }
.r-page.heat::after { content: 'HR 6 秒视线热力 · 颜色越深越先被看到'; position: absolute; top: 10px; right: 14px; font: 600 10.5px var(--sans); color: #C2410C; background: #FFF7ED; border: 1px solid #FED7AA; padding: 2px 8px; border-radius: 99px; }

/* 打印成 PDF：只输出简历 */
#printRoot { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body.print-resume { background: #fff !important; }
  body.print-resume > *:not(#printRoot) { display: none !important; }
  body.print-resume #printRoot { display: block; }
  #printRoot .r-page { box-shadow: none; margin: 0; min-height: 0; }
  #printRoot .r-sec h2, #printRoot .r-eh { break-after: avoid; page-break-after: avoid; }
  #printRoot .r-ent, #printRoot .r-b, #printRoot .r-head { break-inside: avoid; page-break-inside: avoid; }
}

@media (max-width: 1180px) {
  .build { grid-template-columns: 1fr; }
  .build-side { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .build-main { padding: 10px; }
  .r-tools { display: none !important; }
}

/* 一键优化 / 一页版 */
.paper-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.paper-tools .btn { box-shadow: var(--shadow); }
.btn-magic { background: linear-gradient(120deg, #5B4CFF, #8B5CF6 55%, #EC4899); color: #fff; box-shadow: 0 10px 26px -12px rgba(124, 58, 237, .8) !important; }
.btn-magic:hover { filter: brightness(1.06); }
.fit-tag { margin-left: auto; font-size: 12px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 5px 10px; border-radius: 99px; }
.fit-tag.ok { color: #08704E; border-color: #A7E3C9; background: var(--good-soft); }
.fit-tag.warn { color: #A15C04; border-color: #F6D59A; background: var(--warn-soft); }
.opt-card { background: var(--surface); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 8px; }
.opt-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.opt-h b { font-size: 14.5px; }
.opt-h .actions { margin-left: auto; }
.opt-steps { list-style: none; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.opt-steps li { display: grid; grid-template-columns: 18px 1fr; }
.opt-steps li::before { content: '✓'; color: var(--good); font-weight: 700; }
.opt-steps li.warn::before { content: '!'; color: var(--warn); }
.opt-detail { font-size: 12.5px; color: var(--ink-2); display: grid; gap: 6px; border-top: 1px dashed var(--line); padding-top: 8px; }
.opt-detail p { display: grid; gap: 2px; }
.opt-detail s { color: var(--ink-3); }

.seg3 { grid-template-columns: repeat(3, 1fr); }

/* ================= 中文排版与视觉打磨 ================= */
/* 中文不用西文斜体衬线：改为主题色 + 柔和下划高亮 */
em, .hero-title em, .sec-head h2 em, .cta-in h2 em, .stage-head h1 em {
  font-family: inherit; font-style: normal; font-weight: inherit; font-size: 1em; letter-spacing: inherit;
  color: var(--accent); background: linear-gradient(transparent 64%, rgba(91, 76, 255, .16) 0); padding: 0 .04em; border-radius: 2px;
}
.hero-title em, .cta-in h2 em { color: var(--lime); background: linear-gradient(transparent 68%, rgba(200, 255, 77, .2) 0); }
.hero-title { font-size: clamp(38px, 6vw, 74px); line-height: 1.16; letter-spacing: -.01em; font-weight: 800; max-width: 900px; }
.hero-sub { font-size: 17.5px; }
.sec-head h2, .cta-in h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.22; letter-spacing: -.01em; font-weight: 800; }
.stage-head h1 { letter-spacing: -.01em; font-weight: 800; }
.eyebrow, .kicker {
  font-family: var(--sans); text-transform: none; letter-spacing: .06em; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow { font-size: 13.5px; }
.eyebrow::before, .kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.kicker { font-size: 12.5px; color: var(--ink-3); }
.hero-res .kicker { color: rgba(255, 255, 255, .5); }
.stepper-title { font-family: var(--sans); letter-spacing: .08em; font-weight: 600; text-transform: none; }
.strip-roles { font-size: 15px; letter-spacing: .02em; }
.mock-url { font-family: var(--sans); }
.b-private .big-num { font-family: var(--sans); font-style: normal; font-weight: 800; font-size: 46px; }
.step { min-height: 260px; padding: 26px 22px 22px; }
.step-n { margin-bottom: 40px; }

/* 落地页新卡片 */
.heat-mini { margin-top: 18px; display: grid; gap: 9px; padding: 16px; border-radius: 12px; background: #FBFAF7; border: 1px solid var(--line); }
.heat-mini i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, rgba(255, 72, 0, calc(var(--h) * .85)), rgba(255, 170, 0, calc(var(--h) * .4)) 70%, rgba(220, 220, 214, .9)); }
.probe-demo { display: flex; gap: 6px; margin-bottom: 18px; }
.probe-demo .badge { font-size: 13px; padding: 4px 12px; }

/* 确认弹窗 */
.ask-card { width: 440px; text-align: center; justify-items: center; }
.ask-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--accent-soft); }
.ask-card .modal-sub { margin-top: -4px; line-height: 1.75; }
.ask-btns { display: grid; gap: 8px; width: 100%; margin-top: 6px; }
.ask-cancel { color: var(--ink-3); padding: 6px; }

/* 交互细节 */
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn, .check, .chip, .mode-card, .tpl, .sw { transition: transform .15s, background .2s, box-shadow .2s, border-color .2s, color .2s; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card { transition: box-shadow .25s, transform .25s; }
.step:hover h3 { color: var(--accent); }
.mode-card:hover { box-shadow: 0 2px 4px rgba(15, 17, 21, .04), 0 14px 32px -16px rgba(15, 17, 21, .25); }
.toast { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); border-radius: 14px; padding: 12px 20px; }
.loader-card h3 { font-weight: 700; }
::selection { background: rgba(91, 76, 255, .18); }

@media (max-width: 1080px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } .hero-title { font-size: 36px; } }

.privacy { font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }
