@charset "UTF-8";
/* ============================================================
   ValiDrive 中文站 · 全站样式
   设计基调：扁平、现代、专业；主色取自 ValiDrive 检测语义的「验证绿」
   换色只需修改下方 :root 中的品牌变量
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* 品牌 */
  --brand: #17a05c;
  --brand-600: #108a4c;
  --brand-700: #0b6b3b;
  --brand-050: #eaf7f0;
  --brand-100: #d3efe0;

  /* 状态色（与 ValiDrive 磁盘图的四色语义一致） */
  --state-ok: #17a05c;
  --state-read: #3d7bf7;
  --state-write: #f2b60a;
  --state-none: #e5484d;

  /* 中性色 */
  --ink: #0f1a24;
  --ink-2: #2c3e4f;
  --muted: #5f7488;
  --muted-2: #8497a8;
  --line: #e3ebef;
  --line-strong: #ccd9e2;
  --bg: #ffffff;
  --bg-soft: #f6faf8;
  --bg-tint: #eef5f1;

  /* 形状 */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 999px;

  /* 阴影（克制，保持扁平感） */
  --shadow-1: 0 1px 2px rgba(15, 26, 36, 0.05);
  --shadow-2: 0 14px 36px -18px rgba(15, 26, 36, 0.28);
  --shadow-3: 0 30px 70px -30px rgba(15, 26, 36, 0.35);

  /* 版式 */
  --wrap: 1160px;
  --gutter: 24px;
  --font-sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, "Courier New",
    monospace;
}

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.05rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}
h3 {
  font-size: 1.125rem;
  line-height: 1.5;
}
h4 {
  font-size: 1rem;
  line-height: 1.55;
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: var(--brand-700);
}

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}
li {
  margin-bottom: 0.45em;
}
li:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--ink);
  font-weight: 650;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 0.1em 0.4em;
  color: var(--ink);
  white-space: nowrap;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: var(--brand-100);
  color: var(--ink);
}

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 88px;
}
.section--tight {
  padding-block: 64px;
}
.section--soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.section--tint {
  background: var(--bg-tint);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header.is-stuck {
  box-shadow: 0 8px 24px -18px rgba(15, 26, 36, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand:hover {
  color: var(--ink);
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: block;
}
.brand-sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav a:hover {
  background: var(--bg-tint);
  color: var(--ink);
}
.nav a[aria-current="page"] {
  color: var(--brand-700);
  background: var(--brand-050);
  font-weight: 600;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn--primary:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--dark:hover {
  background: #1c2c3b;
  color: #fff;
}

.btn--lg {
  padding: 14px 26px;
  font-size: 1rem;
}
.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 6. Eyebrow / Badges / Chips ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 12px 5px 10px;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-full);
  color: var(--brand-700);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.chip--ok {
  background: var(--brand-050);
  border-color: var(--brand-100);
  color: var(--brand-700);
}

.eyebrow--center {
  margin-inline: auto;
}

/* ---------- 7. Section headings ---------- */
.sec-head {
  max-width: 720px;
  margin-bottom: 44px;
}
.sec-head--center {
  margin-inline: auto;
  text-align: center;
}
.sec-head h2 {
  margin-bottom: 14px;
}
.sec-head p {
  color: var(--muted);
  font-size: 1.0625rem;
  margin: 0;
}
.sec-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-600);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 72px 80px;
  background: linear-gradient(180deg, #f7fbf9 0%, #ffffff 62%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -220px;
  top: -300px;
  background: radial-gradient(
    circle,
    rgba(23, 160, 92, 0.13) 0%,
    rgba(23, 160, 92, 0) 68%
  );
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin-bottom: 20px;
}
.hero h1 .hl {
  color: var(--brand-600);
}
.hero-lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-meta div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--muted);
}
.hero-meta dt,
.hero-meta .k {
  font-size: 0.75rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.hero-meta .v {
  color: var(--ink);
  font-weight: 650;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* 磁盘图展示卡 */
.mapcard {
  /* 官方截图为 433px 宽，卡片限宽到接近原始尺寸，避免放大后文字发虚 */
  width: 100%;
  max-width: 470px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.mapcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}
.mapcard-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--ink);
  font-family: var(--font-mono);
}
.mapcard-title i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-050);
}
.mapcard-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  gap: 3px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
}
.mapcard-toggle button {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.mapcard-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.mapcard-body {
  padding: 18px 16px 16px;
}

.shot {
  display: block;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.shot img[hidden] {
  display: none;
}

.shot-cap {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  background: #fbfdfc;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}
.shot-cap span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
}

/* 正文内官方截图 */
.shot-fig {
  margin: 26px 0;
}
.shot-fig img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}
.shot-fig figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}
.shot-fig figcaption span {
  display: block;
  color: var(--muted-2);
}

