/* ══════════════════════════════════════════════════════════════
   AzkiDeck 官网 · Editorial / Ambient 设计系统
   与 Android(Color.kt)/ iOS(Theme.swift)双端同一份设计 token:
   奶油白底 + 大尺度柔光,低对比、低饱和、低装饰;
   层级靠字体、间距、位置,不靠描边和投影。
   ══════════════════════════════════════════════════════════════ */

:root {
  /* ── 底与墨(浅色:奶油画布)── */
  --canvas: #FBF8F2;
  --ink-primary: #23201B;
  --ink-secondary: #6E675C;
  --ink-faint: #A79D8E;
  --hairline: #23201B14;      /* 暖墨 8%:层级里唯一允许出现的"线" */
  --surface-soft: #FFFFFF8C;  /* 白 55% 压奶油底,浮起靠明度差 */
  --fill-soft: #23201B0F;     /* 墨色 6% 按钮填充 */

  /* ── Ambient 环境柔光(浅色 pastel,0.55 透明度)── */
  --ambient-blue: #C9D9F2;
  --ambient-lavender: #DFD4F0;
  --ambient-pink: #F3D9DC;
  --ambient-beige: #F0E4CE;
  --ambient-alpha: 0.55;

  /* ── 点缀与状态(低饱和)── */
  --sakura: #BE8581;
  --sage: #6E9B7E;

  /* ── 渐变文字(OpenAI 式流动渐变:晨蓝 → 薰衣草 → 樱,降饱和)── */
  --grad-1: #7487AA;
  --grad-2: #8F81A8;
  --grad-3: #AF807E;

  /* ── 主按钮:浅色素墨块 / 深色中性灰块(双端 AccentButton 同款)── */
  --accent-fill: #23201B;
  --accent-text: #FBF8F2;

  /* ── 排版:Serif 标题(杂志感)+ Sans 功能文字 ── */
  --font-display: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --radius-lg: 22px;          /* 卡片 */
  --radius: 14px;             /* 按钮 */
  --radius-sm: 10px;          /* 小控件/标签 —— 均配合 squircle 平滑曲率 */
  --ease-signature: cubic-bezier(0.4, 0, 0.2, 1);  /* FastOutSlowIn,App 签名缓动 */
  --nav-h: 64px;
  --nav-safe-top: env(safe-area-inset-top, 0px);
  --nav-offset: calc(var(--nav-h) + var(--nav-safe-top));
  --measure: 1120px;          /* 版心 */
}

/* ── 深色:与 App 深色模式同款配色 ──────────────────────────────
   逐条对应 Android `app/theme/Color.kt` 的「深色对应」段
   (iOS `AzkiDeck/Design/Theme.swift` 的 Palette 取同一组值)。
   气质:纯黑是主色调,颜色只作点缀 —— 改这里之前先改 Color.kt。 */

html[data-theme="dark"] {
  --canvas: #000000;          /* CanvasDark        0xFF000000 */
  --ink-primary: #E8E8E8;     /* InkDarkPrimary    0xFFE8E8E8 */
  --ink-secondary: #A6A6A6;   /* InkDarkSecondary  0xFFA6A6A6 */
  --ink-faint: #707070;       /* InkDarkFaint      0xFF707070 */
  --hairline: #FFFFFF1F;      /* HairlineDark      0x1FFFFFFF */
  --surface-soft: #FFFFFF0F;  /* SurfaceSoftDark   0x0FFFFFFF */
  --fill-soft: #FFFFFF0F;     /* FillSoftDark      0x0FFFFFFF */

  /* 同一色相压暗降饱和,黑底上的颜色点缀(AmbientBlueDark …) */
  --ambient-blue: #1E3A5F;    /* AmbientBlueDark     0xFF1E3A5F */
  --ambient-lavender: #2A2246;/* AmbientLavenderDark 0xFF2A2246 */
  --ambient-pink: #3A2230;    /* AmbientPinkDark     0xFF3A2230 */
  --ambient-beige: #2E2718;   /* AmbientBeigeDark    0xFF2E2718 */
  --ambient-alpha: 0.30;      /* Texture.kt: color.copy(alpha = 0.30f) —— CSS 柔光与 WebGL 同取此值 */

  --accent-fill: #8E8E8E;     /* AccentFillDark 0xFF8E8E8E:深色下实心近白会过亮,只做中性灰块 */
  --accent-text: #000000;     /* onPrimary = CanvasDark */

  /* sakura / sage 不随主题变化,与 SakuraRose、SageGreen 一致。
     App 端只用 sakuraRose 作品牌点缀,深色网页因此把渐变收敛为单色。 */
  --grad-1: #BE8581;
  --grad-2: #BE8581;
  --grad-3: #BE8581;
}

