/* ==========================================================================
   SyncTool · 官网样式
   纯手写 CSS，无框架、无构建步骤。前端资源全本地化，运行时零外部请求。
   设计语言与 SyncTool 主程序保持一致：蓝紫渐变主色 + 玻璃拟态 + 柔和阴影。
   ========================================================================== */

:root {
  /* 主色沿用主程序的 #4f46e5 → #ec4899，官网多用一点青色来暗示「数据流动」 */
  --brand: #4f46e5;
  --brand-light: #6366f1;
  --brand-dark: #4338ca;
  --accent: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-warm: #f59e0b;
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;

  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-mute: #94a3b8;

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #f1f5f9;
  --line: #e2e8f0;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 4px 20px rgba(15, 23, 42, .07);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .12);
  --shadow-brand: 0 10px 40px rgba(79, 70, 229, .25);

  --max-w: 1180px;
  --nav-h: 68px;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

/* 深色模式：只覆盖变量，组件无需第二套规则 —— 与主程序同一思路 */
[data-theme="dark"] {
  --ink: #f1f5f9;
  --ink-soft: #cbd5e1;
  --ink-mute: #94a3b8;
  --bg: #0b1120;
  --bg-soft: #111827;
  --bg-tint: #1e293b;
  --line: #1e293b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
  --shadow: 0 4px 20px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 锚点跳转时给固定导航栏留出空间，否则标题会被遮住 */
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  /* 系统字体栈，不引入任何 webfont */
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }
code { font-family: var(--mono); font-size: .92em; }

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

/* ─── 导航栏 ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; gap: 24px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--ink); flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
}
.logo-mark svg { width: 19px; height: 19px; }

.nav-links { display: flex; gap: 2px; margin-left: 4px; flex: 1; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; font-size: 14.5px;
  color: var(--ink-soft); font-weight: 500; white-space: nowrap;
}
.nav-links a:hover { color: var(--brand); background: var(--bg-tint); }
.nav-links a.active { color: var(--brand); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink-soft); cursor: pointer;
  display: grid; place-items: center; font-size: 15px;
  transition: border-color .2s, color .2s, transform .15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 17px; height: 17px; }
.nav-toggle { display: none; }

/* ─── 按钮 ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 11px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .25s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 44px rgba(79, 70, 229, .38); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); background: var(--bg-tint); }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 9px; }
.btn svg { width: 16px; height: 16px; }

/* ─── 区块通用 ──────────────────────────────────────────── */
section { padding: 96px 0; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.sec-tag {
  display: inline-block; padding: 5px 14px; margin-bottom: 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
  border-radius: 100px; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
/* 子页面的首个区块用 h1（页面唯一），其余区块用 h2，样式一致 */
.sec-head h2, .sec-head h1 {
  margin: 0 0 14px; font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.25;
}
.sec-head p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.tinted { background: var(--bg-soft); }

.grad {
  background: linear-gradient(120deg, var(--brand), var(--accent) 60%, var(--accent-warm));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 76px) 0 88px;
}
/* 背景光斑：纯 CSS 渐变，不用图片 */
.hero::before,
.hero::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .32; pointer-events: none; z-index: 0;
}
.hero::before {
  width: 620px; height: 620px; top: -260px; left: -180px;
  background: radial-gradient(circle, var(--brand), transparent 70%);
}
.hero::after {
  width: 560px; height: 560px; top: -120px; right: -200px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }

/* ─── 首屏两列：左文案 右看板截图 ────────────────────────
   原来只有左边一栏文字，右边一大片空白。图片放的是项目看板 ——
   首屏就让人看到「装完长什么样」，比再写三行形容词管用。 */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 52px; align-items: center;
}
.hero-shot { position: relative; }
/* img 上的 width/height 属性已经把 1417×946 的比例告诉浏览器了，
   这里只要 height:auto 让它按比例缩放，不裁不拉，界面就不会变形 */
