/* =========================================================
   Cloudflare WARP 指南 — 浅色 / 深色双主题
   默认浅色；[data-theme="dark"] 为深色。
   "跟随系统"由 JS 解析后写入 data-theme，CSS 只认最终结果。
   ========================================================= */

/* ---------------- 浅色（默认基准） ---------------- */
:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --alt-bg: linear-gradient(180deg, rgba(16, 24, 40, .028), rgba(16, 24, 40, .008));
  --footer-bg: #f7f9fc;

  --card: #ffffff;
  --card-hover: #ffffff;
  --card-open: #ffffff;
  --thead-bg: rgba(248, 250, 252, .97);

  --line: rgba(16, 24, 40, .1);
  --line-strong: rgba(16, 24, 40, .18);
  --line-hover: rgba(16, 24, 40, .26);

  --text: #101828;
  --text-soft: #344054;
  --muted: #5d6b82;
  --faint: #8a94a6;

  --hover-bg: rgba(16, 24, 40, .05);
  --hover-bg-strong: rgba(16, 24, 40, .08);
  --hover-row: rgba(16, 24, 40, .03);

  --nav-bg: rgba(255, 255, 255, .8);
  --nav-bg-stuck: rgba(255, 255, 255, .94);
  --menu-bg: rgba(255, 255, 255, .99);

  --grid-line: rgba(16, 24, 40, .035);
  --glow-1: rgba(246, 130, 31, .13);
  --glow-2: rgba(91, 124, 250, .11);
  --glow-hero: rgba(246, 130, 31, .15);

  --brand: #f6821f;
  --brand-2: #ffb43a;
  --brand-ink: #b45309;
  --brand-tint: rgba(246, 130, 31, .1);
  --brand-border: rgba(246, 130, 31, .32);

  --accent: #3b5bdb;
  --accent-ink: #3b5bdb;
  --accent-tint: rgba(59, 91, 219, .07);
  --accent-border: rgba(59, 91, 219, .24);

  --ok-ink: #0b7d58;
  --ok-tint: rgba(15, 157, 110, .09);
  --ok-border: rgba(15, 157, 110, .25);

  --code-bg: rgba(16, 24, 40, .055);
  --code-ink: #9a3412;

  --grad-a: #b45309;
  --grad-b: #e2711a;
  --grad-c: #c2410c;

  --callout-bg: linear-gradient(135deg, rgba(246, 130, 31, .08), rgba(59, 91, 219, .05));
  --cta-bg: radial-gradient(600px 260px at 50% 0%, rgba(246, 130, 31, .13), transparent 70%);

  --shadow-brand: 0 8px 20px -10px rgba(246, 130, 31, .55);
  --shadow-brand-btn: 0 10px 24px -12px rgba(246, 130, 31, .6);
  --shadow-brand-btn-hover: 0 16px 32px -12px rgba(246, 130, 31, .7);
  --card-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --card-shadow-hover: 0 14px 30px -18px rgba(16, 24, 40, .28);

  /* 两主题共用的常量 */
  --btn-ink: #17181c;
  --radius: 16px;
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------------- 深色 ---------------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #05070d;
  --bg-soft: #080c15;
  --alt-bg: linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, .004));
  --footer-bg: rgba(0, 0, 0, .3);

  --card: rgba(255, 255, 255, .035);
  --card-hover: rgba(255, 255, 255, .062);
  --card-open: rgba(255, 255, 255, .05);
  --thead-bg: rgba(11, 16, 26, .97);

  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .16);
  --line-hover: rgba(255, 255, 255, .28);

  --text: #e9eef7;
  --text-soft: #cfd8e8;
  --muted: #96a2b8;
  --faint: #6f7c92;

  --hover-bg: rgba(255, 255, 255, .06);
  --hover-bg-strong: rgba(255, 255, 255, .1);
  --hover-row: rgba(255, 255, 255, .022);

  --nav-bg: rgba(5, 7, 13, .72);
  --nav-bg-stuck: rgba(5, 7, 13, .9);
  --menu-bg: rgba(6, 9, 16, .98);

  --grid-line: rgba(255, 255, 255, .022);
  --glow-1: rgba(246, 130, 31, .16);
  --glow-2: rgba(91, 124, 250, .15);
  --glow-hero: rgba(246, 130, 31, .2);

  --brand-ink: #ffb43a;
  --brand-tint: rgba(246, 130, 31, .1);
  --brand-border: rgba(246, 130, 31, .28);

  --accent: #5b7cfa;
  --accent-ink: #9db0ff;
  --accent-tint: rgba(91, 124, 250, .13);
  --accent-border: rgba(91, 124, 250, .3);

  --ok-ink: #6ee7b7;
  --ok-tint: rgba(52, 211, 153, .12);
  --ok-border: rgba(52, 211, 153, .28);

  --code-bg: rgba(255, 255, 255, .07);
  --code-ink: #ffd9ad;

  --grad-a: #f6821f;
  --grad-b: #ffb43a;
  --grad-c: #ffd9a8;

  --callout-bg: linear-gradient(135deg, rgba(246, 130, 31, .09), rgba(91, 124, 250, .07));
  --cta-bg: radial-gradient(600px 260px at 50% 0%, rgba(246, 130, 31, .16), transparent 70%);

  --shadow-brand: 0 8px 20px -10px rgba(246, 130, 31, .9);
  --shadow-brand-btn: 0 10px 26px -10px rgba(246, 130, 31, .75);
  --shadow-brand-btn-hover: 0 16px 34px -10px rgba(246, 130, 31, .85);
  --card-shadow: none;
  --card-shadow-hover: 0 20px 40px -26px rgba(0, 0, 0, .9);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 10% -10%, var(--glow-1), transparent 62%),
    radial-gradient(820px 500px at 92% 2%, var(--glow-2), transparent 64%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 55%, var(--bg-soft) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}

