/* ==========================================================================
   百博品牌 · 中文专区 — 共享样式 /assets/site.css
   面板式外壳：侧边轨道导航 + 毛玻璃顶条 + 珠宝色分区页脚
   ========================================================================== */

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

:root {
  /* —— 品牌色 —— */
  --c-blue: #1A5CFF;
  --c-blue-deep: #1447CC;
  --c-indigo: #12225E;
  --c-indigo-deep: #0B1740;
  --c-teal: #0E3B3E;
  --c-teal-deep: #0A2B2E;
  --c-wine: #5B1E3A;
  --c-wine-deep: #3D1226;
  --c-amber: #F5A623;
  --c-amber-soft: #FFD98A;
  --c-mint: #35D0BA;
  --c-mint-deep: #159E8B;
  --c-ink: #12161C;
  --c-ink-soft: #3C4767;
  --c-muted: #5A6478;
  --c-faint: #7B87A6;
  --c-cloud: #F4F6FB;
  --c-line: #DDE3F0;
  --c-line-strong: #C9D5F2;
  --c-white: #FFFFFF;

  /* —— 字体 —— */
  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* —— 尺度 —— */
  --rail-w: 88px;
  --shell-max: 1240px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 9px;

  --shadow-card: 0 22px 48px -30px rgba(18, 34, 94, .55);
  --shadow-float: 0 30px 64px -36px rgba(18, 34, 94, .62);

  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- 基础重置 ---------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-left: var(--rail-w);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--c-ink);
  background-color: var(--c-cloud);
  background-image:
    radial-gradient(circle at 94% -4%, rgba(26, 92, 255, .10), transparent 46%),
    radial-gradient(circle at -6% 92%, rgba(245, 166, 35, .09), transparent 44%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.15;
  color: var(--c-ink);
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: clamp(20px, 2vw, 22px); letter-spacing: -.2px; }
h4 { font-size: 18px; letter-spacing: -.1px; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0; padding: 0; }

::selection { background: rgba(26, 92, 255, .18); color: var(--c-indigo); }

:focus-visible {
  outline: 3px solid var(--c-amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   1. 顶部毛玻璃条
   ========================================================================== */
.site-header { position: relative; z-index: 60; }

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 400;
  padding: 12px 22px;
  border-radius: 0 0 10px 10px;
  background-color: var(--c-amber);
  color: #2A1B00;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 2.6vw, 36px);
  background-color: rgba(244, 246, 251, .84);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--c-line);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-image: linear-gradient(90deg,
    var(--c-amber) 0%,
    rgba(245, 166, 35, 0) 34%,
    rgba(26, 92, 255, .55) 72%,
    rgba(26, 92, 255, 0) 100%);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background-image: linear-gradient(140deg, var(--c-blue) 0%, var(--c-indigo) 56%, var(--c-teal) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .2),
    0 8px 20px -10px rgba(26, 92, 255, .95);
}
.brand__mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px solid rgba(255, 217, 138, .92);
  border-radius: 3px;
}
.brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background-color: var(--c-amber-soft);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.brand__line {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--c-muted);
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 166, 35, .55);
  background-color: rgba(245, 166, 35, .13);
  color: #8A5A00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.6;
  white-space: nowrap;
}
.cert-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .22);
  flex: 0 0 auto;
}

.ver-chip {
  padding: 5px 10px;
  border-radius: 7px;
  background-color: var(--c-indigo);
  color: var(--c-amber-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.6;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: 12px;
  background-color: var(--c-white);
  color: var(--c-indigo);
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.nav-toggle:hover { background-color: #EDF1FB; border-color: #B9C8EC; }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  transition: background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background-color: transparent;
  box-shadow: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before,
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); }

/* ==========================================================================
   2. 侧边轨道导航
   ========================================================================== */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  padding: 0 0 18px;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(26, 92, 255, .38), transparent 56%),
    linear-gradient(180deg, #0B1740 0%, #12225E 48%, #0E3B3E 100%);
  box-shadow:
    inset -1px 0 0 rgba(244, 246, 251, .10),
    16px 0 44px -34px rgba(11, 23, 64, .95);
}

.rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 8px;
  background-image: repeating-linear-gradient(180deg, rgba(244, 246, 251, .34) 0 1px, transparent 1px 13px);
  opacity: .45;
  pointer-events: none;
}

.rail__label {
  margin: 0;
  padding: 20px 0 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  color: rgba(244, 246, 251, .45);
}

.rail__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0 0 8px;
  flex: 0 1 auto;
}

.rail__item { margin: 0; }

.rail__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 8px;
  border-left: 2px solid transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .04em;
  text-align: center;
  color: rgba(244, 246, 251, .66);
  text-decoration: none;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.rail__link:hover,
.rail__link:focus-visible {
  color: #FFFFFF;
  text-decoration: none;
  background-color: rgba(26, 92, 255, .26);
}
.rail__link[aria-current="page"] {
  color: var(--c-amber-soft);
  font-weight: 700;
  border-left-color: var(--c-amber);
  background-image: linear-gradient(90deg, rgba(245, 166, 35, .24), rgba(245, 166, 35, .02));
}