/* ── 基础 ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, p { text-wrap: pretty; }

::selection { background: color-mix(in srgb, var(--sakura) 32%, transparent); }

a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

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

/* ── 平滑圆角:支持 squircle 的浏览器自动获得 iOS 式连续曲线,
   不支持的回落为普通圆角,静默渐进增强 ─────────────────── */
.btn, .chip-btn, .feature, .download-card, .device-tag,
.hero-icon, .brand-icon, .footer-brand img, .nav-drawer {
  corner-shape: squircle;
}

/* ── 环境光:WebGL 画布为主,CSS 柔光兜底 ────────────────── */

#glCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* WebGL 就位后,CSS 柔光退场 */
.webgl-on .ambient { display: none; }

/* ── Ambient 环境光:与 App 相同的四团柔光(兜底方案)────────
   位置刻意不对称(12/10 · 95/30 · 75/92 · 5/70),
   半径以 vmax 表示,等价于 App 中 max(w, h) 的相对半径。
   极度模糊、相互交融、无明显边界 —— 晨光薄雾氛围。 */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  opacity: var(--ambient-alpha);
  will-change: transform;
}

.glow-blue {
  left: 12vw; top: 10vh;
  width: 210vmax; height: 210vmax;
  translate: -50% -50%;
  background: radial-gradient(circle, var(--ambient-blue) 0%, transparent 70%);
  animation: drift-a 64s var(--ease-signature) infinite alternate;
}
.glow-lavender {
  left: 95vw; top: 30vh;
  width: 190vmax; height: 190vmax;
  translate: -50% -50%;
  background: radial-gradient(circle, var(--ambient-lavender) 0%, transparent 70%);
  animation: drift-b 72s var(--ease-signature) infinite alternate;
}
.glow-pink {
  left: 75vw; top: 92vh;
  width: 200vmax; height: 200vmax;
  translate: -50% -50%;
  background: radial-gradient(circle, var(--ambient-pink) 0%, transparent 70%);
  animation: drift-c 80s var(--ease-signature) infinite alternate;
}
.glow-beige {
  left: 5vw; top: 70vh;
  width: 170vmax; height: 170vmax;
  translate: -50% -50%;
  background: radial-gradient(circle, var(--ambient-beige) 0%, transparent 70%);
  animation: drift-d 58s var(--ease-signature) infinite alternate;
}

/* 极缓慢的呼吸式漂移:有生命感,但不吵闹 */
@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(3vmax, 2vmax) scale(1.04); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(-3vmax, 2.5vmax) scale(1.05); } }
@keyframes drift-c { from { transform: translate(0, 0) scale(1.03); } to { transform: translate(-2vmax, -3vmax) scale(1); } }
@keyframes drift-d { from { transform: translate(0, 0) scale(1); } to { transform: translate(2.5vmax, -2vmax) scale(1.06); } }

/* ── 首页板块 ─────────────────────────────────────────────────
   首页和长文页都使用原生文档滚动。这样浏览器能正确处理触控、
   辅助功能、回弹与历史记录，长内容也不会被固定高度的容器截断。 */

main > .page-panel { min-height: 100svh; }

/* ── 导航 ─────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-top: var(--nav-safe-top);
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--canvas) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--hairline);
}

.nav-inner {
  max-width: var(--measure);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-icon { width: 28px; height: 28px; border-radius: 9px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
  margin-right: auto;
}
.nav-links a {
  font-size: 14px;
  white-space: nowrap;   /* 挤的时候整条退场,而不是把一个词折成两行 */
  color: var(--ink-secondary);
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--ink-primary); }
.nav-links a.is-current { color: var(--ink-primary); }

