/* =========================================================================
 * style.css — ATS Score
 * 浅色为默认主题，跟随系统自动切换深色；所有颜色走变量。
 * ========================================================================= */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-2: #d1d5db;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: #eff4ff;
  --ok: #15803d;
  --ok-soft: #eaf7ee;
  --warn: #b45309;
  --warn-soft: #fdf5e6;
  --bad: #b91c1c;
  --bad-soft: #fdecec;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 60px -24px rgba(16, 24, 40, .28);
  --radius: 14px;
  --radius-sm: 9px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface-2: #1c232c;
    --text: #e6edf3;
    --text-2: #c8d1db;
    --muted: #9aa4b2;
    --border: #262d36;
    --border-2: #333c47;
    --accent: #4d8dff;
    --accent-2: #78a9ff;
    --accent-soft: #16233a;
    --ok: #4ade80;
    --ok-soft: #12281a;
    --warn: #fbbf24;
    --warn-soft: #2a2110;
    --bad: #f87171;
    --bad-soft: #2b1416;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 10px; }
ul { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
strong { font-weight: 650; }
em { font-style: normal; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.view { padding: 34px 0 60px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------- 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), #7c3aed); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .02em;
}
.brand-text { font-weight: 700; font-size: 15px; }
.brand-text em { color: var(--accent); font-weight: 700; font-size: 12px; margin-left: 3px; }
.topnav { display: flex; align-items: center; gap: 10px; }

.pill {
  font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-2);
  color: var(--muted); white-space: nowrap;
}
.pill-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); font-weight: 600; }