.hero-shot .shot img { display: block; height: auto; }
.hero-shot-cap {
  margin: 14px 0 0; text-align: center;
  font-size: 13px; line-height: 1.6; color: var(--ink-mute);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; margin-bottom: 22px;
  border-radius: 100px; background: var(--bg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13.5px; color: var(--ink-soft);
}
.hero-badge b {
  padding: 2px 8px; border-radius: 100px; font-size: 11.5px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

/* 两列之后左栏只有 ~560px，原来 60px 的字号会把「一个 jar 搞定」挤到第三行 */
.hero h1 {
  margin: 0 0 20px; font-size: clamp(32px, 3.9vw, 47px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.16;
}
.hero-sub {
  margin: 0 0 14px; font-size: clamp(16.5px, 2vw, 19px);
  color: var(--ink-soft); max-width: 720px;
}
.hero-sub strong { color: var(--ink); font-weight: 700; }
.hero-note { margin: 0 0 30px; font-size: 15px; color: var(--ink-mute); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 14px; color: var(--ink-mute);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--ok); flex-shrink: 0; }

/* 数据条 */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 56px; padding: 26px 20px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat-n {
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.2;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-t { font-size: 13.5px; color: var(--ink-mute); margin-top: 2px; }

/* Hero 里的数据流动示意图（纯 CSS/SVG，无图片） */
.flow {
  margin-top: 60px; padding: 30px 24px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
}
.flow-node { text-align: center; }
.flow-node .fn-icon {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 8px 24px rgba(79, 70, 229, .3);
}
.flow-node.tgt .fn-icon {
  background: linear-gradient(135deg, var(--accent-cyan), var(--ok));
  box-shadow: 0 8px 24px rgba(6, 182, 212, .3);
}
.flow-node .fn-icon svg { width: 26px; height: 26px; }
.flow-node b { display: block; font-size: 15px; }
.flow-node small { color: var(--ink-mute); font-size: 12.5px; }
.flow-node .fn-list {
  margin: 10px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.flow-node .fn-list li {
  padding: 3px 9px; border-radius: 7px; font-size: 11.5px;
  background: var(--bg-tint); color: var(--ink-soft); font-family: var(--mono);
}
.flow-pipe { text-align: center; min-width: 150px; }
.flow-pipe .fp-label {
  font-size: 12px; font-weight: 700; color: var(--brand);
  letter-spacing: .3px; margin-bottom: 8px;
}
/* 流动的管道：小圆点沿轨道平移，暗示持续增量 */
.pipe {
  position: relative; height: 6px; border-radius: 100px; overflow: hidden;
  background: var(--bg-tint);
}
.pipe::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--brand), var(--accent), transparent);
  background-size: 55% 100%; background-repeat: no-repeat;
  animation: pipeflow 2.1s linear infinite;
}
@keyframes pipeflow {
  from { background-position: -55% 0; }
  to   { background-position: 155% 0; }
}
.flow-pipe .fp-note { margin-top: 8px; font-size: 12px; color: var(--ink-mute); }

/* ─── 功能卡片 ──────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  padding: 28px 26px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
}
.card-ico {
  width: 46px; height: 46px; margin-bottom: 18px; border-radius: 12px;
  display: grid; place-items: center; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 11%, transparent);
}
.card-ico svg { width: 23px; height: 23px; }
.card h3 { margin: 0 0 10px; font-size: 17.5px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.8px; }
.card p code {
  padding: 1px 5px; border-radius: 5px;
  background: var(--bg-tint); color: var(--brand-dark);
}
[data-theme="dark"] .card p code { color: var(--brand-light); }

/* ─── 预览 Tab ──────────────────────────────────────────── */
.tabs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 34px;
}
.tab {
  padding: 9px 17px; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg);
  color: var(--ink-soft); font-size: 14px; font-weight: 500; font-family: inherit;
  transition: all .2s;
}
.tab:hover { color: var(--brand); border-color: var(--brand); }
.tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff; border-color: transparent; font-weight: 600;
  box-shadow: 0 6px 20px rgba(79, 70, 229, .28);
}

