/* ==========================================================================
   DiPlay 中文下载站 · 全站设计系统
   设计语言：深色车载 HMI 风（夜幕蓝底 + 薄雾蓝强调色 + 状态绿点缀）
   ========================================================================== */

:root {
  color-scheme: dark;

  /* 底色层 */
  --bg: #0c121c;
  --bg-deep: #080d15;
  --surface: #141e2c;
  --surface-2: #172335;
  --surface-3: #1c2b3f;

  /* 线条 */
  --line: #263449;
  --line-soft: #1f2c3e;
  --line-strong: #2c3d53;

  /* 文字 */
  --text: #eef3fb;
  --text-body: #b9c7db;
  --text-muted: #9faec2;
  --text-dim: #8494aa;

  /* 强调 */
  --accent: #a6c9ff;
  --accent-hi: #bed8ff;
  --accent-deep: #102542;
  --accent-chip: #17253a;
  --accent-border: #304766;

  /* 状态 */
  --ok: #3ddf8a;
  --ok-deep: #0f2e1e;
  --warn: #ffc46b;
  --warn-deep: #33240d;
  --danger: #ff8f8f;
  --danger-deep: #3a1a1c;

  /* 尺寸 */
  --wrap: 1160px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
}

body {
  margin: 0;
  line-height: 1.7;
  color: var(--text-body);
  /* 不用 background-attachment: fixed —— 长页上会产生可见的渐变截断边界。
     改用一个绝对定位的固定层承载光晕，视觉等价且不会撕裂。 */
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 12% 0%, rgba(38, 74, 116, .38), transparent 62%),
    radial-gradient(900px 460px at 92% 2%, rgba(24, 56, 92, .3), transparent 60%);
}

img { max-width: 100%; }

/* 键盘可达性 */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

::selection { background: rgba(166, 201, 255, .3); color: #fff; }

/* --------------------------------------------------------------------------
   跳到主内容
   -------------------------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  background: var(--accent);
  color: var(--accent-deep);
  padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   布局
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

main { padding-bottom: 40px; }

section { scroll-margin-top: 88px; }

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 18, 28, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.head-in {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  min-height: 66px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: block;
}

.brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: -.4px;
  line-height: 1.2;
  color: var(--text);
}

.brand small {
  display: block;
  color: var(--text-dim);
  font-size: 11.5px;
  line-height: 1.3;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 14.5px;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: background .16s, color .16s;
}

.nav a:hover { background: var(--surface-2); color: var(--text); }

.nav a[aria-current="page"] {
  background: var(--accent-chip);
  color: #b9d5ff;
  font-weight: 600;
}

.nav .nav-cta {
  background: var(--accent);
  color: var(--accent-deep);
  font-weight: 700;
  padding-inline: 16px;
}
.nav .nav-cta:hover { background: var(--accent-hi); color: var(--accent-deep); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 74px 0 56px;
  max-width: 880px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--accent);
  background: var(--accent-chip);
  border: 1px solid var(--accent-border);
  padding: 7px 13px;
  border-radius: 8px;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(61, 223, 138, .18);
}

h1 {
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.12;
  letter-spacing: -2.4px;
  margin: 24px 0 22px;
  color: var(--text);
  font-weight: 800;
}

h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #a6c9ff 8%, #7fe0b0 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro {
  font-size: 20.5px;
  line-height: 1.66;
  color: var(--text-body);
  max-width: 730px;
  margin: 0;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 32px 0 26px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent);
  color: var(--accent-deep);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 24px;
  min-height: 54px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15.5px;
  transition: background .16s, transform .16s;
}
.button:hover { background: var(--accent-hi); }
.button:active { transform: translateY(1px); }

.button.secondary {
  background: var(--surface-2);
  border-color: #2b3d55;
  color: #d4e4fc;
}
.button.secondary:hover { background: #223650; }

.button .size {
  font-weight: 500;
  font-size: 13px;
  opacity: .68;
}

.promise {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
}

.note {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 0 12px;
}

.note a { color: var(--accent); }

.scope-note {
  border-left: 3px solid var(--warn);
  background: var(--warn-deep);
  color: #f0d9ae;
  padding: 14px 16px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  max-width: 820px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   通用标题
   -------------------------------------------------------------------------- */
h2 {
  font-size: clamp(23px, 3vw, 28px);
  line-height: 1.32;
  letter-spacing: -.5px;
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 750;
}

h3 {
  font-size: 17.5px;
  margin: 28px 0 12px;
  color: var(--text);
  font-weight: 700;
}

h4 {
  font-size: 15.5px;
  margin: 22px 0 8px;
  color: var(--text);
}

p { margin: 0 0 14px; }

a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-hi); }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 14px;
}

