/* =========================================================
   Deskflow 中文官网  ·  共享样式表
   品牌母题：三条流动波浪（翠绿 / 青蓝 / 宝蓝）
   风格：扁平 · 现代 · 专业
   ========================================================= */

/* ---------- 设计令牌 ---------- */
:root {
  /* 品牌色（取自 logo 三条波浪） */
  --green: #2FCB8C;
  --teal:  #38B2CE;
  --blue:  #3A5BD0;

  --green-deep: #1FA873;
  --teal-deep:  #1F96B2;
  --blue-deep:  #2749BE;
  --blue-ink:   #1E3A9E;

  /* 主行动色 */
  --primary: #2F54D6;
  --primary-hover: #2443B6;
  --primary-soft: #EAF0FE;
  --green-soft: #E7F8F0;
  --teal-soft:  #E6F5F9;

  /* 中性色 */
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;
  --bg-tint: #EEF4FB;
  --ink: #15263F;
  --ink-2: #33425C;
  --muted: #5C6C84;
  --muted-2: #8292A8;
  --border: #E0E8F3;
  --border-soft: #ECF1F8;

  /* 品牌渐变 */
  --grad-flow: linear-gradient(90deg, #2FCB8C 0%, #38B2CE 48%, #3A5BD0 100%);
  --grad-flow-soft: linear-gradient(120deg, #E7F8F0 0%, #E6F5F9 50%, #EAF0FE 100%);
  --grad-hero: radial-gradient(1100px 480px at 78% -8%, #E9F1FE 0%, rgba(233,241,254,0) 60%),
               radial-gradient(900px 420px at 8% 4%, #E8F7F1 0%, rgba(232,247,241,0) 55%);

  /* 字体 */
  --font-display: 'Space Grotesk', 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Manrope', 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 形状与阴影 */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(21,38,63,.05);
  --shadow-sm: 0 2px 8px -2px rgba(28,58,120,.10);
  --shadow: 0 14px 34px -16px rgba(28,58,120,.22);
  --shadow-lg: 0 30px 70px -28px rgba(28,58,120,.30);

  --container: 1180px;
  --header-h: 72px;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary-hover); }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0 0 0 1.2em; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(58,91,208,.16); }

:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ---------- 布局容器 ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 92px 0; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-tint { background: var(--bg-tint); }
.bg-flow-soft { background: var(--grad-flow-soft); }
.text-center { text-align: center; }

.section-head { max-width: 720px; margin: 0 auto 56px; }
.section-head.text-center { text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--blue-deep);
  background: var(--primary-soft);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.eyebrow.teal { color: var(--teal-deep); background: var(--teal-soft); }
.eyebrow.green { color: var(--green-deep); background: var(--green-soft); }

/* ---------- 品牌标识 ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 32px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand-mark path { fill: none; stroke-width: 5.4; stroke-linecap: round; }
.brand-logo { height: 32px; width: auto; flex: none; display: block; }
.site-footer .brand-logo { height: 30px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: #fff; }
.nav { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left:5vw; }
.nav-links a {
  color: var(--ink-2); font-weight: 500; font-size: 15.5px;
  padding: 9px 14px; border-radius: 9px;
}
.nav-links a:hover { color: var(--primary); background: var(--bg-tint); }
.nav-links a.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-github {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-weight: 600; font-size: 14.5px;
  padding: 9px 12px; border-radius: 10px;
}
.nav-github:hover { background: var(--bg-tint); color: var(--ink); }
.nav-github svg { width: 21px; height: 21px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border);
  background: #fff; border-radius: 11px; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .25s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  padding: 12px 22px; border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .16s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -10px rgba(47,84,214,.6); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-green { background: var(--green-deep); color: #fff; box-shadow: 0 10px 22px -10px rgba(31,168,115,.55); }
.btn-green:hover { background: #1B9466; color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-tint); color: var(--ink); }
.btn-lg { padding: 15px 30px; font-size: 16.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 15px; font-size: 14px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; padding: 84px 0 92px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--border); background: #fff;
  padding: 7px 15px 7px 9px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-xs); margin-bottom: 24px;
}
.hero-badge .tag { background: var(--grad-flow); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; font-family: var(--font-display); }
.hero h1 { font-size: clamp(36px, 4.7vw, 58px); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 22px; }
.hero h1 .grad { background: var(--grad-flow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 18.5px; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; }
.hero-stats .stat .num { font-family: var(--font-display); font-weight: 700; font-size: 27px; color: var(--ink); letter-spacing: -0.02em; }
.hero-stats .stat .num span { color: var(--primary); }
.hero-stats .stat .label { font-size: 13.5px; color: var(--muted); }

.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-chip {
  position: absolute; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 15px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.hero-chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.hero-chip.c1 { top: 22px; left: -18px; }
.hero-chip.c2 { bottom: 26px; right: -16px; }

/* ---------- 平台 / 信任条 ---------- */
.trustbar { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: #fff; }
.trustbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; flex-wrap: wrap; }
.trustbar-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.trustbar-items { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; font-size: 16px; font-family: var(--font-display); }
.trust-item svg { width: 24px; height: 24px; }

/* ---------- 特性卡片 ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D5E0F0; }
.card .icon-tile { margin-bottom: 20px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 14.5px; color: var(--primary); }
.card .card-link svg { width: 15px; height: 15px; transition: transform .18s; }
.card:hover .card-link svg { transform: translateX(3px); }

.icon-tile {
  width: 54px; height: 54px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
}
.icon-tile svg { width: 27px; height: 27px; }
.icon-tile.green { background: var(--green-soft); color: var(--green-deep); }
.icon-tile.teal { background: var(--teal-soft); color: var(--teal-deep); }
.icon-tile.blue { background: var(--primary-soft); color: var(--blue-deep); }

/* 特色大卡（带渐变顶条） */
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 30px; position: relative; overflow: hidden; }
.feature-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-flow); opacity: .9; }
.feature-card h3 { font-size: 21px; display: flex; align-items: center; gap: 12px; }
.feature-card h3 .icon-tile { width: 46px; height: 46px; border-radius: 13px; margin: 0; }
.feature-card p { color: var(--muted); margin-bottom: 0; }
.feature-card ul { list-style: none; padding: 0; margin: 18px 0 0; }
.feature-card ul li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--ink-2); font-size: 15px; }
.feature-card ul li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 14px; height: 8px; border-left: 2.5px solid var(--green-deep); border-bottom: 2.5px solid var(--green-deep);
  transform: rotate(-45deg);
}

