/* ============================================================================
   BatteryDock · 下载主页
   设计语言对齐 Win11 面板：亚克力玻璃感、圆角、Segoe UI Variable、
   强调色 #4cc2ff（深色）/ #0f6cbd（浅色），低电量红、充满绿只做点缀。
   无外部依赖：字体、图标、图片全部本地。
   ========================================================================== */

/* ── 主题变量 ──────────────────────────────────────────────────────── */
:root {
  --font: "Segoe UI Variable Text", "Segoe UI Variable Display", "Segoe UI",
          "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system,
          "PingFang SC", "Noto Sans SC", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI",
          "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", "JetBrains Mono", Consolas,
          "SFMono-Regular", "Liberation Mono", monospace;

  --container: 1160px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-2: #10151e;
  --band: rgba(255, 255, 255, .016);
  --glass: rgba(12, 16, 23, .68);
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --inset: rgba(0, 0, 0, .22);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .15);
  --sheen: rgba(255, 255, 255, .12);
  --fg: #f1f5fa;
  --fg-2: rgba(224, 233, 246, .74);
  --fg-3: rgba(199, 211, 228, .60);
  --fg-4: rgba(199, 211, 228, .58);
  --accent: #4cc2ff;
  --accent-2: #8a6fe0;
  --accent-soft: rgba(76, 194, 255, .14);
  --accent-ink: #03131d;
  --accent-line: rgba(76, 194, 255, .32);
  --ok: #6ccb5f;
  --warn: #f5c451;
  --low: #ff99a4;
  --shadow: 0 32px 80px rgba(0, 0, 0, .55), 0 4px 18px rgba(0, 0, 0, .35);
  --card-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  --toast-bg: rgba(24, 30, 41, .96);
  --grid-line: rgba(255, 255, 255, .045);
  --glow-a: rgba(76, 194, 255, .13);
  --glow-b: rgba(126, 96, 200, .12);
  --glow-c: rgba(76, 194, 255, .05);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-2: #eaf0f8;
  --band: rgba(255, 255, 255, .55);
  --glass: rgba(248, 251, 255, .74);
  --surface: rgba(255, 255, 255, .68);
  --surface-2: #ffffff;
  --inset: rgba(15, 30, 55, .045);
  --border: rgba(15, 23, 42, .09);
  --border-strong: rgba(15, 23, 42, .17);
  --sheen: rgba(255, 255, 255, .85);
  --fg: #0e1521;
  --fg-2: #46536a;
  --fg-3: #5c687b;
  --fg-4: #64718a;
  --accent: #0f6cbd;
  --accent-2: #6b4fbe;
  --accent-soft: rgba(15, 108, 189, .10);
  --accent-ink: #ffffff;
  --accent-line: rgba(15, 108, 189, .28);
  --ok: #0f7b0f;
  --warn: #9d5d00;
  --low: #c42b1c;
  --shadow: 0 30px 70px rgba(31, 45, 70, .18), 0 4px 16px rgba(31, 45, 70, .08);
  --card-shadow: 0 18px 44px rgba(31, 45, 70, .09);
  --toast-bg: rgba(20, 28, 40, .95);
  --grid-line: rgba(15, 23, 42, .045);
  --glow-a: rgba(15, 108, 189, .10);
  --glow-b: rgba(107, 79, 190, .09);
  --glow-c: rgba(15, 108, 189, .04);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  background:
    radial-gradient(1100px 720px at 82% -8%, var(--glow-a), transparent 62%),
    radial-gradient(900px 640px at -8% 14%, var(--glow-b), transparent 58%),
    radial-gradient(1000px 700px at 50% 112%, var(--glow-c), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 很淡的网格底纹，只在页面上方可见 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 0%, transparent 74%);
          mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 0%, transparent 74%);
}

::selection { background: var(--accent-soft); color: var(--fg); }

