/* ============================================================================
   ScreenMind 官网 —— 设计系统
   配色直接取自应用深色皮（src/screenai/ui/theme.py 的 `modern` 变体），
   这样官网和软件是同一套视觉语言，不是"另做一套好看的"。
   ========================================================================= */

/* --- 1. 令牌 ------------------------------------------------------------- */
:root {
  /* 色板：与应用深色皮一一对应 */
  --bg: #121418;            /* color.bg */
  --bg-deep: #0b0d10;       /* 页面最底 */
  --surface: #1e2228;       /* color.surface */
  --card: #191d23;
  --card-hi: #21252b;
  --line: #2b3037;          /* color.line */
  --line-soft: #232830;
  --text: #f2f5f8;          /* color.text */
  --muted: #a8b3c0;         /* color.text_muted */
  --caption: #8b96a3;
  --accent: #3c74b8;        /* color.accent */
  --accent-hi: #6ea8e5;     /* color.accent_line */
  --accent-bright: #8cc5ff; /* 比 accent_bright 再亮一档，给深底上的大字 */
  --accent-soft: #25344a;   /* color.accent_soft */
  --ok: #63c98a;
  --warn: #e0a35c;
  --danger: #e8736f;

  /* 排版 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono",
    "Roboto Mono", Consolas, "Liberation Mono", monospace;

  /* 尺寸 */
  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --nav-h: 64px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 18px 48px -20px rgba(0, 0, 0, .85);
  --glow: 0 0 0 1px rgba(110, 168, 229, .22), 0 20px 60px -28px rgba(60, 116, 184, .75);
}

/* --- 2. 基础 ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 页面底噪：两团辉光 + 一层极细网格，滚动时不动（fixed），
   这样长页面滚起来背景是"深度"而不是"壁纸" */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58rem 34rem at 12% -8%, rgba(60, 116, 184, .20), transparent 62%),
    radial-gradient(48rem 30rem at 96% 4%, rgba(110, 168, 229, .12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 58%, #090b0e 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 175, 220, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 175, 220, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}

img { max-width: 100%; height: auto; display: block; }
/* ⚠️ figure 默认有 1em 40px 的外边距 —— 画廊里的截图会被整体往右推 40px，
   和上面的标题对不齐（第一版就是这样，截图里一眼能看出来）。 */
figure { margin: 0; }
figcaption { margin: 0; }
a { color: var(--accent-hi); text-decoration: none; }
a:hover { color: var(--accent-bright); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .92em; }

kbd {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--card-hi);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.5;
  white-space: nowrap;
}

::selection { background: rgba(110, 168, 229, .32); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --- 3. 导航 ------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.nav.is-stuck {
  background: rgba(12, 14, 18, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line-soft);
}
.nav__inner { display: flex; align-items: center; gap: 22px; width: 100%; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); flex: 0 0 auto; }
.brand:hover { color: var(--text); }
.brand__mark { width: 30px; height: 30px; filter: drop-shadow(0 2px 10px rgba(60, 116, 184, .55)); }
.brand__name { font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.brand__name span { color: var(--accent-hi); font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav__links a {
  color: var(--muted);
  font-size: 14.5px;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color .16s, background .16s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
/* 只在移动端菜单里出现的下载入口（窄屏时导航栏里的按钮放不下） */
.nav__links .nav__cta { display: none; }
.nav__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--caption);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  cursor: pointer;
  transition: color .16s, background .16s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-bright); }

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .02);
  transition: color .16s, border-color .16s, background .16s;
}
.icon-link:hover { color: var(--text); border-color: var(--accent); background: rgba(60, 116, 184, .12); }
.icon-link svg { width: 18px; height: 18px; }

.nav__toggle {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  cursor: pointer;
}

