
/* ===========================================================================
   防误服智能分时药盒 · 介绍页样式
   设计语言：深空底色 + 青蓝辉光 + 等宽数字，配色与设备端 LVGL 主题一致
   （BG #0B1220 / ACCENT #00C8FF / GREEN #2ED47A / AMBER #FFB020 / RED #FF5C5C）
   仅外链本文件，页面禁用内联样式以契合服务端 CSP（script-src/style-src 'self'）
   =========================================================================== */

:root {
  --bg: #05080f;
  --bg-soft: #080d17;
  --panel: rgba(13, 20, 32, 0.72);
  --panel-solid: #0d1420;
  --panel-hi: #111a28;
  --line: rgba(122, 160, 200, 0.16);
  --line-hi: rgba(0, 200, 255, 0.34);
  --text: #e8eef5;
  --muted: #8fa3b8;
  --dim: #7b8b9e;
  --cyan: #00c8ff;
  --blue: #4d9fff;
  --green: #2ed47a;
  --amber: #ffb020;
  --red: #ff5c5c;

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas,
    "Liberation Mono", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 var(--font);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景：三层辉光 + 网格 + 扫描线，全部由 CSS 绘制，不请求外部资源 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 620px at 78% -6%, rgba(0, 200, 255, 0.18), transparent 62%),
    radial-gradient(760px 560px at 8% 8%, rgba(77, 159, 255, 0.14), transparent 64%),
    radial-gradient(900px 700px at 50% 108%, rgba(46, 212, 122, 0.08), transparent 66%),
    linear-gradient(180deg, #060a13 0%, #05080f 46%, #070b14 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(122, 160, 200, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(122, 160, 200, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 22%, #000 8%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 8%, transparent 76%);
}

a { color: var(--cyan); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
a:hover { color: #7fe0ff; }

code, .mono { font-family: var(--mono); font-size: 0.88em; }

::selection { background: rgba(0, 200, 255, 0.28); color: #fff; }

/* ------------------------------------------------------------------ 顶栏 */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(5, 8, 15, 0.68);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(122, 160, 200, 0.1);
}

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.7);
}

.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand svg { display: block; flex: none; }
.brand b { font-weight: 650; }
.brand span { color: var(--dim); font-weight: 400; font-size: 13px; letter-spacing: 0.06em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.nav-links a {
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transition: right 0.24s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }

.nav-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* 顶栏下载 CTA：胶囊 + 图标 + 版本徽标。权重高于普通链接，但不抢 brand 的注意力 */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 9px 0 11px;
  /* 与 .nav-flag 的视觉间距收到 13px 左右：导航用了 flex gap，这里用负边距抵掉一半 */
  margin-left: -13px;
  border: 1px solid rgba(0, 200, 255, 0.32);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 200, 255, 0.13), rgba(0, 200, 255, 0.04));
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.22s ease, box-shadow 0.24s ease, background 0.22s ease;
}
.nav-cta svg { display: block; flex: none; color: var(--cyan); }
.nav-cta:hover {
  color: var(--text);
  border-color: rgba(0, 200, 255, 0.62);
  background: linear-gradient(180deg, rgba(0, 200, 255, 0.2), rgba(0, 200, 255, 0.07));
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.07), 0 10px 24px -14px rgba(0, 200, 255, 0.9);
}
.nav-cta-ver {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10.5px;
  line-height: 1;
  padding: 4px 5px;
  border-radius: 6px;
  background: rgba(0, 200, 255, 0.12);
  color: var(--cyan);
  letter-spacing: 0;
}
.nav-cta.is-off { opacity: 0.6; }

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
  flex: none;
}
.pulse-dot[data-state="ok"] {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(46, 212, 122, 0.7);
  animation: pulse 2.4s ease-out infinite;
}
.pulse-dot[data-state="warn"] { background: var(--amber); }
.pulse-dot[data-state="bad"] { background: var(--red); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 212, 122, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(46, 212, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 212, 122, 0); }
}