img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--inset);
  border: 1px solid var(--border);
  white-space: nowrap;
}
pre code { padding: 0; border: 0; background: none; font-size: inherit; white-space: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

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

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

.skip-link {
  position: fixed;
  top: -64px;
  left: 16px;
  z-index: 500;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ── 通用图标与按钮 ───────────────────────────────────────────────── */
svg.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg.ico use { pointer-events: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.995); }

.btn-primary {
  background: linear-gradient(180deg, #6fd0ff 0%, #35b0ef 100%);
  border-color: rgba(255, 255, 255, .18);
  color: #04131d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), 0 10px 26px rgba(76, 194, 255, .24);
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 32px rgba(76, 194, 255, .32);
}
html[data-theme="light"] .btn-primary {
  background: linear-gradient(180deg, #1578cc 0%, #0c5da3 100%);
  border-color: rgba(0, 0, 0, .06);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px rgba(15, 108, 189, .22);
}
html[data-theme="light"] .btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 14px 30px rgba(15, 108, 189, .3);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--fg);
  box-shadow: inset 0 1px 0 var(--sheen);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }

.btn-large { padding: 13px 22px; border-radius: 13px; font-size: 15px; }
.btn-small { padding: 8px 14px; border-radius: 9px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.btn-text strong { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.btn-text small { font-size: 11.5px; font-weight: 500; color: rgba(3, 19, 29, .78); }
.btn-ghost .btn-text small { color: var(--fg-3); }
html[data-theme="light"] .btn-primary .btn-text small { color: rgba(255, 255, 255, .92); }

/* ── 页头 ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand-version {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--fg-3);
  letter-spacing: .02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 8px;
}
.site-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.site-nav a:hover { color: var(--fg); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s var(--ease);
}
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--fg); }
.site-nav a.nav-source { display: inline-flex; align-items: center; gap: 4px; }
.site-nav a.nav-source .ico { width: 12px; height: 12px; opacity: .55; }
.site-nav a.nav-source:hover .ico { opacity: .9; }

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

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--fg-2);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); color: var(--fg); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--fg-2);
  cursor: pointer;
}
.nav-toggle svg { width: 19px; height: 19px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { padding: 84px 0 0; position: relative; overflow: clip; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(36px, 5.5vw, 84px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(108, 203, 95, .5);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(108, 203, 95, .45); }
  70%  { box-shadow: 0 0 0 7px rgba(108, 203, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(108, 203, 95, 0); }
}

.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.45rem, 5.1vw, 4.05rem);
  line-height: 1.07;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #8ad9ff 42%, var(--accent-2) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
html[data-theme="light"] .grad {
  background: linear-gradient(100deg, #0f6cbd 0%, #2c8fd6 45%, #6b4fbe 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.lead {
  max-width: 36em;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.75;
  color: var(--fg-2);
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--fg-3);
}
.hero-note svg { width: 15px; height: 15px; color: var(--ok); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  list-style: none;
}
.hero-trust li {
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--fg-3);
  background: var(--surface);
}

/* 右侧面板展示 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.panel-stage { position: relative; width: min(100%, 418px); }
.panel-stage::before {
  content: "";
  position: absolute;
  inset: -14% -22%;
  z-index: -1;
  background:
    radial-gradient(50% 45% at 28% 24%, rgba(76, 194, 255, .30), transparent 70%),
    radial-gradient(46% 42% at 76% 76%, rgba(126, 96, 200, .26), transparent 72%);
  filter: blur(46px);
  pointer-events: none;
}
html[data-theme="light"] .panel-stage::before {
  background:
    radial-gradient(50% 45% at 28% 24%, rgba(15, 108, 189, .18), transparent 70%),
    radial-gradient(46% 42% at 76% 76%, rgba(107, 79, 190, .16), transparent 72%);
}

.panel-figure {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02));
  box-shadow: var(--shadow), inset 0 1px 0 var(--sheen);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html[data-theme="light"] .panel-figure {
  background: linear-gradient(160deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .4));
}
.panel-figure figcaption {
  padding: 10px 0 2px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--fg-3);
}

/* ── 手绘面板（纯 HTML/CSS，随页面缩放保持清晰） ─────────────────── */
.app-window {
  --app-fg: #f2f6fb;
  --app-fg-2: rgba(255, 255, 255, .72);
  --app-fg-3: rgba(255, 255, 255, .46);
  --app-line: rgba(255, 255, 255, .075);
  --app-blue: #4cc2ff;
  position: relative;
  padding: 14px 14px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 17px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(76, 194, 255, .10), transparent 60%),
    linear-gradient(158deg, #1c222c 0%, #141922 52%, #10141b 100%);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .10);
  color: var(--app-fg);
  font-family: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  overflow: hidden;
}
.app-window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 18%);
  pointer-events: none;
}
.app-window > * { position: relative; z-index: 1; }
.app-window .ico { flex: none; }

.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 2px 12px;
}
.app-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .01em;
  color: #fff;
}
.app-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6ccb5f;
  box-shadow: 0 0 7px rgba(108, 203, 95, .85);
}
.app-actions { display: flex; align-items: center; gap: 13px; color: rgba(255, 255, 255, .64); }
.app-actions .ico { width: 17px; height: 17px; }

