/* =========================================================
   Oathkey 守钥 · 官网样式
   纯静态、零构建。所有颜色/圆角/阴影集中在 :root。
   ========================================================= */

:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f1f3fb;
  --ink: #14162b;
  --ink-2: #3d4160;
  --muted: #676d8d;
  --line: #e5e8f3;
  --line-strong: #d6dbeb;

  --brand-1: #6d5efc;
  --brand-2: #4f8cff;
  --brand-soft: #eeecff;
  --brand-ink: #4b3cc9;          /* 小字号彩色文字用，对比度更稳 */
  --btn-1: #5a48e8;
  --btn-2: #3563d8;

  --ok: #178a5f;
  --ok-soft: #e4f6ee;
  --warn: #a96a10;
  --warn-soft: #fff4e0;
  --warn-line: #f0d5a4;
  --danger: #c33d57;

  --dark-1: #191a38;
  --dark-2: #2c2355;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --sh-sm: 0 4px 16px rgba(24, 27, 60, .05);
  --sh: 0 18px 46px rgba(24, 27, 60, .08);
  --sh-lg: 0 34px 80px rgba(24, 27, 60, .18);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, "Liberation Mono", monospace;

  --header-h: 72px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
code, kbd { font-family: var(--mono); }
section { scroll-margin-top: calc(var(--header-h) + 16px); }

:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: #dcd7ff; color: var(--ink); }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; }
.icon--tail { width: 16px; height: 16px; margin-left: auto; opacity: .65; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--btn-1); color: #fff; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 14px; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.container--narrow { width: min(860px, calc(100% - 48px)); }

/* ---------- 通用组件 ---------- */
.section { padding: 104px 0; }
.section--tint { background: linear-gradient(180deg, #f2f4fc 0%, #f7f8fc 100%); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.24;
  letter-spacing: -.02em; font-weight: 750; margin: 14px 0 16px;
}
.section-head p { color: var(--muted); font-size: 17px; max-width: 660px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-1); box-shadow: 0 0 0 4px rgba(109, 94, 252, .16); }

.grad-text {
  background: linear-gradient(100deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-weight: 650; font-size: 15px; line-height: 1;
  padding: 13px 22px; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled, button:disabled, input:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover { transform: none; box-shadow: none; }
.btn-sm { padding: 10px 17px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--btn-1), var(--btn-2));
  box-shadow: 0 10px 24px rgba(74, 66, 214, .28);
}
.btn-primary:hover { box-shadow: 0 16px 32px rgba(74, 66, 214, .36); }

.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); box-shadow: var(--sh-sm); }
.btn-outline:hover { border-color: var(--brand-1); color: var(--brand-ink); }

.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

