/* ============================================================
   VexLeaf 官网样式 · 纯静态，无外部依赖
   主题：学术墨绿 / 深青 · 支持深色模式 · 中文系统字体优先
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- design tokens ---------- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
    "Courier New", monospace;

  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #edf1ee;
  --line: #dce3dd;

  --text: #1c2b27;
  --text-2: #5a6b64;

  --brand: #0e5f58;
  --brand-ink: #0a4741;
  --brand-tint: #e3efec;
  --brand-line: #bad6d0;

  --accent: #b45309;
  --accent-bg: #f9f1e4;

  --err: #b23b34;
  --err-bg: #fbedeb;
  --ok: #1c7d5f;
  --ok-bg: #e6f3ed;

  --btn-bg: #0e5f58;
  --btn-fg: #ffffff;
  --btn-bg-hover: #0a4741;

  --footer-bg: #0b2420;
  --footer-text: #c9d9d4;
  --footer-text-2: #8aa39c;

  --shadow: 0 1px 2px rgba(16, 32, 28, 0.05), 0 12px 32px -16px rgba(16, 32, 28, 0.22);
  --radius: 14px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d1512;
  --surface: #142019;
  --surface-2: #1a2923;
  --line: #273831;

  --text: #e7edea;
  --text-2: #9db0a8;

  --brand: #5bc8b5;
  --brand-ink: #8cdccb;
  --brand-tint: #16302a;
  --brand-line: #2c5a50;

  --accent: #e2a54f;
  --accent-bg: #33270f;

  --err: #ff9b92;
  --err-bg: #3a241f;
  --ok: #63c89b;
  --ok-bg: #163025;

  --btn-bg: #4fcdb8;
  --btn-fg: #062620;
  --btn-bg-hover: #7bdccb;

  --footer-bg: #0a1310;
  --footer-text: #9db0a8;
  --footer-text-2: #6d827b;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px -18px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

/* ---------- base ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}
h1, h2, h3 { line-height: 1.3; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: 0.01em; }
h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.06rem; }
p { margin: 0 0 1em; }
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.35em;
}
::selection { background: var(--brand); color: var(--btn-fg); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 8px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- layout utilities ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .sub { color: var(--text-2); font-size: 1.02rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--brand); margin-bottom: 14px; letter-spacing: 0.02em;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--brand); }
.eyebrow code { background: none; border: none; padding: 0; font-size: inherit; color: var(--brand); }

.note { font-size: 0.82rem; color: var(--text-2); }
.tag {
  display: inline-block; font-size: 0.75rem; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--brand-line); color: var(--brand); background: var(--brand-tint);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--text-2);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }

/* 主题图标切换：浅色显示月亮，深色显示太阳 */
.ic-sun { display: none; }
.ic-moon { display: block; }
[data-theme="dark"] .ic-sun { display: block; }
[data-theme="dark"] .ic-moon { display: none; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-size: 1.22rem; font-weight: 700;
  text-decoration: none; color: var(--text);
}
.brand svg { width: 28px; height: 28px; }
.brand .beta {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
  color: var(--accent); border: 1px solid currentColor; border-radius: 5px;
  padding: 1px 6px; transform: translateY(-6px);
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--text-2); font-size: 0.92rem;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 8px 24px 16px;
  }
  .site-nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px dashed var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-actions .btn { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 90px; }
