/* ==========================================================================
   聚合支付平台 · 全站样式
   设计方向：金融科技 · 稳重现代（Light）
   ========================================================================== */

:root {
  /* --- 色彩 --- */
  --ink: #0A1224;
  --ink-2: #17223C;
  --text: #33405C;
  --muted: #6B7893;
  --line: #E3E8F2;
  --line-2: #EEF1F8;

  --bg: #FFFFFF;
  --bg-soft: #F5F7FC;
  --bg-soft-2: #EEF2FB;

  --brand: #1B4DF5;
  --brand-deep: #0B2A8A;
  --brand-ink: #0A1E5C;
  --brand-soft: #E9EFFF;
  --brand-soft-2: #D7E1FF;

  --accent: #00A97F;
  --accent-soft: #E4F7F1;
  --warn: #F2621B;
  --warn-soft: #FFF0E7;

  /* --- 字体 --- */
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
          system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* --- 字号阶梯 --- */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 17px;
  --fs-lg: 20px;
  --fs-xl: 26px;
  --fs-2xl: 34px;
  --fs-3xl: 46px;

  /* --- 间距 --- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 88px;

  /* --- 圆角 / 阴影 --- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(10, 18, 36, .05), 0 6px 18px -10px rgba(10, 18, 36, .14);
  --shadow-md: 0 2px 4px rgba(10, 18, 36, .05), 0 18px 44px -22px rgba(10, 18, 36, .22);
  --shadow-lg: 0 30px 80px -40px rgba(11, 42, 138, .45);

  --dur: .35s;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --maxw: 1180px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-deep); }
h1, h2, h3, h4, h5 {
  margin: 0 0 var(--sp-3);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.01em;
}
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
li { margin-bottom: var(--sp-2); }
b, strong { color: var(--ink-2); font-weight: 700; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* --- 布局工具 --- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-5); }
.section { padding: var(--sp-9) 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: var(--sp-7) 0; }
.grid { display: grid; gap: var(--sp-5); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --- 眉标 / 章节头 --- */
.kicker {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
  margin-bottom: var(--sp-3);
}
.kicker::before {
  content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px;
}
.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.section-head p { color: var(--muted); font-size: var(--fs-md); margin-bottom: 0; }

/* --- 顶部欢迎条 --- */
.topbar {
  background: var(--ink);
  color: #C6CFE4;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: 40px; padding-top: 6px; padding-bottom: 6px;
}
.topbar b { color: #fff; font-weight: 600; }
.topbar .topbar-right { display: flex; align-items: center; gap: var(--sp-4); color: #93A0BC; }
.topbar a { color: #C6CFE4; }
.topbar a:hover { color: #fff; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 6px; }

/* --- 导航 --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: var(--sp-6); min-height: 72px; }
.logo { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--brand) 0%, #2E6BFF 45%, var(--accent) 130%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px -6px rgba(27, 77, 245, .7);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: var(--fs-md); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.logo-slogan { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.logo-slogan b { color: var(--brand); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: var(--sp-5); margin-left: auto; }
.nav-links a {
  font-size: var(--fs-base); color: var(--ink-2); font-weight: 500;
  padding: 6px 2px; position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brand); border-radius: 2px; transition: right var(--dur) var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 8px 10px; color: var(--ink);
}

/* --- 按钮 --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: var(--fs-base); font-weight: 600; line-height: 1;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #2E6BFF 100%);
  color: #fff; box-shadow: 0 10px 26px -12px rgba(27, 77, 245, .85);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(27, 77, 245, .9); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand-soft-2); background: var(--brand-soft); }
.btn-sm { padding: 10px 18px; font-size: var(--fs-sm); }
.btn-lg { padding: 16px 34px; font-size: var(--fs-md); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% -8%, rgba(27, 77, 245, .12), transparent 62%),
    radial-gradient(700px 380px at 8% 4%, rgba(0, 169, 127, .10), transparent 60%),
    linear-gradient(180deg, #FAFBFF 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: var(--sp-7); align-items: center; }
.hero h1 { font-size: var(--fs-3xl); line-height: 1.24; letter-spacing: -.02em; margin-bottom: var(--sp-4); }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand) 10%, #2E6BFF 55%, var(--accent) 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: var(--fs-md); color: var(--text); max-width: 560px; margin-bottom: var(--sp-5); }
.hero-sub b { color: var(--ink); }
.hero-bullets { list-style: none; padding: 0; margin: 0 0 var(--sp-6); display: grid; gap: 10px; }
.hero-bullets li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: var(--fs-base); }
.hero-bullets .tick {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.hero-figure { position: relative; }
.hero-figure .frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 10px; overflow: hidden;
}
.hero-figure img { border-radius: var(--r-lg); width: 100%; height: auto; }
.hero-badge {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 10px 14px; font-size: var(--fs-xs); color: var(--muted);
  display: flex; align-items: center; gap: 10px; z-index: 2;
}
.hero-badge b { display: block; font-size: var(--fs-md); color: var(--ink); line-height: 1.2; }
.hero-badge.ba-1 { left: -18px; bottom: 54px; }
.hero-badge.ba-2 { right: -14px; top: -16px; }
.hero-badge .ico {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 800;
}

/* --- 数据条 --- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); margin-top: var(--sp-7); padding-top: var(--sp-6);
  gap: var(--sp-4);
}
.stats .stat { padding-right: var(--sp-4); border-right: 1px dashed var(--line); }
.stats .stat:last-child { border-right: 0; }
.stat-num { font-size: var(--fs-xl); font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.stat-num span:last-child { font-size: var(--fs-md); color: var(--brand); font-weight: 700; }
.stat-label { font-size: var(--fs-sm); color: var(--muted); }

/* --- 通道条 --- */
.channel-strip { background: #fff; border-bottom: 1px solid var(--line); padding: var(--sp-5) 0; }
.channel-strip .wrap { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.channel-strip .label { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
}
.chip i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* --- 卡片 --- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-soft-2); }
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--brand); }
.card p { color: var(--muted); font-size: var(--fs-base); margin-bottom: 0; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--r-md); margin-bottom: var(--sp-4);
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-soft-2);
}
.card-icon.teal { background: var(--accent-soft); color: var(--accent); border-color: #C9EEE2; }
.card-icon.warm { background: var(--warn-soft); color: var(--warn); border-color: #FFDCC7; }
.card-num {
  font-family: var(--mono); font-size: var(--fs-xs); color: var(--brand);
  letter-spacing: .12em; font-weight: 700; margin-bottom: var(--sp-3); display: block;
}

/* --- 产品矩阵（大卡片） --- */
.product-card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); overflow: hidden; position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card:hover::before { transform: scaleX(1); }
.product-card h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-1); }
.product-card p { color: var(--muted); margin-bottom: var(--sp-2); }
.product-card .pc-img { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-soft); }
.product-card .pc-link { font-weight: 600; font-size: var(--fs-base); display: inline-flex; align-items: center; gap: 6px; }
.product-card .pc-link::after { content: "→"; transition: transform var(--dur) var(--ease); }
.product-card:hover .pc-link::after { transform: translateX(4px); }