.panel { display: none; }
.panel.active {
  display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center;
  animation: fade .35s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-txt h3 { margin: 0 0 14px; font-size: 23px; font-weight: 700; }
.panel-txt p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15.2px; }
.panel-txt ul { margin: 0; padding-left: 0; list-style: none; }
.panel-txt li {
  position: relative; padding-left: 24px; margin-bottom: 9px;
  font-size: 14.5px; color: var(--ink-soft);
}
.panel-txt li::before {
  content: ''; position: absolute; left: 4px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.shot {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  background: var(--bg-tint);
}
.shot img { width: 100%; }

/* ─── 对比表 ────────────────────────────────────────────── */
.table-scroll {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  position: sticky; top: 0; z-index: 2;
  padding: 14px 16px; text-align: left; white-space: nowrap;
  background: var(--bg-tint); color: var(--ink);
  font-weight: 700; font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
thead th.me { color: var(--brand); }
tbody td {
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--bg-soft); }
tbody th {
  padding: 13px 16px; text-align: left; white-space: nowrap;
  font-weight: 600; color: var(--ink); font-size: 13.8px;
  border-bottom: 1px solid var(--line);
}
td.me, th.me {
  background: color-mix(in srgb, var(--brand) 6%, transparent);
  color: var(--ink); font-weight: 600;
}
tbody tr:hover td.me { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.yes { color: var(--ok); font-weight: 700; }
.mid { color: var(--warn); font-weight: 700; }
.no  { color: var(--bad); font-weight: 700; }
.legend { margin-top: 14px; font-size: 13.5px; color: var(--ink-mute); text-align: center; }

/* 差异点：带序号的大卡片 */
.diffs { display: grid; gap: 18px; margin-top: 48px; }
.diff {
  display: grid; grid-template-columns: 54px 1fr; gap: 20px;
  padding: 26px 28px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: box-shadow .25s, border-color .25s;
}
.diff:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.diff-n {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 18px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 6px 18px rgba(79, 70, 229, .3);
}
.diff h3 { margin: 6px 0 10px; font-size: 18px; font-weight: 700; }
.diff p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.diff p + p { margin-top: 10px; }

/* 「不该用」区块，用暖色调区分，表明这是坦白边界而不是卖点 */
.honest {
  margin-top: 48px; padding: 30px 32px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--warn) 7%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
}
.honest h3 {
  margin: 0 0 8px; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; gap: 9px;
}
.honest > p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14.8px; }
.honest ul { margin: 0; padding-left: 0; list-style: none; }
.honest li {
  padding: 9px 0; font-size: 14.8px; color: var(--ink-soft);
  border-bottom: 1px dashed color-mix(in srgb, var(--warn) 26%, transparent);
}
.honest li:last-child { border-bottom: 0; }
.honest li b { color: var(--ink); }

/* ─── 数据库徽标墙 ──────────────────────────────────────── */
.db-wall { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.db-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 100px;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); font-size: 14.5px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.db-chip:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.db-chip .dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand);
}
.db-chip.cn { border-color: color-mix(in srgb, var(--accent) 34%, transparent); }
.db-chip.cn .dot { background: var(--accent); }
.db-chip.cn::after {
  content: '信创'; padding: 1px 7px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.db-note {
  margin-top: 26px; text-align: center;
  font-size: 14.5px; color: var(--ink-mute);
}
.db-note code {
  padding: 2px 6px; border-radius: 5px;
  background: var(--bg-tint); color: var(--ink-soft);
}

/* ─── 一致性设计（步骤条） ──────────────────────────────── */
.steps { display: grid; gap: 0; counter-reset: st; }
.step {
  position: relative; padding: 0 0 30px 54px; counter-increment: st;
}
.step::before {
  content: counter(st);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 4px 12px rgba(79, 70, 229, .3);
}
/* 竖线连接各步骤，最后一步不画 */
.step::after {
  content: ''; position: absolute; left: 17px; top: 38px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--line), transparent);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h4 { margin: 5px 0 8px; font-size: 16.5px; font-weight: 700; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14.8px; }