/* 滚动淡入：渐进增强，隐藏类只由 JS 添加，脚本失效时内容照常可见 */
.reveal-pending { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal-pending.is-visible { opacity: 1; transform: none; }

/* =========================================================
   1. 顶部导航
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 248, 252, .78);
  border-bottom: 1px solid transparent;
  transition: background .25s, box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(24, 27, 60, .06);
}
.nav-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 6px 16px rgba(90, 72, 232, .32);
}
.brand-mark .icon { width: 21px; height: 21px; }
.brand-text { font-size: 19px; font-weight: 780; letter-spacing: -.02em; }
.brand-cn { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 8px; letter-spacing: .06em; }

.nav-collapse { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; font-weight: 570; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  border-radius: 2px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  transition: width .22s;
}
.nav a:hover { color: var(--brand-ink); }
.nav a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .24s, opacity .2s; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   2. Hero
   ========================================================= */
.hero { padding: 88px 0 76px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 620px; z-index: -1;
  background: radial-gradient(900px 380px at 78% 22%, rgba(109, 94, 252, .13), transparent 70%),
              radial-gradient(700px 320px at 12% 0%, rgba(79, 140, 255, .10), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 60px; align-items: center; }

.hero-copy h1 {
  font-size: clamp(38px, 4.8vw, 62px); line-height: 1.16;
  letter-spacing: -.035em; font-weight: 800; margin: 22px 0 22px;
}
.hero-sub { color: var(--ink-2); font-size: 17px; line-height: 1.85; max-width: 560px; }
.hero-sub strong { color: var(--ink); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: 13.5px; }
.hero-note .icon { width: 16px; height: 16px; }

/* Hero 深色渐变舞台 */
.hero-stage {
  position: relative; padding: 40px 30px 88px;
  border-radius: 34px;
  background: linear-gradient(150deg, var(--dark-1) 0%, #23204b 48%, var(--dark-2) 100%);
  box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
  isolation: isolate;
}
.stage-glow {
  position: absolute; width: 420px; height: 420px; right: -110px; top: -150px; z-index: -1;
  background: radial-gradient(circle, rgba(109, 94, 252, .55), transparent 66%); filter: blur(8px);
}
.stage-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
.stage-badge {
  position: absolute; left: 16px; bottom: 18px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .96); color: var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}
.stage-badge .icon { width: 24px; height: 24px; color: var(--brand-1); }
.stage-badge strong { display: block; font-size: 13px; line-height: 1.3; }
.stage-badge small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }

/* App 模拟窗口 */
.app-window {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 26px 60px rgba(8, 8, 30, .42);
  transform: rotate(-1.1deg);
  font-size: 13px;
}
.app-titlebar { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-bottom: 1px solid #eef0f7; background: #fbfcff; }
.app-dots { display: flex; gap: 5px; }
.app-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e0e3ee; }
.app-dots i:nth-child(1) { background: #ff7a72; }
.app-dots i:nth-child(2) { background: #ffc454; }
.app-dots i:nth-child(3) { background: #57c98a; }
.app-title { display: flex; align-items: center; gap: 6px; font-weight: 750; font-size: 13px; }
.app-title .icon { width: 16px; height: 16px; color: var(--brand-1); }
.app-tools { margin-left: auto; color: var(--muted); }
.app-tools .icon { width: 16px; height: 16px; }

.app-statusbar { display: flex; gap: 8px; padding: 14px 16px 4px; }
.app-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 650;
}
.app-chip .icon { width: 13px; height: 13px; }
.app-chip .dot { width: 6px; height: 6px; border-radius: 50%; }
.app-chip--ok { background: var(--ok-soft); color: var(--ok); }
.app-chip--ok .dot { background: var(--ok); }
.app-chip--sync { background: var(--brand-soft); color: var(--brand-ink); }
.app-chip--sync .dot { background: var(--brand-1); }

.app-search {
  display: flex; align-items: center; gap: 9px; margin: 10px 16px 6px;
  padding: 9px 12px; border-radius: 11px; background: #f4f6fc;
  color: #959ab4; font-size: 12px; border: 1px solid #eceff8;
}
.app-search .icon { width: 15px; height: 15px; }
.app-search kbd { margin-left: auto; font-size: 10px; padding: 2px 6px; border-radius: 5px; background: #fff; border: 1px solid var(--line); color: #9aa0b8; }

.app-list { padding: 4px 8px 8px; }
.app-row {
  display: grid; grid-template-columns: 34px 1fr auto 40px;
  align-items: center; gap: 11px; padding: 11px 8px;
  border-radius: 12px;
}
.app-row + .app-row { border-top: 1px solid #f0f2f8; }
.avatar {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-weight: 750; font-size: 15px; letter-spacing: -.02em;
}
.avatar--github { background: linear-gradient(140deg, #303444, #16181f); }
.avatar--google { background: linear-gradient(140deg, #5b9bff, #ea4335 92%); }
.avatar--cloudflare { background: linear-gradient(140deg, #ffb44d, #f38020); }
.avatar--aws { background: linear-gradient(140deg, #ffc159, #ec7211); }
.app-meta { min-width: 0; }
.app-meta strong { display: block; font-size: 13px; font-weight: 700; line-height: 1.35; }
.app-meta small { display: block; font-size: 10.5px; color: #9aa0b8; line-height: 1.4; }
.app-code {
  font-family: var(--mono); font-size: 16px; font-weight: 650; letter-spacing: .04em;
  color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.app-ring { width: 38px; height: 38px; transform: rotate(-90deg); }
.app-ring__track { fill: none; stroke: #e9ecf6; stroke-width: 4; }
.app-ring__progress {
  fill: none; stroke: var(--brand-1); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 100.53; stroke-dashoffset: var(--off, 20);
  animation: ringDrain 30s linear infinite;
}
@keyframes ringDrain { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 100.53; } }

.app-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; border-top: 1px solid #eef0f7; background: #fbfcff;
  font-size: 10.5px; color: #9aa0b8;
}
.app-footer span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.app-footer .icon { width: 13px; height: 13px; }

/* =========================================================
   3. 信任条
   ========================================================= */
.trust { padding: 0 0 24px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--sh);
}
.trust-item { display: flex; align-items: center; gap: 14px; padding: 8px 12px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-ico {
  width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-1);
}
.trust-item strong { display: block; font-size: 14.5px; font-weight: 700; }
.trust-item small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* =========================================================
   4. 核心功能
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 30px 28px 26px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--sh); border-color: #dcd8ff; }
.feature-ico {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(140deg, #f0edff, #e8efff); color: var(--brand-1); margin-bottom: 22px;
}
.feature-ico .icon { width: 25px; height: 25px; }
.feature-card h3 { font-size: 18px; font-weight: 720; letter-spacing: -.01em; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.feature-tag {
  display: inline-block; margin-top: 18px; padding: 4px 11px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--brand-ink); font-size: 11.5px; font-weight: 650;
  font-family: var(--mono);
}

/* =========================================================
   5. 本地优先 分栏
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-copy h2 { font-size: clamp(30px, 3.5vw, 43px); line-height: 1.24; letter-spacing: -.02em; font-weight: 770; margin: 16px 0 20px; }
.split-copy > p { color: var(--muted); font-size: 15.5px; line-height: 1.9; margin-bottom: 16px; }
.callout-key {
  display: flex; align-items: center; gap: 11px; margin: 24px 0;
  padding: 15px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--brand-1); box-shadow: var(--sh-sm);
  font-size: 15px;
}
.callout-key .icon { color: var(--brand-1); }
.tick-list { display: grid; gap: 10px; }
.tick-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.tick-list .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }

.vault-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; }
.vault-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #fbfcff; border-bottom: 1px solid var(--line); }
.vault-file { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 650; }
.vault-file .icon { width: 16px; height: 16px; color: var(--brand-1); }
.vault-state { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); }
.vault-state.is-locked { background: var(--surface-2); color: var(--muted); }
.vault-toggle { margin-left: auto; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: #fff; font-size: 12.5px; font-weight: 650; }
.vault-toggle:hover { border-color: var(--brand-1); color: var(--brand-ink); }
.vault-body { padding: 12px 18px 18px; min-height: 178px; }
.vault-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; font-size: 13.5px; font-weight: 600; }
.vault-row + .vault-row { border-top: 1px solid #f0f2f8; }
.vault-row .avatar { width: 27px; height: 27px; border-radius: 8px; font-size: 12px; }
.vault-row code { font-size: 14px; font-weight: 650; letter-spacing: .06em; color: var(--ink-2); }
.vault-note { margin-top: 10px; font-size: 11.5px; color: #9aa0b8; }
.vault-body.is-locked { display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.vault-body.is-locked .lock-big { width: 46px; height: 46px; color: var(--brand-1); }
.vault-body.is-locked strong { font-size: 15px; }
.vault-body.is-locked small { font-size: 12.5px; color: var(--muted); max-width: 240px; }

.vault-flow { display: flex; align-items: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.vault-flow__node { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-ink); font-size: 12px; font-weight: 650; }
.vault-flow__node .icon { width: 14px; height: 14px; }
.vault-flow__node--soft { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.vault-flow__line { flex: 1; min-width: 16px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 5px, transparent 5px 10px); }
.vault-caption { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* =========================================================
   6. 加密流程图 + 威胁模型
   ========================================================= */
.security-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; align-items: start; }
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-sm); }
.flow-legend { display: flex; flex-wrap: wrap; gap: 20px; padding-bottom: 22px; border-bottom: 1px dashed var(--line-strong); margin-bottom: 8px; }
.legend-item { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.legend-line { width: 26px; height: 4px; border-radius: 3px; }
.legend-line--device { background: var(--brand-1); }
.legend-line--server { background: #b9bfd4; }

.flow-chain { display: flex; flex-direction: column; align-items: stretch; padding-top: 12px; }
.flow-node {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px;
  padding: 15px 18px; border-radius: var(--r); border: 1px solid var(--line);
  background: #fcfdff;
}
.flow-node--device { border-left: 4px solid var(--brand-1); }
.flow-node--server { border-left: 4px solid #b9bfd4; background: #f7f8fb; }
.flow-idx { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brand-ink); }
.flow-node--server .flow-idx { color: #7a8099; }
.flow-body strong { display: block; font-size: 14.5px; font-weight: 720; line-height: 1.5; }
.flow-body > span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.65; margin-top: 2px; }
.flow-keys { display: grid; gap: 2px; }
.flow-keys b {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--brand-ink);
  margin-right: 6px;
}
.flow-tag { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.flow-tag--device { background: var(--brand-soft); color: var(--brand-ink); }
.flow-tag--server { background: #e8eaf1; color: #61677f; }

.flow-link { width: 24px; height: 30px; margin-left: 32px; flex: none; }
.flow-link path { fill: none; stroke: var(--brand-1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-link--server path { stroke: #b9bfd4; }
.flow-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; color: #8c92aa; font-size: 11.5px; font-weight: 600; }
.flow-divider::before, .flow-divider::after { content: ""; height: 1px; flex: 1; background: repeating-linear-gradient(90deg, var(--line-strong) 0 5px, transparent 5px 10px); }
.flow-divider span { white-space: nowrap; }
.flow-foot { margin-top: 20px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }

.threat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-sm); }
.threat h3 { font-size: 20px; font-weight: 740; }
.threat-intro { font-size: 13.5px; color: var(--muted); margin: 8px 0 22px; }
.threat-item { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.threat-ico { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-ink); }
.threat-ico .icon { width: 19px; height: 19px; }
.threat-item strong { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.threat-item p { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* =========================================================
   7. 五端支持
   ========================================================= */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.platform-card { padding: 26px 20px; text-align: center; transition: transform .22s, box-shadow .22s; }
.platform-card:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.platform-ico { width: 62px; height: 62px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 18px; background: var(--surface-2); }
.platform-ico svg { width: 44px; height: 44px; }
.platform-card h3 { font-size: 16px; font-weight: 720; margin-bottom: 6px; }
.platform-card p { font-size: 12.5px; color: var(--ink-2); font-family: var(--mono); line-height: 1.6; }
.platform-meta { display: block; margin-top: 12px; font-size: 11.5px; color: var(--muted); }

/* =========================================================
   8. 产品演示（界面示意动画，不含真实计算）
   ========================================================= */
.walk { display: grid; grid-template-columns: .88fr 1.12fr; gap: 28px; align-items: start; }
.walk-steps { display: grid; gap: 10px; }
.walk-step {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%;
  padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.walk-step:hover { border-color: var(--brand-1); }
.walk-step.is-active {
  border-color: var(--brand-1); background: linear-gradient(120deg, #f4f2ff, #f1f6ff);
  box-shadow: 0 6px 22px rgba(109, 94, 252, .12); transform: translateX(4px);
}
.walk-num { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.walk-step.is-active .walk-num { color: var(--brand-ink); }
.walk-copy strong { display: block; font-size: 14.5px; font-weight: 720; }
.walk-copy small { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 3px; }

.walk-stage { min-width: 0; }
.walk-device {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh);
}
.walk-device__bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: linear-gradient(120deg, #f7f6ff, #f2f6ff); border-bottom: 1px solid var(--line);
}
.walk-dots { display: inline-flex; gap: 5px; }
.walk-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d6d9ec; }
.walk-dots i:first-child { background: #f2a9b4; }
.walk-dots i:nth-child(2) { background: #f2d39a; }
.walk-dots i:nth-child(3) { background: #a9dbc2; }
.walk-device__title { flex: 1; font-size: 13px; font-weight: 720; }
.walk-badge {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid #e4e2fb; color: var(--brand-ink);
}
.walk-scenes { position: relative; height: 306px; }
.walk-scene {
  position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 13px;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.walk-scene.is-active { opacity: 1; transform: none; pointer-events: auto; }

.ws-qr { width: 104px; height: 104px; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(20,22,43,.09); }
.ws-qr svg { width: 100%; height: 100%; display: block; }
.ws-hint { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.7; }
.ws-form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ws-form span {
  font-family: var(--mono); font-size: 11.5px; padding: 7px 11px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fbfcff; color: var(--ink-2);
}
.ws-button {
  font-size: 12.5px; font-weight: 700; color: #fff; padding: 9px 20px;
  border-radius: var(--r-pill); background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 5px 14px rgba(109,94,252,.24);
}

.ws-lock {
  width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center;
  background: #eef0ff; color: var(--brand-ink);
  animation: wsPulse 2.6s ease-in-out infinite;
}
.ws-lock .icon { width: 30px; height: 30px; }
@keyframes wsPulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(109,94,252,.16); } 50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(109,94,252,0); } }
.ws-chain { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: center; }
.ws-chain span { font-family: var(--mono); font-size: 11px; padding: 5px 9px; border-radius: 7px; background: var(--bg-tint, #f4f5fb); border: 1px solid var(--line); }
.ws-chain i { font-style: normal; color: var(--brand-1); font-weight: 700; }
.ws-cipher {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: #7a719f;
  background: #f5f3ff; border: 1px dashed #d8d2fb; border-radius: 8px; padding: 10px 14px;
  animation: wsCipher 3.2s steps(2, end) infinite;
}
@keyframes wsCipher { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

.ws-account { display: flex; align-items: center; gap: 11px; width: 100%; max-width: 300px; padding: 10px 12px; border-radius: 12px; background: #fbfcff; border: 1px solid var(--line); }
.ws-avatar { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(140deg, #6d5efc, #4f8cff); color: #fff; font-weight: 700; }
.ws-account b { display: block; font-size: 12.5px; }
.ws-account small { display: block; font-size: 10.5px; color: var(--muted); }
.ws-tag { margin-left: auto; font-size: 10px; color: var(--brand-ink); background: #f0edff; padding: 3px 8px; border-radius: var(--r-pill); }
.ws-code-row { display: flex; align-items: center; gap: 18px; }
.ws-code { font-family: var(--mono); font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: .06em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ws-ring { position: relative; width: 66px; height: 66px; }
.ws-ring svg { width: 66px; height: 66px; transform: rotate(-90deg); }
.ws-ring-track { fill: none; stroke: #e2e4f4; stroke-width: 6; }
.ws-ring-progress { fill: none; stroke: var(--brand-1); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 213.63; animation: wsRing 30s linear infinite; }
@keyframes wsRing { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 213.63; } }
.ws-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--ink-2); }
.ws-copied { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: #126b4b; background: #e8f8f0; padding: 6px 12px; border-radius: var(--r-pill); animation: wsCopied 3s ease-in-out infinite; }
.ws-copied .icon { width: 13px; height: 13px; }
@keyframes wsCopied { 0%,100% { opacity: .55; transform: translateY(2px); } 45%,70% { opacity: 1; transform: none; } }

.ws-sync { position: relative; width: 100%; max-width: 320px; height: 168px; }
.ws-node, .ws-cloud {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 12px; border-radius: 12px; background: #fbfcff; border: 1px solid var(--line-strong);
  font-size: 10px; color: var(--muted);
}
.ws-node .icon, .ws-cloud .icon { width: 18px; height: 18px; color: var(--brand-ink); }
.ws-node:nth-child(1) { left: 0; top: 4px; }
.ws-node:nth-child(2) { left: 0; bottom: 4px; }
.ws-node:nth-child(3) { left: 0; top: 78px; }
.ws-cloud { right: 8px; top: 62px; padding: 14px 18px; background: #f2f0ff; border-color: #ddd7ff; }
.ws-packet { position: absolute; left: 78px; width: 9px; height: 9px; border-radius: 3px; background: var(--brand-1); opacity: 0; }
.ws-packet.p1 { top: 28px; animation: wsFlow 2.4s linear infinite; }
.ws-packet.p2 { top: 88px; animation: wsFlow 2.4s linear .8s infinite; }
.ws-packet.p3 { top: 140px; animation: wsFlow 2.4s linear 1.6s infinite; }
@keyframes wsFlow { 0% { opacity: 0; transform: translateX(0) scale(.7); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(190px) scale(.7); } }

.walk-caption { margin: 14px 0 10px; font-size: 13px; font-weight: 650; color: var(--ink-2); text-align: center; min-height: 20px; }
.walk-progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.walk-progress span { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); }
.walk-progress span.is-running { animation: walkProgress 4.6s linear forwards; }
@keyframes walkProgress { from { width: 0; } to { width: 100%; } }
.walk-disclaimer {
  display: flex; gap: 11px; margin-top: 24px; padding: 16px 18px;
  border-radius: var(--r); background: var(--bg-tint, #f4f5fb); border: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.8; color: var(--ink-2);
}
.walk-disclaimer > .icon { flex: none; width: 18px; height: 18px; color: var(--brand-ink); margin-top: 2px; }

@media (max-width: 900px) {
  .walk { grid-template-columns: 1fr; }
  .walk-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .walk-steps { grid-template-columns: 1fr; }
  .walk-scenes { height: 290px; }
}
@media (prefers-reduced-motion: reduce) {
  .walk-scene, .walk-step, .walk-progress span { transition: none !important; animation: none !important; }
  .ws-lock, .ws-cipher, .ws-ring-progress, .ws-copied, .ws-packet { animation: none !important; }
}

/* =========================================================
   9. 下载
   ========================================================= */
.download-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.btn-download {
  justify-content: flex-start; gap: 10px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r); color: var(--ink); font-weight: 680; font-size: 14px;
  box-shadow: var(--sh-sm);
}
.btn-download > .icon:first-child { color: var(--brand-1); }
.btn-download:hover { border-color: var(--brand-1); color: var(--brand-ink); }
.download-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

.docker { margin-top: 40px; background: var(--dark-1); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); }
.docker-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.09); }
.docker-head > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #fff; }
.docker-head .icon { color: #a99dff; }
.docker-head strong { font-size: 14.5px; }
.docker-head span { font-size: 12.5px; color: #9a9dbd; }
.copy-btn { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: 12.5px; font-weight: 650; }
.copy-btn:hover { background: rgba(255,255,255,.16); }
.copy-btn .icon { width: 14px; height: 14px; }
.code-block { padding: 22px; overflow-x: auto; color: #e6e8ff; font-size: 13px; line-height: 1.9; }
.code-block code { white-space: pre; }
.docker-note { padding: 0 22px 20px; font-size: 12px; color: #8f93b5; line-height: 1.7; }

/* =========================================================
   10. FAQ
   ========================================================= */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); overflow: hidden; }
.faq-item[open] { border-color: #dcd8ff; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font-size: 15.5px; font-weight: 680;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-ink); }
.faq-item summary .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .22s; }
.faq-item[open] summary .icon { transform: rotate(180deg); color: var(--brand-1); }
.faq-answer { padding: 0 22px 20px; border-top: 1px solid var(--line); }
.faq-answer p { padding-top: 16px; color: var(--muted); font-size: 14.5px; line-height: 1.9; }

/* =========================================================
   11. 页脚
   ========================================================= */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 64px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 60px; padding-bottom: 48px; }
.footer-brand p { max-width: 340px; margin: 18px 0; font-size: 13.5px; color: var(--muted); line-height: 1.85; }
.footer-gh { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--brand-ink); }
.footer-gh .icon { width: 17px; height: 17px; }
.footer-gh .icon--tail { width: 13px; height: 13px; margin-left: 0; }
.footer-gh:hover { text-decoration: underline; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-links h3 { font-size: 13px; font-weight: 720; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 13.5px; color: var(--muted); padding: 5px 0; }
.footer-links a:hover { color: var(--brand-ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.footer-motto { font-family: var(--mono); font-size: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 20px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--sh-lg); transition: opacity .22s, transform .22s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-bad { background: var(--danger); }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .hero-grid { gap: 36px; }
  .security-grid { grid-template-columns: 1.2fr 1fr; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .download-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 660px; }
  .hero-sub { max-width: 620px; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split-visual { max-width: 560px; }
  .security-grid { grid-template-columns: 1fr; }
  .threat { display: grid; grid-template-columns: 1fr; }
  .footer-top { gap: 36px; }
}

/* 汉堡菜单断点：768px 平板与 375px 手机都走这里 */
@media (max-width: 860px) {
  .nav-collapse {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 6px;
    margin: 0; padding: 14px 24px 22px;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); box-shadow: var(--sh);
  }
  .nav-collapse.is-open { display: flex; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 12px; }
  .nav-actions .btn { justify-content: center; }
  .nav-toggle { display: flex; margin-left: auto; }
}

@media (max-width: 720px) {
  .container, .container--narrow { width: min(100% - 36px, 1200px); }
  .section { padding: 68px 0; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 14px; }
  .trust-item { padding: 12px 8px; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item + .trust-item { border-left: 0; }
  .trust-item:nth-child(even) { border-left: 1px solid var(--line); }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .flow { padding: 20px; }
  .threat { padding: 22px; }
}

@media (max-width: 420px) {
  :root { --header-h: 64px; }
  .container, .container--narrow { width: calc(100% - 28px); }
  h1 { font-size: 36px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-cta .btn { width: 100%; }
  .hero-stage { padding: 26px 16px 78px; border-radius: 26px; }
  .app-window { transform: none; font-size: 12px; }
  .app-row { grid-template-columns: 28px 1fr auto 32px; gap: 8px; padding: 9px 4px; }
  .app-code { font-size: 13.5px; }
  .app-ring { width: 30px; height: 30px; }
  .app-search kbd { display: none; }
  .stage-badge { left: 10px; bottom: 12px; padding: 8px 12px; }
  .input-row { flex-direction: column; }
  .input-row .btn { width: 100%; }
  .otp-main { gap: 10px; }
  .otp-ring, .otp-ring svg { width: 66px; height: 66px; }
  .otp-ring__num { font-size: 17px; }
  .platform-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .platform-card { padding: 20px 12px; }
  .download-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn-download { padding: 13px 12px; font-size: 13px; gap: 6px; }
  .trust-ico { width: 36px; height: 36px; }
  .trust-item { gap: 9px; }
  .trust-item strong { font-size: 13px; }
  .trust-item small { font-size: 11px; }
  .flow-node { grid-template-columns: 26px 1fr; gap: 10px; padding: 13px; }
  .flow-tag { grid-column: 2; justify-self: start; margin-top: 4px; }
  .flow-link { margin-left: 20px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-pending { opacity: 1 !important; transform: none !important; }
  .app-ring__progress { animation: none; stroke-dashoffset: var(--off, 20); }
  .btn:hover, .feature-card:hover, .platform-card:hover { transform: none; }
}
