/* ============================================================
   UniMate 官网共享样式（参考 Cherry Studio 官网设计体系）
   白底极简 · 黑色主按钮 · 毛玻璃导航 · 16px 圆角卡片
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --fg: #0a0a0b;
  --fg-soft: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --border: #e4e4e7;
  --border-soft: rgba(0, 0, 0, .06);
  --soft: #f4f4f5;
  --soft-2: #f9f9fb;
  --pink: #F472B6;
  --cyan: #22D3EE;
  --violet: #A78BFA;
  --green: #34d399;
  --orange: #fb923c;
  --blue: #60a5fa;
  /* 品牌主色：对齐 PC 端 --accent（浅色 #2563eb / 深色 #60a5fa） */
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-soft: #eff6ff;
  --brand-ink: #ffffff;
  --radius: 12px;
  --radius-card: 16px;
  --radius-pill: 9999px;
  --nav-h: 64px;
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, .06);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body, button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; }
code, kbd, pre { font-family: var(--mono); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 300;
  padding: 8px 16px;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------------- 导航 ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.is-stuck { border-bottom-color: rgba(0, 0, 0, .08); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
  color: var(--fg);
}
.brand__mark { width: 28px; height: 28px; border-radius: 7px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav__links a {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  color: var(--muted);
  transition: color .2s ease, background-color .2s ease;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a.is-active {
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-soft);
}

.nav__spacer { flex: 1; }

.nav__version {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(244, 244, 245, .6);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
}
.nav__toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform .25s var(--ease), opacity .25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--border);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--fg-soft);
  font-size: 15px;
}
.nav__mobile a:hover { background: var(--soft); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s var(--ease), opacity .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  color: var(--brand-ink);
  background: var(--brand);
  padding: 11px 26px;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .2);
}
.btn--primary:hover {
  background: var(--brand-strong);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
}

.btn--ghost {
  color: var(--fg);
  border-color: var(--border);
  background: transparent;
  padding: 10px 24px;
  font-size: 15px;
}
.btn--ghost:hover {
  color: var(--brand);
  border-color: rgba(37, 99, 235, .4);
  background: var(--brand-soft);
}

.btn--small { padding: 8px 18px; font-size: 13.5px; }
.btn--large { padding: 14px 34px; font-size: 16px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color .2s ease;
}
.text-link:hover { color: var(--brand); }

/* ---------------- 通用区块 ---------------- */
.page-body { padding-top: var(--nav-h); }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16.5px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 26px;
  border: 1px solid rgba(37, 99, 235, .25);
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  font-size: 13px;
  color: var(--brand);
}
.hero__badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .2);
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.16;
}
.hero h1 .wave {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding-bottom: 12px;
  white-space: nowrap;
}
.hero h1 .wave svg {
  position: absolute;
  left: -2%;
  bottom: -10px;
  width: 104%;
  height: 10px;
}
.hero h1 .wave svg path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}
.wave--pink path { stroke: var(--pink); }
.wave--cyan path { stroke: var(--cyan); }
.wave--violet path { stroke: var(--violet); }

.hero__lede {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 17.5px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--faint);
}
.hero__meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

/* Hero 产品预览（Tab 切换） */
.hero__preview { margin-top: 56px; }

.preview-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}
.preview-tabs button {
  padding: 9px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(10, 10, 11, .68);
  transition: background-color .2s ease, color .2s ease;
}
.preview-tabs button:hover { color: var(--fg); }
.preview-tabs button.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.preview-frame {
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: left;
}
.preview-pane { display: none; }
.preview-pane.is-active { display: block; animation: pane-in .35s var(--ease); }
@keyframes pane-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.preview__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--soft-2);
  font-size: 12.5px;
  color: var(--muted);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; }
.window-dots i:nth-child(1) { background: #ff5f57; }
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }
.preview__chrome b { color: var(--fg-soft); font-weight: 600; }
.preview__chrome .spacer { flex: 1; }