/* --- 表格 --- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
table.price { width: 100%; border-collapse: collapse; min-width: 680px; font-size: var(--fs-base); }
table.price caption { text-align: left; padding: var(--sp-4) var(--sp-5); font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
table.price th, table.price td { padding: 15px var(--sp-5); text-align: left; border-bottom: 1px solid var(--line-2); }
table.price thead th { background: var(--bg-soft); font-size: var(--fs-sm); color: var(--muted); font-weight: 600; letter-spacing: .02em; }
table.price tbody tr:last-child td { border-bottom: 0; }
table.price tbody tr:hover { background: #FAFBFF; }
table.price td b { color: var(--ink); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; }
.tag-hot { background: var(--warn-soft); color: var(--warn); }
.tag-ok { background: var(--accent-soft); color: var(--accent); }
.tag-blue { background: var(--brand-soft); color: var(--brand); }

/* --- 流程步骤 --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); counter-reset: step; position: relative; }
.step { position: relative; padding-top: var(--sp-5); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700;
  color: var(--brand); letter-spacing: .1em;
}
.step::after {
  content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--brand-soft-2), var(--line));
}
.step:last-child::after { display: none; }
.step h3 { font-size: var(--fs-md); margin: var(--sp-3) 0 var(--sp-2); }
.step p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* --- 数据看板 --- */
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
.dash-list { display: grid; gap: var(--sp-4); }
.dash-item { display: grid; gap: 6px; }
.dash-item .top { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.dash-item .top span:last-child { color: var(--muted); font-family: var(--mono); font-size: var(--fs-xs); }
.bar { height: 8px; background: var(--bg-soft-2); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #3D7BFF); }
.bar > i.teal { background: linear-gradient(90deg, var(--accent), #35D0AA); }
.bar > i.warm { background: linear-gradient(90deg, var(--warn), #FFA26B); }

/* --- 场景 --- */
.scene {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.scene:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.scene .thumb { background: linear-gradient(160deg, #F2F6FF, #EAF7F3); border-bottom: 1px solid var(--line-2); }
.scene .body { padding: var(--sp-5); flex: 1; }
.scene h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.scene p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* --- FAQ --- */
.faq { display: grid; gap: var(--sp-3); }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0 var(--sp-5); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq details[open] { border-color: var(--brand-soft-2); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--sp-4) 0;
  font-weight: 600; color: var(--ink); font-size: var(--fs-base);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 20px; color: var(--brand); font-weight: 400;
  transition: transform var(--dur) var(--ease); flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 0 var(--sp-5); color: var(--text); font-size: var(--fs-base); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* --- 评价 --- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5) var(--sp-5); position: relative;
}
.quote::before {
  content: "“"; position: absolute; top: 4px; left: 18px;
  font-size: 52px; line-height: 1; color: var(--brand-soft-2); font-family: Georgia, serif;
}
.quote p { position: relative; font-size: var(--fs-base); color: var(--ink-2); margin-bottom: var(--sp-4); }
.quote footer { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--muted); }
.quote .avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: var(--fs-sm);
}
.quote footer b { display: block; color: var(--ink); font-size: var(--fs-sm); }

/* --- 文章列表 --- */
.post-list { display: grid; gap: var(--sp-4); }
.post {
  display: grid; grid-template-columns: 96px 1fr auto; gap: var(--sp-5);
  align-items: center; padding: var(--sp-4) var(--sp-5);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.post:hover { border-color: var(--brand-soft-2); box-shadow: var(--shadow-sm); }
.post .date { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.post h3 { font-size: var(--fs-md); margin: 0 0 4px; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--brand); }
.post p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.post .go { font-size: var(--fs-sm); color: var(--brand); font-weight: 600; white-space: nowrap; }

/* --- CTA 横幅 --- */
.cta-band {
  background: linear-gradient(120deg, #0A1E5C 0%, #1533A8 48%, #0B6F63 120%);
  border-radius: var(--r-xl); padding: var(--sp-7) var(--sp-7);
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-6); align-items: center;
  color: #fff; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 88% 20%, rgba(255,255,255,.16), transparent 42%);
}
.cta-band h2 { color: #fff; font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.cta-band p { color: #C9D6F5; margin: 0; font-size: var(--fs-base); }
.cta-band .btn-ghost { background: #fff; border-color: #fff; color: #0A1E5C; }
.cta-band .btn-ghost:hover { background: #EEF2FF; color: #0A1E5C; }
.cta-band .btn-primary { box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .5); }

/* --- 面包屑 --- */
.crumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: var(--sp-4) 0; font-size: var(--fs-sm); color: var(--muted); }
.crumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumb li { margin: 0; }
.crumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }

/* --- 页头（栏目页） --- */
.page-hero {
  background:
    radial-gradient(700px 320px at 88% -20%, rgba(27, 77, 245, .12), transparent 60%),
    linear-gradient(180deg, #FAFBFF, #fff);
  border-bottom: 1px solid var(--line); padding: var(--sp-8) 0;
}
.page-hero h1 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); max-width: 760px; }
.page-hero .lede { font-size: var(--fs-md); color: var(--text); max-width: 720px; margin-bottom: 0; }
.page-hero .meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.page-hero .meta span {
  font-size: var(--fs-xs); color: var(--muted); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}

/* --- 正文排版 --- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-7); align-items: start; }
.prose { max-width: 780px; min-width: 0; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); padding-top: var(--sp-2); scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--sp-6); scroll-margin-top: 90px; }
.prose p { font-size: var(--fs-md); line-height: 1.85; }
.prose code {
  font-family: var(--mono); font-size: .92em; background: var(--bg-soft-2);
  color: var(--brand-deep); border-radius: 5px; padding: 2px 6px;
}
.prose ul, .prose ol { font-size: var(--fs-md); line-height: 1.85; }
.prose figure { margin: var(--sp-6) 0; }
.prose figure img { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); }
.prose figcaption { font-size: var(--fs-sm); color: var(--muted); text-align: center; margin-top: var(--sp-3); }
.prose blockquote {
  margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--brand); background: var(--brand-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.note {
  border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5); font-size: var(--fs-base); margin: var(--sp-5) 0;
}
.note b { color: var(--brand-deep); }
.note.warn { background: var(--warn-soft); border-color: #FFDCC7; }
.note.warn b { color: var(--warn); }
pre.code {
  background: #0B1220; color: #D6E1FF; border-radius: var(--r-md);
  padding: var(--sp-5); overflow-x: auto; font-family: var(--mono);
  font-size: var(--fs-sm); line-height: 1.7; margin: var(--sp-5) 0;
}
pre.code .c { color: #7C8DB5; }

/* --- 侧栏 --- */
.side { display: grid; gap: var(--sp-5); position: sticky; top: 92px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); }
.side-card h2, .side-card h3 { font-size: var(--fs-base); margin-bottom: var(--sp-3); }
.side-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.side-card li { margin: 0; font-size: var(--fs-sm); line-height: 1.5; }
.side-card li a { color: var(--text); }
.side-card li a:hover { color: var(--brand); }
.side-card .side-num { font-family: var(--mono); color: #A8BAF0; margin-right: 8px; font-weight: 700; }
.side-cta { background: linear-gradient(150deg, #0A1E5C, #1533A8); color: #fff; border: 0; }
.side-cta h3 { color: #fff; }
.side-cta p { color: #C9D6F5; font-size: var(--fs-sm); }
.side-cta .btn { width: 100%; }

/* --- 页脚 --- */
.footer { background: var(--ink); color: #93A0BC; font-size: var(--fs-sm); padding: var(--sp-8) 0 var(--sp-5); }
.footer a { color: #B9C4DC; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--sp-6); padding-bottom: var(--sp-6); border-bottom: 1px solid #1E2A45; }
.footer h3 { color: #fff; font-size: var(--fs-sm); margin-bottom: var(--sp-4); letter-spacing: .06em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer li { margin: 0; font-size: var(--fs-sm); line-height: 1.5; }
.footer .fbrand { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-3); }
.footer .fbrand .logo-name { color: #fff; }
.footer .fdesc { font-size: var(--fs-sm); line-height: 1.8; max-width: 320px; color: #8391B0; }
.footer .fcontact { margin-top: var(--sp-4); font-size: var(--fs-sm); color: #8391B0; }
.footer .fcontact b { color: #fff; font-size: var(--fs-lg); font-family: var(--mono); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  padding-top: var(--sp-5); font-size: var(--fs-xs); color: #6B7893;
}
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.kw-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-4); }
.kw-cloud a {
  font-size: var(--fs-xs); color: #8391B0; border: 1px solid #1E2A45;
  border-radius: 999px; padding: 3px 11px;
}
.kw-cloud a:hover { color: #fff; border-color: #33405C; }

/* --- 滚动入场 --- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* --- 响应式 --- */
@media (max-width: 1024px) {
  :root { --fs-3xl: 38px; --fs-2xl: 28px; --fs-9: 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-badge.ba-1 { left: 8px; bottom: 12px; }
  .hero-badge.ba-2 { display: none; }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-6); }
  .dash { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: var(--sp-3) var(--sp-5) var(--sp-4); box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 768px) {
  :root { --fs-3xl: 32px; --fs-2xl: 24px; --fs-xl: 21px; --sp-9: 56px; --sp-8: 44px; }
  .topbar .topbar-right { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
  .stats .stat { border-right: 0; padding-right: 0; }
  .g3, .g2, .g4 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: var(--sp-6) var(--sp-5); }
  .post { grid-template-columns: 1fr; gap: var(--sp-2); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .prose h2 { font-size: var(--fs-lg); }
  .prose h3 { font-size: var(--fs-md); }
}
@media (max-width: 420px) {
  .wrap { padding: 0 var(--sp-4); }
  .hero h1 { font-size: 28px; }
  .hero-badge { display: none; }
  .btn-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