/* 细网格底纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

img, svg { max-width: 100%; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--code-bg);
  border: 1px solid var(--line);
  padding: .12em .45em;
  border-radius: 6px;
  color: var(--code-ink);
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--btn-ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px;
  font-size: .95rem; font-weight: 600; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: var(--btn-ink);
  box-shadow: var(--shadow-brand-btn);
}
.btn-primary:hover { box-shadow: var(--shadow-brand-btn-hover); }
.btn-ghost {
  background: var(--hover-bg);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--hover-bg-strong); border-color: var(--line-hover); }
.btn-sm { padding: 9px 16px; font-size: .86rem; border-radius: 10px; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ================= 导航 ================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .25s ease, background-color .25s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); background: var(--nav-bg-stuck); }
.nav-inner { display: flex; align-items: center; height: 68px; gap: 12px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; color: var(--btn-ink);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow-brand);
}
.brand-text { font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; }
.brand-text em { font-style: normal; color: var(--muted); font-weight: 600; margin-left: 2px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted); font-size: .9rem; font-weight: 500;
  padding: 8px 12px; border-radius: 9px;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--text); background: var(--hover-bg); text-decoration: none; }
.nav-links .nav-cta { color: var(--btn-ink); margin-left: 8px; }
.nav-links .nav-cta:hover { color: var(--btn-ink); background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

.nav-tools { display: flex; align-items: center; gap: 10px; }

/* 主题切换按钮 */
.theme-toggle {
  width: 42px; height: 42px; padding: 0;
  display: grid; place-items: center;
  background: var(--hover-bg); border: 1px solid var(--line);
  border-radius: 11px; cursor: pointer; color: var(--text);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.theme-toggle:hover { background: var(--hover-bg-strong); border-color: var(--line-strong); }
.theme-toggle:active { transform: scale(.93); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.theme-toggle svg { display: none; width: 19px; height: 19px; }
/* 无 JS / 浅色时显示太阳；深色显示月亮；跟随系统显示显示器 */
.theme-toggle .ti-light { display: block; }
:root[data-theme="dark"] .theme-toggle .ti-light { display: none; }
:root[data-theme="dark"] .theme-toggle .ti-dark { display: block; }
:root[data-theme-mode="system"] .theme-toggle .ti-light { display: none; }
:root[data-theme-mode="system"] .theme-toggle .ti-dark { display: none; }
:root[data-theme-mode="system"] .theme-toggle .ti-system { display: block; }

.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  background: var(--hover-bg); border: 1px solid var(--line);
  border-radius: 11px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background .2s ease, border-color .2s ease;
}
.nav-toggle:hover { background: var(--hover-bg-strong); border-color: var(--line-strong); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= HERO ================= */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow-hero), transparent 72%);
  filter: blur(28px);
}
.hero-inner { max-width: 880px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-ink); margin-bottom: 20px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.hero h1 { font-size: clamp(2.15rem, 5.4vw, 3.7rem); margin-bottom: 22px; }
.grad {
  background: linear-gradient(100deg, var(--grad-a) 6%, var(--grad-b) 46%, var(--grad-c) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { font-size: clamp(1rem, 1.6vw, 1.1rem); color: var(--muted); max-width: 700px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero-stats {
  list-style: none; margin: 0; padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-size: 1.12rem; color: var(--text); letter-spacing: -.01em; }
.hero-stats span { font-size: .84rem; color: var(--muted); }

/* ================= 通用区块 ================= */
.section { padding: 78px 0; position: relative; }
.section-alt {
  background: var(--alt-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-head { max-width: 660px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.55rem, 3.1vw, 2.15rem); margin-bottom: 12px; }
.sec-sub { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ================= 卡片 ================= */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--card-shadow);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: var(--line-strong);
  box-shadow: var(--card-shadow-hover);
}
.card h3 { font-size: 1.06rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }

.ico {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
}
.ico svg { width: 23px; height: 23px; }
.ico-brand { background: var(--brand-tint); color: var(--brand-ink); border: 1px solid var(--brand-border); }
.ico-accent { background: var(--accent-tint); color: var(--accent-ink); border: 1px solid var(--accent-border); }
.ico-ok { background: var(--ok-tint); color: var(--ok-ink); border: 1px solid var(--ok-border); }

/* ================= 步骤 ================= */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.step {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px 24px;
  box-shadow: var(--card-shadow);
}
.step-num {
  font-family: var(--mono); font-size: .82rem; font-weight: 700; letter-spacing: .1em;
  color: var(--brand-ink);
  display: inline-block; margin-bottom: 14px;
  border-bottom: 2px solid var(--brand-border); padding-bottom: 3px;
}
.step h3 { font-size: 1.04rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

.callout {
  margin-top: 28px;
  background: var(--callout-bg);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  padding: 20px 24px;
  color: var(--text-soft); font-size: .95rem;
}
.callout strong { color: var(--text); }

/* ================= 对比表 ================= */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--card-shadow);
  -webkit-overflow-scrolling: touch;
}
.compare { width: 100%; border-collapse: collapse; min-width: 660px; font-size: .92rem; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th {
  font-size: .84rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; background: var(--thead-bg);
  position: sticky; top: 0;
}
.compare tbody th { font-weight: 600; color: var(--text); width: 26%; }
.compare td { color: var(--muted); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: var(--hover-row); }
.compare .col-hl { background: var(--brand-tint); color: var(--text-soft); }
.compare thead .col-hl { color: var(--brand-ink); }
.yes { color: var(--ok-ink); font-weight: 600; }
.table-note { color: var(--muted); font-size: .85rem; margin: 14px 0 0; }
.table-note.center { text-align: center; }

/* ================= 平台 ================= */
.plat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 18px; text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.plat:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--card-hover); box-shadow: var(--card-shadow-hover); }
.plat-ico { display: block; margin-bottom: 14px; line-height: 0; color: var(--accent-ink); }
.plat-ico svg { width: 26px; height: 26px; }
.plat h3 { font-size: .98rem; margin-bottom: 6px; }
.plat p { color: var(--muted); font-size: .82rem; margin: 0; }

/* ================= 上手 ================= */
.start-grid { align-items: start; gap: 24px; }
.list-num { counter-reset: n; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.list-num li { position: relative; padding-left: 46px; color: var(--muted); font-size: .95rem; }
.list-num li strong { color: var(--text); display: block; margin-bottom: 2px; }
.list-num li::before {
  counter-increment: n; content: counter(n);
  position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .84rem; font-weight: 700; color: var(--btn-ink);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.tip-card { background: var(--accent-tint); border-color: var(--accent-border); }
.tip-card h3 { font-size: 1.02rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); font-size: .9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-border);
}

/* ================= 引用与出处 ================= */
/* 正文角标：<sup class="cite"><a href="#ref-N">[N]</a></sup> */
.cite {
  margin: 0 1px 0 3px;
  font-size: .68em; line-height: 0;
  vertical-align: super;
  white-space: nowrap;
}
.cite a {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 6px;
  font-family: var(--mono); font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.cite a + a { margin-left: 3px; }
.cite a:hover, .cite a:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 出处列表：编号由 CSS 计数器生成，与 [N] 角标一一对应 */
.refs {
  list-style: none; counter-reset: ref; margin: 0; padding: 14px 18px 14px 8px;
  display: grid; gap: 4px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--card-shadow);
}
.refs li {
  position: relative; counter-increment: ref;
  padding: 9px 12px 9px 42px;
  border: 1px solid transparent; border-radius: 10px;
  color: var(--muted); font-size: .9rem; line-height: 1.7;
  transition: background-color .25s ease, border-color .25s ease;
}
.refs li::before {
  content: "[" counter(ref) "]";
  position: absolute; left: 12px; top: 9px;
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  color: var(--accent-ink);
}
.refs li:target { background: var(--accent-tint); border-color: var(--accent-border); }
.refs a { color: var(--accent-ink); word-break: break-all; }
.refs .ref-meta { color: var(--faint); font-size: .86em; }

/* ================= FAQ ================= */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 13px; overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: border-color .2s ease, background .2s ease;
}
.faq details[open] { border-color: var(--line-strong); background: var(--card-open); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 17px 52px 17px 22px; position: relative;
  font-weight: 600; font-size: .98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .22s ease, border-color .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; border-color: var(--brand); }
