/* ==========================================================================
   emc易倍 — /assets/site.css
   共享外壳：reset、变量、中文排版、侧轨头部、移动抽屉、页脚、通用组件
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; }

a { color: inherit; }

[id] { scroll-margin-top: 84px; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #0B1B2B;
  --ink-800: #12283D;
  --ink-700: #1B3A52;
  --snow: #EDF2F7;
  --mist: #8FA3B5;
  --turquoise: #5FD3B4;
  --orange: #FF7A33;
  --flag-blue: #4C8DF6;
  --flag-red: #E2564E;
  --flag-yellow: #F2C230;
  --violet: #7B6BE0;

  --line: rgba(237, 242, 247, .10);
  --line-strong: rgba(237, 242, 247, .20);
  --surface: rgba(237, 242, 247, .04);
  --surface-2: rgba(237, 242, 247, .08);

  --rail-w: 88px;
  --rail-w-open: 224px;
  --topbar-h: 56px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .22s;

  --font-display: "Archivo Black", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(143, 163, 181, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 163, 181, .045) 1px, transparent 1px);
  background-size: 96px 96px;
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(95, 211, 180, .30);
  color: var(--snow);
}

a { text-decoration: none; }

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

.h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-weight: 900;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 900;
}

.h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.01em;
}

.lead {
  max-width: 38em;
  color: var(--mist);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.75;
}

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: -.01em; }
.mono-sm { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--turquoise);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ---------- 4. 布局容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 44px);
}

.wrap--narrow { max-width: 780px; }

.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tight { padding: clamp(34px, 5vw, 62px) 0; }

.band { background: var(--ink-800); }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

/* ---------- 5. 通用按钮 / 胶囊 / 面板 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--orange); color: #10222F; }
.btn--primary:hover { background: #FF9257; }

.btn--turquoise { background: var(--turquoise); color: #06202B; }
.btn--turquoise:hover { background: #7FE3CA; }

.btn--ghost {
  background: transparent;
  border-color: rgba(237, 242, 247, .24);
  color: var(--snow);
}
.btn--ghost:hover { border-color: var(--turquoise); color: var(--turquoise); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--mist);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.chip--turquoise {
  color: var(--turquoise);
  border-color: rgba(95, 211, 180, .42);
  background: rgba(95, 211, 180, .10);
}

.chip--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 51, .42);
  background: rgba(255, 122, 51, .10);
}

.badge-version {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 6px;
  border: 1px solid rgba(242, 194, 48, .34);
  border-radius: 5px;
  background: rgba(242, 194, 48, .12);
  color: var(--flag-yellow);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.4;
  white-space: nowrap;
}

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--turquoise);
}

.stat__label {
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--mist);
}

/* ---------- 6. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mist);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(143, 163, 181, .5);
}

.breadcrumb a {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.breadcrumb a:hover {
  color: var(--turquoise);
  border-bottom-color: currentColor;
}

.breadcrumb [aria-current="page"] { color: var(--snow); }

/* ---------- 7. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(150deg, rgba(27, 58, 82, .92), rgba(18, 40, 61, .92)),
    var(--ink-700);
  isolation: isolate;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(143, 163, 181, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 163, 181, .10) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.media > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(11, 27, 43, .78);
  color: var(--snow);
  font-size: 12px;
  line-height: 1.5;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--3x4  { aspect-ratio: 3 / 4; }
.media--21x9 { aspect-ratio: 21 / 9; }

/* ---------- 8. 折叠面板 ---------- */
.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

details.panel > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  color: var(--snow);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

details.panel > summary::-webkit-details-marker { display: none; }

details.panel > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid var(--turquoise);
  border-bottom: 2px solid var(--turquoise);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

details.panel[open] > summary::after { transform: rotate(-135deg); }

.panel__body {
  padding: 0 18px 18px;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- 9. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--turquoise);
  color: #06202B;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 10. 头部 / 侧边轨道 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: var(--rail-w);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink-800);
  border-right: 1px solid var(--line);
  transition: width var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.rail {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.rail-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  height: 88px;
  padding-left: 28px;
  border-bottom: 1px solid var(--line);
  color: var(--snow);
}

.brand-mark {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(150deg, #7EE6C9, var(--turquoise) 55%, #2E9C81);
  color: #06202B;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.rail-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .16s var(--ease), transform var(--dur) var(--ease);
}

.rail-brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.rail-nav {
  flex: 1 1 auto;
  padding: 16px 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 163, 181, .32) transparent;
}

.rail-nav::-webkit-scrollbar { width: 4px; }
.rail-nav::-webkit-scrollbar-thumb {
  background: rgba(143, 163, 181, .32);
  border-radius: 4px;
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 46px;
  padding-left: 28px;
  color: var(--mist);
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.rail-link:hover {
  background: rgba(237, 242, 247, .045);
  color: var(--snow);
}

.rail-link:focus-visible { outline-offset: -3px; }

.rail-link[aria-current="page"] { color: var(--snow); }

.rail-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--turquoise);
}

.rail-mark {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(237, 242, 247, .12);
  border-radius: 9px;
  background: rgba(237, 242, 247, .03);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.rail-list li:nth-child(1) .rail-mark { color: var(--turquoise); }
.rail-list li:nth-child(2) .rail-mark { color: var(--flag-blue); }
.rail-list li:nth-child(3) .rail-mark { color: var(--orange); }
.rail-list li:nth-child(4) .rail-mark { color: var(--flag-yellow); }
.rail-list li:nth-child(5) .rail-mark { color: var(--violet); }
.rail-list li:nth-child(6) .rail-mark { color: var(--flag-red); }

.rail-link:hover .rail-mark {
  border-color: rgba(95, 211, 180, .55);
  background: rgba(95, 211, 180, .10);
}

.rail-link[aria-current="page"] .rail-mark {
  border-color: var(--turquoise);
  background: rgba(95, 211, 180, .14);
}

.rail-label {
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .16s var(--ease), transform .2s var(--ease);
}

.rail-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0 20px;
  border-top: 1px solid var(--line);
}