/* --- 4. 按钮 ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease,
    border-color .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn--primary {
  background: linear-gradient(135deg, #4278bd 0%, #2f5f9d 100%);
  color: #fff;
  box-shadow: 0 10px 30px -14px rgba(60, 116, 184, .95), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 38px -14px rgba(96, 158, 230, .95), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { color: var(--text); border-color: var(--accent); background: rgba(60, 116, 184, .12); }
.btn--lg { padding: 15px 28px; font-size: 16px; border-radius: 13px; }
.btn--sm { padding: 8px 15px; font-size: 13.5px; border-radius: 9px; }

/* --- 5. 通用区块 --------------------------------------------------------- */
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-hi));
}
.section__head { max-width: 760px; margin-bottom: 46px; }
.section__head h2 { font-size: clamp(27px, 3.4vw, 38px); margin-bottom: 14px; }
.section__head p { color: var(--muted); font-size: 16.5px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow::before { display: none; }

.grad {
  background: linear-gradient(100deg, var(--accent-bright) 0%, #b9d8ff 45%, var(--accent-hi) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- 6. 卡片 ------------------------------------------------------------- */
.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .008));
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(22rem 12rem at var(--mx, 50%) var(--my, 0%),
    rgba(110, 168, 229, .10), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.card:hover { border-color: rgba(110, 168, 229, .42); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 17px; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 14.6px; }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 15px;
  border-radius: 11px;
  border: 1px solid rgba(110, 168, 229, .28);
  background: linear-gradient(150deg, rgba(60, 116, 184, .30), rgba(60, 116, 184, .06));
  color: var(--accent-bright);
}
.card__icon svg { width: 21px; height: 21px; }

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.tag--accent { border-color: rgba(110, 168, 229, .38); color: var(--accent-bright); background: rgba(60, 116, 184, .14); }
.tag--ok { border-color: rgba(99, 201, 138, .38); color: var(--ok); background: rgba(99, 201, 138, .12); }
.tag--warn { border-color: rgba(224, 163, 92, .42); color: var(--warn); background: rgba(224, 163, 92, .12); }

/* --- 7. Hero ------------------------------------------------------------- */
.hero { position: relative; padding: 76px 0 78px; overflow: hidden; }
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 56px;
  align-items: center;
}
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(34px, 5.1vw, 60px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.hero__lead { color: var(--muted); font-size: 17.5px; max-width: 40ch; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.hero__note { color: var(--caption); font-size: 13.4px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero__note span { display: inline-flex; align-items: center; gap: 7px; }
.hero__note svg { width: 15px; height: 15px; color: var(--ok); }

/* 应用窗口模拟 */
.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1014;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #1c2128, #171b21);
}
.shot__dots { display: flex; gap: 6px; }
.shot__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a424c; display: block; }
.shot__dots i:first-child { background: #4a5563; }
.shot__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--caption);
  margin-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot img { width: 100%; display: block; }
.shot--float { box-shadow: var(--glow), var(--shadow-2); }

.hero__stage { position: relative; }
.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(110, 168, 229, .34);
  border-radius: 11px;
  background: rgba(14, 18, 24, .92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-2);
  font-size: 12.6px;
  font-weight: 600;
  z-index: 2;
  animation: float 6.5s ease-in-out infinite;
}
.hero__chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(99, 201, 138, .18); }
.hero__chip small { display: block; color: var(--caption); font-weight: 500; font-size: 11px; font-family: var(--font-mono); }
.hero__chip--a { top: 44px; left: -34px; animation-delay: -1.2s; }
.hero__chip--b { top: 46%; right: -34px; animation-delay: -3.4s; }
.hero__chip--c { bottom: -18px; left: -26px; animation-delay: -2.1s; }

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

/* --- 8. 指标条 ----------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.stat { padding: 22px 24px; background: rgba(18, 20, 24, .86); }
.stat__num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.stat__num small { font-size: 15px; color: var(--accent-hi); margin-left: 4px; }
.stat__label { color: var(--muted); font-size: 13.6px; margin-top: 5px; }
.stat__sub { color: var(--caption); font-size: 12px; font-family: var(--font-mono); margin-top: 3px; }

/* --- 9. 对比三列 --------------------------------------------------------- */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: flow; }
.flow__item { position: relative; padding-left: 0; }
.flow__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-hi);
  border: 1px solid rgba(110, 168, 229, .3);
  border-radius: 8px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 12px;
}

