/* ============================================================
   DSHBox website — style.css
   Theme: app primary green #10A37F, light glass surfaces.
   Premium pass: aurora gradients, dot-grid texture, gradient
   display type, gradient-bordered download card, staggered
   reveals. Breakpoints: 360 / 390 / 768 / 1024 / 1280.
   ============================================================ */

:root {
  --green: #10A37F;
  --green-bright: #14B78D;
  --green-mint: #3ECFA5;
  --green-strong: #0B7C60;
  --green-deep: #08553F;
  --green-soft: #E8F6F1;
  --green-soft-2: #F2FAF7;
  --ink: #0E1F1A;
  --ink-muted: #4C625B;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --border: #E8F2EE;
  --border-strong: #D3E8E0;
  --shadow-sm: 0 1px 2px rgba(14, 31, 26, 0.05), 0 2px 8px rgba(14, 31, 26, 0.05);
  --shadow-md: 0 2px 6px rgba(14, 31, 26, 0.06), 0 14px 36px rgba(14, 31, 26, 0.10);
  --shadow-lg: 0 4px 14px rgba(14, 31, 26, 0.08), 0 28px 64px rgba(8, 85, 63, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
          "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --container: 1160px;
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* 注意：这里**刻意不加** scroll-snap-type。
     1.3.1 实测（手机视口 390×844，合成真实触摸手势，重复可复现）：
       · scroll-snap-stop: always + snap-align: start
         → 手指滑 100px，页面跳 545px（跨掉大半屏）——「一滑跨好几页」
       · 改用 scroll-snap-type: y proximity（弱吸附）后：
         → 拖动 85px 抬手后**被弹回原位**（位移全撤销）；
           连程序化滚动 scrollTo(7388) 都被拉到 7255（差 133px）。
     原因：本站区块高度为 1.0–2.4 屏，snap-align: start 会让吸附引擎
     持续把位置拉回区块起点，形成"粘手/回弹"。
     故**完全移除吸附**，改用视觉手段提供分节感（见下方 section rhythm）。 */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #FFFFFF;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fixed dot-grid texture, fading out below the fold */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(16, 163, 127, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.25) 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.25) 70%, transparent);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.22; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(3rem, 7vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
a { color: var(--green-strong); }
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  font-size: 0.88em;
  background: var(--green-soft);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 820px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- Language visibility (JS toggles <html lang>) ---------- */

html[lang="zh"] .lang-en { display: none !important; }
html[lang="en"] .lang-zh { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -48px;
  z-index: 100;
  background: var(--green); color: #fff;
  padding: 10px 16px; border-radius: 0 0 10px 10px;
  text-decoration: none; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Eyebrow labels ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-strong);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-bright), var(--green));
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease,
              background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.button:active { transform: translateY(1px); }

.button-primary {
  background: linear-gradient(135deg, var(--green-bright) 0%, var(--green) 45%, var(--green-strong) 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 22px rgba(16, 163, 127, 0.36);
}
.button-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 12px 30px rgba(16, 163, 127, 0.46);
}

.button-secondary {
  background: var(--glass);
  color: var(--ink);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.button-secondary:hover {
  border-color: var(--green);
  color: var(--green-strong);
  transform: translateY(-2px);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--green-strong);
  border-color: var(--border-strong);
}
.button-ghost:hover {
  background: var(--green-soft);
  border-color: var(--green);
  transform: translateY(-2px);
}
.button-ghost.is-copied {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green-strong);
}

.button-large { padding: 15px 32px; font-size: 1.05rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(14, 31, 26, 0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(14, 31, 26, 0.18);
}
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 550;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover { color: var(--green-strong); background: var(--green-soft); }
.site-nav .nav-github {
  color: var(--green-strong);
  border: 1px solid var(--border-strong);
  background: var(--glass);
  font-weight: 650;
}
.site-nav .nav-github:hover { border-color: var(--green); }

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--green-soft-2);
  border: 1px solid var(--border-strong);
}
.lang-btn {
  padding: 5px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.lang-btn:hover { color: var(--green-strong); }
.lang-btn[aria-pressed="true"] {
  background: #fff;
  color: var(--green-strong);
  box-shadow: 0 2px 8px rgba(14, 31, 26, 0.12);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--glass);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute; left: 0;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F3FBF8 0%, #FFFFFF 92%);
}
/* Aurora blobs */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 560px; height: 560px;
  top: -220px; left: -140px;
  background: radial-gradient(circle, rgba(20, 183, 141, 0.22), transparent 65%);
  animation: drift 26s ease-in-out infinite alternate;
}
.hero::after {
  width: 480px; height: 480px;
  top: -120px; right: -160px;
  background: radial-gradient(circle, rgba(62, 207, 165, 0.20), transparent 65%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(50px, 34px, 0) scale(1.12); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-block: 84px 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 6px 16px 6px 7px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border-strong);
  color: var(--green-strong);
  font-size: 0.85rem;
  font-weight: 650;
  box-shadow: var(--shadow-sm);
}
.hero-badge img {
  width: 22px; height: 22px;
  border-radius: 7px;
}