/* ------------------------------------------------------------- 按钮 */
.btn {
  appearance: none; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: .16s ease; white-space: nowrap;
  background: var(--surface-2); color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-outline { background: transparent; border-color: var(--border-2); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 13px 24px; font-size: 15.5px; border-radius: 11px; }
.btn-block { width: 100%; }
.link {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}

/* ------------------------------------------------------------- 落地页 */
.hero { padding: 44px 0 10px; max-width: 900px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 16px; }
.hl { color: var(--accent); }
.lede { font-size: 17.5px; color: var(--text-2); max-width: 640px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--muted); }
.trust li { position: relative; padding-left: 18px; }
.trust li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); opacity: .85;
}

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-facts { margin: 40px 0 30px; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.fact-n { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.fact-n span { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.fact-t { font-size: 13.5px; font-weight: 650; margin-top: 6px; }
.fact-d { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.myth {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--warn);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
}
.myth-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--warn);
  background: var(--warn-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 10px;
}
.myth h3 { font-size: 17px; margin-bottom: 8px; }
.myth p { font-size: 13.8px; color: var(--text-2); }

/* ------------------------------------------------------------- 扫描页 */
.step-title { font-size: 22px; margin-bottom: 18px; }
.dropzone {
  border: 1.6px dashed var(--border-2); border-radius: var(--radius); background: var(--surface);
  padding: 34px 22px; text-align: center; transition: .18s ease; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dz-icon { color: var(--accent); margin-bottom: 10px; }
.dz-main { font-size: 15.5px; font-weight: 600; }
.dz-sub { font-size: 12.8px; color: var(--muted); margin-top: 6px; }

.or { text-align: center; margin: 18px 0; position: relative; }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); }
.or span { position: relative; background: var(--bg); padding: 0 12px; font-size: 12px; color: var(--muted); }

textarea {
  width: 100%; font: 13px/1.6 var(--mono); color: var(--text); background: var(--surface);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 12px 14px;
  resize: vertical; outline: none;
}
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.mini-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.jd-block { margin-top: 26px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.jd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.jd-head h3 { font-size: 15px; }
.badge-opt { font-size: 12px; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.hint { font-size: 12.4px; color: var(--muted); }

.scan-status { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; color: var(--text-2); }
.spinner {
  width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--border-2);
  border-top-color: var(--accent); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------- 上传/解析等待动画（进度卡片） */
.scan-progress {
  display: flex; align-items: flex-start; gap: 18px;
  margin-top: 22px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  animation: sp-in .26s ease-out both;
}
@keyframes sp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sp-ring { position: relative; flex: none; width: 48px; height: 48px; }
.sp-ring svg { display: block; transform: rotate(-90deg); }
.sp-track { fill: none; stroke: var(--border-2); stroke-width: 4; }
/* 周长 2πr，r=20 → 125.66 */
.sp-arc {
  fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 125.66; stroke-dashoffset: 125.66;
  transition: stroke-dashoffset .25s linear;
}
.sp-pct {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 600 11px/1 var(--mono); color: var(--text-2);
}
.sp-main { flex: 1; min-width: 0; }
.sp-title { font-size: 14.5px; font-weight: 600; margin-bottom: 9px; }
.sp-bar { height: 4px; background: var(--border); border-radius: 999px; overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .25s ease-out; }
.sp-steps { list-style: none; margin: 13px 0 0; padding: 0; display: grid; gap: 7px; }
.sp-steps li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.sp-steps li .tick {
  width: 15px; height: 15px; flex: none; border-radius: 50%;
  border: 1.6px solid var(--border-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; line-height: 1;
}
.sp-steps li.on { color: var(--text); font-weight: 600; }
.sp-steps li.on .tick { border-color: var(--accent); border-top-color: transparent; animation: spin .7s linear infinite; }
.sp-steps li.done { color: var(--text-2); }
.sp-steps li.done .tick { border-color: var(--ok); background: var(--ok); color: var(--bg); animation: none; }
/* 出错时把步骤条染红，用户一眼知道停在哪一步 */
.scan-progress.sp-fail { border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); }
.scan-progress.sp-fail .sp-title { color: var(--bad); }
.scan-progress.sp-fail .sp-arc { stroke: var(--bad); }
.sp-note { margin-top: 12px; font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .scan-progress { animation: none; }
  .sp-arc, .sp-bar i { transition: none; }
  .sp-steps li.on .tick { animation: none; border-top-color: var(--accent); }
}

.alert { border-radius: var(--radius-sm); padding: 13px 15px; font-size: 13.3px; margin-top: 14px; line-height: 1.55; }
.alert-err { background: var(--bad-soft); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 25%, transparent); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }

/* ------------------------------------------------------------- 结果页 */
.result-top { display: grid; grid-template-columns: 210px 1fr; gap: 30px; align-items: center; margin: 10px 0 28px; }
.gauge-wrap { position: relative; width: 210px; height: 210px; }
.gauge { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 13; stroke-linecap: round; }
.gauge-bg { stroke: var(--surface-2); }
.gauge-fg { stroke: var(--accent); stroke-dasharray: 540.35; stroke-dashoffset: 540.35; transition: stroke-dashoffset .9s cubic-bezier(.22,1,.36,1), stroke .3s; }
.gauge-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-num { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.gauge-max { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.score-level { display: inline-block; font-size: 15px; font-weight: 700; padding: 5px 13px; border-radius: 999px; margin-bottom: 10px; }
.lv-excellent { background: var(--ok-soft); color: var(--ok); }
.lv-good { background: var(--accent-soft); color: var(--accent); }
.lv-fair { background: var(--warn-soft); color: var(--warn); }
.lv-poor { background: var(--bad-soft); color: var(--bad); }
.score-verdict { font-size: 15.5px; color: var(--text-2); margin-bottom: 14px; }
.meta-list { display: flex; flex-wrap: wrap; gap: 7px 16px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.meta-list li { position: relative; padding-left: 13px; }
.meta-list li::before { content: "·"; position: absolute; left: 3px; }
.result-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.card-free { border-left: 3px solid var(--accent); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { font-size: 17.5px; }
.tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag-free { background: var(--accent-soft); color: var(--accent); }
.tag-paid { background: var(--ok-soft); color: var(--ok); }

.issues { display: grid; gap: 12px; }
.issue {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--surface-2);
}
.issue-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.issue-name { font-size: 14.5px; font-weight: 650; }
.issue-lost { font-size: 12px; font-weight: 700; color: var(--bad); background: var(--bad-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.issue-ev { font-size: 13.2px; color: var(--text-2); margin-bottom: 8px; }
.issue-fix { font-size: 13.2px; color: var(--text-2); background: var(--surface); border-left: 2px solid var(--accent); padding: 9px 12px; border-radius: 0 7px 7px 0; }

/* 付费墙 */
.paywall {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; margin: 22px 0 18px;
  box-shadow: var(--shadow-lg);
}
.pw-head { max-width: 720px; margin-bottom: 20px; }
.pw-head h2 { font-size: 20px; margin-bottom: 8px; }
.pw-head p { font-size: 13.6px; color: var(--text-2); }
.pw-matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: stretch; }
.pw-col {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; display: flex; flex-direction: column; gap: 8px; position: relative;
}
.pw-hot { border-color: var(--accent); border-width: 2px; box-shadow: 0 12px 30px -18px var(--accent); }
.pw-flag {
  position: absolute; top: -11px; left: 16px; font-size: 11px; font-weight: 700; color: #fff;
  background: var(--accent); padding: 3px 9px; border-radius: 999px;
}
.pw-name { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pw-price { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.pw-once { font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.pw-list { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); margin: 6px 0 10px; flex: 1; }
.pw-list li { position: relative; padding-left: 17px; }
.pw-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; font-size: 12px; }
.pw-cur { font-size: 12.5px; color: var(--muted); text-align: center; padding: 9px 0; }
.pw-foot {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px;
  font-size: 12.4px; color: var(--muted);
}

/* 首发期限时优惠提示条 —— 只加文案，不改价格逻辑。
   想真的做折扣，改 assets/app.js 里 CONFIG.pricing 的值即可。 */
.pw-promo {
  margin: 0 0 14px; padding: 11px 14px; text-align: center;
  background: var(--warn-soft); color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: var(--radius-sm); font-size: 13.4px;
}

/* 语言切换按钮：固定宽度，避免中英文来回切时导航栏抖动 */
.lang-btn { min-width: 62px; text-align: center; }

/* 完整报告 */
.cat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cat-chip {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-2);
  color: var(--text-2); background: var(--surface-2); cursor: default;
}
.cat-chip b { color: var(--text); }
.cat-block { margin-bottom: 22px; }
.cat-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.cat-block-head h3 { font-size: 15.5px; }
.cat-block-head span { font-size: 13px; font-weight: 700; }
.cat-desc { font-size: 12.6px; color: var(--muted); margin-bottom: 12px; }

.rule { border-top: 1px solid var(--border); padding: 13px 0; }
.rule:first-of-type { border-top: 0; }
.rule-top { display: flex; align-items: flex-start; gap: 10px; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; }
.st-pass { background: var(--ok); }
.st-warn { background: var(--warn); }
.st-fail { background: var(--bad); }
.st-skipped { background: var(--border-2); }
.rule-name { font-size: 14px; font-weight: 600; flex: 1; }
.rule-pts { font-size: 12.4px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.rule-ev { font-size: 13px; color: var(--text-2); margin: 6px 0 0 18px; }
.rule-fix {
  font-size: 13px; color: var(--text-2); margin: 8px 0 0 18px; padding: 9px 12px;
  background: var(--accent-soft); border-radius: 7px;
}
.rule-bar { height: 3px; border-radius: 2px; background: var(--surface-2); margin: 8px 0 0 18px; overflow: hidden; }
.rule-bar i { display: block; height: 100%; border-radius: 2px; }

/* 关键词缺口 */
.gap-group { margin-bottom: 16px; }
.gap-group h4 { font-size: 13.5px; margin-bottom: 8px; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 12.6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--text-2); }
.chip-hit { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.chip-miss { background: var(--bad-soft); border-color: transparent; color: var(--bad); font-weight: 600; }
.chip-soft { background: var(--surface-2); }

/* 改写 */
.rw-actions { display: grid; gap: 10px; margin-bottom: 20px; }
.rw-action { display: flex; gap: 12px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); }
.rw-action-n {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px;
}
.rw-action-t { font-size: 14px; font-weight: 650; }
.rw-action-d { font-size: 12.8px; color: var(--text-2); margin-top: 3px; }
.rw-action-i { font-size: 12.2px; color: var(--muted); margin-top: 3px; }

.rw-entry { margin-bottom: 20px; }
.rw-entry-head { font-size: 14px; font-weight: 650; padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.rw-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; }
.rw-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.rw-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.rw-tag.t-verb { background: var(--accent-soft); color: var(--accent); }
.rw-tag.t-num { background: var(--warn-soft); color: var(--warn); }
.rw-tag.t-kw { background: var(--ok-soft); color: var(--ok); }
.rw-tag.t-del { background: var(--bad-soft); color: var(--bad); }
.rw-before { font-size: 13.2px; color: var(--muted); text-decoration: line-through; margin-bottom: 6px; }
.rw-after { font-size: 13.8px; color: var(--text); font-weight: 500; }
.rw-notes { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--border); display: grid; gap: 5px; }
.rw-note { font-size: 12.6px; color: var(--text-2); padding-left: 16px; position: relative; }
.rw-note::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

.rw-skills { display: grid; gap: 8px; }
.rw-skill-row { font-size: 13.2px; }
.rw-skill-row b { display: inline-block; min-width: 158px; color: var(--text-2); }
.rw-removed { color: var(--bad); text-decoration: line-through; font-size: 13px; }

.export-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }

/* ------------------------------------------------------------- 页脚 */
.footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 30px; padding: 30px 0 22px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.footer-grid strong { font-size: 13.5px; display: block; margin-bottom: 5px; }
.footer-grid p { font-size: 12.6px; color: var(--muted); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12.4px; color: var(--muted);
}

/* ------------------------------------------------------------- 弹窗 */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(10, 14, 22, .55); backdrop-filter: blur(3px); }
.modal-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  width: 100%; max-width: 540px; max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg);
}
.modal-sm { max-width: 460px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.modal-head h3 { font-size: 16.5px; }
.modal-x { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.modal-body { padding: 0 20px 6px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; }

.field { display: block; margin-bottom: 13px; }
.field span { display: block; font-size: 12.6px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.field input {
  width: 100%; font: 13.2px var(--mono); color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 9px 12px; outline: none;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.2px; color: var(--text-2); margin-bottom: 14px; }
.check input { margin-top: 3px; }

.pay-line { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 12px; font-size: 15px; }
.pay-line strong { font-size: 22px; font-weight: 800; }

.funnel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.funnel-label { flex: none; width: 176px; font-size: 13px; color: var(--text-2); }
.funnel-bar { flex: 1; height: 22px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.funnel-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #7c3aed); }
.funnel-n { flex: none; width: 132px; text-align: right; font-size: 12.6px; font-family: var(--mono); color: var(--muted); }

/* ------------------------------------------------------------- 响应式 */
@media (max-width: 900px) {
  .hero h1 { font-size: 34px; }
  .grid3 { grid-template-columns: 1fr; }
  .pw-matrix { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 28px; }
  .lede { font-size: 16px; }
  .result-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .meta-list, .result-actions { justify-content: center; }
  .pw-matrix { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .rule-ev, .rule-fix, .rule-bar { margin-left: 0; }
  .rw-skill-row b { min-width: 0; display: block; }
  .funnel-label { width: 110px; font-size: 12px; }
  .funnel-n { width: 100px; font-size: 11.4px; }
}