.app-devices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 10px;
}
.app-device { min-width: 0; }
.app-tile {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 6px 8px;
  align-items: start;
  height: 84px;
  padding: 11px 13px 13px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 7px 16px rgba(0, 0, 0, .18);
}
.app-tile.tone-normal { background: linear-gradient(145deg, #4a6398 0%, #3f5789 45%, #304473 100%); }
.app-tile.tone-low { background: linear-gradient(145deg, #a04a52 0%, #8d3f47 45%, #6d2e36 100%); }
.app-tile.tone-warn { background: linear-gradient(145deg, #9a6a2f 0%, #855824 45%, #67431a 100%); }
.app-tile.tone-muted {
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.app-tile .tile-icon { width: 21px; height: 21px; color: rgba(255, 255, 255, .95); }
.tile-value {
  justify-self: end;
  font-size: 26px;
  font-weight: 650;
  line-height: .82;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.tile-value small { margin-left: 1px; font-size: .5em; font-weight: 600; color: rgba(255, 255, 255, .9); }
.tile-value.is-muted { font-size: 23px; line-height: .95; color: rgba(255, 255, 255, .36); }
.tile-meter {
  grid-column: 1 / -1;
  align-self: end;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
.tile-meter i {
  display: block;
  width: var(--pct, 0%);
  height: 100%;
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 0 7px rgba(255, 255, 255, .35);
}
.tone-muted .tile-meter { background: rgba(255, 255, 255, .12); }
.tone-muted .tile-meter i { background: rgba(255, 255, 255, .3); box-shadow: none; }
.app-device-name {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-device-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--app-fg-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sliders {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--app-line);
}
.app-slider-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, .88);
}
.app-slider-head .ico { width: 15px; height: 15px; color: rgba(255, 255, 255, .68); }
.app-slider-head b { margin-left: auto; font-size: 12px; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
.app-track {
  position: relative;
  height: 3px;
  margin: 8px 2px 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .15);
}
.app-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #3fb4f2, #74d3ff);
}
.app-track u {
  position: absolute;
  top: 50%;
  left: var(--pct, 0%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #e9f8ff;
  border: 3px solid #4cc2ff;
  box-shadow: 0 0 0 3px rgba(76, 194, 255, .18), 0 2px 6px rgba(0, 0, 0, .45);
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--app-line);
  font-size: 11.5px;
  color: var(--app-fg-2);
}
.app-summary { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; }
.app-summary .ico { width: 16px; height: 16px; color: #6ccb5f; }
.app-summary.is-muted { color: var(--app-fg-3); }
.app-summary.is-muted .ico { color: rgba(255, 255, 255, .38); }
.app-footer .app-actions .ico { width: 19px; height: 19px; color: rgba(255, 255, 255, .82); }

.app-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 16px 8px 20px;
  text-align: center;
}
.app-empty-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
  border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: rgba(255, 255, 255, .55);
}
.app-empty-icon .ico { width: 21px; height: 21px; }
.app-empty strong { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.app-empty span { max-width: 230px; font-size: 11.5px; line-height: 1.55; color: var(--app-fg-3); }
.app-window--empty .app-empty { padding-top: 24px; padding-bottom: 26px; }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  animation: float 7s ease-in-out infinite;
}
.chip-battery { left: -26px; top: -22px; }
.chip-alert { right: -24px; bottom: -22px; animation-delay: -3.4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

.ring {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 95%, var(--surface-2) 95% 100%);
  flex: none;
}
.ring > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #11151d;
  color: #eaf6ff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: -.02em;
}
html[data-theme="light"] .ring > span { background: #fff; color: #0e1521; }

.chip-text { display: flex; flex-direction: column; gap: 1px; }
.chip-text strong { font-size: 12.5px; font-weight: 650; letter-spacing: -.01em; }
.chip-text small { font-size: 10.5px; color: var(--fg-3); }

.alert-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--low);
  box-shadow: 0 0 0 4px rgba(255, 153, 164, .16);
  flex: none;
}

/* 数据条 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 68px 0 0;
  padding: 26px 0 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { padding: 0 28px; border-left: 1px solid var(--border); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat:last-child { padding-right: 0; }
.stat dt {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--fg);
}
.stat dd {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-3);
}

/* ── 区块骨架 ─────────────────────────────────────────────────────── */
.section { position: relative; padding: clamp(72px, 8.5vw, 116px) 0; }
.section-alt {
  background: var(--band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { max-width: 780px; margin-bottom: clamp(38px, 4.5vw, 54px); }
.section-head h2 {
  margin: 14px 0 18px;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.section-sub {
  max-width: 44em;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--fg-2);
  text-wrap: pretty;
}
.br-mobile { display: none; }

/* ── 功能 Bento ───────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform .28s var(--ease), border-color .28s var(--ease), background-color .28s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sheen), transparent);
  pointer-events: none;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.card h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.card p { font-size: 13.5px; line-height: 1.72; color: var(--fg-2); }
.card-note { margin-top: 10px; font-size: 12.5px !important; color: var(--fg-3) !important; }
.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card-icon svg { width: 21px; height: 21px; }

.bento > .card { grid-column: span 4; }
.bento > .card:nth-child(1) { grid-column: span 7; }
.bento > .card:nth-child(2) { grid-column: span 5; }
.bento > .card:nth-child(6),
.bento > .card:nth-child(7) { grid-column: span 6; }

.feature-badge {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 24px;
}
.feature-badge h3 { font-size: 19px; }
.feature-kinds h3 { margin-top: 4px; }
.feature-kinds p { margin-bottom: 16px; }

.tray-demo {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: #0d1117;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 30px rgba(0, 0, 0, .25);
}
.tray-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  font-size: 10.5px;
  color: rgba(255, 255, 255, .45);
}
.tray-dot { width: 6px; height: 6px; border-radius: 50%; background: #6ccb5f; box-shadow: 0 0 8px rgba(108, 203, 95, .8); }
.tray-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 2px 10px;
}
.tray-ic {
  --tray-ink: #fff;
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #1a2029 58%, #0f131a 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), inset 0 0 12px rgba(0, 0, 0, .45);
}
.tray-ic::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from -8deg, var(--tray-ink) calc(var(--pct) * 1%), rgba(255, 255, 255, .13) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
}
.tray-ic .ico { width: 19px; height: 19px; color: var(--tray-ink); }
.tray-ic.is-low { --tray-ink: #ff8d9a; }
.tray-ic.is-unknown { --tray-ink: rgba(255, 255, 255, .34); }
.tray-ic.is-unknown::before { background: conic-gradient(rgba(255, 255, 255, .10) 0 100%); }
.tray-q { font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, .4); line-height: 1; }
.tray-caption { margin-top: 9px; font-size: 10.5px; text-align: center; color: rgba(255, 255, 255, .52); }

.kind-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  list-style: none;
  margin-top: auto;
}
.kind-grid li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--inset);
  font-size: 13px;
  color: var(--fg-2);
}
.kind-grid svg { width: 18px; height: 18px; color: var(--accent); }

.vendor-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 16px; }
.vendor-pills span {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--inset);
  color: var(--fg-3);
  font-size: 11.5px;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--low);
}

/* ── 支持设备 ────────────────────────────────────────────────────── */
.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.path-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.path-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.path-card h3 { margin: 0 0 9px; font-size: 17px; letter-spacing: -.015em; }
.path-card p { font-size: 13.5px; line-height: 1.72; color: var(--fg-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.tags span {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--inset);
  font-size: 11px;
  color: var(--fg-3);
}

.tested {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.tested-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.tested-head h3 { margin: 0; font-size: 17px; }
.tested-head p { font-size: 12.5px; color: var(--fg-3); }
.table-wrap { overflow-x: auto; margin-top: 8px; }
.tested table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tested th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: left;
  color: var(--fg-3);
  white-space: nowrap;
}
.tested td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--fg-2);
}
.tested tbody tr:last-child td { border-bottom: 0; }
.tested td:first-child { color: var(--fg); }
.tested .ok { color: var(--ok); font-weight: 650; white-space: nowrap; }
.tested-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--fg-3);
}
.tested-note svg { width: 16px; height: 16px; margin-top: 1px; color: var(--warn); }

/* ── 界面截图 ────────────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.shot { margin: 0; }
.shot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(60% 60% at 30% 18%, rgba(76, 194, 255, .16), transparent 68%),
    radial-gradient(55% 55% at 76% 82%, rgba(126, 96, 200, .14), transparent 70%),
    linear-gradient(160deg, #151b27, #0b0f16);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.shot-frame .app-window { width: min(100%, 340px); }
.shot figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.shot figcaption strong { font-size: 14px; letter-spacing: -.01em; }
.shot figcaption span { font-size: 12.5px; color: var(--fg-3); }

.panel-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 30px;
  margin-top: 34px;
  list-style: none;
}
.panel-notes li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--fg-2);
}
.panel-notes svg { width: 16px; height: 16px; color: var(--ok); }

/* ── 下载 ────────────────────────────────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.download-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.download-card.primary {
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, rgba(76, 194, 255, .10), transparent 52%),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(76, 194, 255, .07), 0 24px 60px rgba(76, 194, 255, .07);
}
html[data-theme="light"] .download-card.primary {
  background:
    linear-gradient(180deg, rgba(15, 108, 189, .07), transparent 52%),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(15, 108, 189, .06), 0 24px 60px rgba(15, 108, 189, .08);
}
.download-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.badge {
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .04em;
  color: var(--fg-3);
}
.badge-accent { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.download-kind { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.download-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -.03em;
}
.download-card > p { font-size: 13.5px; line-height: 1.72; color: var(--fg-2); }

.file-meta { margin: 18px 0 20px; padding: 0; list-style: none; }
.file-meta li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12.5px;
}
.file-meta li:last-child { border-bottom: 0; }
.file-meta span { color: var(--fg-3); }
.file-meta strong { font-weight: 600; color: var(--fg); }
.download-card .btn-block { margin-top: auto; }

.hash-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--inset);
  min-width: 0;
  overflow: hidden;
}
.hash-label { flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: var(--fg-3); }
code.hash {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  color: var(--fg-3);
}
.copy-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fg-3);
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.copy-btn:hover { background: var(--surface-2); color: var(--fg); }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn.copied { color: var(--ok); }

.download-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--fg-3);
}
.download-note a { color: var(--accent); text-decoration: none; }
.download-note a:hover { text-decoration: underline; }

.download-repo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--fg-3);
}
.download-repo .ico { width: 15px; height: 15px; color: var(--accent); }
.download-repo a { color: var(--accent); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.download-repo a:hover { text-decoration: underline; }
.download-repo .repo-dot { opacity: .45; }

.requirements {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  margin-top: 20px;
}
.req-main,
.req-smartscreen {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.req-main h3 { margin: 0 0 12px; font-size: 15.5px; }
.req-main ul { list-style: none; }
.req-main li {
  position: relative;
  margin: 8px 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg-2);
}
.req-main li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.req-smartscreen {
  border-color: rgba(245, 196, 81, .22);
  background:
    linear-gradient(180deg, rgba(245, 196, 81, .07), transparent 65%),
    var(--surface);
}
.req-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--warn);
}
.req-title svg { width: 17px; height: 17px; }
.req-smartscreen p { font-size: 12.5px; line-height: 1.7; color: var(--fg-2); }

.download-extra {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 28px;
  margin-top: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.extra-copy h3 { margin: 8px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.extra-copy > p { font-size: 13.5px; line-height: 1.72; color: var(--fg-2); }
.code-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: #0d1117;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}
.code-head .copy-btn { color: rgba(255, 255, 255, .5); }
.code-head .copy-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.code-card pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.75;
  color: #d5e3f6;
  font-family: var(--mono);
}

/* ── 快速开始 ────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.step {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.step:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.step-no {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.step h3 { margin: 0 0 8px; font-size: 15.5px; letter-spacing: -.01em; }
.step p { font-size: 12.5px; line-height: 1.7; color: var(--fg-2); }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .22s var(--ease), background-color .22s var(--ease);
}
.faq-item[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  list-style: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron {
  width: 17px;
  height: 17px;
  color: var(--fg-3);
  transition: transform .24s var(--ease), color .24s var(--ease);
}
.faq-item[open] summary .chevron { transform: rotate(90deg); color: var(--accent); }
.faq-body { padding: 0 0 17px; }
.faq-body p {
  margin: 0 0 9px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--fg-2);
}
.faq-body p:last-child { margin-bottom: 0; }

/* ── 结尾 CTA ────────────────────────────────────────────────────── */
.cta-final { padding-top: 10px; padding-bottom: clamp(72px, 8vw, 104px); }
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(30px, 4.6vw, 52px);
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  background:
    radial-gradient(110% 170% at 0% 0%, rgba(76, 194, 255, .16), transparent 58%),
    radial-gradient(110% 170% at 100% 100%, rgba(126, 96, 200, .16), transparent 58%),
    var(--surface);
  box-shadow: var(--card-shadow);
}
html[data-theme="light"] .cta-card {
  background:
    radial-gradient(110% 170% at 0% 0%, rgba(15, 108, 189, .10), transparent 58%),
    radial-gradient(110% 170% at 100% 100%, rgba(107, 79, 190, .10), transparent 58%),
    var(--surface);
}
.cta-card h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.cta-card p { font-size: 14px; color: var(--fg-2); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; flex: none; }

/* ── 页脚 ────────────────────────────────────────────────────────── */
.site-footer {
  padding: 52px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--band);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr 1fr;
  gap: 40px;
}
.footer-brand p {
  margin-top: 12px;
  max-width: 30em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-3);
}
.footer-meta { font-size: 11.5px; color: var(--fg-4); }
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a {
  width: fit-content;
  font-size: 13px;
  color: var(--fg-2);
  text-decoration: none;
  transition: color .16s var(--ease);
}
.footer-nav a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.footer-note p { margin-bottom: 8px; font-size: 11.5px; line-height: 1.65; color: var(--fg-3); }
.footer-note p a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.footer-note p a:hover { text-decoration: underline; }
.footer-note p:last-child { margin-bottom: 0; color: var(--fg-4); }
.site-footer .brand-icon { width: 26px; height: 26px; }
.site-footer .brand-name { font-size: 15px; }

