/* ==========================================================================
   Beacon GEO — 出海 AI 可见度服务官网
   设计系统：编辑式排版 + 单强调色（深青）+ 等宽数据标签 + 零外部依赖
   ========================================================================== */

:root {
  --ink:        #14161A;
  --ink-2:      #3C4046;
  --ink-3:      #6E7379;
  --ink-4:      #9AA0A6;
  --line:       #E4E1D8;
  --line-2:     #F0EDE5;
  --bg:         #FBFAF7;
  --surface:    #FFFFFF;
  --surface-2:  #F6F4EF;

  --accent:     #0F6E56;
  --accent-2:   #0A5443;
  --accent-soft:#E1F5EE;
  --accent-line:#B9E0D2;

  --gold:       #854F0B;
  --gold-soft:  #FAEEDA;
  --danger:     #A32D2D;
  --danger-soft:#FCEBEB;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --wrap: 1160px;
}

*, *::before, *::after { 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(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 类型 ---------- */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 54px); }
h2 { font-size: clamp(25px, 3.4vw, 38px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
h4 { font-size: 15px; }
p  { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 14px;
}
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.7; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); }
.num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 布局 ---------- */
section { padding: 76px 0; }
section.tight { padding: 52px 0; }
section.tinted { background: var(--surface-2); }
section.dark { background: var(--ink); color: #EDEBE4; }
section.dark .muted { color: #A7A69F; }
section.dark .eyebrow { color: #5DCAA5; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.grid { display: grid; gap: 24px; }
.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)); }

.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head p { margin-top: 14px; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 26px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 500; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; flex: 0 0 22px; }
.brand-name { font-size: 16px; }
.brand-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); }

.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); font-size: 14px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); border-radius: 999px; padding: 5px 11px; cursor: pointer;
}
.lang:hover { border-color: var(--ink-4); color: var(--ink); }