/* 工作台预览 */
.ws-body {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 380px;
}
.ws-rail {
  padding: 16px 12px;
  border-right: 1px solid var(--border-soft);
  background: var(--soft-2);
  font-size: 13.5px;
}
.ws-rail__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 10px;
  font-size: 12px;
  color: var(--faint);
}
.ws-project {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--fg-soft);
}
.ws-conv {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 14px;
  border-radius: 8px;
  color: var(--muted);
}
.ws-conv.is-active { background: var(--soft); color: var(--fg); font-weight: 500; }
.ws-conv b {
  margin-left: auto;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  line-height: 17px;
}
.model-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }
.model-dot--claude { background: var(--orange); }
.model-dot--codex { background: var(--green); }
.model-dot--grok { background: var(--blue); }
.project-mark { width: 15px; height: 15px; flex: 0 0 auto; border-radius: 4px; }
.project-mark--blue { background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.project-mark--orange { background: linear-gradient(135deg, var(--orange), var(--pink)); }

.ws-main { display: flex; flex-direction: column; }
.ws-main__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px;
}
.ws-main__title small { color: var(--faint); font-size: 12px; }
.ws-main__title .sync-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--green);
}
.ws-main__title .sync-tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.ws-messages { flex: 1; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.ws-bubble { max-width: 78%; padding: 11px 14px; border-radius: 12px; }
.ws-bubble--user {
  align-self: flex-end;
  background: var(--brand);
  color: #fafafa;
  border-bottom-right-radius: 4px;
}
.ws-bubble--agent {
  align-self: flex-start;
  background: var(--soft-2);
  border: 1px solid var(--border-soft);
  border-bottom-left-radius: 4px;
}
.ws-bubble__label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--faint);
}
.ws-bubble__label span:last-child { margin-left: auto; font-weight: 400; }
.ws-task {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--bg);
  font-size: 12.5px;
}
.ws-task strong { display: block; font-size: 12.5px; color: var(--fg-soft); }
.ws-task small { color: var(--faint); font-family: var(--mono); font-size: 11.5px; }
.ws-task b { margin-left: auto; color: var(--green); font-size: 12px; }
.task-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, .15);
  color: var(--green);
  font-size: 12px;
}
.ws-diff { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.ws-diff span { color: var(--green); }
.ws-diff em { color: #f87171; font-style: normal; }

.ws-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 18px 16px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--faint);
  font-size: 13.5px;
}
.ws-composer kbd {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--soft);
  font-size: 11px;
  color: var(--muted);
}