/* 正文里的内联链接:发丝下划线,hover 才落到主墨色 */
.inline-link {
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--hairline);
  transition: color 0.3s var(--ease-signature), border-color 0.3s var(--ease-signature);
}
.inline-link:hover { color: var(--ink-primary); border-bottom-color: var(--ink-faint); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;   /* 自己顶开右对齐:移动端 .nav-links 隐藏后也不会跟着塌回左边 */
}

/* 语言/主题的小型 chip 按钮 */
.chip-btn {
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--fill-soft);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.chip-btn:hover { color: var(--ink-primary); background: color-mix(in srgb, var(--fill-soft) 60%, var(--hairline)); }

/* 主题图标:浅色示月(可入夜),深色示日(可破晓) */
.icon-sun { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }

.nav-cta { padding: 8px 16px; min-height: 36px; font-size: 13.5px; }

.nav-burger { display: none; }

.nav-drawer {
  display: none;
  flex-direction: column;
  padding: 8px 28px 20px;
  gap: 4px;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--hairline);
}
.nav-drawer a {
  padding: 12px 4px;
  font-size: 15px;
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--hairline);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--ink-primary); }
.nav.drawer-open .nav-drawer { display: flex; }

/* ── 按钮:双端 AccentButton / GhostButton 同款 ───────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-signature);
  user-select: none;
}

.btn-primary {
  background: var(--accent-fill);
  color: var(--accent-text);
}
.btn-primary:hover:not(:disabled):not(.disabled) { opacity: 0.86; transform: translateY(-1px); }
.btn:active:not(:disabled):not(.disabled) { transform: scale(0.98); }
.btn-primary:disabled,
.btn-primary.disabled {
  cursor: default;
  opacity: 0.32;                 /* 双端禁用态:bg 0.25 + 文字降档的折中 */
}

.btn-ghost {
  background: var(--fill-soft);
  color: color-mix(in srgb, var(--ink-primary) 85%, transparent);
}
.btn-ghost:hover { background: color-mix(in srgb, var(--fill-soft) 55%, var(--hairline)); }

/* Kimi 式箭头:hover 轻移,引导而不喧哗 */
.btn .arrow { transition: transform 0.3s var(--ease-signature); }
.btn:hover:not(:disabled):not(.disabled) .arrow { transform: translateX(3px); }

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-offset) + 40px) 28px 80px;
  position: relative;
}

.hero-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;           /* 接近 iOS 图标的连续曲线比例 */
  margin: 0 auto 34px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;              /* 张力来自字体对比,不是字重 */
  font-size: clamp(2.7rem, 7.2vw, 5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* 英文标题更长,字号收一档保持两行结构 */
html[lang="en"] .hero-title { font-size: clamp(2.2rem, 5.6vw, 4.1rem); }

.hero-sub {
  margin: 26px auto 0;
  max-width: 34em;
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  line-height: 1.85;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  translate: -50% 0;
  color: var(--ink-faint);
  animation: hint-float 2.8s ease-in-out infinite;
  transition: color 0.25s ease;
}
.scroll-hint:hover { color: var(--ink-secondary); }
@keyframes hint-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ── 通用板块 ─────────────────────────────────────────────── */

.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 130px 28px 20px;
}

.section-head { max-width: 620px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sakura);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.22;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.section-sub {
  margin: 20px 0 0;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

/* ── 特性 ─────────────────────────────────────────────────── */

.feature-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature {
  padding: 36px 34px 40px;
  background: var(--surface-soft);
  border-radius: var(--radius-lg);
  transition: background-color 0.4s ease;
}
html[data-theme="dark"] .feature { background: var(--surface-soft); }

.feature h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.feature p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-secondary);
}

/* ── 渐变文字:OpenAI 式缓缓流动的色彩,未来感但不喧哗 ────── */

.grad-text {
  background: linear-gradient(110deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-1));
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: grad-flow 16s ease-in-out infinite alternate;
}
@keyframes grad-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* ── 体验:Kimi 式大字号陈述,发丝线分隔 ─────────────────── */