.burger { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #FBFAF7; }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-4); background: var(--surface); }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 74px 0 66px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: start; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-meta div { font-size: 13px; color: var(--ink-3); }
.hero-meta b { display: block; font-family: var(--font-mono); font-size: 19px; color: var(--ink); font-weight: 500; letter-spacing: -.02em; }

/* AI 可见度快照卡 */
.snapshot {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: 0 1px 2px rgba(20,22,26,.04);
}
.snapshot-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px; border-bottom: 1px solid var(--line-2); background: var(--surface-2);
}
.snapshot-head span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); }
.snapshot-body { padding: 20px 18px; }
.gauge { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.gauge b { font-family: var(--font-mono); font-size: 42px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.gauge i { font-style: normal; font-size: 13px; color: var(--ink-3); }
.bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 14px 0 6px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.snapshot-rows { margin-top: 20px; border-top: 1px solid var(--line-2); }
.snapshot-rows > div {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px;
}
.snapshot-rows > div:last-child { border-bottom: 0; }
.snapshot-rows b { font-family: var(--font-mono); font-weight: 500; }
.pill-up   { color: var(--accent); }
.pill-flat { color: var(--ink-3); }
.pill-down { color: var(--danger); }

/* ---------- 信任条 ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-in { display: flex; align-items: center; gap: 34px; padding: 18px 0; flex-wrap: wrap; }
.trust-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.trust-list { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-list span {
  font-size: 13px; color: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 4px 11px; background: var(--bg);
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 14.5px; }
.card .idx {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 12px; display: block;
}
.card-accent { border-color: var(--accent-line); background: linear-gradient(0deg, var(--accent-soft), var(--accent-soft)); }
.card-accent h3 { color: var(--accent-2); }

/* ---------- 指标 ---------- */
.metric { border-top: 2px solid var(--ink); padding-top: 18px; }
.metric b { display: block; font-family: var(--font-mono); font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.metric span { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; }
.metric p { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- 套餐 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; display: flex; flex-direction: column; height: 100%;
}
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; align-self: flex-start;
}
.plan-name { font-size: 18px; font-weight: 500; }
.plan-for { font-size: 13px; color: var(--ink-3); margin-top: 4px; min-height: 38px; }
.plan-price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.plan-price b { font-family: var(--font-mono); font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.plan-price span { font-size: 13px; color: var(--ink-3); }
.plan-cycle { font-size: 12px; color: var(--ink-3); min-height: 18px; }
.plan-feats { list-style: none; margin: 20px 0 22px; padding: 18px 0 0; border-top: 1px solid var(--line-2); }
.plan-feats li { font-size: 13.5px; color: var(--ink-2); padding: 6px 0 6px 20px; position: relative; }
.plan-feats li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 1px; background: var(--accent);
}
.plan-feats li.off { color: var(--ink-4); }
.plan-feats li.off::before { background: var(--line); }
.plan .btn { margin-top: auto; }

.billing-note {
  margin-top: 26px; padding: 16px 18px; background: var(--gold-soft);
  border: 1px solid #F0DDB4; border-radius: var(--r-md); font-size: 13.5px; color: #5A3806;
}

/* ---------- 一次性包条 ---------- */
.auditbar {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
}
.auditbar h3 { margin-bottom: 8px; }
.auditbar p { color: var(--ink-2); font-size: 14px; }
.auditbar .price { text-align: right; }
.auditbar .price b { display: block; font-family: var(--font-mono); font-size: 28px; font-weight: 500; letter-spacing: -.03em; }

/* ---------- 数据表 ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 660px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.data thead th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; background: var(--surface-2); white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.feature { font-weight: 500; color: var(--ink); }
table.data td.num, table.data th.num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
table.data .yes { color: var(--accent); }
table.data .no  { color: var(--ink-4); }

/* ---------- 流程 ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.step { border-top: 1px solid var(--line); padding-top: 20px; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--accent);
  display: block; margin-bottom: 12px;
}
.step h4 { margin-bottom: 8px; font-size: 16px; }
.step p { font-size: 13.5px; color: var(--ink-3); }

/* ---------- 表单 ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.field label i { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 96px; resize: vertical; }
.field-err { color: var(--danger); font-size: 12px; margin-top: 5px; display: none; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--danger); }
.field.bad .field-err { display: block; }
.form-note { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }
.form-ok {
  display: none; background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-2); border-radius: var(--r-md); padding: 14px 16px; font-size: 14px; margin-top: 16px;
}
.form-ok.on { display: block; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.chk input { width: auto; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  cursor: pointer; font-weight: 500; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 18px; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; max-width: 760px; }

/* ---------- 报价切换 ---------- */
.cycle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 3px; }
.cycle button {
  border: 0; background: transparent; font-family: inherit; font-size: 13px; color: var(--ink-2);
  padding: 6px 16px; border-radius: 999px; cursor: pointer;
}
.cycle button.on { background: var(--ink); color: #FBFAF7; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { color: var(--ink-2); font-size: 14px; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3);
}

/* ---------- 工具 ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 9px 14px; border-radius: var(--r-sm); }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

.badge-early {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-soft); border: 1px solid #F0DDB4; color: #6B4708;
  border-radius: 999px; padding: 6px 14px; font-size: 13px;
}
.badge-early b { font-family: var(--font-mono); font-weight: 500; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .plans, .g3, .steps, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 54px 0; }
  .nav {
    position: absolute; top: 62px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 14px;
    display: none;
  }
  .nav.open { display: flex; }
  .burger {
    display: inline-flex; margin-left: auto; background: transparent; border: 1px solid var(--line);
    border-radius: var(--r-sm); padding: 6px 10px; cursor: pointer;
  }
  .nav-actions .btn { display: none; }
  .plans, .g2, .g3, .g4, .steps { grid-template-columns: 1fr; }
  .auditbar { grid-template-columns: 1fr; }
  .auditbar .price { text-align: left; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ===== 996618 Kit 组件层 ===== */
/* ==========================================================================
   996618 Kit — 组件层
   叠在 base.css（设计系统）之上。零外部依赖、零构建期 CSS 预处理。
   ========================================================================== */

/* ---------------------------------------------------------------- 版面块 */

/* 品牌标识：设计系统里 .brand-mark 是 22×22 的图标盒（主站放 SVG），
   本站把它当文字用，必须重置宽高，否则文字会溢出重叠 */
.brand-mark {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
}

/* 汉堡按钮：三条线（设计系统只给了按钮外框，没给内部线条尺寸） */
.burger { flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
}

/* 标题断行平衡：避免尾字单独成行 */
.hero-title, .sec-head h2, .prose h2, .prose h3, .cat-name, .tool-card-name { text-wrap: balance; }

.sec { padding: 62px 0; }
.sec-tinted { background: var(--surface-2); }
.sec-head h2 { margin: 0; font-size: 27px; letter-spacing: -.01em; }
.narrow { max-width: 760px; }
.more-link { margin-top: 26px; font-size: 14px; }
.more-link a { color: var(--accent); font-weight: 500; }

.hero-sm { padding: 52px 0 44px; }
.hero-sm .hero-title { max-width: 860px; }
.hero-title {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -.022em;
  margin: 0 0 18px;
}
.hero-side { position: sticky; top: 84px; }

.cta-band { background: var(--ink); color: #FBFAF7; }
.cta-band h2 { color: #FBFAF7; margin: 0 0 12px; font-size: 30px; }
.cta-band .lead { color: #C9CCC9; max-width: 640px; }
.cta-band .btn-primary { background: #FBFAF7; color: var(--ink); }
.cta-band .btn-primary:hover { background: #fff; }

.notfound { padding: 90px 0; }

/* ---------------------------------------------------------------- 承诺块 */

.promise-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.promise-head {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--accent-2);
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  padding: 11px 13px;
}
.promise-list { list-style: none; margin: 18px 0 0; padding: 0; }
.promise-list li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 9px 0 9px 24px;
  border-top: 1px solid var(--line);
  position: relative;
}
.promise-list li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--danger);
  font-size: 12px;
}
.promise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.promise-item { display: flex; gap: 14px; align-items: flex-start; }
.promise-item strong { display: block; margin-bottom: 5px; font-size: 15px; }
.promise-x {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 1px;
}

/* ------------------------------------------------------------ 卡片（工具） */

.tool-card, .cat-card, .guide-card {
  display: block;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover, .cat-card:hover, .guide-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 22, 26, .06);
  text-decoration: none;
}
.tool-card-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 11px;
}
.tool-card-name { font-size: 18px; line-height: 1.35; margin-bottom: 9px; }
.tool-card-desc { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.tool-card-go {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--font-mono);
}
.cat-ic { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.cat-name { font-size: 18px; margin-bottom: 8px; }
.cat-go { font-size: 13px; color: var(--accent); font-family: var(--font-mono); }

/* ------------------------------------------------------------- 工具页布局 */

.tool-wrap, .guide-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}
.tool-side, .guide-side { position: sticky; top: 84px; }
/* 工具页的结果区跨整行（grid-column: 1 / -1），而侧栏通常比正文行高，
   粘性定位会让它浮到结果区上方、遮住表格右侧几列 → 工具页侧栏改为跟随滚动。 */