.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 6px 0;
}

.rail__progress {
  position: relative;
  width: 5px;
  height: 92px;
  border-radius: 99px;
  background-color: rgba(244, 246, 251, .14);
  overflow: hidden;
}
.rail__progress-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  border-radius: 99px;
  background-image: linear-gradient(180deg, var(--c-amber-soft), var(--c-amber));
  transition: height .12s linear;
}

.rail__stable {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(245, 166, 35, .42);
  border-radius: 8px;
  background-color: rgba(245, 166, 35, .13);
  color: var(--c-amber-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.rail__stable:hover,
.rail__stable:focus-visible {
  background-color: rgba(245, 166, 35, .28);
  border-color: rgba(245, 166, 35, .85);
  text-decoration: none;
}

.to-top {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(244, 246, 251, .22);
  border-radius: 10px;
  background-color: rgba(244, 246, 251, .08);
  color: var(--c-amber-soft);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), background-color .18s var(--ease);
}
.to-top[data-visible] { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background-color: rgba(244, 246, 251, .2); }

.to-top__arrow {
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

/* ==========================================================================
   3. 通用布局与组件
   ========================================================================== */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

.section { padding-block: clamp(30px, 5vw, 62px); }

.page-head {
  padding-block: clamp(34px, 6vw, 68px) clamp(16px, 2.6vw, 28px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-bottom: clamp(16px, 2.4vw, 26px);
}
.section-head__title { margin: 0; }

.prose { max-width: 38em; }
.lead {
  max-width: 38em;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.9;
  color: var(--c-ink-soft);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background-image: linear-gradient(90deg, var(--c-line), rgba(221, 227, 240, 0));
}

.index-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid rgba(26, 92, 255, .18);
  border-radius: 6px;
  background-color: rgba(26, 92, 255, .09);
  color: #1B3FA0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.index-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--c-amber);
  flex: 0 0 auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--primary {
  background-color: var(--c-blue);
  color: #FFFFFF;
  box-shadow: 0 16px 32px -16px rgba(26, 92, 255, .9);
}
.btn--primary:hover {
  background-color: var(--c-blue-deep);
  box-shadow: 0 20px 38px -16px rgba(26, 92, 255, .95);
}

.btn--ghost {
  background-color: transparent;
  border-color: rgba(26, 92, 255, .34);
  color: var(--c-blue-deep);
}
.btn--ghost:hover { background-color: rgba(26, 92, 255, .09); }

.btn--amber {
  background-color: rgba(245, 166, 35, .12);
  border-color: rgba(245, 166, 35, .58);
  color: var(--c-amber-soft);
}
.btn--amber:hover {
  background-color: rgba(245, 166, 35, .24);
  border-color: rgba(245, 166, 35, .9);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.breadcrumb li { margin: 0; }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--c-line-strong);
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-blue-deep); }
.breadcrumb [aria-current="page"] { color: var(--c-ink); font-weight: 600; }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  background-color: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
}

.panel--indigo {
  background-image: linear-gradient(160deg, #12225E 0%, #0B1740 100%);
  border-color: rgba(244, 246, 251, .13);
  color: var(--c-cloud);
}
.panel--teal {
  background-image: linear-gradient(160deg, #0E3B3E 0%, #0A2B2E 100%);
  border-color: rgba(53, 208, 186, .22);
  color: var(--c-cloud);
}
.panel--wine {
  background-image: linear-gradient(160deg, #5B1E3A 0%, #3D1226 100%);
  border-color: rgba(255, 217, 138, .22);
  color: var(--c-cloud);
}

.panel--indigo h2, .panel--indigo h3, .panel--indigo h4,
.panel--teal h2, .panel--teal h3, .panel--teal h4,
.panel--wine h2, .panel--wine h3, .panel--wine h4 { color: #FFFFFF; }

.panel--indigo p, .panel--teal p, .panel--wine p { color: rgba(244, 246, 251, .82); }

.panel--indigo .lead, .panel--teal .lead, .panel--wine .lead {
  color: rgba(244, 246, 251, .8);
}

.panel--indigo a:not(.btn),
.panel--teal a:not(.btn),
.panel--wine a:not(.btn) { color: var(--c-amber-soft); }

.panel--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(rgba(244, 246, 251, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 246, 251, .06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 24px);
  background-color: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
a.card:hover,
a.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--c-line-strong);
  text-decoration: none;
}

.card__no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--c-faint);
  transition: color .18s var(--ease);
}
a.card:hover .card__no,
a.card:focus-visible .card__no { color: var(--c-amber); }

.card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: var(--c-ink);
}

.card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
}

.card__arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--c-blue-deep);
}
.card__arrow::after {
  content: "→";
  transition: transform .18s var(--ease);
}
a.card:hover .card__arrow::after { transform: translateX(4px); }

.data-card {
  padding: clamp(16px, 2.2vw, 22px);
  background-color: var(--c-white);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-mint);
  border-radius: var(--radius);
}
.data-card__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--c-mint-deep);
}
.data-card__label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--c-muted);
}