.sec-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.sec-head p {
  color: var(--text-muted);
  font-size: 16.5px;
  margin: 0;
}

.block { padding: 62px 0 0; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 62px 0 0;
}

/* --------------------------------------------------------------------------
   卡片
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
}

.card > :last-child { margin-bottom: 0; }

.card p { color: var(--text-body); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stack { display: grid; gap: 24px; }

/* --------------------------------------------------------------------------
   特性卡
   -------------------------------------------------------------------------- */
.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: border-color .18s, transform .18s, background .18s;
}

.feat:hover {
  border-color: #3a5170;
  transform: translateY(-2px);
  background: var(--surface-2);
}

.feat .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-chip);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feat .ico svg { width: 21px; height: 21px; }

.feat h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feat p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.62;
}

/* --------------------------------------------------------------------------
   截图
   -------------------------------------------------------------------------- */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.shot {
  margin: 0;
  min-width: 0;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--bg-deep);
}

.shot figcaption {
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 12px 2px 0;
}

/* --------------------------------------------------------------------------
   列表
   -------------------------------------------------------------------------- */
ol.steps,
ul.clean {
  padding-inline-start: 22px;
  margin: 0 0 16px;
  color: var(--text-body);
}

ol.steps li,
ul.clean li {
  padding-inline-start: 4px;
  margin-bottom: 13px;
}

ol.steps li::marker { color: var(--accent); font-weight: 700; }

ul.clean { list-style: none; padding-inline-start: 0; }

ul.clean li {
  position: relative;
  padding-inline-start: 28px;
  list-style: none;
}

ul.clean li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ok);
}

ul.checks li::before,
ul.dots li::before {
  content: "✓";
  background: none;
  width: auto;
  height: auto;
  top: 0;
  color: var(--ok);
  font-weight: 700;
  font-size: 15px;
}

ul.dots li::before {
  content: "";
  top: 10px;
  background: var(--accent);
  opacity: .8;
}

/* 勾选清单（双列紧凑） */
.checks-2 {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 26px;
}

.checks-2 li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 14.5px;
}

.checks-2 li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ok);
  font-weight: 700;
}

.checks-2 li.no::before { content: "✕"; color: var(--danger); }

/* --------------------------------------------------------------------------
   提示条
   -------------------------------------------------------------------------- */
.callout {
  border: 1px solid var(--accent-border);
  background: var(--accent-chip);
  border-radius: var(--r);
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 14.5px;
}

.callout strong { color: var(--text); }
.callout > :last-child { margin-bottom: 0; }

.callout.warn {
  border-color: #6b4d1c;
  background: var(--warn-deep);
  color: #f0d9ae;
}

.callout.danger {
  border-color: #6d2f31;
  background: var(--danger-deep);
  color: #f6cfd0;
}

.callout.ok {
  border-color: #1f5b3a;
  background: var(--ok-deep);
  color: #c4f0d8;
}

.callout .label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
}

.callout.warn .label { color: var(--warn); }
.callout.danger .label { color: var(--danger); }
.callout.ok .label { color: var(--ok); }

/* --------------------------------------------------------------------------
   数据表
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 520px;
}

thead th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-size: 13.5px;
  letter-spacing: .3px;
}

tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-body);
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .022); }

tbody td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   代码 / 校验值
   -------------------------------------------------------------------------- */
code {
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, "SF Mono", monospace;
  font-size: .89em;
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  padding: 2px 6px;
  border-radius: 6px;
  color: #cfe0f8;
  word-break: break-all;
}

pre {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
  color: #cfe0f8;
  margin: 16px 0;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.hash {
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  color: #a6c9ff;
  word-break: break-all;
  display: block;
  line-height: 1.6;
  margin: 10px 0 4px;
}

/* --------------------------------------------------------------------------
   步骤卡（带序号）
   -------------------------------------------------------------------------- */
.step-card {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.step-card:last-child { border-bottom: 0; }

.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-chip);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body { min-width: 0; flex: 1; }

.step-body h3 {
  margin: 4px 0 8px;
  font-size: 17.5px;
}

.step-body > :last-child { margin-bottom: 0; }
.step-body p { font-size: 15px; }

/* --------------------------------------------------------------------------
   FAQ 手风琴（<details> 原生，无需 JS）
   -------------------------------------------------------------------------- */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 650;
  color: var(--text);
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  transition: background .16s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { background: var(--surface-2); }

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 21px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item[open] {
  border-color: var(--accent-border);
}

.faq-body {
  padding: 0 22px 20px;
  font-size: 14.8px;
  color: var(--text-body);
}

.faq-body > :last-child { margin-bottom: 0; }

.faq-body ul { padding-inline-start: 20px; margin: 10px 0; }

/* --------------------------------------------------------------------------
   版本时间线
   -------------------------------------------------------------------------- */
.timeline { position: relative; padding-left: 30px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-border), var(--line-soft));
}