/* ── Toast ───────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 300;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: var(--toast-bg);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  transform: translate(-50%, 10px);
  opacity: 0;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 滚动入场 ────────────────────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.bento .reveal:nth-child(2) { transition-delay: .05s; }
.bento .reveal:nth-child(3) { transition-delay: .1s; }
.bento .reveal:nth-child(4) { transition-delay: .15s; }
.bento .reveal:nth-child(5) { transition-delay: .2s; }
.bento .reveal:nth-child(6) { transition-delay: .1s; }
.bento .reveal:nth-child(7) { transition-delay: .15s; }
.steps .reveal:nth-child(2) { transition-delay: .06s; }
.steps .reveal:nth-child(3) { transition-delay: .12s; }
.steps .reveal:nth-child(4) { transition-delay: .18s; }
.paths .reveal:nth-child(2) { transition-delay: .06s; }
.paths .reveal:nth-child(3) { transition-delay: .12s; }
.paths .reveal:nth-child(4) { transition-delay: .18s; }
.gallery .reveal:nth-child(2) { transition-delay: .08s; }
.download-grid .reveal:nth-child(2) { transition-delay: .08s; }

/* ── 响应式 ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid { gap: 44px; }
  .site-nav { gap: 20px; }
  .feature-badge { grid-template-columns: 1fr; gap: 18px; }
  .feature-badge .tray-demo { max-width: 460px; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { justify-content: center; }
  .panel-stage { width: min(100%, 400px); }
  .chip-battery { left: -14px; }
  .chip-alert { right: -8px; }

  .bento > .card,
  .bento > .card:nth-child(1),
  .bento > .card:nth-child(2),
  .bento > .card:nth-child(6),
  .bento > .card:nth-child(7) { grid-column: span 6; }
  .bento > .card:nth-child(1),
  .bento > .card:nth-child(2) { grid-column: span 12; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-grid { grid-template-columns: minmax(0, 1fr); }
  .download-extra { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--glass);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .site-nav a {
    padding: 13px 2px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-toggle { display: grid; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px 0; padding: 24px 0; margin-top: 56px; }
  .stat { padding: 0 22px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(4) { padding-right: 0; }

  .paths { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .requirements { grid-template-columns: minmax(0, 1fr); }
  .panel-notes { grid-template-columns: minmax(0, 1fr); }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .hero { padding-top: 60px; }
  .hero h1 { font-size: clamp(2.1rem, 9.2vw, 2.6rem); }
  .brand-version { display: none; }
  .header-inner { gap: 12px; }
  .header-download { display: none; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-large { width: 100%; }
  .panel-stage { width: calc(100% - 12px); margin-left: 6px; }
  /* 小屏上浮动徽标会压住面板里的文字，直接收掉 */
  .float-chip { display: none; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 0 16px; }
  .stat dt { font-size: 16px; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .br-mobile { display: block; }

  .bento > .card,
  .bento > .card:nth-child(1),
  .bento > .card:nth-child(2),
  .bento > .card:nth-child(6),
  .bento > .card:nth-child(7) { grid-column: span 12; }
  .card, .path-card, .download-card, .download-extra, .req-main, .req-smartscreen { padding: 21px; }
  .tested { padding: 20px; }
  /* 窄屏把表格拆成一条条设备卡：横滑表格会截掉「依据」列 */
  .table-wrap { overflow: visible; }
  .tested table, .tested tbody, .tested tr, .tested td { display: block; width: 100%; }
  .tested thead { display: none; }
  .tested tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .tested tbody tr:first-child { padding-top: 6px; }
  .tested tbody tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .tested td { padding: 2px 0; border: 0; font-size: 13px; line-height: 1.6; }
  .tested td:first-child { margin-bottom: 3px; font-size: 14px; font-weight: 650; }
  .tested td:not(:first-child)::before {
    content: attr(data-label);
    margin-right: 8px;
    font-size: 12px;
    color: var(--fg-3);
  }
  .kind-grid { grid-template-columns: 1fr 1fr; }
  .shot-frame { padding: 16px; min-height: 360px; }
  .step { padding: 20px; }
  .steps { grid-template-columns: 1fr; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .toast { bottom: 18px; max-width: calc(100% - 32px); text-align: center; }
}

@media (max-width: 420px) {
  .app-window { padding: 12px 12px 10px; border-radius: 15px; }
  .app-titlebar { padding-bottom: 10px; }
  .app-name { font-size: 14px; }
  .app-actions { gap: 11px; }
  .app-actions .ico { width: 16px; height: 16px; }
  .app-devices { gap: 10px 8px; }
  .app-tile { height: 74px; padding: 9px 10px 11px; border-radius: 10px; }
  .app-tile .tile-icon { width: 18px; height: 18px; }
  .tile-value { font-size: 22px; }
  .tile-value.is-muted { font-size: 20px; }
  .app-device-name { margin-top: 7px; font-size: 11px; }
  .app-device-sub { font-size: 10px; }
  .app-sliders { gap: 9px; margin-top: 11px; padding-top: 10px; }
  .app-slider-head, .app-slider-head b { font-size: 11px; }
  .app-footer { margin-top: 10px; padding-top: 9px; font-size: 10.5px; }
  .app-summary .ico { width: 14px; height: 14px; }
  .app-footer .app-actions .ico { width: 17px; height: 17px; }
  .app-empty { padding: 14px 4px 18px; }
  .app-empty strong { font-size: 12.5px; }
  .app-empty span { font-size: 10.5px; }
  .shot-frame { padding: 14px; min-height: 330px; }
  .tray-icons { gap: 6px; padding: 10px 0 8px; }
  .tray-ic { width: 36px; height: 36px; }
  .tray-ic .ico { width: 16px; height: 16px; }
  .tray-q { font-size: 15px; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 15px; }
  .hash-label { display: none; }
}

/* ── 动效克制 ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── 交互增强（沿用原有视觉语言） ─────────────────────────────────── */

/* 首页面板演示：把滑杆做成真的可以拖 */
.app-slider { position: relative; }
.demo-range {
  position: absolute;
  display: none;
  left: -6px;
  right: -6px;
  bottom: -11px;
  width: calc(100% + 12px);
  height: 26px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.js .demo-range { display: block; }
.demo-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 26px; }
.app-slider:focus-within .app-track { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 99px; }
.app-slider:focus-within .app-track u { box-shadow: 0 0 0 5px rgba(76, 194, 255, .3), 0 2px 6px rgba(0, 0, 0, .45); }

/* 电量条入场时从 0 长到实际值 */
@keyframes meter-grow { from { width: 0; } }
.js .app-tile .tile-meter i { animation: meter-grow .9s var(--ease) both; }
.js .app-device:nth-child(2) .tile-meter i { animation-delay: .12s; }
.js .app-device:nth-child(3) .tile-meter i { animation-delay: .2s; }
.js .app-device:nth-child(4) .tile-meter i { animation-delay: .28s; }

/* 托盘图标悬停：抬起 + 设备名 */
.tray-ic { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tray-ic[data-name]:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 12px rgba(0, 0, 0, .45), 0 8px 18px rgba(0, 0, 0, .35);
}
.tray-ic[data-name]::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 4;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(9, 13, 19, .96);
  color: #dce7f6;
  font-size: 10.5px;
  line-height: 1.3;
  white-space: nowrap;
  transform: translate(-50%, 3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.tray-ic[data-name]:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* 数字统计 */
.stat-num { font-variant-numeric: tabular-nums; }

/* 实测表筛选 */
.table-filter { display: none; flex-wrap: wrap; gap: 7px; margin: 14px 0 2px; }
.js .table-filter { display: flex; }
.filter-btn {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--inset);
  color: var(--fg-3);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.filter-btn:hover { color: var(--fg); border-color: var(--border-strong); }
.filter-btn.is-on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.filter-btn .filter-count { opacity: .65; font-weight: 500; }
.tested tr.is-hidden { display: none; }
@keyframes row-in { from { opacity: 0; transform: translateY(-3px); } }
.tested tr.is-entering { animation: row-in .28s var(--ease); }

/* FAQ 高度动画：内容包一层，height 由 JS 补间 */
.faq-body { padding: 0; overflow: hidden; transition: height .28s var(--ease); }
.faq-inner { padding: 0 0 17px; }

/* 主题切换：从按钮位置扩散的圆形切换 */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-wipe .48s var(--ease); }
@keyframes theme-wipe {
  from { clip-path: circle(0 at var(--vt-x, 92%) var(--vt-y, 4%)); }
  to   { clip-path: circle(150% at var(--vt-x, 92%) var(--vt-y, 4%)); }
}

/* 面板跟随鼠标轻微倾斜 */
.panel-figure { transition: transform .3s var(--ease), box-shadow .3s var(--ease); will-change: transform; }
.panel-stage.is-tilting .panel-figure {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition-duration: .12s;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) { animation: none; }
  .panel-stage.is-tilting .panel-figure { transform: none; }
}