.hero::before {
  /* 点阵背景：论文稿纸的克制隐喻 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 22%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 72%);
  opacity: 0.5;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.04fr 0.96fr;
  gap: 56px; align-items: center;
}
.hero h1 em { font-style: normal; color: var(--brand); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 8px;
  background: var(--brand-tint); z-index: -1; border-radius: 3px;
}
.hero .capline {
  font-size: 1.04rem; font-weight: 600; letter-spacing: 0.01em;
  margin: 14px 0 4px;
}
.hero .capline i {
  font-style: normal; font-weight: 400; color: var(--brand);
  margin: 0 10px;
}
.hero .lead { font-size: 1.08rem; color: var(--text-2); max-width: 34em; margin: 14px 0 30px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero .status {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-2);
}
.hero .status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}

/* 装饰公式 */
.deco { position: absolute; inset: 0; pointer-events: none; user-select: none; }
.deco span {
  position: absolute; font-family: var(--font-serif); font-style: italic;
  color: var(--brand); opacity: 0.08; font-size: clamp(1.2rem, 2.6vw, 2rem);
  white-space: nowrap;
}

/* ---------- 编辑器示意（hero 与功能页共用） ---------- */
.mock {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar .dot:first-child { background: #e2b3ae; }
.mock-bar .fname {
  margin-left: 8px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-2);
}
.mock-body { display: grid; grid-template-columns: 1.15fr 1fr; }
.mock-body > * { min-width: 0; }

.code {
  padding: 14px 12px; font-family: var(--font-mono); font-size: 0.78rem;
  line-height: 1.9; border-right: 1px solid var(--line); overflow-x: auto;
}
.cl { display: flex; gap: 10px; white-space: pre; }
.cl .cn { color: var(--text-2); opacity: 0.65; min-width: 1.8em; text-align: right; user-select: none; }
.cl code { all: unset; font-family: inherit; }
.cl.err {
  background: var(--err-bg); border-left: 2px solid var(--err);
  margin-left: -12px; padding-left: 10px;
}
.wv { text-decoration: underline wavy var(--err); text-underline-offset: 3px; }

.mock-side { display: flex; flex-direction: column; }
.log {
  padding: 12px 14px; font-family: var(--font-mono); font-size: 0.72rem;
  line-height: 1.85; border-bottom: 1px solid var(--line); color: var(--text-2);
}
.log span { display: block; white-space: pre-wrap; word-break: break-all; }
.log .l-cmd { color: var(--text); }
.log .l-ok { color: var(--ok); }
.log .l-err { color: var(--err); font-weight: 600; }
.log .l-dim { opacity: 0.7; }

.diag { padding: 14px 16px; background: var(--brand-tint); }
.diag-head {
  display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.86rem;
  color: var(--brand-ink); margin-bottom: 8px;
}
.diag-head .spark { color: var(--accent); }
.diag-head .loc { margin-left: auto; font-family: var(--font-mono); font-weight: 500; font-size: 0.74rem; }
.diag p { font-size: 0.82rem; line-height: 1.8; margin: 0 0 10px; }
.diag p code { background: var(--surface); }
.diff { display: grid; gap: 3px; font-family: var(--font-mono); font-size: 0.72rem; margin-bottom: 10px; }
.diff span { padding: 3px 8px; border-radius: 5px; white-space: pre-wrap; word-break: break-all; }
.diff .del { background: var(--err-bg); color: var(--err); }
.diff .add { background: var(--ok-bg); color: var(--ok); }
.diag-btn {
  display: inline-block; font-size: 0.76rem; font-weight: 600; color: var(--brand-ink);
  border: 1px dashed var(--brand-line); border-radius: 7px; padding: 4px 12px;
}
.mock-cap {
  padding: 8px 14px; font-size: 0.72rem; color: var(--text-2);
  border-top: 1px solid var(--line); background: var(--surface-2);
}

/* ---------- 痛点 ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; display: flex; flex-direction: column; gap: 14px;
}
.pain-card .p {
  font-size: 0.95rem; color: var(--text-2);
  padding-left: 14px; border-left: 3px solid var(--line);
}
.pain-card .arrow { color: var(--brand); font-family: var(--font-mono); font-size: 0.85rem; }
.pain-card .arrow::before { content: "\\ Downarrow"; margin-right: 6px; opacity: 0.6; }
.pain-card .s { font-weight: 600; font-size: 1rem; }
.pain-card .s b { color: var(--brand); }

/* ---------- 功能 ---------- */
.feature-lead { display: grid; gap: 20px; margin-bottom: 20px; }
.feature-lead-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--brand-line);
  border-radius: var(--radius); padding: 30px 32px;
}
.feature-lead-card h3 { font-size: 1.3rem; font-family: var(--font-serif); }
.feature-lead-card .desc { color: var(--text-2); font-size: 0.95rem; margin-bottom: 14px; }
.feature-more {
  font-weight: 600; font-size: 0.9rem; color: var(--brand); text-decoration: none;
}
.feature-more:hover { text-decoration: underline; }
.feature-more::after { content: " →"; font-family: var(--font-mono); }

.mini-visual {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.9;
  color: var(--text-2); overflow-x: auto;
}
.mini-visual .ok-line { color: var(--ok); }
.mini-visual .err-line { color: var(--err); }
.mini-visual .fix-line { color: var(--brand-ink); background: var(--brand-tint); border-radius: 5px; padding: 0 6px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px;
}
.feature-card .ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px;
  background: var(--brand-tint); color: var(--brand);
}
.feature-card .ic svg { width: 20px; height: 20px; }
.feature-card p { color: var(--text-2); font-size: 0.92rem; margin: 0; }

/* ---------- 工作流 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 18px;
}
.step .no {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--brand);
  display: block; margin-bottom: 10px;
}
.step b { display: block; margin-bottom: 6px; font-size: 0.98rem; }
.step p { color: var(--text-2); font-size: 0.85rem; margin: 0; }
.step:not(:last-child)::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  color: var(--brand); z-index: 1; font-family: var(--font-mono);
  background: var(--bg); padding: 2px;
}

/* ---------- 场景 ---------- */
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scenario-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.scenario-card .k {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); display: block;
  margin-bottom: 10px;
}
.scenario-card h3 { font-family: var(--font-serif); font-size: 1.15rem; }
.scenario-card p { color: var(--text-2); font-size: 0.9rem; margin: 0; }