.statements { margin-top: 40px; }

.statement {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 58px 0 62px;
  border-top: 1px solid var(--hairline);
}
.statement:last-child { border-bottom: 1px solid var(--hairline); }

.statement-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.statement-body h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.statement-body p {
  margin: 0;
  max-width: 600px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink-secondary);
}

/* ── 支持设备 ─────────────────────────────────────────────── */

.device-wall {
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.device-tag {
  padding: 10px 18px;
  background: var(--fill-soft);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-secondary);
  transition: color 0.25s ease, background-color 0.25s ease;
}
.device-tag:hover {
  color: var(--ink-primary);
  background: color-mix(in srgb, var(--fill-soft) 55%, var(--hairline));
}

/* ── 下载 ─────────────────────────────────────────────────── */

.download-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.download-card {
  padding: 38px 34px;
  background: var(--surface-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-platform {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-primary);
}
.download-platform h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
}

.download-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-secondary);
  flex: 1;
}

.download-meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.download-btn { width: 100%; margin-top: 6px; }

/* ── 页脚 ─────────────────────────────────────────────────── */

.footer {
  margin-top: 150px;
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 48px 28px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 4px;
}
.footer-brand img { width: 24px; height: 24px; border-radius: 8px; }

.footer-line {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-line a {
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--hairline);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer-line a:hover { color: var(--ink-primary); border-bottom-color: var(--ink-faint); }
.footer-faint { color: var(--ink-faint); }
.footer-dot { color: var(--ink-faint); }

/* ── 滚动揭示:静 → 定的单一节奏 ────────────────────────────
   仅在 JS 可用时隐藏待揭示元素 —— 无 JS 时内容永远可见。 */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease-signature), transform 0.75s var(--ease-signature);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ── 简介页(/about):长文阅读页 ────────────────────────────
   与首页同一套 editorial 语言,但不吸附 —— 读一段长文时,
   吸附会替读者决定停在哪里。 */

.doc-hero { padding-top: calc(var(--nav-offset) + 108px); padding-bottom: 8px; }

.doc-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
html[lang="en"] .doc-title { font-size: clamp(2rem, 4.6vw, 3.2rem); }

.doc-lead {
  margin: 30px 0 0;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-secondary);
}
.doc-lead-quiet { margin-top: 18px; color: var(--ink-faint); }

/* 做减法:一行一条,发丝线分隔 */
.credo { margin-top: 46px; }

.credo-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 30px 0 32px;
  border-top: 1px solid var(--hairline);
}
.credo-item:last-child { border-bottom: 1px solid var(--hairline); }

.credo-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.credo-item p {
  margin: 0;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-secondary);
}

/* 能力清单:左侧组名,右侧条目 */
.spec-groups { margin-top: 46px; }

.spec-group {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  padding: 40px 0 44px;
  border-top: 1px solid var(--hairline);
}
.spec-group:last-child { border-bottom: 1px solid var(--hairline); }

.spec-group > h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 26px;
  max-width: 640px;
}
.spec-list b {
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: -0.004em;
  color: var(--ink-primary);
}
.spec-list span {
  display: block;
  font-size: 14.5px;
  line-height: 1.92;
  color: var(--ink-secondary);
}

/* 收束:全页唯一一处居中 */
.closing {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 20px;
}
.closing-quote {
  margin: 0 auto;
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.62;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.closing-note {
  margin: 20px auto 0;
  font-size: 15px;
  color: var(--ink-faint);
}
.closing-cta { justify-content: center; margin-top: 40px; }

/* ── 法务页(/terms、/privacy):条款长文 ────────────────────
   复用简介页的 spec-group 骨架:左列是编号与条款名,右列是条目。
   条款页要能被"跳着读",所以比简介页多一份目录。 */

.legal-meta {
  margin: 26px 0 0;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--ink-faint);
}

.legal-toc-section { padding-top: 76px; }

.legal-toc {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  max-width: 900px;
}

.legal-toc a {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--ink-secondary);
  transition: color 0.3s var(--ease-signature);
}
.legal-toc a:hover { color: var(--ink-primary); }