.tl-item {
  position: relative;
  margin-bottom: 26px;
}

.tl-item:last-child { margin-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-border);
}

.tl-item.now::before {
  background: var(--ok);
  border-color: var(--ok);
  box-shadow: 0 0 0 4px rgba(61, 223, 138, .15);
}

.tl-ver {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tl-ver strong {
  font-size: 18px;
  color: var(--text);
  font-family: "JetBrains Mono", Consolas, monospace;
}

.tl-date { font-size: 13px; color: var(--text-dim); }

.tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ok-deep);
  color: var(--ok);
  border: 1px solid #1f5b3a;
  text-transform: uppercase;
}

.tag.old {
  background: var(--surface-3);
  color: var(--text-dim);
  border-color: var(--line);
}

.tl-item ul { padding-inline-start: 20px; margin: 10px 0 0; font-size: 14.5px; }
.tl-item li { margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   页头（内页）
   -------------------------------------------------------------------------- */
.page-head {
  padding: 56px 0 34px;
  max-width: 820px;
}

.page-head h1 {
  font-size: clamp(32px, 4.8vw, 50px);
  letter-spacing: -1.4px;
  margin: 18px 0 16px;
}

.page-head .lede {
  font-size: 18.5px;
  color: var(--text-body);
  margin: 0;
  max-width: 700px;
}

/* 面包屑 */
.crumbs {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4px;
}

.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .5; }

/* --------------------------------------------------------------------------
   侧栏目录（安装 / 更新页）
   -------------------------------------------------------------------------- */
.toc-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
  margin-bottom: 28px;
}

.toc-box .toc-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.toc-box ol {
  margin: 0;
  padding-inline-start: 20px;
  font-size: 14.5px;
}

.toc-box li { margin-bottom: 7px; }
.toc-box a { text-decoration: none; }
.toc-box a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   数据条（版本信息小卡）
   -------------------------------------------------------------------------- */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 26px 0 8px;
}

.meta-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
}

.meta-cell .k {
  font-size: 11.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 700;
}

.meta-cell .v {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.meta-cell .v.mono { font-family: "JetBrains Mono", Consolas, monospace; }
.meta-cell .v .sub { display: block; font-size: 12px; color: var(--text-dim); font-weight: 500; }

/* --------------------------------------------------------------------------
   CTA 区块
   -------------------------------------------------------------------------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  margin-top: 24px;
}

.cta-band h2 { margin: 0 0 6px; font-size: 21px; }
.cta-band p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.cta-band .button { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   链接卡片
   -------------------------------------------------------------------------- */
.link-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s, background .18s, transform .18s;
}

.link-card:hover {
  border-color: #3a5170;
  background: var(--surface-2);
  transform: translateY(-2px);
}

.link-card h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-card h3::after {
  content: "↗";
  color: var(--accent);
  font-size: 14px;
  opacity: .7;
}

.link-card p {
  margin: 0;
  font-size: 13.8px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 68px;
  padding: 34px 0 46px;
  background: var(--bg-deep);
}