/* ---------- 定价 ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; display: flex; flex-direction: column;
}
.price-card.pro { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.price-card .plan { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.price-card .amount { font-family: var(--font-serif); font-size: 2.3rem; margin: 12px 0 4px; }
.price-card .amount small { font-size: 0.95rem; font-family: var(--font-sans); color: var(--text-2); }
.price-card ul { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 10px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--text-2); }
.price-card li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.price-card li.na::before { content: "—"; color: var(--text-2); opacity: 0.6; }

.compare { width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 13px 18px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--surface-2); font-family: var(--font-mono); font-size: 0.8rem; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--text-2); }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: var(--text-2); opacity: 0.55; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 0.98rem;
  padding: 17px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--brand); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); font-size: 0.92rem; padding-bottom: 18px; margin: 0; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-ink), var(--brand));
  border-radius: 18px; padding: 56px 40px; text-align: center; color: #eefaf7;
}
[data-theme="dark"] .cta-band { background: linear-gradient(135deg, #10337e00, transparent), var(--brand-tint); color: var(--text); border: 1px solid var(--brand-line); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { opacity: 0.85; max-width: 34em; margin: 0 auto 26px; }
.cta-band .btn-primary { background: #ffffff; color: var(--brand-ink); }
.cta-band .btn-primary:hover { background: #e8f5f1; }
[data-theme="dark"] .cta-band .btn-primary { background: var(--btn-bg); color: var(--btn-fg); }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 90px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px;
}
.site-footer .brand { color: #fff; }
.site-footer h4 { font-size: 0.85rem; margin: 0 0 14px; color: #fff; letter-spacing: 0.04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--footer-text); text-decoration: none; font-size: 0.88rem; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-note { font-size: 0.8rem; color: var(--footer-text-2); line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.78rem; color: var(--footer-text-2);
}

/* ---------- 子页面 ---------- */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--brand-tint), transparent); }
.page-hero h1 { max-width: 15em; }
.page-hero .lead { color: var(--text-2); font-size: 1.05rem; max-width: 38em; }

/* AI 诊断页示例 */
.example { margin-bottom: 26px; }
.example .ex-title {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); margin-bottom: 10px;
  display: block;
}
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.how-card .no { font-family: var(--font-mono); color: var(--brand); font-size: 0.78rem; display: block; margin-bottom: 10px; }
.how-card p { color: var(--text-2); font-size: 0.9rem; margin: 0; }

.callout {
  border-left: 3px solid var(--accent); background: var(--accent-bg);
  border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: 0.88rem; color: var(--text-2);
  max-width: 760px;
}

/* ---------- PDF 检查页 ---------- */
.review-demo { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.pdf-page {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 34px 30px; aspect-ratio: 210 / 280;
  box-shadow: var(--shadow); overflow: hidden;
}
.pline { height: 7px; border-radius: 4px; background: var(--surface-2); margin-bottom: 9px; }
.pline.w-100 { width: 100%; } .pline.w-92 { width: 92%; } .pline.w-85 { width: 85%; }
.pline.w-70 { width: 70%; } .pline.w-55 { width: 55%; } .pline.w-35 { width: 35%; }
.pline.heading { height: 13px; width: 45%; background: color-mix(in srgb, var(--text) 65%, var(--surface)); margin: 16px 0 14px; }
.pline.dim { opacity: 0.55; }
.pfig {
  height: 54px; border: 1.5px dashed var(--line); border-radius: 6px; margin: 12px 0;
  background: repeating-linear-gradient(45deg, transparent 0 8px, var(--surface-2) 8px 16px);
}
.hl {
  position: absolute; border: 1.5px dashed var(--accent); border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.hl .chip {
  position: absolute; top: -12px; left: -1px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600;
  background: var(--accent); color: #fff; border-radius: 4px; padding: 1px 7px;
}
.hl.okhl { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.hl.okhl .chip { background: var(--ok); }

.rule-list { display: grid; gap: 10px; }
.rule {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 18px;
}
.rule .st-ic {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.rule.ok .st-ic { background: var(--ok-bg); color: var(--ok); }
.rule.bad .st-ic { background: var(--accent-bg); color: var(--accent); }
.rule b { font-size: 0.92rem; display: block; }
.rule small { color: var(--text-2); font-size: 0.78rem; }
.rule .st {
  margin-left: auto; flex: none; font-size: 0.75rem; font-weight: 600;
  border-radius: 999px; padding: 2px 10px;
}
.rule.ok .st { color: var(--ok); background: var(--ok-bg); }
.rule.bad .st { color: var(--accent); background: var(--accent-bg); }

/* ---------- 关于页 ---------- */
.about-body { max-width: 720px; }
.about-body p { color: var(--text-2); font-size: 1.0rem; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px; display: grid; gap: 6px;
}
.contact-card b { font-size: 1rem; }
.contact-card .note { margin: 0; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header, .cta-band, .site-footer, .deco, .hero::before { display: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 60px 0 70px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { content: none; }
  .review-demo { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .mock-body { grid-template-columns: 1fr; }
  .code { border-right: none; border-bottom: 1px solid var(--line); }
  .pain-grid, .feature-grid, .how-grid { grid-template-columns: 1fr; }
  .feature-lead-card { grid-template-columns: 1fr; padding: 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 42px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .compare { display: block; overflow-x: auto; }
}