/* ---------- 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background-image: linear-gradient(150deg, #12225E 0%, #0E3B3E 100%);
  isolation: isolate;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 246, 251, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 246, 251, .07) 1px, transparent 1px);
  background-size: 34px 34px;
}
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--1x1 { aspect-ratio: 1 / 1; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--45 { aspect-ratio: 5 / 4; }
.media--framed {
  border: 1px solid rgba(245, 166, 35, .55);
  box-shadow: inset 0 0 0 1px rgba(244, 246, 251, .08);
}

/* ==========================================================================
   4. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 110px);
  padding: clamp(40px, 6vw, 72px) 0 28px;
  overflow: hidden;
  color: var(--c-cloud);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(26, 92, 255, .32), transparent 52%),
    radial-gradient(circle at 88% 100%, rgba(245, 166, 35, .16), transparent 48%),
    linear-gradient(168deg, #0B1740 0%, #12225E 52%, #0E3B3E 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(rgba(244, 246, 251, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 246, 251, .055) 1px, transparent 1px);
  background-size: 48px 48px;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  pointer-events: none;
  background-image: linear-gradient(90deg,
    rgba(245, 166, 35, .95) 0%,
    rgba(26, 92, 255, .7) 42%,
    rgba(53, 208, 186, .55) 100%);
}

.footer__inner { position: relative; z-index: 1; }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.footer__brand { min-width: 0; }

.footer__name {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: #FFFFFF;
}

.footer__tagline {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: rgba(244, 246, 251, .6);
}

.footer__cta { margin-top: 2px; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.footer__col { min-width: 0; }

.footer__col-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--c-amber-soft);
  text-transform: uppercase;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
}
.footer__links li { margin: 0; }
.footer__links a {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: rgba(244, 246, 251, .8);
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer__links a:hover,
.footer__links a:focus-visible {
  color: #FFFFFF;
  border-bottom-color: var(--c-amber);
  text-decoration: none;
}

.footer__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 28px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 24px;
  border-top: 1px solid rgba(244, 246, 251, .14);
}

.footer__contact-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-width: 0;
}

.footer__k {
  flex: 0 0 auto;
  min-width: 64px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: rgba(244, 246, 251, .5);
}

.footer__v {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244, 246, 251, .92);
  word-break: break-word;
}

.footer__note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(244, 246, 251, .55);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 246, 251, .14);
  font-size: 13px;
  color: rgba(244, 246, 251, .6);
}

.footer__copy,
.footer__icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}

.footer__legal-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 0 auto;
  padding: 0;
}
.footer__legal-links li { margin: 0; }
.footer__legal-links a {
  color: rgba(244, 246, 251, .72);
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(244, 246, 251, .24);
  text-decoration: none;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer__legal-links a:hover,
.footer__legal-links a:focus-visible {
  color: var(--c-amber-soft);
  border-bottom-color: var(--c-amber);
  text-decoration: none;
}

/* ==========================================================================
   5. 入场显现协议
   ========================================================================== */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .55s var(--ease),
    transform .55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (scripting: none) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   6. 响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  body { padding-left: 0; }

  .nav-toggle { display: inline-flex; }

  .rail {
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(320px, 86vw);
    padding-top: 76px;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    box-shadow: -30px 0 70px -40px rgba(11, 23, 64, .9);
    overflow-y: auto;
  }
  .rail[data-open] { transform: translateX(0); }
  .rail::after { display: none; }
  .rail__label { display: none; }

  .rail__list { padding: 0; gap: 0; }

  .rail__link {
    justify-content: flex-start;
    text-align: left;
    min-height: 56px;
    padding: 14px 22px;
    font-size: 15px;
    letter-spacing: .02em;
    border-left: none;
    border-bottom: 1px solid rgba(244, 246, 251, .09);
  }
  .rail__link[aria-current="page"] {
    background-image: none;
    background-color: rgba(245, 166, 35, .16);
    border-left: 3px solid var(--c-amber);
    padding-left: 19px;
  }

  .rail__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 20px 22px 0;
  }
  .rail__progress { display: none; }

  body[data-nav-open]::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background-color: rgba(11, 23, 64, .52);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__legal-links { margin-left: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.8; }

  .topbar { padding: 10px 16px; gap: 12px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 16px; }
  .brand__line { font-size: 9px; letter-spacing: .16em; }
  .cert-badge { display: none; }

  .grid--2,
  .grid--3,
  .grid--split { grid-template-columns: minmax(0, 1fr); }

  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__contact { grid-template-columns: minmax(0, 1fr); }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 420px) {
  .ver-chip { display: none; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; justify-content: center; }
}

@media (max-height: 640px) and (min-width: 961px) {
  .rail__link { min-height: 44px; font-size: 11.5px; }
  .rail__progress { height: 64px; }
  .rail__label { padding: 12px 0 8px; }
}

/* ==========================================================================
   7. 动效降级
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .12ms !important;
    scroll-behavior: auto !important;
  }

  .has-reveal [data-reveal],
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity .12s linear !important;
    transition-delay: 0ms !important;
  }

  .card:hover,
  a.card:hover,
  a.card:focus-visible,
  .btn:hover,
  a.card:hover .card__arrow::after { transform: none !important; }
}