/* ------------------------------------------------------------------ 通用 */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 104px 0 8px;
}

/* 顶栏是 position:fixed（62px 高），锚点跳转要额外留出这段：
   88 = 62 顶栏 + 26 呼吸，保证 #download / #mechanism / #status 的标题完整露出 */
.section[id] { scroll-margin-top: 88px; }
.section + .section { border-top: 1px solid rgba(122, 160, 200, 0.1); }

.sec-head { max-width: 760px; margin-bottom: 44px; }

.sec-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-transform: uppercase;
}
.sec-num::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(25px, 3.1vw, 34px);
  line-height: 1.32;
  letter-spacing: 0.01em;
  font-weight: 650;
}

.sec-sub {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 40em;
}

p { margin: 0 0 14px; color: var(--muted); }

.lede-strong { color: var(--text); }

.hl { color: var(--cyan); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}
.tag[data-tone="ok"] { color: var(--green); border-color: rgba(46, 212, 122, 0.34); background: rgba(46, 212, 122, 0.08); }
.tag[data-tone="proto"] { color: var(--amber); border-color: rgba(255, 176, 32, 0.32); background: rgba(255, 176, 32, 0.08); }
.tag[data-tone="paper"] { color: var(--blue); border-color: rgba(77, 159, 255, 0.3); background: rgba(77, 159, 255, 0.08); }
.tag[data-tone="gap"] { color: var(--red); border-color: rgba(255, 92, 92, 0.3); background: rgba(255, 92, 92, 0.08); }

.note {
  margin: 0;
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.7;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(0, 200, 255, 0.34), transparent 38%, transparent 66%, rgba(77, 159, 255, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 600; letter-spacing: 0.01em; }

/* 入场动画：默认可见，只有 app.js 成功接管后（html.motion）才隐藏待入场 */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.motion .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ 首屏 */
.hero {
  position: relative;
  padding: 132px 0 76px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 120%;
  background: radial-gradient(520px 420px at var(--mx, 62%) var(--my, 30%), rgba(0, 200, 255, 0.12), transparent 68%);
  pointer-events: none;
  transition: background 0.2s linear;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 200, 255, 0.05);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.eyebrow b { color: var(--cyan); font-weight: 600; }

h1 {
  margin: 0 0 22px;
  font-size: clamp(32px, 4.7vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-weight: 680;
}
h1 .grad {
  background: linear-gradient(96deg, #7fe0ff 0%, var(--cyan) 42%, #7ea8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  margin: 0 0 30px;
  font-size: 16.5px;
  color: var(--muted);
  max-width: 33em;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 550;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.24s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--cyan), #3d8bff);
  color: #04121b;
  box-shadow: 0 10px 30px -12px rgba(0, 200, 255, 0.8);
}
.btn-primary:hover {
  color: #04121b;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -14px rgba(0, 200, 255, 0.95);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--line-hi); color: var(--cyan); background: rgba(0, 200, 255, 0.06); }

/* 首屏主 CTA 里的版本徽标：主按钮是亮底，徽标用深色半透明底 */
.btn-dl { padding-right: 14px; }
.btn-dl-label { display: inline-flex; align-items: center; gap: 7px; }
.btn-dl-ver {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(4, 18, 27, 0.16);
  color: #04121b;
  font-weight: 700;
  letter-spacing: 0;
}
.btn-dl.is-off,
.btn-dl.is-off:hover {
  background: linear-gradient(120deg, rgba(0, 200, 255, 0.4), rgba(61, 139, 255, 0.34));
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(122, 160, 200, 0.12);
  list-style: none;
}
.hero-stats b {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
.hero-stats b i { font-style: normal; font-size: 14px; color: var(--muted); margin-left: 2px; }
.hero-stats span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--dim); letter-spacing: 0.02em; }

/* ------------------------------------------------------------------ 设备模型 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.device {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 300 / 392; /* 内屏正好 3:4，固件图不被裁 */
  padding: 12px;
  border-radius: 30px;
  background: linear-gradient(158deg, #202b3a 0%, #0c1018 42%, #1a2430 100%);
  border: 1px solid rgba(150, 190, 225, 0.18);
  box-shadow:
    0 44px 90px -28px rgba(0, 0, 0, 0.95),
    0 0 0 7px rgba(255, 255, 255, 0.022),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 74px -12px rgba(0, 200, 255, 0.34);
  transform: perspective(1200px) rotateY(-7deg) rotateX(2.5deg);
  transition: transform 0.6s ease;
}
.hero-visual:hover .device { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }

.device::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12) 0%, transparent 26%, transparent 74%, rgba(0, 200, 255, 0.1) 100%);
  pointer-events: none;
}