.tool-side { position: static; }
.tool-main { min-width: 0; }
.guide-main { min-width: 0; }

.field-grid { display: grid; gap: 4px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.field-hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; line-height: 1.5; }
.chk-grid { display: grid; gap: 12px; margin: 14px 0 4px; }

.calc-out {
  /* 结果区是 tool-wrap 的直接子项 → 跨整行，10 列对比表才有足够宽度 */
  grid-column: 1 / -1;
  /* 网格项默认 min-width:auto → 表格的 min-width 会把整页撑宽并产生横向溢出，
     必须显式归零，横向滚动交给 .tablewrap 内部处理 */
  min-width: 0;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  padding: 22px 22px 24px;
}
.calc-out-h { font-size: 15px; margin: 0 0 16px; color: var(--accent-2); }
.calc-out-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc-out .calc-detail { min-width: 0; }
.calc-out .tablewrap { margin-top: 18px; max-width: 100%; }
.calc-out .tablewrap table { min-width: 760px; }
@media (max-width: 900px) {
  .calc-out-grid { grid-template-columns: 1fr; }
}
.calc-out-item { display: flex; flex-direction: column; gap: 4px; }
.calc-out-label { font-size: 12px; color: var(--ink-3); }
.calc-out-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  word-break: break-word;
}
.calc-out-val.big { font-size: 22px; color: var(--accent-2); }