/* ---------- 9. Stat strip ---------- */
.statstrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.statstrip > div {
  background: #fff;
  padding: 22px 20px;
}
.statstrip .n {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.statstrip .l {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- 10. Cards ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}
.card p + p {
  margin-top: 0.75em;
}

/* ---- 正文内联链接 ----
   与导航/页脚链接区分：正文里的链接要有可识别的下划线，
   否则绿色文字在段落中容易被误读为强调而非可点击。 */
.ilink {
  color: var(--brand-600);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(23, 160, 92, 0.42);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.18s ease, color 0.18s ease;
}
.ilink:hover {
  color: var(--brand-700);
  text-decoration-color: currentColor;
}

/* ---- 延伸阅读 ---- */
.related-card h3 {
  font-size: 1rem;
  line-height: 1.45;
  /* 让多行标题均衡断行，避免末行只剩一两个字 */
  text-wrap: balance;
}
.related-card h3 a {
  color: var(--ink);
}
.related-card h3 a:hover {
  color: var(--brand-700);
}
.related-card .rc-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 10px;
}

.card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
}
.card-ico svg {
  width: 21px;
  height: 21px;
}
.card-ico--neutral {
  background: var(--bg-tint);
  border-color: var(--line);
  color: var(--ink-2);
}

.card--flat:hover {
  transform: none;
  box-shadow: none;
}

/* 场景卡 */
.usecase {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.usecase .num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  background: var(--brand-050);
  color: var(--brand-700);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}
.usecase h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.usecase p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- 11. Prose block ---------- */
.prose {
  max-width: 780px;
}
.prose h2 {
  margin: 2.4em 0 0.7em;
  font-size: 1.55rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 1.9em 0 0.55em;
}
.prose p {
  font-size: 1rem;
  color: var(--ink-2);
}
.prose ul,
.prose ol {
  color: var(--ink-2);
}
.prose > *:last-child {
  margin-bottom: 0;
}

/* ---------- 12. Callout ---------- */
.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--bg-soft);
  font-size: 0.9375rem;
}
.callout svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--brand-600);
}
.callout p {
  margin: 0;
  color: var(--ink-2);
}
.callout--warn {
  border-left-color: var(--state-write);
  background: #fffdf5;
}
.callout--warn svg {
  color: #b57f00;
}
.callout--crit {
  border-left-color: var(--state-none);
  background: #fff7f7;
}
.callout--crit svg {
  color: var(--state-none);
}

/* ---------- 13. Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-600);
  padding-top: 5px;
}
.step h3 {
  margin-bottom: 6px;
}
.step p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}
.step .step-note {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* 横向流程 */
.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: flow;
}
.flow-item {
  counter-increment: flow;
  position: relative;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.flow-item::before {
  content: "0" counter(flow);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-600);
}
.flow-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}
.flow-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.flow-item code {
  white-space: normal;
}

/* ---------- 14. Tables ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 620px;
}
caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-size: 0.8125rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}
th,
td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
/* 首列多为短标签（工具名 / 版本 / 标记），不折行以免出现「已验 / 证」这类断裂 */
tbody td:first-child,
thead th:first-child {
  white-space: nowrap;
}