.device-notch {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 46px;
  height: 4px;
  margin-left: -23px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 20px;
  background: radial-gradient(120% 90% at 50% 0%, #12243a 0%, #0b1220 52%, #080e18 100%);
  border: 1px solid rgba(0, 200, 255, 0.22);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font);
}
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px);
  pointer-events: none;
  opacity: 0.7;
}

/* 屏幕位：内容换成固件版面渲染图（2× = 480×640），不再手搓 HTML 仿屏 */
.screen.has-shot {
  padding: 0;
  display: block;
  background: #0b1220;
}
.scr-shot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  /* contain：图比框小 1~4px 时留的边正好是 UI 底色 #0B1220，比裁掉内容更划算 */
  object-fit: contain;
  background: #0b1220;
}

/* 设备框 + 五页切换：跟 .nav-cta / .seg 同一套胶囊语言 */
.device-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.scr-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.scr-tabs button {
  font: inherit;
  font-size: 12.5px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.scr-tabs button:hover {
  color: var(--text);
  border-color: var(--line-hi);
  transform: translateY(-1px);
}
.scr-tabs button[aria-selected="true"] {
  color: var(--cyan);
  border-color: var(--line-hi);
  background: rgba(0, 200, 255, 0.1);
  box-shadow: 0 0 18px -8px rgba(0, 200, 255, 0.9);
}
.scr-caption {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--dim);
  text-align: center;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(10, 17, 28, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--text);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}
.float-chip small { display: block; font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: 0.08em; }
.float-a { top: 11%; left: -11%; }
.float-b { bottom: 20%; right: -10%; }
/* c 原来吊在机身下方；现在下方让给了「五页切换 + 说明」，改挂到机身下缘左侧，避免压字 */
.float-c { top: 56%; left: -4%; }

.float-chip .dot-mini {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  flex: none;
}

/* ------------------------------------------------------------------ 指标条 */
.ribbon {
  margin-top: 26px;
  border-top: 1px solid rgba(122, 160, 200, 0.1);
  border-bottom: 1px solid rgba(122, 160, 200, 0.1);
  background: rgba(8, 13, 23, 0.55);
  overflow: hidden;
}
.ribbon-track {
  display: flex;
  gap: 44px;
  width: max-content;
  padding: 13px 0;
  animation: slide 46s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--dim);
  white-space: nowrap;
}
.ribbon-track span { display: inline-flex; align-items: center; gap: 10px; }
.ribbon-track span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(0, 200, 255, 0.6); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ 问题 / 对比 */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.compare .card { padding: 26px 26px 20px; }
.compare .card[data-side="old"] { border-color: rgba(255, 92, 92, 0.16); }
.compare .card[data-side="new"] { border-color: rgba(0, 200, 255, 0.28); background: linear-gradient(180deg, rgba(0, 200, 255, 0.07), rgba(255, 255, 255, 0.012)); }

.side-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 14px;
}
.side-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.compare .card[data-side="old"] .side-label { color: rgba(255, 92, 92, 0.8); }
.compare .card[data-side="new"] .side-label { color: var(--cyan); }

.compare h3 { font-size: 20px; margin-bottom: 14px; }