.hero-title {
  margin-bottom: 0.35em;
  background: linear-gradient(115deg, var(--green-deep) 0%, var(--green-strong) 35%, var(--green) 62%, var(--green-mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 36ch;
}
.hero-note {
  color: var(--ink-muted);
  max-width: 48ch;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.release-info {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}
.hero-links a { text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.hero-links a:hover { text-decoration-color: var(--green); }

.hero-visual { margin: 0; position: relative; }
/* Soft glow behind the product image */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8% -6% 8%;
  background: radial-gradient(50% 50% at 50% 55%, rgba(16, 163, 127, 0.20), transparent 70%);
  filter: blur(34px);
  z-index: 0;
}
.hero-visual > img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  outline: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: #fff;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ---------- Section rhythm ----------
   1.3.1 修订：本站原为「整页翻页」设计，实测在手机上体验很差（见 html 处注释），
   现已完全移除滚动吸附。分节感改由这些视觉手段承担：
     · 区块自身的内边距节奏（.section 88px / 移动端 60px）
     · 交替背景与上下描边（.section-tinted）
     · 右侧页码圆点：随滚动高亮当前区块，点击可平滑跳转
   `data-snap` 属性保留在 HTML 上，作为「区块」的语义标记 —— 页码导航据此定位。 */

[data-snap] {
  display: flex;
  flex-direction: column;
  /* 供锚点/页码跳转使用：跳转后区块顶部与视口顶部对齐 */
  scroll-margin-block-start: 0;
}

[data-snap] > .container { margin-block: 0; }

/* 首屏：只有 hero 需要「至少一屏」，且用 svh 规避移动端地址栏伸缩
   导致的 100vh 偏大问题（100vh 会按地址栏收起时的最大高度计算） */
[data-snap]#hero {
  padding-block: 0;
  min-height: 100svh;
  justify-content: center;
}

/* Scroll hint at the bottom of the hero page */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  pointer-events: none;
}
.scroll-hint-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--border-strong);
  border-radius: 12px;
  position: relative;
}
.scroll-hint-mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--green);
  animation: scrollHintDot 1.8s ease-in-out infinite;
}
@keyframes scrollHintDot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(11px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Fixed page dots on the right edge */
.page-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: grid;
  gap: 14px;
}
.page-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #C7DED5;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.page-dots button:hover { background: var(--green-mint); }
.page-dots button.is-active {
  background: var(--green);
  transform: scale(1.35);
  box-shadow: 0 0 0 4px rgba(16, 163, 127, 0.16);
}

/* ---------- Stats strip ---------- */

.stats { padding-block: 10px 48px; }
.stats-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(232, 246, 241, 0.9), rgba(255, 255, 255, 0.78));
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-sm);
}
.stat { position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -7px; top: 15%;
  width: 1px; height: 70%;
  background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
}
.stat dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.stat dd {
  margin: 0;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  background: linear-gradient(115deg, var(--green-strong), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Sections ---------- */

.section { padding-block: 88px; }
.section-tinted {
  background: linear-gradient(180deg, #F5FBF9 0%, #FCFEFD 100%);
  border-block: 1px solid var(--border);
}

.section-header {
  max-width: 660px;
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 0.4em; }
.section-header > p { color: var(--ink-muted); font-size: 1.06rem; }

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-md);
  border-color: var(--border-strong);
}
.feature-card h3 { margin-bottom: 6px; font-size: 1.06rem; }
.feature-card p { margin: 0; color: var(--ink-muted); font-size: 0.94rem; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-soft), #D9F2E9);
  color: var(--green-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(16, 163, 127, 0.14);
}
.feature-icon svg { width: 24px; height: 24px; }

/* ---------- Screenshots ---------- */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.shot-card {
  margin: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 250, 247, 0.8));
  border: 1px solid var(--border);
  padding: 10px 10px 14px;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.25s ease;
}
.shot-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.shot-card img {
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid var(--border);
}
.shot-card figcaption {
  text-align: center;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--green-strong);
  margin-top: 12px;
}

/* ---------- How it works ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.flow-step {
  position: relative;
  padding: 22px 18px 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.22s ease;
}
/* gradient top edge per step */
.flow-step::before {
  content: "";
  position: absolute;
  top: -3px; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--green-bright), var(--green-mint));
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.flow-step:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.flow-step:hover::before { opacity: 1; }
.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-strong));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(16, 163, 127, 0.3);
}
.flow-step h3 { font-size: 0.98rem; margin-bottom: 4px; }
.flow-step p { margin: 0; font-size: 0.87rem; color: var(--ink-muted); }

.note-card {
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--green-soft-2);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--green);
}
.note-card h3 { font-size: 1rem; }
.note-card p { margin: 0; color: var(--ink-muted); }

