/* ==========================================================================
   CodeChat 官网样式
   设计语言：浅色 slate 底 + 品牌蓝渐变（与 App 图标同源），大留白、轻阴影、1px 分层
   ========================================================================== */

:root {
  --brand: #1677ff;
  --brand-deep: #0b5ce6;
  --brand-soft: #e8f1ff;
  --grad: linear-gradient(135deg, #3f9bff 0%, #1677ff 55%, #0b5ce6 100%);

  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;

  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;

  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 2px 8px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, 0.06), 0 24px 64px rgba(15, 23, 42, 0.12);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.only-desktop { display: inline; }

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 2px 6px rgba(22, 119, 255, 0.28), 0 8px 24px rgba(22, 119, 255, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(22, 119, 255, 0.32), 0 14px 36px rgba(22, 119, 255, 0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; border-radius: 14px; }
.btn:not(.btn-sm):not(.btn-lg) { padding: 12px 24px; font-size: 15px; }

.btn[aria-disabled="true"] {
  background: var(--surface-2);
  color: var(--text-3);
  box-shadow: none;
  border: 1px solid var(--line);
  cursor: default;
  pointer-events: none;
}

/* ==========================================================================
   导航
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.72);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 68px;
}

.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 34px; height: 34px; border-radius: 9px; }
.nav-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: 8px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
}
.nav-burger span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(120px, 16vh, 176px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow-a {
  width: 560px; height: 560px;
  top: -180px; right: -80px;
  background: radial-gradient(circle, rgba(22, 119, 255, 0.14), transparent 65%);
}
.hero-glow-b {
  width: 480px; height: 480px;
  bottom: -220px; left: -140px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 65%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 26px;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.hero-badge:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}

.hero-title {
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-platform-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-3);
}
.hero-platform-icons > span { display: inline-flex; }
.hero-platform-note { font-size: 13px; letter-spacing: 0.02em; }

/* ---- Hero mockup ---- */
.hero-visual { position: relative; }

.mock-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-dot.red { background: #ff5f57; }
.mock-dot.yellow { background: #febc2e; }
.mock-dot.green { background: #28c840; }
.mock-title {
  margin: 0 auto;
  transform: translateX(-18px);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
}

.mock-body { display: grid; grid-template-columns: 72px 1fr; min-height: 380px; }

.mock-sidebar {
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-conv {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
}
.mock-conv.active { background: var(--brand-soft); }
.mock-conv-lines { display: none; }

.mock-avatar {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.mock-avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.grad-a { background: linear-gradient(135deg, #f59e0b, #f97316); }
.grad-b { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.grad-c { background: linear-gradient(135deg, #10b981, #059669); }

.mock-chat {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(circle at 85% 10%, rgba(22, 119, 255, 0.04), transparent 40%),
    var(--surface);
}

.mock-msg { display: flex; align-items: flex-end; gap: 8px; }
.mock-msg.out { justify-content: flex-end; }

.mock-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}
.mock-bubble.me {
  background: var(--grad);
  border: none;
  color: #fff;
  border-radius: 16px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.25);
}
.mock-bubble.bot { border-color: rgba(139, 92, 246, 0.3); background: #faf8ff; }
.mock-bot-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.12);
  padding: 1px 7px;
  border-radius: 6px;
  margin-right: 6px;
  vertical-align: 1px;
}
.mock-bubble.lock {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  background: #f0fdf4;
  border-color: rgba(34, 197, 94, 0.25);
  font-size: 12.5px;
}
.mock-bubble.lock svg { color: #16a34a; }

.mock-input {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.mock-input i {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
}
.mock-send {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--grad);
  position: relative;
}
.mock-send::after {
  content: "";
  position: absolute;
  inset: 8px 9px 8px 10px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 18% 50%);
}

/* ---- 浮动小卡 ---- */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  animation: floaty 5.5s ease-in-out infinite;
}
.float-card b { display: block; font-size: 13px; line-height: 1.3; }
.float-card small { font-size: 11.5px; color: var(--text-3); }
.float-card-a { top: 6%; right: -18px; }
.float-card-b { bottom: 9%; left: -26px; animation-delay: -2.6s; }

.float-ic {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.float-ic.ok { background: #dcfce7; color: #16a34a; font-weight: 700; }
.float-ic.bot { background: #ede9fe; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   信任条
   ========================================================================== */
.stats { padding: clamp(8px, 2vw, 24px) 0 clamp(24px, 4vw, 48px); }

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 30px) clamp(12px, 2vw, 20px);
}

.stat {
  text-align: center;
  padding: 6px 12px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat b {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { font-size: 13.5px; color: var(--text-2); }

/* ==========================================================================
   通用 section
   ========================================================================== */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(44px, 6vw, 72px);
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-2); font-size: 16px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ==========================================================================
   功能网格
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 119, 255, 0.25);
}
.feature-card h3 { font-size: 18.5px; font-weight: 700; margin: 18px 0 8px; }
.feature-card p { font-size: 14.5px; color: var(--text-2); }

.feature-ic {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ic-blue   { background: #e8f1ff; color: #1677ff; }
.ic-violet { background: #f0ebff; color: #7c3aed; }
.ic-green  { background: #e6f9ef; color: #059669; }
.ic-orange { background: #fff1e2; color: #ea8110; }
.ic-cyan   { background: #e0f7fa; color: #0891b2; }
.ic-pink   { background: #ffe9f2; color: #db2777; }

/* ==========================================================================
   左右分栏亮点
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.split-reverse .split-copy { order: 2; }
.split-reverse .split-visual { order: 1; }

.split-copy h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin-bottom: 16px;
}
.split-copy > p { color: var(--text-2); font-size: 15.5px; margin-bottom: 24px; }
.split-copy code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1px 7px;
  border-radius: 6px;
  color: var(--brand-deep);
}

.check-list { margin-bottom: 28px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--text-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 8px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---- 代码卡 ---- */
.code-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.code-tab { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.code-lang {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.code-card pre {
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--text);
}
.code-card .c { color: var(--text-3); }
.code-card .k { color: #7c3aed; font-weight: 600; }
.code-card .s { color: #0e7c4a; }

/* ---- 安全卡 ---- */
.shield-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
}
.shield-ring {
  width: 96px; height: 96px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 14px rgba(22, 119, 255, 0.05), 0 0 0 28px rgba(22, 119, 255, 0.025);
}
.shield-rows { display: grid; gap: 12px; text-align: left; max-width: 320px; margin: 0 auto; }
.shield-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-2);
}
.ok-dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

/* ---- 推送卡 ---- */
.push-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(30px, 4vw, 46px);
}
.push-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}
.push-center small { color: var(--text-3); font-size: 12.5px; }
.push-lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.push-node {
  text-align: center;
  padding: 12px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.push-node:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand); }

/* ==========================================================================
   下载区
   ========================================================================== */
.section-download {
  background:
    radial-gradient(ellipse 900px 420px at 50% -60px, rgba(22, 119, 255, 0.07), transparent),
    var(--surface);
  border-top: 1px solid var(--line);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.dl-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 22px 24px;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dl-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 119, 255, 0.3);
}
.dl-card.current {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-md);
}

.dl-current-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.35);
  white-space: nowrap;
}

.dl-ic {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  margin-bottom: 8px;
}

.dl-name { font-size: 16.5px; font-weight: 700; }

.dl-version {
  font-size: 12.5px;
  font-family: var(--mono);
  color: var(--text-3);
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dl-version.loading::before {
  content: "";
  width: 11px; height: 11px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dl-size { font-size: 12px; color: var(--text-3); min-height: 18px; }

.dl-btn { margin-top: 14px; width: 100%; }

.dl-notes {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
.dl-notes:hover { color: var(--brand); }

.download-tip {
  margin-top: 36px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 2;
}

/* 发布说明浮层 */
.notes-pop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.notes-pop.show { opacity: 1; pointer-events: auto; }
.notes-box {
  width: min(440px, 100%);
  max-height: 70vh;
  overflow: auto;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}
.notes-pop.show .notes-box { transform: none; }
.notes-box h4 { font-size: 17px; margin-bottom: 4px; }
.notes-box .notes-ver { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); margin-bottom: 16px; }
.notes-box ul { display: grid; gap: 8px; }
.notes-box li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-2);
}
.notes-box li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.notes-close {
  margin-top: 22px;
  width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 72px) 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 80px);
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; color: var(--text-2); margin-bottom: 18px; }
.footer-brand small { font-size: 12.5px; color: var(--text-3); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col { display: grid; gap: 11px; align-content: start; }
.footer-col b { font-size: 14px; margin-bottom: 4px; }
.footer-col a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--brand); }

/* ==========================================================================
   滚动淡入
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  .badge-dot { animation: none; }
}

/* ==========================================================================
   文档页（legal.html）
   ========================================================================== */
.doc-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 120px clamp(20px, 4vw, 40px) 96px;
}
.doc-page h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.doc-meta { font-size: 13px; color: var(--text-3); margin-bottom: 36px; }

.doc-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(26px, 4vw, 48px);
  font-size: 15px;
  color: var(--text-2);
}
.doc-body h1, .doc-body h2, .doc-body h3, .doc-body h4 { color: var(--text); line-height: 1.4; }
.doc-body h1 { font-size: 26px; margin: 8px 0 18px; }
.doc-body h2 { font-size: 21px; margin: 34px 0 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.doc-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.doc-body h3 { font-size: 17px; margin: 26px 0 10px; }
.doc-body h4 { font-size: 15.5px; margin: 20px 0 8px; }
.doc-body p { margin: 10px 0; }
.doc-body ul, .doc-body ol { margin: 10px 0 10px 22px; }
.doc-body ul { list-style: disc; }
.doc-body ol { list-style: decimal; }
.doc-body li { margin: 5px 0; }
.doc-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 5px;
}
.doc-body pre {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 14px 0;
}
.doc-body pre code { background: none; border: none; padding: 0; font-size: 12.8px; line-height: 1.7; }
.doc-body a { color: var(--brand); }
.doc-body a:hover { text-decoration: underline; }
.doc-body blockquote {
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  padding: 10px 16px;
  border-radius: 0 10px 10px 0;
  margin: 14px 0;
}
.doc-body table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.doc-body th, .doc-body td { border: 1px solid var(--line-strong); padding: 8px 12px; text-align: left; }
.doc-body th { background: var(--surface-2); }
.doc-body hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

.doc-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
  font-size: 14.5px;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 24px;
}
.doc-back:hover { text-decoration: underline; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-platform-icons { justify-content: center; }
  .hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .mock-window { transform: none; }
  .float-card-a { right: 4px; }
  .float-card-b { left: 4px; }
  .only-desktop { display: none; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split-copy, .split-visual { min-width: 0; }
  .split-reverse .split-copy { order: 1; }
  .split-reverse .split-visual { order: 2; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px clamp(20px, 4vw, 40px); font-size: 15px; }
  .nav-burger { display: flex; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
  .stat { border-right: none; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }

  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .push-lines { grid-template-columns: repeat(2, 1fr); }
  .float-card { display: none; }
}