.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--dim);
  transform: rotate(45deg);
}
.plain-list[data-tone="new"] li::before { background: var(--cyan); }
.plain-list[data-tone="old"] li::before { background: rgba(255, 92, 92, 0.55); }
.plain-list strong { color: var(--text); font-weight: 600; }

.pull {
  margin: 30px 0 0;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 200, 255, 0.22);
  background:
    radial-gradient(420px 120px at 0% 0%, rgba(0, 200, 255, 0.14), transparent 70%),
    rgba(10, 17, 28, 0.7);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.pull b { color: var(--cyan); font-weight: 650; }

/* ------------------------------------------------------------------ 机制 */
.mech {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

.seg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.seg button {
  appearance: none;
  cursor: pointer;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  color: var(--muted);
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.seg button:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.seg button b { display: block; font-size: 17px; color: var(--text); font-weight: 600; }
.seg button small {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.seg button[aria-selected="true"] {
  border-color: rgba(0, 200, 255, 0.55);
  background: linear-gradient(180deg, rgba(0, 200, 255, 0.14), rgba(0, 200, 255, 0.03));
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.18), 0 14px 34px -22px rgba(0, 200, 255, 0.9);
}
.seg button[aria-selected="true"] small { color: var(--cyan); }
.seg button { position: relative; }
.seg button[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
}

.stage {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 220px at 80% -10%, rgba(0, 200, 255, 0.1), transparent 66%),
    rgba(10, 16, 26, 0.72);
  padding: 24px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stage-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stage-top .who { font-size: 18px; font-weight: 650; color: var(--text); }
.stage-top .time { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.stage-top .tag { margin-left: auto; }

.lock-viz {
  position: relative;
  height: 112px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 18px;
}
.lock-viz::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(122, 160, 200, 0.06) 1px, transparent 1px);
  background-size: 22px 100%;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.rack {
  position: relative;
  width: 148px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(150, 190, 225, 0.24);
  background: linear-gradient(180deg, #1c2634, #101822);
  flex: none;
}
.rack::before {
  content: "";
  position: absolute;
  inset: 5px;
  background-image: repeating-linear-gradient(90deg, rgba(150, 190, 225, 0.35) 0 2px, transparent 2px 8px);
  border-radius: 2px;
}
.bolt {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 34px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #cfd8e4, #8e9cae);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 200, 255, 0.28);
  transition: transform 0.55s cubic-bezier(0.3, 0.9, 0.2, 1), background 0.3s ease;
}
.bolt[data-open="1"] {
  transform: translateX(94px);
  background: linear-gradient(180deg, #7fe9ff, #19a9d6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 22px rgba(0, 200, 255, 0.75);
}
.viz-label { font-size: 13px; color: var(--muted); line-height: 1.6; }
.viz-label b { display: block; color: var(--text); font-size: 14px; }
.viz-label code { color: var(--cyan); }

.stage-rows { display: grid; gap: 10px; }
.stage-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px dashed rgba(122, 160, 200, 0.16);
  font-size: 14px;
  color: var(--muted);
}
.stage-row b { color: var(--dim); font-weight: 500; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; }
.stage-row span { color: var(--text); }

/* ------------------------------------------------------------------ 校验流程 */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 26px;
  counter-reset: step;
}
.flow-node {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}
.flow-node::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-hi), transparent);
}
.flow-node:last-child::after { display: none; }
.flow-node b {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--text);
}
.flow-node b i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--cyan);
  border: 1px solid rgba(0, 200, 255, 0.32);
  border-radius: 5px;
  padding: 1px 5px;
}
.flow-node p { margin: 0; font-size: 13.5px; line-height: 1.65; }

.gauge-card { padding: 26px; }
.gauge-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.gauge-head h3 { margin: 0; }
.gauge-value { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.gauge-value b { color: var(--cyan); font-size: 22px; font-weight: 600; }

.meter {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(122, 160, 200, 0.14);
  overflow: hidden;
}
.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v, 92%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 62%, var(--green));
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.55);
  transition: width 1.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.meter-fill.is-in { width: var(--v, 92%); }