/* ─── 代码块 ────────────────────────────────────────────── */
.code {
  position: relative; margin: 0 0 18px;
  background: #0d1424; color: #e2e8f0;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .16);
}
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; background: rgba(148, 163, 184, .08);
  border-bottom: 1px solid rgba(148, 163, 184, .14);
  font-size: 12.5px; color: #94a3b8; font-family: var(--mono);
}
.code pre {
  margin: 0; padding: 16px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.2px; line-height: 1.75;
}
.copy {
  padding: 4px 11px; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(148, 163, 184, .3);
  background: transparent; color: #cbd5e1;
  font-size: 12px; font-family: inherit;
  transition: all .18s;
}
.copy:hover { border-color: var(--brand-light); color: #fff; background: rgba(99, 102, 241, .2); }
.copy.done { border-color: var(--ok); color: var(--ok); }
.code .c { color: #64748b; }  /* 注释 */
.code .k { color: #c084fc; }  /* 关键字 */
.code .s { color: #86efac; }  /* 字符串 */
.code .n { color: #fbbf24; }  /* 数字/值 */

.sub-h {
  margin: 40px 0 16px; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.sub-h:first-child { margin-top: 0; }
.sub-h .badge {
  padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700;
  background: color-mix(in srgb, var(--brand) 13%, transparent); color: var(--brand);
}

.tip {
  padding: 14px 18px; margin: 0 0 18px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--warn) 9%, var(--bg));
  border-left: 3px solid var(--warn);
  font-size: 14.5px; color: var(--ink-soft);
}
.tip b { color: var(--ink); }
.tip.danger {
  background: color-mix(in srgb, var(--bad) 9%, var(--bg));
  border-left-color: var(--bad);
}

/* ─── FAQ ───────────────────────────────────────────────── */
.faq { max-width: 860px; margin: 0 auto; }
.qa {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); margin-bottom: 12px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.qa[open] { border-color: color-mix(in srgb, var(--brand) 38%, var(--line)); box-shadow: var(--shadow-sm); }
.qa summary {
  padding: 17px 22px; cursor: pointer; list-style: none;
  font-size: 15.8px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: color .2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--brand); }
.qa summary::after {
  content: '+'; flex-shrink: 0;
  font-size: 21px; font-weight: 400; color: var(--ink-mute);
  transition: transform .25s;
}
.qa[open] summary::after { content: '−'; color: var(--brand); }
.qa-body {
  padding: 0 22px 20px; color: var(--ink-soft); font-size: 14.8px;
}
.qa-body p { margin: 0 0 10px; }
.qa-body p:last-child { margin-bottom: 0; }
.qa-body code {
  padding: 1px 6px; border-radius: 5px;
  background: var(--bg-tint); color: var(--brand-dark);
}
[data-theme="dark"] .qa-body code { color: var(--brand-light); }

/* ─── CTA ───────────────────────────────────────────────── */
.cta {
  text-align: center; padding: 76px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 45%, var(--accent));
  color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 25% 15%, rgba(255,255,255,.2), transparent 55%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { margin: 0 0 14px; font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.cta p { margin: 0 auto 30px; max-width: 580px; font-size: 16.5px; opacity: .92; }
.cta .btn-white { background: #fff; color: var(--brand-dark); box-shadow: 0 10px 32px rgba(0,0,0,.2); }
.cta .btn-white:hover { color: var(--brand-dark); transform: translateY(-2px); }
.cta .btn-line {
  background: rgba(255,255,255,.13); color: #fff;
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
}
.cta .btn-line:hover { background: rgba(255,255,255,.22); color: #fff; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ─── 页脚 ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 56px 0 28px; margin-top: 96px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px; margin-bottom: 40px;
}
.foot-brand .logo { margin-bottom: 14px; }
.foot-brand p { margin: 0 0 16px; color: var(--ink-mute); font-size: 14.2px; max-width: 320px; }
.foot-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-badges span {
  padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: var(--bg-tint); color: var(--ink-soft);
}
.foot-col h4 {
  margin: 0 0 14px; font-size: 14px; font-weight: 700;
  color: var(--ink); letter-spacing: .2px;
}
.foot-col ul { margin: 0; padding: 0; list-style: none; }
.foot-col li { margin-bottom: 9px; }
.foot-col a, .foot-col button {
  color: var(--ink-mute); font-size: 14.2px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; text-align: left;
}
.foot-col a:hover, .foot-col button:hover { color: var(--brand); }
.foot-btm {
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--ink-mute);
}
.foot-btm a { color: var(--brand); font-weight: 600; }
.foot-btm a:hover { text-decoration: underline; }

/* ─── 联系方式弹窗 ────────────────────────────────────────
   页脚「联系方式」点开的那个浮层，全站就这一个弹窗，样式跟着页脚放，
   不单开文件。用 visibility 而不是 display:none —— display 切换没法做
   过渡，而 visibility:hidden 既能淡入淡出，又能让里面的按钮不被 Tab 聚焦。
   遮罩色写死成深色：深浅两个主题下压暗背景都是对的。 */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .55);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-card {
  position: relative; width: 100%; max-width: 396px;
  padding: 30px 28px 28px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  transform: translateY(10px) scale(.98);
  transition: transform .22s ease;
}
.modal.open .modal-card { transform: none; }
.modal-card h3 { margin: 0 0 7px; font-size: 20px; letter-spacing: -.02em; }
.modal-card > p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-mute); }
.modal-x {
  position: absolute; top: 11px; right: 11px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; border-radius: 9px; cursor: pointer;
  background: none; color: var(--ink-mute);
  font-family: inherit; font-size: 15px; line-height: 1;
  transition: background .2s, color .2s;
}
.modal-x:hover { background: var(--bg-tint); color: var(--ink); }
.modal-x svg { width: 17px; height: 17px; }

/* ─── 子页面面包屑条 ──────────────────────────────────────
   原来这里是一块带标题的横幅，但标题和下面首个区块的标题一模一样，
   同一句话连读两遍。现在只留导航路径，标题交给首个区块的 sec-head，
   页面唯一的 h1 也在那里。只负责把内容顶到固定导航栏下面。 */
.crumb-bar { padding: calc(var(--nav-h) + 26px) 0 0; }
.crumb-bar .crumb { margin-bottom: 0; }
/* 紧跟其后的区块自带 96px 上边距，和面包屑叠起来太空，收一收 */
.crumb-bar + section { padding-top: 46px; }
.crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px; font-size: 13.5px; color: var(--ink-mute);
}
.crumb a { color: var(--ink-mute); }
.crumb a:hover { color: var(--brand); }
.crumb span { opacity: .5; }
.crumb b { color: var(--brand); font-weight: 600; }