.faq summary:hover { color: var(--brand-ink); }
.faq details p { margin: 0; padding: 0 22px 19px; color: var(--muted); font-size: .93rem; }

/* ================= CTA ================= */
.cta-sec { padding-bottom: 92px; }
.cta-box {
  text-align: center;
  background: var(--cta-bg), var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 56px 32px;
  box-shadow: var(--card-shadow);
}
.cta-box h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-box p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* ================= 页脚 ================= */
.footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  padding: 46px 0 30px;
  position: relative; z-index: 1;
  transition: background-color .3s ease;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 28px;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.footer-brand .brand-text { font-size: 1.02rem; }
.footer-brand p { color: var(--muted); font-size: .87rem; margin: 10px 0 0; max-width: 340px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); font-size: .88rem; }
.footer-links a:hover { color: var(--brand-ink); }
.footer-bottom { padding-top: 22px; }
.footer-bottom p { color: var(--faint); font-size: .8rem; margin: 0 0 6px; line-height: 1.65; }

/* ================= 滚动入场 ================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ================= 响应式 ================= */
@media (max-width: 1000px) {
  .grid-3, .grid-5, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-5 .plat:last-child { grid-column: span 2; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--menu-bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px;
    margin-left: 0;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: .95rem; }
  .nav-links .nav-cta { margin: 8px 0 0; justify-content: center; }
  .hero { padding: 60px 0 52px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .section { padding: 58px 0; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-3, .grid-5, .steps { grid-template-columns: 1fr; }
  .grid-5 .plat:last-child { grid-column: auto; }
  .cta-box { padding: 40px 22px; border-radius: 18px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; }
}

/* 尊重系统的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 打印：始终用浅色，省墨且可读 */
@media print {
  :root, :root[data-theme="dark"] {
    --bg: #fff; --bg-soft: #fff; --footer-bg: #fff;
    --text: #111; --text-soft: #333; --muted: #444; --faint: #666;
    --card: #fff; --card-open: #fff; --line: #ddd; --line-strong: #ccc;
    --card-shadow: none; --card-shadow-hover: none;
  }
  body { background: #fff; color: #111; }
  body::before, .hero-glow, .nav, .cta-box { display: none; }
  .faq details { break-inside: avoid; }
}