.motion .meter-fill:not(.is-in) { width: 0; }

.meter-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}
.verdict-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.verdict {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}
.verdict b { display: block; font-size: 14px; margin-bottom: 2px; }
.verdict[data-v="ok"] { border-color: rgba(46, 212, 122, 0.3); }
.verdict[data-v="ok"] b { color: var(--green); }
.verdict[data-v="wait"] { border-color: rgba(255, 176, 32, 0.3); }
.verdict[data-v="wait"] b { color: var(--amber); }
.verdict[data-v="no"] { border-color: rgba(255, 92, 92, 0.28); }
.verdict[data-v="no"] b { color: var(--red); }

/* ------------------------------------------------------------------ 架构 */
.arch { display: grid; gap: 14px; }
.arch-layer {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: start;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  position: relative;
}
.arch-layer[data-layer="edge"] { border-color: rgba(0, 200, 255, 0.26); }
.arch-layer[data-layer="cloud"] { border-color: rgba(77, 159, 255, 0.24); }
.arch-layer[data-layer="client"] { border-color: rgba(46, 212, 122, 0.22); }

.arch-name { font-size: 15px; font-weight: 650; color: var(--text); }
.arch-name small {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--dim);
}
.arch-items { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-items span {
  font-size: 13px;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid rgba(122, 160, 200, 0.16);
  background: rgba(8, 13, 22, 0.6);
}
.arch-items span[data-strong="1"] { color: var(--text); border-color: rgba(0, 200, 255, 0.3); }

.arch-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 190px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.06em;
}
.arch-link::before {
  content: "";
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, transparent, var(--line-hi), transparent);
}
.arch-link b { color: var(--cyan); font-weight: 500; }

/* ------------------------------------------------------------------ 能力卡 */
.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cap {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.28s ease;
}
.cap:hover {
  transform: translateY(-3px);
  border-color: var(--line-hi);
  box-shadow: 0 26px 50px -34px rgba(0, 200, 255, 0.9);
}
.cap-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 200, 255, 0.28);
  background: radial-gradient(circle at 30% 20%, rgba(0, 200, 255, 0.22), rgba(0, 200, 255, 0.04));
  color: var(--cyan);
}
.cap-ico svg { width: 20px; height: 20px; }
.cap h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cap p { margin: 0; font-size: 13.8px; line-height: 1.7; }
.cap .tag { margin-top: 14px; }

/* ------------------------------------------------------------------ 语音 */
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.voice-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(0, 200, 255, 0.08), transparent 70%),
    rgba(10, 16, 26, 0.72);
}
.voice-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 17px; }
.wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 42px;
  margin: 16px 0 14px;
}
.wave i {
  display: block;
  flex: 1;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(0, 200, 255, 0.25));
  height: 18%;
  animation: wave 1.6s ease-in-out infinite;
}
.wave i:nth-child(3n) { animation-delay: 0.18s; }
.wave i:nth-child(3n + 1) { animation-delay: 0.36s; }
.wave i:nth-child(4n) { animation-delay: 0.52s; height: 42%; }
@keyframes wave {
  0%, 100% { height: 14%; opacity: 0.55; }
  50% { height: 82%; opacity: 1; }
}

.kv { display: grid; gap: 8px; margin: 0; }
.kv div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px dashed rgba(122, 160, 200, 0.14);
}
.kv div:first-child { border-top: 0; padding-top: 0; }
.kv b { color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; font-weight: 500; }

.boundary {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 176, 32, 0.24);
  background: rgba(255, 176, 32, 0.055);
  font-size: 13.5px;
  color: #f0d9a8;
  line-height: 1.7;
}
.boundary b { color: var(--amber); }