/* 手机预览 */
.phone-pane { display: flex; justify-content: center; padding: 30px 20px 34px; background: var(--soft-2); }
.phone {
  width: 258px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: var(--bg);
  padding: 16px 14px 18px;
  box-shadow: var(--shadow-card);
}
.phone__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 14px;
}
.phone__avatar {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}
.phone__eyebrow { font-size: 12px; color: var(--faint); margin-bottom: 10px; }
.phone__eyebrow span { color: var(--fg); font-weight: 600; }
.phone__task {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  padding: 11px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  font-size: 12.5px;
}
.phone__task strong { display: block; font-size: 12.5px; }
.phone__task small { color: var(--faint); font-size: 11px; }
.phone__task b { margin-left: auto; color: var(--faint); font-weight: 400; }
.task-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--cyan); }
.task-dot--green { background: var(--green); }
.phone__approval {
  display: flex;
  gap: 10px;
  margin: 14px 0 10px;
  padding: 11px 12px;
  border: 1px solid rgba(251, 146, 60, .4);
  border-radius: 12px;
  background: rgba(251, 146, 60, .08);
  font-size: 12px;
}
.approval-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.phone__approve {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.phone__hint { margin-top: 12px; text-align: center; font-size: 11px; color: var(--faint); }

/* 终端预览 */
.terminal-pane { padding: 0; background: #101014; color: #e4e4e7; font-family: var(--mono); font-size: 13px; }
.terminal-pane .preview__chrome { background: #17171c; border-bottom-color: rgba(255, 255, 255, .08); color: #a1a1aa; }
.terminal-pane .preview__chrome b { color: #fafafa; }
.terminal-body { padding: 20px 22px 24px; min-height: 300px; }
.term-line { display: flex; gap: 10px; padding: 3px 0; }
.term-line--muted { color: #71717a; }
.term-line--success { color: var(--green); }
.term-prompt { color: var(--cyan); flex: 0 0 auto; }
.term-cmd { color: #fafafa; }
.term-state { margin-left: auto; font-size: 11.5px; }
.term-state--running { color: var(--orange); }
.term-rule { height: 1px; margin: 12px 0; background: rgba(255, 255, 255, .08); }

/* ---------------- CLI 横幅 ---------------- */
.cli-band {
  padding: 34px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
}
.cli-band__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 40px;
}
.cli-band__label { font-size: 13px; color: var(--faint); }
.cli-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg-soft);
}

/* ---------------- 功能卡片 ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .7);
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: #d4d4d8;
}
.feature-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  font-size: 19px;
}
.feature-card__icon svg { width: 21px; height: 21px; }
.icon--cyan { background: rgba(34, 211, 238, .14); color: #0891b2; }
.icon--pink { background: rgba(244, 114, 182, .14); color: #db2777; }
.icon--violet { background: rgba(167, 139, 250, .16); color: #7c3aed; }
.icon--green { background: rgba(52, 211, 153, .16); color: #059669; }
.icon--orange { background: rgba(251, 146, 60, .16); color: #ea580c; }
.icon--blue { background: rgba(96, 165, 250, .16); color: #2563eb; }
.feature-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.feature-card p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------------- 数据边界（本地/同步 对比板） ---------------- */
.boundary-board {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.boundary-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--soft-2);
  font-size: 13.5px;
  color: var(--muted);
}
.boundary-board__head b { color: var(--fg); font-weight: 600; }
.boundary-board__tag {
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}
.boundary-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 28px 22px;
}
.boundary-col h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}
.boundary-col h4 i { width: 9px; height: 9px; border-radius: 50%; }
.boundary-col--local h4 i { background: var(--green); }
.boundary-col--sync h4 i { background: var(--blue); }
.boundary-col span {
  display: block;
  margin-bottom: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--soft-2);
  font-size: 13.5px;
  color: var(--fg-soft);
}
.boundary-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-size: 17px;
}
.boundary-board__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--border-soft);
  background: var(--soft-2);
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------------- 三端架构 ---------------- */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.arch-card {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
}
.arch-card__badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
}
.badge--dark { background: var(--brand); color: #fff; }
.badge--cyan { background: rgba(34, 211, 238, .14); color: #0891b2; }
.badge--violet { background: rgba(167, 139, 250, .16); color: #7c3aed; }
.arch-card h3 { font-size: 17px; font-weight: 700; }
.arch-card p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.arch-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.arch-card li {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--fg-soft);
}
.arch-card li::before { content: "·"; color: var(--faint); font-weight: 700; }

/* ---------------- 为什么选择 ---------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 48px;
  max-width: 880px;
  margin: 0 auto;
}
.why-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}
.why-item__num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.9;
}
.why-item strong { display: block; font-size: 15.5px; }
.why-item p { margin-top: 3px; font-size: 13.5px; color: var(--muted); }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  transition: transform .25s var(--ease), background-color .2s ease;
}
.faq-item[open] summary::after { content: "−"; background: var(--brand); color: #fff; }
.faq-item__body {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------------- CTA ---------------- */
.cta { padding: 40px 0 96px; }
.cta__inner {
  position: relative;
  padding: 72px 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0b1a3a 0%, #14295e 60%, #1d4ed8 130%);
  color: #fafafa;
  text-align: center;
  overflow: hidden;
}
.cta__inner::before,
.cta__inner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.cta__inner::before { width: 360px; height: 360px; left: -120px; top: -160px; background: rgba(96, 165, 250, .4); }
.cta__inner::after { width: 320px; height: 320px; right: -100px; bottom: -140px; background: rgba(34, 211, 238, .25); }
.cta__inner > * { position: relative; z-index: 1; }
.cta h2 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.3; }
.cta p { margin-top: 12px; color: #b6c6e8; }
.cta .btn--light {
  margin-top: 30px;
  padding: 13px 34px;
  background: #fff;
  color: var(--fg);
  font-size: 15.5px;
}
.cta .btn--light:hover { opacity: .9; }

/* ---------------- 页脚 ---------------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 52px 0 0;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 44px;
}
.footer__brand p {
  margin-top: 12px;
  max-width: 240px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer__col h4 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--fg);
}
.footer__col a {
  display: block;
  margin-bottom: 9px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color .2s ease;
}
.footer__col a:hover { color: var(--fg); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------------- 下载页 ---------------- */
.page-hero {
  padding: 84px 0 40px;
  text-align: center;
}
.page-hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -.035em;
}
.page-hero p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16.5px;
}
.page-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--faint);
}
.page-hero__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.page-hero__meta button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13.5px;
  color: var(--fg);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-panel {
  max-width: 620px;
  margin: 0 auto;
  padding: 34px 34px 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-soft);
}
.platform-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font-size: 14px;
  color: var(--muted);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.platform-tabs button:hover { color: var(--fg); }
.platform-tabs button.is-active {
  background: var(--bg);
  color: var(--brand);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.platform-tabs svg { width: 15px; height: 15px; }

.download-pane { display: none; }
.download-pane.is-active { display: block; animation: pane-in .3s var(--ease); }
.download-pane__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--soft-2);
  font-size: 27px;
}
.download-pane__icon svg { width: 30px; height: 30px; color: var(--fg-soft); }
.download-pane h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.download-pane__ver { margin-top: 5px; font-size: 13.5px; color: var(--faint); }