/* 「查看全部 →」：首页每个摘要区块底部的出口 */
.more-link { margin-top: 44px; text-align: center; }

/* ─── 赞助页：三个收款码并排 ───────────────────────────────
   整组限宽 —— 铺满 1180px 的话每张码有 290px 高，屏幕上大得突兀，
   而扫码只需要够清晰，不需要够大。 */
.qr-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 700px; margin: 0 auto;
}
.qr-card {
  padding: 18px 16px 16px; text-align: center;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.qr-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}
.qr-title {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-bottom: 12px; font-size: 14.5px; font-weight: 700;
}
.qr-ico {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 12px; color: #fff;
}
.qr-ico.wx  { background: #07c160; }
.qr-ico.ali { background: #1677ff; }
.qr-ico.qq  { background: #12b7f5; }
/* 收款码底色必须是白的：深色模式下贴一张白底图才扫得出来 */
.qr-img {
  aspect-ratio: 1; margin: 0 auto 10px; padding: 7px;
  background: #fff; border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.qr-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-hint { margin: 0; font-size: 12.5px; color: var(--ink-mute); }

/* ─── 赞助页：联系方式 ──────────────────────────────────── */
.contact-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.contact {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg-tint); border-radius: var(--radius-sm);
}
.contact-k { font-size: 13.5px; color: var(--ink-mute); min-width: 62px; }
.contact-v {
  flex: 1; font-family: var(--mono); font-size: 14.5px;
  font-weight: 600; color: var(--ink);
  background: none; padding: 0;
}
.copy-inline {
  padding: 4px 11px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg);
  color: var(--ink-soft); font-size: 12.5px; font-weight: 600;
  font-family: inherit; white-space: nowrap;
  transition: all .2s;
}
.copy-inline:hover { color: var(--brand); border-color: var(--brand); }
.copy-inline.done { color: var(--ok); border-color: var(--ok); }

/* ─── 赞助页：名单统计 + 表格 ───────────────────────────── */
.sponsor-stats {
  display: grid; gap: 16px; margin-bottom: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sp-stat {
  padding: 20px; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sp-n {
  font-size: 27px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sp-t { margin-top: 5px; font-size: 13px; color: var(--ink-mute); }

.sponsor-table td.num, .sponsor-table th.num { text-align: right; }
.sponsor-table .sp-name { font-weight: 600; color: var(--ink); }
.sponsor-table .sp-amt {
  font-family: var(--mono); font-weight: 700;
  color: var(--accent-warm); white-space: nowrap;
}
.sponsor-table .mono { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.sponsor-table .sp-site a {
  font-family: var(--mono); font-size: 13px;
  word-break: break-all;
}
.sponsor-table .sp-site a::after {
  content: '↗'; margin-left: 4px; font-size: 11px; opacity: .55;
}
/* 「展开其余 N 位」按钮：名单超过 15 位才出现，居中贴在表格下面 */
.sp-more { text-align: center; margin-top: 16px; }

/* ─── 视频教程卡片 ──────────────────────────────────────── */
.video-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.video-card {
  display: block; color: inherit; text-decoration: none;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.video-card[href]:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
}
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-tint); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
/* 缩略图压暗一点，播放按钮和角标才压得住底图 */
.video-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, .55), rgba(15, 23, 42, .08));
}
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; z-index: 1;
  background: rgba(255, 255, 255, .92); color: var(--brand);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .3);
  transition: transform .25s, background .25s;
}
.video-play svg { width: 20px; height: 20px; margin-left: 3px; }
.video-card[href]:hover .video-play {
  transform: scale(1.12);
  background: #fff;
}
.video-ep {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 3px 9px; border-radius: 6px;
  background: rgba(15, 23, 42, .62); backdrop-filter: blur(4px);
  color: #fff; font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em;
}
.video-meta { padding: 16px 18px 18px; }
.video-meta h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.video-meta p { margin: 0; font-size: 13.6px; line-height: 1.65; color: var(--ink-mute); }