/* ------------------------------------------------------------------ 云端 / 端 */
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sys {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(10, 16, 26, 0.66);
}
.sys h3 { display: flex; align-items: center; gap: 8px; }
.sys .kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
  margin-bottom: 10px;
}
.sys ul { margin: 0; padding-left: 18px; }
.sys li { font-size: 13.6px; color: var(--muted); margin-bottom: 7px; line-height: 1.65; }
.sys li b { color: var(--text); font-weight: 600; }

.mini-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 13.5px;
}
.mini-table th,
.mini-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(122, 160, 200, 0.12);
  color: var(--muted);
  vertical-align: top;
}
.mini-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
}
.mini-table td:first-child { color: var(--text); white-space: nowrap; }

/* ------------------------------------------------------------------ 现状 */
.live {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tile {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}
.tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.6), transparent);
}
.tile b {
  display: block;
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
.tile span { display: block; margin-top: 3px; font-size: 12px; color: var(--dim); }
.tile[data-loading="1"] b { color: var(--dim); }

.status-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.7;
}
.status-note svg { flex: none; margin-top: 2px; color: var(--amber); }

/* ------------------------------------------------------------------ 隐私 / 边界 */
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tick-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tick-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.tick-list svg { margin-top: 4px; color: var(--green); }
.tick-list b { color: var(--text); }

.limits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: lim;
}
.limits li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(122, 160, 200, 0.12);
  background: rgba(255, 255, 255, 0.018);
  font-size: 14px;
  color: var(--muted);
}
.limits li::before {
  counter-increment: lim;
  content: "0" counter(lim);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------ 页脚 */
.foot {
  margin-top: 96px;
  border-top: 1px solid rgba(122, 160, 200, 0.12);
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.4), rgba(4, 7, 12, 0.9));
  padding: 42px 0 54px;
}
.foot-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.foot p { margin: 0 0 8px; font-size: 13px; color: var(--dim); }
.foot .brand { margin-bottom: 12px; }
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------------------ 响应式 */

/* 加了下载 CTA 之后，导航在 1020 以下收一点间距，给 .nav-links 让位 */
@media (max-width: 1020px) {
  .nav { gap: 18px; }
  .nav-links { gap: 16px; }
  .nav-cta { margin-left: -6px; }
}