/* ---------- Requirements ---------- */

.req-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.req-card {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.22s ease;
}
.req-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.req-card h3 {
  color: var(--green-strong);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.req-card ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--ink-muted);
}

/* ---------- Download ---------- */

.section-download {
  background:
    radial-gradient(720px 360px at 50% 0%, rgba(16, 163, 127, 0.13), transparent 65%),
    linear-gradient(180deg, #F3FBF8 0%, #FFFFFF 100%);
}
.download-card {
  position: relative;
  max-width: 740px;
  margin-inline: auto;
  padding: 56px 48px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  border: 1px solid transparent;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
/* gradient border ring */
.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(20, 183, 141, 0.65), rgba(16, 163, 127, 0.08) 42%, rgba(62, 207, 165, 0.55));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.download-card .section-header { margin-inline: auto; }
.download-card .section-header p { font-size: 0.98rem; }

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 6px;
}
.download-card .release-info { margin-top: 10px; }

.download-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}
.download-meta li {
  padding: 5px 15px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--border-strong);
  color: var(--green-strong);
  font-weight: 650;
}
.download-meta a { text-decoration: none; }
.download-meta a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 12px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  padding: 17px 52px 17px 22px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background-color 0.15s ease;
}
.faq-item summary:hover { background: var(--green-soft-2); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--green-strong);
  border-bottom: 2px solid var(--green-strong);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq-item p {
  margin: 0;
  padding: 2px 22px 20px;
  color: var(--ink-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--green-soft-2), #F7FCFA);
  padding-block: 52px 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}
.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand-row img {
  width: 30px; height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(14, 31, 26, 0.16);
}
.footer-col h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.footer-col ul {
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.footer-col a {
  color: var(--ink-muted);
  text-decoration: none;
}
.footer-col a:hover { color: var(--green-strong); text-decoration: underline; }
.footer-brand p { color: var(--ink-muted); font-size: 0.95rem; max-width: 34ch; }
.footer-brand .brand-name { color: var(--ink); }

.footer-legal {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.footer-legal p { margin-bottom: 6px; }

/* ---------- Reveal animation (staggered via --i) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--i, 0) * 55ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- What's new（最新版本变化） ----------
   两个挂载点共用同一套样式：
     · .whats-new--hero  首页 hero 下方的精简卡
     · .whats-new--wide  下载区的完整卡（至多 5 条 + 完整说明链接）
   内容由 main.js 从 GitHub Release 的说明正文自动填充；HTML 里的静态内容是
   API 不可用时的兜底（也与禁用 JS 的场景兼容）。 */

.whats-new {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
}

/* 无内容可展示时整体隐藏，避免出现空白框 */
.whats-new[data-state="empty"] { display: none; }

.whats-new-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.whats-new-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
}

.whats-new-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--green-strong);
  background: var(--green-soft);
  border: 1px solid var(--border-strong);
  white-space: nowrap;
}

.whats-new-date {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.whats-new-list {
  margin: 0;
  padding: 0 0 0 1.05em;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.whats-new-list li + li { margin-top: 4px; }
.whats-new-list strong { color: var(--ink); font-weight: 650; }
.whats-new-list a {
  color: var(--green-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.whats-new-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.whats-new-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-strong);
}

.whats-new-more:hover { color: var(--green-bright); }

/* hero 内更紧凑，避免喧宾夺主 */
.whats-new--hero { margin-top: 20px; max-width: 620px; padding: 14px 16px; }
.whats-new--hero .whats-new-list { font-size: 0.88rem; }

/* 下载区：宽卡风格，跟随 .download-card 的居中语境 */
.whats-new--wide {
  margin-top: 22px;
  text-align: left;
  background: var(--glass);
}

@media (max-width: 768px) {
  .whats-new { padding: 14px; }
  .whats-new-list { font-size: 0.9rem; }
  .whats-new--hero { max-width: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1280px) {
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-block: 60px 52px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { max-width: 640px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat + .stat::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--glass-strong);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 16px;
  }
  .site-nav a { padding: 12px 14px; border-radius: 12px; }

  .section { padding-block: 60px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-dots { display: none; }
  .scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .hero-inner { padding-block: 48px 44px; gap: 36px; }
  .hero-actions .button { flex: 1 1 100%; }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  /* 截图区：手机上改**双列**小图（原为单列限宽 320px）。
     图片是 1260×2800 的竖屏截图，单列时每张高约 711px、四张堆叠达 2844px
     （整个区块 3.88 屏，是"页面像一长条"的主要来源）；
     双列后每张约 171px 宽、高约 380px，区块高度约减为 1/3。 */
  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: none;
    margin-inline: 0;
  }
  .shot-card { padding: 7px 7px 10px; }
  .shot-card figcaption { margin-top: 8px; font-size: 0.82rem; }
  .flow { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .download-card { padding: 38px 22px; }
  .lang-btn { padding: 5px 9px; }
}