.variant-switch {
  display: inline-flex;
  gap: 4px;
  margin: 20px 0 18px;
  padding: 4px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
}
.variant-switch button {
  padding: 6px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 13px;
  color: var(--muted);
}
.variant-switch button.is-active {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.download-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 260px;
  padding: 15px 36px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}
.download-main-btn:hover {
  background: var(--brand-strong);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .32);
}
.download-main-btn:active { transform: scale(.98); }
.download-main-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.download-main-btn svg { width: 17px; height: 17px; }

.download-pane__note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--faint);
}
.download-pane__note[aria-live] { min-height: 1.4em; }

.download-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.download-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
}
.download-status.is-error { color: #dc2626; }
.download-status.is-error .dot { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.download-status button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-extra {
  max-width: 620px;
  margin: 26px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.download-extra__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-soft);
  font-size: 13.5px;
  color: var(--muted);
  text-align: left;
}
.download-extra__card b { color: var(--fg); font-weight: 600; display: block; font-size: 14px; }

.require-table {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.require-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.require-table th, .require-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.require-table th {
  background: var(--soft-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
}
.require-table tr:last-child td { border-bottom: 0; }
.require-table td:first-child { font-weight: 600; white-space: nowrap; }
.require-table td { color: var(--fg-soft); }

/* 更新日志弹窗 */
dialog.changelog {
  width: min(560px, calc(100vw - 48px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .2);
}
dialog.changelog::backdrop { background: rgba(10, 10, 11, .45); backdrop-filter: blur(3px); }
.changelog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.changelog__head h3 { font-size: 18px; font-weight: 700; }
.changelog__close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-size: 15px;
}
.changelog__body { padding: 16px 24px 26px; max-height: 60vh; overflow: auto; }
.changelog__body h4 { margin: 14px 0 6px; font-size: 14px; font-weight: 700; }
.changelog__body h4:first-child { margin-top: 4px; }
.changelog__body li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: var(--muted);
}
.changelog__body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
}

/* ---------------- 文档页 ---------------- */
.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  padding: 44px 0 96px;
}

.docs-nav {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 56px);
  overflow: auto;
  font-size: 14px;
}
.docs-nav__group { margin-bottom: 20px; }
.docs-nav__group > span {
  display: block;
  margin-bottom: 6px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--faint);
}
.docs-nav a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  transition: color .15s ease, background-color .15s ease;
}
.docs-nav a:hover { color: var(--fg); background: var(--soft); }
.docs-nav a.is-active {
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-soft);
}

.docs-content { min-width: 0; }
.docs-content section { padding-top: 8px; margin-bottom: 56px; }

/* 文档加载状态（加载中 / 失败重试） */
.docs-state {
  padding: 56px 0;
  color: var(--muted);
  font-size: 15px;
}
.docs-state .btn { margin-top: 16px; }
.docs-content h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.docs-content .docs-lede { color: var(--muted); font-size: 16px; margin-bottom: 30px; }
.docs-content h2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.docs-content h3 { font-size: 16.5px; font-weight: 700; margin: 26px 0 10px; }
.docs-content p { margin-bottom: 12px; font-size: 15px; color: var(--fg-soft); }
.docs-content p code,
.docs-content li code,
.docs-content td code {
  padding: 2px 7px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 6px;
  background: var(--brand-soft);
  font-size: 13px;
  color: var(--brand-strong);
}
.docs-content ul.doc-list { margin: 0 0 16px; }
.docs-content ul.doc-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--fg-soft);
}
.docs-content ul.doc-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
}
.docs-content ol.doc-steps { margin: 0 0 18px; counter-reset: step; }
.docs-content ol.doc-steps li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--fg-soft);
}
.docs-content ol.doc-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.code-block {
  margin: 14px 0 20px;
  border: 1px solid #27272a;
  border-radius: var(--radius);
  background: #141416;
  overflow: hidden;
}
.code-block__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--mono);
  font-size: 11.5px;
  color: #71717a;
}
.code-block pre {
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  color: #e4e4e7;
}
.code-block .c-comment { color: #71717a; }
.code-block .c-key { color: #7dd3fc; }
.code-block .c-str { color: #86efac; }

.callout {
  display: flex;
  gap: 12px;
  margin: 16px 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 13.5px;
  color: var(--fg-soft);
}
.callout--tip { border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .07); }
.callout--warn { border-color: rgba(251, 146, 60, .45); background: rgba(251, 146, 60, .08); }
.callout__icon { flex: 0 0 auto; font-size: 15px; line-height: 1.5; }

.docs-table {
  width: 100%;
  margin: 14px 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 14px;
}
.docs-table th, .docs-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.docs-table th { background: var(--soft-2); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.docs-table tr:last-child td { border-bottom: 0; }

/* ---------------- 富文本正文：兼容富文本编辑器 / Markdown 输出的原生通用标签 ---------------- */
.docs-content section {
  color: var(--fg-soft);
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: break-word;
}
.docs-content section p { margin: 0 0 14px; font-size: 15px; }

/* 标题层级：兜底 h4–h6（富文本编辑器常产出小标题） */
.docs-content section h4 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; }
.docs-content section h5 { font-size: 16px; font-weight: 700; margin: 22px 0 9px; }
.docs-content section h6 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 8px;
}

/* 强调文字 */
.docs-content section strong { color: var(--fg); font-weight: 600; }
.docs-content section mark {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(52, 211, 153, .18);
  color: inherit;
}

/* 链接 */
.docs-content section a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(37, 99, 235, .35);
}
.docs-content section a:hover { color: var(--brand-strong); text-decoration-color: currentColor; }