/* 980 以下先把状态灯收起来（第 09 节仍有完整服务状态），位置让给下载 CTA */
@media (max-width: 980px) {
  .nav-flag { display: none; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { padding-top: 0; }
  .device { width: min(280px, 68vw); }
  .float-a { left: -2%; }
  .float-b { right: -2%; }
  .mech { grid-template-columns: 1fr; }
  .seg { grid-template-columns: repeat(4, 1fr); }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .live { grid-template-columns: repeat(3, 1fr); }
  .three { grid-template-columns: 1fr; }
  .arch-link { padding-left: 0; }
}

@media (max-width: 820px) {
  /* 小屏 section 上内边距收到 76，锚点留白按同一比例校准（顶栏仍是 62） */
  .section[id] { scroll-margin-top: 84px; }
  .nav-links { display: none; }
  .nav-flag { display: none; }
  .nav-cta { margin-left: auto; }
  .section { padding: 76px 0 4px; }
  .hero { padding: 108px 0 56px; }
  .compare, .voice-grid, .privacy-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-node::after { display: none; }
  .verdict-grid { grid-template-columns: 1fr; }
  .arch-layer { grid-template-columns: 1fr; gap: 12px; }
  .arch-link {
    display: block;
    padding: 10px 0 10px 14px;
    border-left: 1px dashed rgba(0, 200, 255, 0.3);
    line-height: 1.7;
  }
  .arch-link::before { display: none; }
  .arch-link b { color: var(--cyan); }
  .float-chip { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
  .live { grid-template-columns: repeat(2, 1fr); }
  .seg { grid-template-columns: repeat(2, 1fr); }
  .caps { grid-template-columns: 1fr; }
  .ribbon-track { animation-duration: 34s; }
}

@media (max-width: 640px) {
  .mini-table thead { display: none; }
  .mini-table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(122, 160, 200, 0.12);
  }
  .mini-table tr:last-child { border-bottom: 0; }
  .mini-table td {
    display: block;
    padding: 1px 0;
    border: 0;
    white-space: normal;
  }
  .mini-table td:first-child {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
  }
  .mini-table td:nth-child(2) { color: var(--text); }
  .mini-table td:nth-child(3) { font-size: 12.5px; color: var(--dim); }
}

@media (max-width: 560px) {
  .meter-scale span:nth-child(2) { display: none; }
  .meter-scale { font-size: 10.5px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .nav { padding: 0 18px; gap: 12px; }
  .brand span { display: none; }
  /* 小屏顶栏只留图标 + 「下载」，版本徽标收起来，避免与 brand 抢宽度 */
  .scr-tabs button { font-size: 12px; padding: 6px 10px; }
  .scr-caption { font-size: 10px; }
  .nav-cta { height: 32px; padding: 0 11px; font-size: 12.5px; }
  .nav-cta-app { display: none; }
  .nav-cta-ver { display: none; }
  .hero-stats b { font-size: 22px; }
  .stage { padding: 18px; }
  .lock-viz { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 14px; height: auto; }
  .rack { width: 118px; }
  .bolt[data-open="1"] { transform: translateX(68px); }
  .stage-row { grid-template-columns: 1fr; gap: 2px; }
  .live { grid-template-columns: 1fr 1fr; }
}

/* 无障碍：尊重系统的减少动态效果设置 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .motion .reveal:not(.is-in) { opacity: 1; transform: none; }
  .meter-fill, .motion .meter-fill:not(.is-in) { width: var(--v, 92%); }
}

/* ------------------------------------------------------------------ 工具类 */
/* 服务端 CSP 禁止内联 style，需要一次性间距时统一用这些类 */
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }

/* 置信度条的目标值也走属性选择器，避免内联变量 */
[data-score="92"] .meter-fill { --v: 92%; }

/* ------------------------------------------------------------------ 新增能力条 */
.newcaps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px dashed rgba(0, 200, 255, 0.24);
  background:
    radial-gradient(600px 140px at 0% 0%, rgba(0, 200, 255, 0.08), transparent 70%),
    rgba(10, 16, 26, 0.5);
}
.newcaps-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-right: 4px;
}
.newcaps > span:not(.newcaps-label) {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

/* ------------------------------------------------------------------ 数字条 */
.mono-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.mono-chips > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.02em;
}
.mono-chips b {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
}

@media (max-width: 1080px) {
  .mono-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .mono-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 药仓卡片里的状态标签与说明留一点呼吸 */
.flow-node .tag { margin-top: 12px; }



/* ---------------------------------------------------------------- App 下载 */
.dl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: 24px;
  align-items: stretch;
  margin-top: 8px;
}

/* 卡片：圆角 + 顶部青渐变，四角用 8 条 1px 细线画出 L 形角标（青色 20% 透明） */
.dl-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  background:
    linear-gradient(180deg, rgba(0, 200, 255, 0.075), rgba(0, 200, 255, 0) 44%),
    rgba(255, 255, 255, 0.018);
}
.dl-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 200, 255, 0.2), rgba(0, 200, 255, 0.2)) left top / 14px 1px no-repeat,
    linear-gradient(rgba(0, 200, 255, 0.2), rgba(0, 200, 255, 0.2)) left top / 1px 14px no-repeat,
    linear-gradient(rgba(0, 200, 255, 0.2), rgba(0, 200, 255, 0.2)) right top / 14px 1px no-repeat,
    linear-gradient(rgba(0, 200, 255, 0.2), rgba(0, 200, 255, 0.2)) right top / 1px 14px no-repeat,
    linear-gradient(rgba(0, 200, 255, 0.2), rgba(0, 200, 255, 0.2)) left bottom / 14px 1px no-repeat,
    linear-gradient(rgba(0, 200, 255, 0.2), rgba(0, 200, 255, 0.2)) left bottom / 1px 14px no-repeat,
    linear-gradient(rgba(0, 200, 255, 0.2), rgba(0, 200, 255, 0.2)) right bottom / 14px 1px no-repeat,
    linear-gradient(rgba(0, 200, 255, 0.2), rgba(0, 200, 255, 0.2)) right bottom / 1px 14px no-repeat;
}
.dl-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.55), transparent);
}