.legal-toc-num {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.legal-clauses { padding-top: 40px; }

/* 编号单独一行,压在条款名之上;条款名沿用 .spec-group > h3 的 Serif */
.legal-num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--sakura);
  font-variant-numeric: tabular-nums;
}

/* 条款正文比能力清单再松一档:法律条文比功能条目更费读 */
.legal-clause .spec-list span { line-height: 1.98; }

/* 页脚法务链接 */
.footer-links a { color: var(--ink-secondary); }
.footer-links a:hover { color: var(--ink-primary); }
.footer-links a.is-current { color: var(--ink-primary); border-bottom-color: var(--ink-faint); }

/* ── 响应式 ───────────────────────────────────────────────── */

/* 900px 以下（含多数平板竖屏）切换为抽屉导航。
   顶栏不再让文字链接、CTA 与系统控制键争夺同一行宽度。 */
@media (max-width: 900px) {
  .nav-inner {
    max-width: none;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    gap: 12px;
  }
  .nav-links, .nav-cta { display: none; }
  .nav-actions { gap: 6px; }
  .chip-btn, .nav-burger { min-width: 40px; height: 40px; padding: 0 10px; }
  .nav-burger { display: inline-flex; }
  .nav.drawer-open {
    background: color-mix(in srgb, var(--canvas) 92%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    border-bottom-color: var(--hairline);
  }
  .nav-drawer {
    max-height: calc(100dvh - var(--nav-offset));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding:
      10px max(20px, env(safe-area-inset-right, 0px))
      calc(20px + env(safe-area-inset-bottom, 0px))
      max(20px, env(safe-area-inset-left, 0px));
  }
  .nav-drawer a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 4px;
  }

  .section { padding: 104px 24px 16px; }
  .feature-grid, .download-grid { grid-template-columns: 1fr; }
  .credo-item, .spec-group { grid-template-columns: 1fr; gap: 18px; }
  .legal-toc { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  .nav-inner {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    gap: 8px;
  }
  .brand { gap: 8px; }
  .brand-name { font-size: 18px; }
  .hero { padding: calc(var(--nav-offset) + 32px) 20px 52px; }
  .hero-icon { width: 88px; height: 88px; border-radius: 21px; margin-bottom: 28px; }
  .hero-cta { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .scroll-hint { display: none; }

  .section { padding: 88px 20px 12px; }
  .feature-grid, .download-grid { grid-template-columns: 1fr; margin-top: 44px; }
  .feature, .download-card { padding: 30px 26px 34px; }

  .statement { grid-template-columns: 1fr; gap: 12px; padding: 44px 0 48px; }
  .statement-num { font-size: 2rem; }

  .doc-hero { padding-top: calc(var(--nav-offset) + 64px); }
  .doc-lead { font-size: 16px; }
  .credo-item { grid-template-columns: 1fr; gap: 10px; padding: 26px 0 28px; }
  .spec-group { grid-template-columns: 1fr; gap: 22px; padding: 34px 0 38px; }
  .spec-list { gap: 22px; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-toc-section { padding-top: 56px; }
  .legal-clauses { padding-top: 24px; }
  .closing { padding-top: 84px; }
  .closing-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .closing-cta .btn { width: 100%; }

  .footer { margin-top: 100px; }
}

@media (max-width: 360px) {
  .brand-name { display: none; }
}

/* 触控设备保留浏览器原生纵向滚动，并限制横向超滚动以减少误触发导航。 */
@media (any-pointer: coarse) {
  html {
    scroll-behavior: auto;
    overscroll-behavior-x: none;
  }
  body {
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
  }
  .chip-btn, .nav-cta { min-height: 44px; }
  .scroll-hint { display: none; }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .feature-grid, .download-grid { gap: 14px; }
}

/* ── 减少动态:尊重系统设置,一切归于安静 ─────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow, .scroll-hint, .grad-text { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn .arrow { transition: none; }
  .btn:hover:not(:disabled):not(.disabled) .arrow { transform: none; }
  * { transition-duration: 0.01ms !important; }
}