/* --- 10. 截图画廊 -------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gallery__item { cursor: zoom-in; }
.gallery__item figcaption { margin-top: 12px; }
.gallery__item figcaption b { display: block; font-size: 15px; margin-bottom: 3px; }
.gallery__item figcaption span { color: var(--muted); font-size: 13.6px; }
.gallery__item .shot { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.gallery__item:hover .shot { border-color: rgba(110, 168, 229, .45); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.gallery__item--wide { grid-column: 1 / -1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(6, 8, 11, .92);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); }
.lightbox__close {
  position: absolute;
  top: 22px; right: 26px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

/* --- 11. 架构图 ---------------------------------------------------------- */
.arch {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 16, 20, .7);
  padding: 26px;
  overflow-x: auto;
}
.arch pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.6px;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre;
}
.arch b { color: var(--accent-bright); font-weight: 600; }
.arch i { color: var(--ok); font-style: normal; }

/* --- 12. 表格 ------------------------------------------------------------ */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.4px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
th {
  background: rgba(255, 255, 255, .028);
  color: var(--muted);
  font-weight: 600;
  font-size: 12.8px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(110, 168, 229, .05); }
td.num { font-family: var(--font-mono); color: var(--accent-bright); font-weight: 600; white-space: nowrap; }
td.num--good { color: var(--ok); }
td .muted { color: var(--caption); font-size: 13px; }

/* 性能对比条 */
.bars { display: grid; gap: 16px; }
.bar__top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; }
.bar__top b { font-weight: 600; }
.bar__top span { font-family: var(--font-mono); color: var(--muted); }
.bar__track { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; width: 0; transition: width 1.1s cubic-bezier(.22, 1, .36, 1); }
.bar__fill--old { background: linear-gradient(90deg, #4a5058, #6b7480); }
.bar__fill--new { background: linear-gradient(90deg, var(--accent), var(--accent-bright)); }

/* --- 13. 提示块 ---------------------------------------------------------- */
.callout {
  display: flex;
  gap: 15px;
  padding: 20px 22px;
  border: 1px solid rgba(110, 168, 229, .3);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(60, 116, 184, .14), rgba(60, 116, 184, .03));
}
.callout svg { width: 21px; height: 21px; color: var(--accent-bright); flex: 0 0 auto; margin-top: 3px; }
.callout p { color: var(--muted); font-size: 14.6px; }
.callout strong { color: var(--text); }
.callout--warn { border-color: rgba(224, 163, 92, .34); background: linear-gradient(120deg, rgba(224, 163, 92, .12), rgba(224, 163, 92, .02)); }
.callout--warn svg { color: var(--warn); }

/* --- 14. 步骤 ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.step__no::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.4px; }

/* --- 15. FAQ ------------------------------------------------------------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .014); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15.6px;
  font-weight: 600;
  list-style: none;
  transition: background .16s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: rgba(110, 168, 229, .05); }
.faq summary::after {
  content: "";
  margin-left: auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--caption);
  border-bottom: 2px solid var(--caption);
  transform: rotate(45deg);
  transition: transform .22s ease;
  flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq__body { padding: 0 22px 20px; color: var(--muted); font-size: 14.8px; }
.faq .faq__body p + p { margin-top: 10px; }
.faq .faq__body ul { margin: 10px 0 0; }
.faq .faq__body li { position: relative; padding-left: 17px; margin-top: 6px; }
.faq .faq__body li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* --- 16. 下载 CTA -------------------------------------------------------- */
.download {
  position: relative;
  border: 1px solid rgba(110, 168, 229, .28);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(38rem 20rem at 50% 0%, rgba(60, 116, 184, .22), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
  padding: 54px 40px;
  text-align: center;
  overflow: hidden;
}
.download h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.download p { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.download__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 16px; }
.download__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: center;
  color: var(--caption);
  font-size: 13px;
  font-family: var(--font-mono);
}
.hash {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 16px auto 0;
}
.hash__label { color: var(--caption); font-size: 12.5px; font-family: var(--font-mono); }
.hash code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft, #cfd8e3);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 6px 10px;
  word-break: break-all;
}