.dl-card-head { display: flex; align-items: center; gap: 10px; }
.dl-card-head .kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
}
.dl-card-head .tag { margin-left: auto; }
.dl-card h3 { margin: 10px 0 6px; font-size: 20px; }

/* 安装包文件名：等宽显示，带「文件」小标签 —— 下载下来就是这个名字 */
.dl-file {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 18px;
  min-width: 0;
}
.dl-file-key {
  flex: none;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.dl-file b {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.dl-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}
.dl-meta li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding-bottom: 7px;
  border-bottom: 1px dashed rgba(122, 160, 200, 0.16);
  font-size: 13px;
  color: var(--dim);
}
.dl-meta li b {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--cyan);
  text-align: right;
  overflow-wrap: anywhere;
}
/* SHA-256 一行：标签与哈希靠左成一组（不再被 space-between 甩到最右），
   长哈希用 overflow-wrap 兜底，窄屏也不会顶出卡片。
   选择器带 .dl-meta li 前缀，是为了盖过上面 .dl-meta li / .dl-meta li b 的同名声明 */
.dl-meta li.dl-meta-wide {
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 10px;
}
.dl-meta li.dl-meta-wide b {
  color: var(--text);
  font-size: 12px;
  text-align: left;
  overflow-wrap: anywhere;
}

.dl-btn { margin-top: 2px; }
.dl-btn-label { display: inline-flex; align-items: center; gap: 7px; }
.dl-btn-ver {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(4, 18, 27, 0.16);
  color: #04121b;
  font-weight: 700;
  letter-spacing: 0;
}

/* 信任条：三个小徽章，风格与 .tag 一致 */
.dl-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}
.dl-trust li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 8px;
  border: 1px solid rgba(46, 212, 122, 0.26);
  border-radius: 999px;
  background: rgba(46, 212, 122, 0.07);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--green);
  white-space: nowrap;
}
.dl-trust svg { flex: none; }

/* 安装三步 */
.dl-steps {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(122, 160, 200, 0.16);
}
.dl-steps-title {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.dl-steps ol {
  list-style: none;
  counter-reset: dlstep;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.dl-steps li {
  position: relative;
  padding-left: 30px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.dl-steps li::before {
  counter-increment: dlstep;
  content: counter(dlstep);
  position: absolute;
  left: 0;
  top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 200, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.08);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
}
.dl-steps li b { color: var(--text); font-weight: 600; }

/* 二维码面板 */
.dl-qr {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.dl-qr img {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.dl-qr-kicker {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-transform: uppercase;
}
.dl-qr-kicker::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin: 0 auto 10px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.55), transparent);
}
.dl-qr-cap { margin: 14px 0 0; font-size: 12.5px; color: var(--text); }
.dl-qr-file { margin: 6px 0 0; font-size: 11px; color: var(--dim); overflow-wrap: anywhere; }
.dl-qr-hint { display: none; margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: var(--dim); }
/* 二维码生成服务不可用时（接口 500/超时）不留破图 */
.dl-qr.is-noqr img { display: none; }
.dl-qr.is-noqr .dl-qr-hint { display: block; }

@media (max-width: 760px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-qr { justify-self: center; width: min(320px, 100%); }
}
@media (max-width: 520px) {
  .dl-meta { grid-template-columns: 1fr; }
  .dl-qr { width: 100%; }
  .dl-card { padding: 22px 18px 20px; }
  .dl-card::after { left: 18px; right: 18px; }
  .dl-btn { justify-content: center; width: 100%; }
}
