/* ==========================================================================
   ProductLens — 设计系统
   Light-first：纸感底色 + 靛蓝强调色，数字用等宽体做"仪表盘"语感
   ========================================================================== */

:root {
  --ink: #0b1220;
  --ink-2: #1c2637;
  --muted: #5b6675;
  --faint: #8892a3;
  --line: #e3e7ef;
  --line-soft: #eef1f6;
  --bg: #f6f7fb;
  --bg-2: #eef1f8;
  --surface: #ffffff;
  --brand: #3d3dd1;
  --brand-2: #5b5bf0;
  --brand-soft: #ececff;
  --brand-line: #d5d5fb;
  --teal: #0f8f83;
  --teal-soft: #e6f6f4;
  --green: #2f9163;
  --green-soft: #e8f6ee;
  --amber: #c47f18;
  --amber-soft: #fdf3e0;
  --coral: #cf4b32;
  --coral-soft: #fdeeea;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px -16px rgba(11, 18, 32, 0.18);
  --shadow-lg: 0 2px 4px rgba(11, 18, 32, 0.04), 0 24px 60px -28px rgba(11, 18, 32, 0.28);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Inter, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand-soft); color: var(--brand); }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

/* ------------------------------------------------------------------ 导航 */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -0.02em; font-size: 17px; white-space: nowrap; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: linear-gradient(140deg, var(--brand) 0%, #7a5cf0 100%);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 2px solid #fff; border-right-color: transparent; border-bottom-color: transparent;
  transform: rotate(45deg);
}
.nav-links { display: flex; gap: 2px; margin-left: 6px; }
.nav-links a { padding: 7px 11px; border-radius: 9px; font-size: 14px; color: var(--muted); transition: 0.15s; }
.nav-links a:hover { background: #fff; color: var(--ink); }
.nav-links a.active { color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.quota-pill {
  font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap; font-family: var(--mono);
}
.quota-pill b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ 按钮 */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 11px; padding: 11px 18px;
  font-size: 14.5px; font-weight: 550; cursor: pointer; transition: 0.16s ease;
  white-space: nowrap; background: var(--surface); color: var(--ink);
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 8px 20px -10px rgba(61, 61, 209, 0.7);
}
.btn-primary:hover { background: #3333c2; transform: translateY(-1px); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #c9d0dd; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 15.5px; border-radius: 13px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------------ 排版 */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--brand); display: inline-block; }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; line-height: 1.18; font-weight: 640; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 19px; letter-spacing: -0.015em; }
p { margin: 0 0 14px; color: var(--muted); }
p.lead { font-size: 18px; line-height: 1.72; color: var(--ink-2); }
strong { color: var(--ink); font-weight: 620; }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.section { padding: 76px 0; }
.section + .section { padding-top: 0; }
.sec-head { max-width: 700px; margin-bottom: 32px; }
.sec-head.center { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------ 卡片 */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------------ 首屏 */

.hero { position: relative; overflow: hidden; padding: 60px 0 46px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; pointer-events: none;
  background:
    radial-gradient(600px 320px at 18% 12%, rgba(91, 91, 240, 0.13), transparent 70%),
    radial-gradient(520px 300px at 82% 4%, rgba(15, 143, 131, 0.1), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand) 10%, #7a5cf0 60%, var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17.5px; max-width: 520px; }

/* 首屏三个可验证数字：让用户先信数字，再信结论 */
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 0; padding: 0; list-style: none; }
.hero-proof li { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted); }
.hero-proof b { font-family: var(--mono); font-size: 19px; font-weight: 680; color: var(--ink); letter-spacing: -0.02em; }
.hero-proof span { line-height: 1.4; }

/* ------------------------------------------------------------------ X vs Y 对比页 */

.vs-head {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center;
  background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.vs-side { text-align: center; }
.vs-name { font-size: 19px; font-weight: 680; letter-spacing: -0.01em; }
.vs-sub { margin-top: 2px; }
.vs-total { font-size: 40px; font-weight: 680; letter-spacing: -0.05em; margin: 6px 0 8px; }
.vs-vs { font-family: var(--mono); font-size: 13px; color: var(--faint); }

.vs-dim {
  display: grid; grid-template-columns: 168px 1fr 1fr; gap: 14px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
}
.vs-dim:last-child { border-bottom: 0; }
.vs-dim-name { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.vs-dim-name span { display: block; font-size: 11.5px; font-weight: 400; color: var(--faint); }
.vs-bar { position: relative; height: 24px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.vs-bar i { display: block; height: 100%; background: var(--line); }
.vs-bar b {
  position: absolute; right: 8px; top: 0; line-height: 24px; font-family: var(--mono);
  font-size: 12px; color: var(--muted); font-weight: 600;
}
.vs-bar.lead i { background: linear-gradient(90deg, var(--brand), rgba(61, 61, 209, 0.45)); }
.vs-bar.lead b { color: #fff; }

.vs-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 10px; }
.vs-link {
  display: flex; flex-direction: column; gap: 3px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.vs-link:hover { border-color: var(--brand-line); transform: translateY(-1px); }
.vs-link b { font-size: 13.5px; }
.vs-related { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-related a {
  font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2);
}
.vs-related a:hover { border-color: var(--brand-line); color: var(--brand); }

@media (max-width: 720px) {
  .vs-head { grid-template-columns: 1fr; }
  .vs-vs { display: none; }
  .vs-dim { grid-template-columns: 1fr; gap: 6px; }
  .vs-dim-name { padding-bottom: 2px; }
}

/* ------------------------------------------------------------------ 账号 / 报告保存 */

.acct-bar { background: var(--bg-2); border-style: dashed; }
.report-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.saved-row {
  display: flex; gap: 8px; align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.saved-row:last-of-type { border-bottom: 0; }
.code-reveal { max-width: 560px; }
.code-display {
  font-size: 30px; font-weight: 680; letter-spacing: 0.08em; text-align: center;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 16px 12px;
  font-variant-numeric: tabular-nums; user-select: all;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.tag {
  font-size: 12.5px; color: var(--muted); background: #fff; border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px;
}

.analyze-box { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow-lg); }
.analyze-row { display: flex; gap: 8px; }
.analyze-input {
  flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 14px;
  font-size: 15px; font-family: var(--sans); color: var(--ink); background: transparent;
}
.analyze-input::placeholder { color: var(--faint); }
.analyze-foot {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px 3px;
  border-top: 1px dashed var(--line-soft); margin-top: 4px;
  font-size: 12.5px; color: var(--faint); flex-wrap: wrap;
}
.analyze-foot a { color: var(--brand); }
.analyze-foot .dot { color: var(--line); }

.preview-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 20px;
}
.preview-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.preview-favicon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none;
}
.preview-title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.preview-sub { font-size: 11.5px; color: var(--faint); font-family: var(--mono); }
.preview-score { margin-left: auto; font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -0.04em; }
.preview-score span { font-size: 12px; color: var(--faint); margin-left: 3px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand); white-space: nowrap;
}
.badge.good { background: var(--green-soft); color: var(--green); }
.badge.warn { background: var(--amber-soft); color: var(--amber); }
.badge.bad { background: var(--coral-soft); color: var(--coral); }
.badge.gray { background: var(--bg-2); color: var(--muted); }

.bar-row { display: grid; grid-template-columns: 96px 1fr 32px; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 12.5px; }
.bar-label { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #7a5cf0); }
.bar-fill.good { background: linear-gradient(90deg, var(--green), #4fb383); }
.bar-fill.warn { background: linear-gradient(90deg, var(--amber), #e0a95a); }
.bar-fill.bad { background: linear-gradient(90deg, var(--coral), #e2795f); }
.bar-num { font-family: var(--mono); text-align: right; font-size: 12px; color: var(--ink-2); }

/* ------------------------------------------------------------------ 通用块 */

.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden;
}
.stat { padding: 20px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -0.04em; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.feature-card { padding: 24px; }
.feature-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-family: var(--mono); font-size: 14px; font-weight: 700;
  margin-bottom: 14px;
}
.feature-card h3 { margin-bottom: 7px; }
.feature-card p { margin: 0; font-size: 14px; }

.dim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dim-cell { background: #fff; padding: 18px 20px; display: flex; gap: 13px; align-items: flex-start; }
.dim-weight { font-family: var(--mono); font-size: 12px; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 2px 6px; flex: none; margin-top: 2px; }
.dim-cell h4 { font-size: 14.5px; margin-bottom: 3px; letter-spacing: -0.01em; }
.dim-cell p { margin: 0; font-size: 12.8px; line-height: 1.55; }

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { padding: 26px; position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand-line); box-shadow: 0 0 0 1px var(--brand-line), var(--shadow-lg); }
.plan-tag {
  position: absolute; top: -11px; left: 24px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  background: var(--brand); color: #fff; padding: 3px 9px; border-radius: 999px;
}
.plan-name { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin: 10px 0 4px; }
.plan-price b { font-family: var(--mono); font-size: 38px; font-weight: 600; letter-spacing: -0.05em; }
.plan-price span { font-size: 13px; color: var(--faint); }
.plan-desc { font-size: 13px; color: var(--muted); min-height: 40px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; }
.plan li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 9px; line-height: 1.5; }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 700; flex: none; }
.plan li.off { color: var(--faint); }
.plan li.off::before { content: "–"; color: var(--line); }
.plan li.todo { color: var(--muted); }
.plan li.todo::before { content: "◷"; color: var(--faint); font-weight: 600; }
.plan .btn { width: 100%; margin-top: auto; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 600; background: #fbfcfe; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { font-family: var(--mono); text-align: right; }
table.data tbody tr:hover { background: #fafbff; }

.footer { border-top: 1px solid var(--line); padding: 44px 0 36px; margin-top: 40px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin: 0 0 12px; font-weight: 600; }
.footer a { display: block; font-size: 13.5px; color: var(--muted); padding: 3px 0; }
.footer a:hover { color: var(--brand); }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--faint); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ 工作台 */

.workbench { padding: 30px 0 72px; }
.input-panel { padding: 18px; }
.mode-switch { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 10px; width: fit-content; margin-bottom: 14px; }
.mode-switch button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
.mode-switch button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); font-weight: 550; }

.result-wrap { margin-top: 24px; }
.report-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ring { position: relative; width: 104px; height: 104px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-score { font-family: var(--mono); font-size: 31px; font-weight: 600; line-height: 1; letter-spacing: -0.05em; }
.ring-grade { font-size: 11px; color: var(--faint); margin-top: 3px; }

.kv-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.kv { font-size: 12px; color: var(--faint); }
.kv b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; margin-top: 1px; }

.verdict {
  border-left: 3px solid var(--brand);
  background: linear-gradient(90deg, var(--brand-soft), rgba(236, 236, 255, 0.3));
  padding: 13px 18px; border-radius: 0 12px 12px 0; font-size: 14px; color: var(--ink-2);
}

.radar-box { display: grid; grid-template-columns: 290px 1fr; gap: 26px; align-items: center; }
.radar-svg { width: 100%; height: auto; overflow: visible; }

.dim-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.dim-card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.dim-card-head h4 { font-size: 15px; }
.dim-card-head .score { margin-left: auto; font-family: var(--mono); font-size: 20px; font-weight: 600; }
.dim-sum { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.evidence { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 5px; }
.evidence li { font-size: 12.5px; color: var(--ink-2); padding-left: 14px; position: relative; line-height: 1.5; }
.evidence li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.issue { font-size: 12.5px; padding: 6px 9px; border-radius: 7px; margin-bottom: 5px; line-height: 1.5; }
.issue.bad { background: var(--coral-soft); color: #93331f; }
.issue.warn { background: var(--amber-soft); color: #85560f; }
.issue.info { background: var(--bg-2); color: var(--muted); }
.fix { font-size: 12.8px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px; line-height: 1.6; }
.fix b { color: var(--brand); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 3px; }

.locked {
  border: 1px dashed #d8dcea;
  background: repeating-linear-gradient(135deg, #fbfcff, #fbfcff 8px, #f5f7fd 8px, #f5f7fd 16px);
  border-radius: 14px; padding: 20px; display: flex; flex-direction: column; justify-content: center; min-height: 148px;
}
.locked h4 { font-size: 14.5px; color: var(--muted); }
.locked p { font-size: 12.5px; color: var(--faint); margin: 4px 0 12px; }
.lock-icon {
  width: 26px; height: 26px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 10px; color: var(--faint); font-size: 12px;
}

.bench-name { font-weight: 600; color: var(--ink); }
.bench-name small { display: block; font-weight: 400; color: var(--faint); font-size: 11.5px; }
.mini-bars { display: flex; gap: 3px; align-items: flex-end; height: 24px; }
.mini-bars i { width: 5px; border-radius: 2px; background: var(--bg-2); }
.mini-bars i.on { background: var(--brand); }

.roadmap-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.roadmap-item:last-child { border-bottom: 0; }
.prio { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 3px 0; text-align: center; border-radius: 6px; height: fit-content; }
.prio.P0 { background: var(--coral-soft); color: var(--coral); }
.prio.P1 { background: var(--amber-soft); color: var(--amber); }
.prio.P2 { background: var(--bg-2); color: var(--muted); }
.roadmap-item h4 { font-size: 15px; margin-bottom: 3px; }
.roadmap-item ul { margin: 8px 0 0; padding-left: 18px; }
.roadmap-item li { font-size: 13px; color: var(--muted); margin-bottom: 3px; line-height: 1.55; }
.kpi-line { font-size: 12px; color: var(--faint); margin-top: 8px; font-family: var(--mono); }

.paywall { background: linear-gradient(180deg, #fff, #f7f7ff); border: 1px solid var(--brand-line); border-radius: var(--radius); padding: 26px; }
.paywall h3 { margin-bottom: 6px; }
.paywall .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 16px 0 20px; }
.paywall ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.paywall li { font-size: 13px; display: flex; gap: 8px; line-height: 1.5; color: var(--ink-2); }
.paywall li::before { content: "→"; color: var(--brand); flex: none; }
.paywall .free li::before { content: "✓"; color: var(--green); }

.unlock-row { display: flex; gap: 8px; margin-top: 14px; max-width: 380px; }
.unlock-row input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px;
  font-family: var(--mono); font-size: 13px; outline: 0; background: #fff; color: var(--ink);
}
.unlock-row input:focus { border-color: var(--brand); }

.loader { display: flex; align-items: center; gap: 12px; padding: 26px; color: var(--muted); font-size: 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--brand-soft); border-top-color: var(--brand); animation: spin 0.7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { padding: 14px 16px; border-radius: 12px; font-size: 13.5px; }
.alert.error { background: var(--coral-soft); color: #8f3320; border: 1px solid #f6d4ca; }
.alert.info { background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); }
.alert a { text-decoration: underline; }

/* ------------------------------------------------------------------ 报告页 */

.doc-hero { padding: 52px 0 10px; }
.doc-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); font-family: var(--mono); }
.doc-body { font-size: 16px; }
.doc-body h2 { margin: 42px 0 14px; font-size: 27px; }
.doc-body h3 { margin: 26px 0 10px; font-size: 19px; }
.doc-body p { font-size: 15.5px; line-height: 1.78; color: #39445a; }
.doc-body ul, .doc-body ol { color: #39445a; font-size: 15.5px; line-height: 1.75; padding-left: 20px; }
.doc-body li { margin-bottom: 7px; }
.doc-body .table-wrap { margin: 18px 0 8px; }
.caption { font-size: 12.5px; color: var(--faint); margin: 0 0 18px; }
.callout { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 20px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--amber); }
.toc { position: sticky; top: 86px; font-size: 13px; }
.toc a { display: block; padding: 5px 0 5px 12px; border-left: 1.5px solid var(--line); color: var(--muted); }
.toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.doc-layout { display: grid; grid-template-columns: 200px 1fr; gap: 46px; align-items: start; padding-top: 10px; }
.doc-layout .doc-body { min-width: 0; }
.doc-layout .doc-body h2:first-child { margin-top: 0; }

.matrix { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.matrix svg { width: 100%; height: auto; }
.matrix-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.dot-key { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

/* ------------------------------------------------------------------ 响应式 */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .radar-box { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .wrap { padding: 0 16px; }
  .nav-inner { gap: 10px; }
  .nav-right { gap: 8px; }
  .quota-pill { font-size: 11px; padding: 4px 8px; }
  .nav-right .btn-sm { padding: 7px 11px; font-size: 13px; }
  .section { padding: 52px 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .dim-grid { grid-template-columns: 1fr; }
  .paywall .cols { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .analyze-row { flex-direction: column; }
  .analyze-row .btn { width: 100%; }
  .hero { padding: 38px 0 32px; }
  .doc-body h2 { font-size: 23px; }
}

@media (max-width: 400px) {
  .quota-pill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