/* --- 17. 页脚 ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line-soft); padding: 54px 0 34px; margin-top: 20px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.footer h4 { font-size: 13px; color: var(--text); margin-bottom: 14px; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.footer li + li { margin-top: 9px; }
.footer a { color: var(--muted); font-size: 14.2px; }
.footer a:hover { color: var(--accent-bright); }
.footer__brand p { color: var(--caption); font-size: 13.6px; max-width: 34ch; margin-top: 14px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: var(--caption);
  font-size: 13px;
  border-top: 1px solid var(--line-soft);
  margin-top: 40px;
  padding-top: 22px;
}

/* --- 18. 滚动出现 -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }

/* --- 19. 内容页（更新日志 / 隐私） -------------------------------------- */
.page-head { padding: 62px 0 34px; border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 14px; }
.page-head p { color: var(--muted); font-size: 16.5px; max-width: 68ch; }
.prose { max-width: 84ch; }
.prose h2 { font-size: 23px; margin: 46px 0 16px; }
.prose h3 { font-size: 17.5px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 15.4px; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; }
.prose li { position: relative; padding-left: 18px; margin-top: 8px; }
.prose li::before { content: ""; position: absolute; left: 3px; top: .74em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.prose strong { color: var(--text); }

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(60, 116, 184, .06));
}
.release { position: relative; padding-bottom: 40px; }
.release::before {
  content: "";
  position: absolute;
  left: -30px; top: 7px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(60, 116, 184, .16);
}
.release--latest::before { border-color: var(--accent-bright); box-shadow: 0 0 0 5px rgba(140, 197, 255, .2); }
.release__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.release__ver { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--text); }
.release__date { color: var(--caption); font-size: 13px; font-family: var(--font-mono); }
.release ul li { position: relative; padding-left: 18px; margin-top: 9px; color: var(--muted); font-size: 14.8px; }
.release ul li::before { content: ""; position: absolute; left: 3px; top: .74em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.release ul li strong { color: var(--text); }

.flowchart {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, .014);
}
.flowchart__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.flowchart__label { font-family: var(--font-mono); font-size: 12px; color: var(--caption); min-width: 108px; }

/* --- 20. 响应式 ---------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero__lead { max-width: none; }
  .hero__chip--a { left: -8px; }
  .hero__chip--b { right: -8px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    padding: 12px 18px 18px;
    background: rgba(11, 13, 16, .98);
    border-bottom: 1px solid var(--line);
    gap: 2px;
  }
  .nav.is-open .nav__links a { padding: 11px 12px; font-size: 15.5px; }
  .nav.is-open .nav__links .nav__cta {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4278bd 0%, #2f5f9d 100%);
    border-radius: 10px;
  }
  .nav.is-open .nav__links .nav__cta:hover { color: #fff; background: linear-gradient(135deg, #4a83cc 0%, #3568a8 100%); }
}

@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3, .grid--2, .flow, .steps { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 52px 0 60px; }
  .hero__chip--c { display: none; }
  .download { padding: 40px 22px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  /* 窄屏导航只留：品牌 + 语言 + 菜单；下载入口挪进菜单里（否则整条导航会顶出屏幕）*/
  .nav__right > .icon-link,
  .nav__right > .btn { display: none; }
  .lang button { padding: 6px 10px; font-size: 12px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .hero__cta .btn { width: 100%; }
  .hero__chip { font-size: 11.6px; padding: 7px 11px; }
  .hero__chip--a { top: 48px; left: -6px; }
  .hero__chip--b { right: -6px; bottom: 20px; top: auto; }
  .hero h1 { letter-spacing: -.02em; }
  th, td { padding: 11px 13px; }
  .timeline { padding-left: 24px; }
  .release::before { left: -24px; }
}

/* --- 21. 无障碍 / 动效偏好 ---------------------------------------------- */
@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 { opacity: 1; transform: none; }
  #heroCanvas { display: none; }
}

@media print {
  body::before, body::after, #heroCanvas, .nav, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