.foot-in {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.foot-brand { max-width: 330px; }

.foot-brand .brand { margin-bottom: 14px; }

.foot-brand p {
  font-size: 13.2px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.7;
}

.foot-cols {
  display: flex;
  gap: 46px;
  flex-wrap: wrap;
}

.foot-col h4 {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
  font-weight: 800;
}

.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot-col li { margin-bottom: 9px; }

.foot-col a {
  font-size: 14px;
  color: var(--text-body);
  text-decoration: none;
}

.foot-col a:hover { color: var(--accent); text-decoration: underline; }

.foot-note {
  border-top: 1px solid var(--line-soft);
  margin-top: 30px;
  padding-top: 22px;
  font-size: 12.8px;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 900px;
}

.foot-note strong { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   移动端底部下载条
   -------------------------------------------------------------------------- */
.dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 15, 23, .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  gap: 10px;
  align-items: center;
}

.dock .ver {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

.dock .ver strong { display: block; color: var(--text); font-size: 13.5px; }

.dock .button { margin-left: auto; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   二维码下载区（下载页核心）
   -------------------------------------------------------------------------- */
.qr-zone {
  padding: 8px 0 0;
}

.qr-panel {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 34px;
  position: relative;
  overflow: hidden;
}

/* 二维码 + 手机端按钮的左列容器。
   它存在的唯一原因是：.qr-panel 是两列 grid，
   把 .qr-frame 包一层，PC 端（按钮 display:none）与改动前的网格完全一致。
   min-width:0 是必需的 —— grid 子项默认 auto，
   二维码图片的固有宽度会把这一列顶宽，进而撑破 .qr-panel。 */
.qr-col {
  min-width: 0;
}

/* 左侧一层极淡的状态绿光晕，暗示"安全已检测" */
.qr-panel::before {
  content: "";
  position: absolute;
  left: -12%;
  top: 50%;
  transform: translateY(-50%);
  width: 46%;
  height: 130%;
  background: radial-gradient(circle, rgba(61, 223, 138, .09), transparent 68%);
  pointer-events: none;
}

.qr-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
  z-index: 1;
}

.qr-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 手机端直跳按钮 ----------
   默认 display:none —— 电脑端（含 JS 未执行的首帧）绝不露出入口，
   只有 JS 在 <html> 上打了 .is-mobile 才显示。顺序反过来会让 PC 端闪一下。 */
.qr-direct {
  display: none;
}

html.is-mobile .qr-direct {
  display: block;
  margin-top: 16px;
}

.qr-direct .btn-direct {
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.qr-direct .hint {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  text-align: center;
}

.qr-direct .hint b {
  color: var(--ok);
}

/* 手机端补充说明：PC 端完全不渲染这段文字 */
.only-mobile {
  display: none;
}

html.is-mobile .only-mobile {
  display: inline;
}

.qr-side {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.qr-side .badge { margin-bottom: 16px; }

.qr-side h2 {
  font-size: clamp(24px, 2.6vw, 31px);
  margin-bottom: 14px;
}

.qr-lead {
  font-size: 15.5px;
  color: var(--text-body);
  margin-bottom: 20px;
  max-width: 520px;
}

.qr-steps {
  margin: 0 0 22px;
  padding-inline-start: 22px;
  font-size: 14.8px;
  color: var(--text-body);
}

.qr-steps li {
  padding-inline-start: 4px;
  margin-bottom: 10px;
}

.qr-steps li::marker {
  color: var(--ok);
  font-weight: 800;
}

.qr-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.qr-facts .fact {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
}

.qr-facts .k {
  display: block;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 4px;
}

.qr-facts .v {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.qr-facts .v.mono { font-family: "JetBrains Mono", Consolas, monospace; }

.qr-note {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
  padding: 13px 15px;
  background: var(--accent-chip);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-sm);
  max-width: 520px;
}

.qr-note strong { color: #cfe0f8; }

@media (max-width: 900px) {
  .qr-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px;
  }
  .qr-frame { max-width: 400px; margin: 0 auto; }
  .qr-side { text-align: left; }
}

@media (max-width: 600px) {
  .qr-panel {
    padding: 20px;
    border-radius: var(--r-lg);
    gap: 22px;
  }
  .qr-side h2 { font-size: 23px; }
  .qr-facts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .qr-facts .fact { padding: 9px 10px; }
  .qr-facts .v { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   回到顶部
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 82px;
  z-index: 44;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, background .18s;
  font-size: 17px;
  line-height: 1;
}

.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: #24354c; color: var(--text); }

@media (max-width: 1020px) {
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .wrap { padding: 0 22px; }
  .grid-2, .shots, .grid-3 { grid-template-columns: 1fr; }
  .checks-2 { grid-template-columns: 1fr; }

  .head-in {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
  }

  .nav { width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 14px; padding: 8px 11px; }

  .hero { padding: 46px 0 34px; }
  h1 { letter-spacing: -1px; }
  .intro { font-size: 18px; }
  .block { padding-top: 46px; }
  .page-head { padding: 38px 0 24px; }
  .card { padding: 22px; }
  .foot-in { gap: 28px; }
  .foot-cols { gap: 30px; }

  .dock { display: flex; }
  .to-top { bottom: 96px; right: 14px; }
  body { padding-bottom: 74px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .meta-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .meta-cell { padding: 13px 14px; }
  .actions .button { flex: 1 1 100%; }
  .cta-band { padding: 22px; }
  .cta-band .button { width: 100%; }
  .step-card { gap: 14px; }
  .foot-cols { flex-direction: column; gap: 24px; }
  .to-top { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-head, .dock, .to-top, .actions { display: none; }
  body { background: #fff; color: #000; }
}