/* -------------------------------------------------------------- 正文排版 */

.prose { max-width: 780px; }
.prose h2 { font-size: 23px; margin: 40px 0 14px; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 30px 0 10px; }
.prose p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.78; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: var(--ink-2); line-height: 1.78; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}
.prose pre {
  background: var(--ink);
  color: #E8EAE7;
  border-radius: var(--r-md);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 20px;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 13px; }
.prose blockquote {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.prose blockquote p { margin: 0; color: var(--accent-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose thead th {
  text-align: left;
  padding: 11px 14px;
  background: var(--surface-2);
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.prose tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: top;
  line-height: 1.6;
}
.prose tbody tr:last-child td { border-bottom: 0; }
.prose .tablewrap { margin: 0 0 24px; border-radius: var(--r-md); }
.prose a { color: var(--accent); }

.guide-about {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.guide-about h2 { font-size: 17px; margin: 0 0 10px; }
.guide-sources { margin-top: 20px; }
.guide-sources ul { margin: 0; padding-left: 20px; }
.guide-sources li { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; line-height: 1.6; }

/* ------------------------------------------------------------------ 目录 */

.toc {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 20px 22px;
}
.toc-h {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.toc-list { margin: 0; padding-left: 18px; }
.toc-list li { margin-bottom: 8px; font-size: 13.5px; line-height: 1.55; }
.toc-list a { color: var(--ink-2); }
.toc-list a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ FAQ */

.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { font-size: 16px; margin: 0 0 9px; }
.faq-item p { margin: 0; max-width: 760px; font-size: 14.5px; line-height: 1.7; }

/* ---------------------------------------------------------------- 搜索 */

.kit-srch {
  position: sticky;
  top: 62px;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(20, 22, 26, .06);
  padding: 18px 0;
}
.kit-srch[hidden] { display: none; }
.kit-srch-input {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.kit-srch-input:focus { outline: none; border-color: var(--accent); }
.kit-srch-out { margin-top: 12px; display: grid; gap: 2px; max-height: 58vh; overflow-y: auto; }
.kit-srch-item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: inherit;
}
.kit-srch-item:hover { background: var(--surface-2); text-decoration: none; }
.kit-srch-t { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.kit-srch-d { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.kit-srch-empty { font-size: 13.5px; color: var(--ink-3); padding: 12px; }

/* ---------------------------------------------------------------- 页脚 */

.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 46px 0 28px; margin-top: 0; }
.foot-h {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin: 0 0 12px;
}
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: 8px; }
.foot-list a { color: var(--ink-2); font-size: 14px; }
.foot-list a:hover { color: var(--ink); }
.brand-foot { margin-bottom: 12px; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ------------------------------------------------------------ 移动端菜单 */

@media (max-width: 900px) {
  .nav { display: none; }
  /* 设计系统只在 ≤720px 显示汉堡，901–900px 区间会既没导航也没按钮 */
  .burger { display: inline-flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-side { position: static; }
  .tool-wrap, .guide-wrap { grid-template-columns: 1fr; gap: 32px; }
  .tool-side, .guide-side { position: static; }
  .promise-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 31px; }
  .sec { padding: 48px 0; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  /* 设计系统在 720px 隐藏了 .nav-actions .btn，移动端要保留搜索入口 */
  .nav-actions .kit-srch-btn { display: inline-flex; }
}

@media (max-width: 560px) {
  .hero-title { font-size: 26px; }
  .foot-grid { grid-template-columns: 1fr; }
  .prose h2 { font-size: 20px; }
  .prose thead th, .prose tbody td { padding: 9px 11px; font-size: 13px; }
}