/* 行内代码：统一覆盖段落、列表、单元格、表头、链接、标题里的裸 code */
.docs-content section :not(pre) > code {
  padding: 2px 7px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 6px;
  background: var(--brand-soft);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand-strong);
}

/* 键盘键 */
.docs-content section kbd {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-soft);
}

/* 通用无序 / 有序列表（原生标签，含嵌套）；不影响已有的 .doc-list / .doc-steps */
.docs-content section ul:not(.doc-list),
.docs-content section ol:not(.doc-steps) {
  margin: 0 0 16px;
  padding-left: 24px;
  font-size: 15px;
  color: var(--fg-soft);
}
.docs-content section ul:not(.doc-list) li,
.docs-content section ol:not(.doc-steps) li { margin-bottom: 6px; }
.docs-content section ul:not(.doc-list) > li > ul { margin-bottom: 6px; }

/* 任务列表（Markdown / 部分编辑器产出 <input type=checkbox>） */
.docs-content section li input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0 6px 0 -2px;
  vertical-align: -2px;
  accent-color: var(--brand);
}

/* 引用块 */
.docs-content section blockquote {
  margin: 16px 0 20px;
  padding: 2px 30px 2px 18px;
  border-left: 3px solid var(--brand);
  color: var(--muted);
}
.docs-content section blockquote p { color: var(--muted); margin-bottom: 8px; }
.docs-content section blockquote p:last-child { margin-bottom: 0; }

/* 代码块：无 .code-block 外壳时的裸 <pre> / <pre><code> 兜底 */
.docs-content section pre {
  margin: 14px 0 20px;
  padding: 14px 16px;
  border: 1px solid #27272a;
  border-radius: var(--radius);
  background: #141416;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #e4e4e7;
}
.docs-content section pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
  color: inherit;
}
.docs-content section pre ::selection { background: rgba(125, 211, 252, .25); }

/* 原生表格兜底（横向可滚动，不影响已有的 .docs-table） */
.docs-content section table:not(.docs-table) {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 14px 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow-x: auto;
  font-size: 14px;
}
.docs-content section table:not(.docs-table) th,
.docs-content section table:not(.docs-table) td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
}
.docs-content section table:not(.docs-table) th { background: var(--soft-2); font-weight: 600; color: var(--muted); }
.docs-content section table:not(.docs-table) tr:last-child td { border-bottom: 0; }
.docs-content section table:not(.docs-table) th:last-child,
.docs-content section table:not(.docs-table) td:last-child { border-right: 0; }

/* 图片：限制宽度、圆角、去除默认边框 */
.docs-content section img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border-radius: var(--radius);
}
.docs-content section img[align="left"] { margin-right: 16px; }
.docs-content section img[align="right"] { margin-left: 16px; }

/* 分隔线 */
.docs-content section hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

/* ---------------- 入场动画 ---------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .preview-pane.is-active, .download-pane.is-active { animation: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links, .nav__version { display: none; }
  .nav__toggle { display: flex; }
  .docs-layout { grid-template-columns: 1fr; gap: 28px; }
  .docs-nav {
    position: static;
    max-height: none;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
  }
  .ws-body { grid-template-columns: 1fr; }
  .ws-rail { display: none; }
  .boundary-cols { grid-template-columns: 1fr; }
  .boundary-arrow { transform: rotate(90deg); margin: 0 auto; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cta__inner { padding: 52px 26px; }
  .cta h2 { font-size: 26px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .page-hero h1 { font-size: 32px; }
  .download-panel { padding: 26px 18px 30px; }
  .require-table { overflow-x: auto; }
}