thead th {
  background: var(--bg-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: #fbfdfc;
}
td strong {
  color: var(--ink);
}
.t-ok {
  color: var(--brand-700);
  font-weight: 600;
}
.t-warn {
  color: #9a6b00;
  font-weight: 600;
}
.t-bad {
  color: #bb3438;
  font-weight: 600;
}
.t-mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
  white-space: nowrap;
}

/* ---------- 15. Accordion (FAQ) ---------- */
.acc {
  border-top: 1px solid var(--line);
}
.acc details {
  border-bottom: 1px solid var(--line);
}
.acc summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 4px 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}
.acc summary::-webkit-details-marker {
  display: none;
}
.acc summary::after {
  content: "";
  margin-left: auto;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  background-image: linear-gradient(var(--muted-2), var(--muted-2)),
    linear-gradient(var(--muted-2), var(--muted-2));
  background-size: 12px 1.6px, 1.6px 12px;
  background-position: center, center;
  background-repeat: no-repeat;
  opacity: 0.85;
  transition: transform 0.2s ease;
}
.acc details[open] summary::after {
  background-size: 12px 1.6px, 0 0;
}
.acc .acc-body {
  padding: 0 44px 22px 42px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.acc .acc-body p {
  margin-bottom: 0.7em;
}
.acc .acc-body ul {
  margin-top: 0.4em;
}
.acc-q {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  flex: 0 0 auto;
  padding-top: 2px;
}

/* ---------- 16. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #d5e0e8;
  border-radius: var(--r-lg);
  padding: 48px 44px;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(23, 160, 92, 0.34) 0%,
    rgba(23, 160, 92, 0) 70%
  );
  pointer-events: none;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}
.cta-band p {
  color: #a9bcc9;
  max-width: 46em;
  margin-bottom: 24px;
}
.cta-band .btn--ghost {
  background: transparent;
  border-color: #3d5265;
  color: #e8eff4;
}
.cta-band .btn--ghost:hover {
  border-color: #7f95a6;
  color: #fff;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

/* ---------- 17. Page hero (inner pages) ---------- */
.page-hero {
  padding-block: 56px 52px;
  background: linear-gradient(180deg, #f7fbf9 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  margin-bottom: 16px;
  max-width: 26em;
}
.page-hero .lede {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 46em;
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  color: var(--muted-2);
  list-style: none;
  padding: 0;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.breadcrumb li + li::before {
  content: "/";
  color: var(--line-strong);
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--brand-600);
}
.breadcrumb [aria-current="page"] {
  color: var(--ink-2);
}

/* ---------- 18. TOC / aside layout ---------- */
.with-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 56px;
  align-items: start;
}
.side-nav {
  position: sticky;
  top: 96px;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.875rem;
}
.side-nav h2 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.side-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.side-nav li {
  margin: 0;
  border-top: 1px solid var(--line);
}
.side-nav li:first-child {
  border-top: 0;
}
.side-nav a {
  display: block;
  padding: 9px 0;
  color: var(--ink-2);
}
.side-nav a:hover {
  color: var(--brand-600);
}

/* ---------- 19. Download card ---------- */
.dl-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.dl-main {
  padding: 34px 34px 30px;
}
.dl-side {
  padding: 30px 26px;
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
}
.dl-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.dl-title h2 {
  font-size: 1.4rem;
  margin: 0;
}
.dl-ver {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-700);
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-full);
  padding: 3px 10px;
}
.dl-sub {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 22px;
}
.dl-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 24px;
}
.dl-specs div {
  background: #fff;
  padding: 12px 16px;
}
.dl-specs dt {
  font-size: 0.75rem;
  color: var(--muted-2);
  margin-bottom: 2px;
}
.dl-specs dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-mono);
}
.dl-side h3 {
  font-size: 0.9375rem;
  margin-bottom: 10px;
}
.dl-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.dl-side li {
  display: flex;
  gap: 8px;
  margin-bottom: 9px;
}
.dl-side li svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--brand-600);
}