.rail-feedback {
  display: flex;
  align-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px dashed rgba(143, 163, 181, .48);
  border-radius: 11px;
  color: var(--mist);
  white-space: nowrap;
  transition: width var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.rail-feedback:hover {
  border-color: rgba(95, 211, 180, .65);
  color: var(--snow);
}

.rail-feedback-icon {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 12px;
  line-height: 1;
}

.rail-feedback-text {
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .14s var(--ease);
}

.rail-cta {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--orange);
  color: #12283D;
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.rail-cta:hover { background: #FF9257; }

.rail-cta-icon {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: currentColor;
}

.rail-cta-icon svg { width: 16px; height: 16px; }

.rail-cta-text {
  position: absolute;
  top: 0;
  left: 36px;
  display: flex;
  align-items: center;
  height: 36px;
  padding-right: 16px;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .14s var(--ease);
}

@media (min-width: 900px) {
  .site-header:hover,
  .site-header:focus-within {
    width: var(--rail-w-open);
    box-shadow: 26px 0 52px -34px rgba(0, 0, 0, .9);
  }

  .site-header:hover .rail-brand-text,
  .site-header:focus-within .rail-brand-text {
    opacity: 1;
    transform: none;
    transition-delay: .06s;
  }

  .site-header:hover .rail-label,
  .site-header:focus-within .rail-label {
    opacity: 1;
    transform: none;
    transition-delay: .06s;
  }

  .site-header:hover .rail-feedback,
  .site-header:focus-within .rail-feedback { width: 184px; }

  .site-header:hover .rail-feedback-text,
  .site-header:focus-within .rail-feedback-text {
    opacity: 1;
    transition-delay: .08s;
  }

  .site-header:hover .rail-cta,
  .site-header:focus-within .rail-cta { width: 184px; }

  .site-header:hover .rail-cta-text,
  .site-header:focus-within .rail-cta-text {
    opacity: 1;
    transition-delay: .08s;
  }
}

/* ---------- 11. 移动端细条 ---------- */
.mobile-bar { display: none; }

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--snow);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  margin-left: auto;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--snow);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(95, 211, 180, .6);
  background: rgba(95, 211, 180, .10);
}

.nav-toggle-bars {
  display: grid;
  gap: 3px;
  width: 14px;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle-text::before {
  content: "菜单";
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-text::before { content: "关闭"; }

/* ---------- 12. 移动抽屉 ---------- */
.drawer-scrim {
  position: fixed;
  inset: var(--topbar-h) 0 0 0;
  z-index: 85;
  display: none;
  background: rgba(6, 16, 26, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.site-drawer {
  position: fixed;
  top: var(--topbar-h);
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  width: min(330px, 88vw);
  padding: 20px 18px 32px;
  overflow-y: auto;
  background: var(--ink-800);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .26s var(--ease);
}

.drawer-nav ul {
  display: grid;
  gap: 2px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 11px;
  color: var(--snow);
  font-size: 15px;
  font-weight: 600;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.drawer-nav a:hover { background: var(--surface); }

.drawer-nav a[aria-current="page"] {
  background: rgba(95, 211, 180, .12);
  color: var(--turquoise);
}

.drawer-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(143, 163, 181, .75);
}

.drawer-cta {
  width: 100%;
  margin-top: 22px;
}

.drawer-note {
  margin-top: 12px;
  color: var(--mist);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- 13. 滚动进度 ---------- */
.progress-rail {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 95;
  height: 2px;
  pointer-events: none;
}

.progress-rail i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--turquoise), var(--flag-blue) 45%, var(--violet) 72%, var(--orange));
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  padding-top: clamp(40px, 6vw, 72px);
  background: var(--ink-800);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  opacity: .9;
  background: linear-gradient(90deg,
    var(--flag-blue) 0 20%,
    var(--snow) 20% 40%,
    var(--flag-red) 40% 60%,
    var(--turquoise) 60% 80%,
    var(--flag-yellow) 80% 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.6fr;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(30px, 5vw, 54px);
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--snow);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.footer-note {
  max-width: 24em;
  color: var(--mist);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-title {
  margin-bottom: 14px;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col li {
  color: var(--mist);
  font-size: 14px;
  line-height: 1.65;
}

.footer-col a {
  color: var(--mist);
  transition: color var(--dur) var(--ease);
}

.footer-col a:hover {
  color: var(--turquoise);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact li.mono-sm { color: rgba(237, 242, 247, .86); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  color: rgba(143, 163, 181, .92);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-base-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-base a {
  color: inherit;
  transition: color var(--dur) var(--ease);
}

.footer-base a:hover { color: var(--turquoise); }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  body {
    padding-left: 0;
    padding-top: var(--topbar-h);
  }

  [id] { scroll-margin-top: 70px; }

  .site-header {
    width: 100%;
    height: var(--topbar-h);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 27, 43, .94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .rail { display: none; }

  .mobile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 0 14px;
  }

  .site-drawer { display: block; }
  .site-drawer[data-open] { transform: none; }

  .drawer-scrim { display: block; }
  .drawer-scrim[data-open] {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open { overflow: hidden; }

  .progress-rail {
    top: var(--topbar-h);
    left: 0;
  }

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

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

/* ---------- 16. 无障碍：降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  html { scroll-behavior: auto; }
}