/* ---------- 数据统计带 ---------- */
.stats-band { background: var(--blue-ink); position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 15% 0%, rgba(47,203,140,.22), transparent 60%), radial-gradient(700px 300px at 90% 100%, rgba(56,178,206,.2), transparent 60%); }
.stats-inner { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 60px 0; text-align: center; }
.stats-inner .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px,3.6vw,42px); color: #fff; letter-spacing: -0.02em; }
.stats-inner .num em { font-style: normal; color: var(--green); }
.stats-inner .label { color: rgba(255,255,255,.72); font-size: 14.5px; margin-top: 4px; }

/* ---------- 使用场景 ---------- */
.use-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.use-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.use-icon { height: 8px; background: var(--grad-flow); }
.use-body { padding: 28px 26px; }
.use-body .icon-tile { margin-bottom: 16px; }
.use-body h3 { font-size: 19px; margin-bottom: 9px; }
.use-body p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- 工作原理（步骤） ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step .step-num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad-flow);
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }
.step::after {
  content: ""; position: absolute; top: 50px; right: -18px; width: 20px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--muted-2) 0 4px, transparent 4px 8px);
}
.step:last-child::after { display: none; }

/* 流程示意（双机） */
.flow-diagram { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.flow-node { text-align: center; }
.flow-node .box { width: 100%; max-width: 230px; margin: 0 auto 14px; aspect-ratio: 4/3; border: 2px solid var(--border); border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); }
.flow-node .box svg { width: 56px; height: 56px; color: var(--blue); }
.flow-node h4 { font-size: 17px; margin-bottom: 4px; }
.flow-node p { font-size: 13.5px; color: var(--muted); margin: 0; }
.flow-link { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.flow-link svg { width: 90px; height: 40px; }

/* ---------- 图文交错 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.media-right .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.split h2 { font-size: clamp(26px,3vw,36px); margin-bottom: 18px; }
.split .lead { color: var(--muted); font-size: 17px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { display: flex; gap: 13px; margin-bottom: 16px; align-items: flex-start; }
.check-list .ci { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--green-soft); color: var(--green-deep); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.check-list .ci svg { width: 15px; height: 15px; }
.check-list b { display: block; font-size: 16px; color: var(--ink); }
.check-list span { color: var(--muted); font-size: 14.5px; }

/* ---------- 平台支持网格 ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.platform-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 24px; text-align: center; }
.platform-card .pico { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px; background: var(--bg-tint); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.platform-card .pico svg { width: 32px; height: 32px; }
.platform-card h3 { font-size: 19px; }
.platform-card .ver { font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink);
  font-family: var(--font-body);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg); transition: transform .22s; margin-top: -5px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }
.faq-item .faq-a code { background: var(--bg-tint); padding: 2px 7px; border-radius: 6px; font-size: 13.5px; color: var(--blue-deep); font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

/* ---------- 表格 ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: 15px; vertical-align: top; }
thead th { background: var(--bg-soft); font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 14.5px; }
tbody tr:last-child td { border-bottom: none; }
td code, p code, li code { background: var(--bg-tint); padding: 2px 7px; border-radius: 6px; font-size: 13.5px; color: var(--blue-deep); font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; word-break: break-all; }

/* ---------- 代码块 ---------- */
.codeblock { background: #13243D; border-radius: var(--radius); padding: 18px 20px; position: relative; margin: 14px 0; }
.codeblock pre { margin: 0; color: #DCE7F8; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 14px; line-height: 1.7; overflow-x: auto; }
.codeblock .copy-btn { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.1); border: none; color: #cdd9ec; font-size: 12.5px; padding: 5px 11px; border-radius: 8px; }
.codeblock .copy-btn:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- 选项卡 ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.tab-btn { border: none; background: transparent; padding: 12px 20px; font-weight: 600; font-size: 15.5px; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; font-family: var(--font-body); }
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- CTA 区 ---------- */
.cta-band { background: var(--grad-flow); border-radius: var(--radius-xl); padding: 60px 56px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(26px,3.2vw,38px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 17px; max-width: 620px; margin: 0 auto 30px; }
.cta-band .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 14px 30px -12px rgba(0,0,0,.3); }
.cta-band .btn-primary:hover { background: #f3f6ff; color: var(--primary-hover); }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }

/* ---------- 下载弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(18,32,56,.55);
  display: none; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity .22s ease;
}
.modal-overlay.is-open { display: flex; opacity: 1;  left: 0;
  right: 0;
  top: 0;
  bottom: 0;}
  button { outline: none } 
.modal {
  background: #fff; border-radius: var(--radius-xl); width: 100%; max-width: 640px;
  max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.98); transition: transform .24s cubic-bezier(.22,1,.36,1);
}
.modal-overlay.is-open .modal { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 30px 32px 0; }
.modal-head h3 { font-size: 23px; margin-bottom: 6px; }
.modal-head p { color: var(--muted); font-size: 14.5px; margin: 0; }
.modal-close { flex: none; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 20px; line-height: 1; }
.modal-close:hover { background: var(--bg-tint); color: var(--ink); }
.modal-body { padding: 26px 32px 30px; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qr-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 18px; text-align: center; background: var(--bg-soft); }
.qr-box { width: 172px; height: 172px; margin: 0 auto 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.qr-box img, .qr-box canvas { width: 150px !important; height: 150px !important; }
.qr-fallback { width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; text-align: center; }
.qr-card .qr-title { font-weight: 700; font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }
.qr-card .qr-sub { font-size: 12.5px; color: var(--muted); }
.qr-card .qr-code-line { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--blue-deep); background: var(--primary-soft); padding: 3px 10px; border-radius: 7px; font-family: ui-monospace, Menlo, monospace; }
.modal-alt { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--muted); }
.modal-alt a { font-weight: 600; }
.modal-note { margin-top: 16px; background: var(--bg-tint); border-radius: var(--radius); padding: 13px 16px; font-size: 13px; color: var(--ink-2); }
.modal-note b { color: var(--blue-deep); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0F1E38; color: #AEBBD2; padding: 68px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #8FA0BC; font-size: 14px; margin: 18px 0 20px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); color: #cdd9ec; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: #9DAEC8; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom .copy { font-size: 13px; color: #7E90AC; }
.footer-bottom .beian { font-size: 13px; color: #7E90AC; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .beian a { color: #7E90AC; }
.footer-bottom .beian a:hover { color: #fff; }
.footer-disclaimer { font-size: 12.5px; color: #6B7D99; margin-top: 16px; line-height: 1.7; }

/* ---------- 内页头部 / 面包屑 ---------- */
.page-hero { background: var(--bg); position: relative; overflow: hidden; border-bottom: 1px solid var(--border-soft); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); }
.page-hero-inner { position: relative; padding: 66px 0 58px; max-width: 820px; }
.page-hero h1 { font-size: clamp(32px,4vw,48px); letter-spacing: -0.02em; margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: var(--muted); margin: 0; max-width: 660px; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--muted-2); }
.breadcrumb .current { color: var(--ink-2); font-weight: 600; }

/* 文档正文排版 */
.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; background: #fff; }
.doc-toc h4 { font-size: 14px; margin-bottom: 12px; font-family: var(--font-body); }
.doc-toc ul { list-style: none; padding: 0; margin: 0; }
.doc-toc li { margin-bottom: 4px; }
.doc-toc a { display: block; padding: 7px 11px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.doc-toc a:hover { background: var(--bg-tint); color: var(--primary); }
.article h2 { font-size: 28px; margin: 44px 0 16px; padding-top: 10px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 21px; margin: 30px 0 12px; }
.article p, .article li { color: var(--ink-2); font-size: 15.5px; }
.article ul { margin-bottom: 16px; }
.article .callout { border-left: 4px solid var(--blue); background: var(--primary-soft); border-radius: 0 12px 12px 0; padding: 15px 19px; margin: 20px 0; }
.article .callout.green { border-color: var(--green-deep); background: var(--green-soft); }
.article .callout.warn { border-color: #E8A33D; background: #FBF3E2; }
.article .callout p { margin: 0; font-size: 14.5px; }

/* 时间轴 */
.timeline { position: relative; margin: 30px 0; }
.timeline-item { display: grid; grid-template-columns: 150px 30px 1fr; gap: 0 20px; margin-bottom: 6px; }
.timeline-year { text-align: right; font-family: var(--font-display); font-weight: 700; color: var(--blue-deep); font-size: 17px; padding-top: 2px; }
.timeline-axis { position: relative; justify-self: center; }
.timeline-axis::before { content: ""; position: absolute; top: 0; bottom: -22px; left: 50%; width: 2px; background: var(--border); transform: translateX(-50%); }
.timeline-item:last-child .timeline-axis::before { display: none; }
.timeline-dot { position: relative; z-index: 1; width: 15px; height: 15px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--border); margin-top: 5px; }
.timeline-item:nth-child(even) .timeline-dot { background: var(--blue); }
.timeline-content { padding-bottom: 26px; }
.timeline-content h4 { font-size: 17px; margin-bottom: 4px; }
.timeline-content p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* 团队/贡献者 */
.contrib-banner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-flow); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; border: 2px solid #fff; box-shadow: var(--shadow-xs); }

/* Toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 18px);
  background: #15263F; color: #fff; padding: 12px 22px; border-radius: 12px;
  font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; z-index: 120;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 滚动揭示 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
}
@media (max-width: 860px) {
  .nav-links, .nav-github span, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 14px 24px 22px; margin: 0;
    display: none; box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 56px 0 64px; }
  .hero-media { order: -1; }
  .hero-chip.c1 { left: 6px; } .hero-chip.c2 { right: 6px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.media-right .split-media { order: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .flow-diagram { grid-template-columns: 1fr; padding: 28px; }
  .flow-link svg { transform: rotate(90deg); width: 40px; height: 60px; }
  .qr-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 26px; }
  .dl-hero-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .timeline-item { grid-template-columns: 96px 24px 1fr; gap: 0 14px; }
}
@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .grid-4, .steps, .platform-grid, .stats-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 22px; }
  .modal-body, .modal-head { padding-left: 22px; padding-right: 22px; }
}

/* === APPEND MARKER === */