/* 还没录的：整卡置灰、播放键换成「待录制」、光标不变手型 */
.video-card.is-todo { cursor: default; box-shadow: none; }
.video-card.is-todo .video-thumb img { filter: grayscale(1); opacity: .5; }
.video-card.is-todo .video-play {
  width: auto; height: auto; border-radius: 999px;
  padding: 6px 14px; background: rgba(15, 23, 42, .72); color: #fff;
  box-shadow: none; font-size: 12.5px; font-weight: 600;
}
.video-card.is-todo .video-play svg { display: none; }
.video-card.is-todo .video-play::after { content: '待录制'; }
.video-card.is-todo .video-meta h3 { color: var(--ink-soft); }

/* 名单为空时的占位。空数组是常态（刚上线就是空的），不能留一张空表 */
.empty-state {
  padding: 64px 24px; text-align: center;
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty-ico { font-size: 44px; line-height: 1; margin-bottom: 14px; }
.empty-state h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.empty-state p { margin: 0; font-size: 14.5px; color: var(--ink-mute); }

/* ─── 回到顶部 ──────────────────────────────────────────── */
.top-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, color .2s, border-color .2s;
}
.top-btn.show { opacity: 1; visibility: visible; transform: none; }
.top-btn:hover { color: var(--brand); border-color: var(--brand); }
.top-btn svg { width: 18px; height: 18px; }

/* ─── 滚动进入动画 ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* 尊重「减弱动效」偏好：关掉所有装饰性动画 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ─── 响应式：1024 平板 / 768 手机 ──────────────────────── */
@media (max-width: 1024px) {
  section { padding: 76px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .panel.active { grid-template-columns: 1fr; gap: 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* 平板起把导航菜单收进抽屉，否则 8 个菜单项挤不下 */
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 2px; margin: 0; padding: 12px 16px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; font-size: 15px; }
  .nav-toggle { display: grid; }
  .nav-inner { gap: 12px; justify-content: space-between; }

  /* 三个收款码在平板上并排会挤到扫不动，改两列 + 第三个居中占满 */
  .qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; }
  .qr-card:last-child { grid-column: 1 / -1; max-width: 220px; margin: 0 auto; width: 100%; }

  /* 首屏两列在这个宽度已经挤了，改成上下：文案在上，看板图在下 */
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero h1 { font-size: clamp(32px, 5.6vw, 52px); }  /* 又是整宽，可以放大回来 */
  .hero-shot .shot { max-width: 720px; margin: 0 auto; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .wrap { padding: 0 18px; }
  .hero { padding: calc(var(--nav-h) + 48px) 0 64px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; padding: 24px 16px; }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow-pipe { transform: rotate(90deg); margin: 6px auto; }
  .sec-head { margin-bottom: 40px; }
  .diff { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .cta { padding: 52px 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .hide-sm { display: none; }
  .top-btn { right: 16px; bottom: 16px; }
  .code pre { font-size: 12.4px; }

  .crumb-bar { padding-top: calc(var(--nav-h) + 18px); }
  .crumb-bar + section { padding-top: 34px; }
  .qr-grid { grid-template-columns: 1fr; gap: 16px; max-width: 260px; }
  .qr-card:last-child { grid-column: auto; max-width: none; }
  .qr-card { margin: 0 auto; width: 100%; }
  .video-grid { grid-template-columns: 1fr; gap: 18px; }
  .sponsor-stats { grid-template-columns: 1fr; gap: 12px; }
  .sp-stat { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 14px; }
  .sp-t { margin-top: 0; }
  .empty-state { padding: 44px 20px; }
  .more-link { margin-top: 34px; }
}