/* ---------- 20. Modal ---------- */
body.is-locked {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[data-open="true"] {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 26, 0.55);
  animation: fade 0.2s ease both;
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  animation: pop 0.24s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-panel:focus,
.modal-panel:focus-visible {
  outline: none;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop,
  .modal-panel {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .card:hover {
    transform: none;
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 1.2rem;
  margin-bottom: 2px;
}
.modal-head p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.modal-close {
  margin-left: auto;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover {
  background: var(--bg-tint);
  color: var(--ink);
}
.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-body {
  padding: 22px 24px 24px;
}
.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.qr-item {
  text-align: center;
}
/* 二维码卡片：图片自带 4 模块静默区，外层仅补一圈白底与描边，避免描边压到码点 */
.qr-box {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.qr-item:hover .qr-box {
  border-color: var(--line-strong);
  box-shadow: 0 4px 14px rgba(15, 26, 36, 0.08);
}
.qr-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-label {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.5;
}
.qr-note {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.qr-note a {
  font-weight: 600;
}

/* ---------- 21. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 56px 28px;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}
.footer-about p {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 32em;
  margin-top: 14px;
}
.footer-col h2 {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 9px;
}
.footer-col a {
  color: var(--ink-2);
  font-size: 0.875rem;
}
.footer-col a:hover {
  color: var(--brand-600);
}
.footer-col .muted {
  color: var(--muted);
  font-size: 0.8125rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}
.footer-bottom p {
  margin: 0;
}
.disclaimer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.8125rem;
  line-height: 1.7;
  max-width: 92em;
}

/* ---------- 22. Utility ---------- */
.mt-0 {
  margin-top: 0;
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mt-40 {
  margin-top: 40px;
}
.mb-0 {
  margin-bottom: 0;
}
.text-center {
  text-align: center;
}
.mono {
  font-family: var(--font-mono);
}
.nowrap {
  white-space: nowrap;
}
.small {
  font-size: 0.875rem;
  color: var(--muted);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 23. Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid {
    gap: 40px;
  }
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .with-side {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .side-nav {
    position: static;
    order: -1;
  }
  .dl-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .dl-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 880px) {
  .section {
    padding-block: 64px;
  }
  .hero {
    padding-block: 48px 56px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  /* 窄屏下卡片标题与切换按钮同排会挤断文字，标题改为单行省略 */
  .mapcard-top {
    padding: 12px 14px;
  }
  .mapcard-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mapcard-toggle button {
    white-space: nowrap;
  }
  .hero-lede {
    font-size: 1.0625rem;
  }
  .grid--3,
  .grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .statstrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .cta-band {
    padding: 34px 26px;
  }

  /* 移动端导航 */
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgba(15, 26, 36, 0.6);
  }
  .nav[data-open="true"] {
    display: flex;
  }
  .nav a {
    padding: 11px 12px;
    font-size: 1rem;
  }
  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .brand {
    min-width: 0;
  }
  /* 移动端仍保留下载入口：下载按钮靠右，汉堡菜单置于最右 */
  .header-cta {
    order: 2;
    margin-left: auto;
  }
  .header-cta .btn {
    display: inline-flex;
    padding: 8px 14px;
    font-size: 0.875rem;
  }
  .nav-toggle {
    order: 3;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }
  .section {
    padding-block: 52px;
  }
  .statstrip {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dl-main {
    padding: 24px 20px;
  }
  .dl-specs {
    grid-template-columns: minmax(0, 1fr);
  }
  .qr-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  /* 窄屏单列时限制二维码尺寸，保证两张码都能落在首屏内 */
  .qr-box {
    max-width: 208px;
    margin-inline: auto;
    margin-bottom: 10px;
  }
  .modal {
    padding: 12px;
  }
  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .step::before {
    padding-top: 0;
  }
  .acc summary {
    font-size: 0.9375rem;
  }
  .acc .acc-body {
    padding-right: 8px;
  }
  th,
  td {
    padding: 11px 13px;
  }
}

/* ---------- 24. Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .modal,
  .cta-band,
  .nav-toggle {
    display: none !important;
  }
  body {
    color: #000;
  }
}
