/* =========================================================
   site.css — 亿万CN 全站共享外壳
   顺序：reset → 变量 → 中文排版 → 通用布局 → 通用组件
        → 头部 → 页脚 → 工具类 → 响应式 → 动效降级
   ========================================================= */

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

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

body {
  margin: 0;
  background: #0A0C0F;
  color: #F3EFE6;
  font-family: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, pre { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0A0C0F;
  --panel: #14181E;
  --line: #2A313A;
  --cyan: #00E5FF;
  --cyan-mist: #8DF6FF;
  --amber: #FFB547;
  --amber-soft: #FFD9A0;
  --paper: #F3EFE6;
  --paper-warm: #E7DFD2;
  --ink-text: #1A1A1A;
  --ok: #3DDC97;
  --warn: #FF6B6B;

  --muted: rgba(243, 239, 230, 0.62);
  --muted-2: rgba(243, 239, 230, 0.44);
  --hair: rgba(243, 239, 230, 0.12);

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --pill: 999px;

  --w: 1240px;
  --header-h: 76px;

  --font-display: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
}

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.4vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 42px); }
h3 { font-size: clamp(19px, 2vw, 26px); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 18px; font-weight: 700; letter-spacing: 0; }

p { text-wrap: pretty; }

strong { font-weight: 700; color: var(--paper); }

::selection { background: rgba(0, 229, 255, 0.28); color: #FFFFFF; }

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

#main-content { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- 4. 通用布局 ---------- */
.container {
  width: min(100% - 40px, var(--w));
  margin-inline: auto;
}

.section { padding-block: clamp(56px, 8vw, 104px); }

.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.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)); }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }

.divider {
  position: relative;
  height: 1px;
  background: var(--line);
  border: 0;
  margin-block: clamp(28px, 4vw, 48px);
}
.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}
.divider::before { left: 0; }
.divider::after { right: 0; background: var(--amber); }

/* ---------- 5. 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(0, 229, 255, 0.2));
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
              transform 0.22s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--cyan); color: #04232A; }
.btn--primary:hover {
  background: var(--cyan-mist);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.16);
}

.btn--amber { background: var(--amber); color: #241603; }
.btn--amber:hover {
  background: var(--amber-soft);
  box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.16);
}

.btn--ghost { background: transparent; border-color: var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
  white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: rgba(0, 229, 255, 0.36); background: rgba(0, 229, 255, 0.08); }
.tag--amber { color: var(--amber); border-color: rgba(255, 181, 71, 0.38); background: rgba(255, 181, 71, 0.09); }
.tag--ok { color: var(--ok); border-color: rgba(61, 220, 151, 0.36); background: rgba(61, 220, 151, 0.08); }
.tag--warn { color: var(--warn); border-color: rgba(255, 107, 107, 0.36); background: rgba(255, 107, 107, 0.08); }

.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(158deg, #151A21 0%, #10141A 100%);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease);
}
.card:hover { border-color: rgba(0, 229, 255, 0.42); }

/* 路径（技能树式步骤） */
.path-list { display: flex; flex-direction: column; }
.path-node {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding-bottom: 26px;
}
.path-node::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 32px;
  bottom: 2px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--line), rgba(42, 49, 58, 0.15));
}
.path-node:last-child { padding-bottom: 0; }
.path-node:last-child::before { display: none; }

.path-node__index {
  position: relative;
  z-index: 1;
  align-self: start;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  transition: background 0.24s var(--ease), color 0.24s var(--ease),
              border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.path-node.is-active .path-node__index,
.path-node[data-active="true"] .path-node__index {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #04232A;
  box-shadow: 0 0 0 5px rgba(0, 229, 255, 0.14);
}
.path-node__body { min-width: 0; }
.path-node__title {
  margin: 2px 0 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--paper);
}
.path-node__text { font-size: 14.5px; line-height: 1.7; color: var(--muted); }

/* 图片容器基础规则（页面阶段放 <img>） */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #171C23 0%, #0E1216 72%);
  aspect-ratio: 16 / 10;
  isolation: isolate;
}
.media-frame > img,
.media-frame > picture,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.55;
}
.media-frame::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 34px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

/* 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.breadcrumbs a { color: var(--muted); transition: color 0.2s var(--ease); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--line);
}
.breadcrumbs__current { color: var(--amber); }

/* 轻提示 */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 900;
  transform: translate(-50%, 14px);
  padding: 12px 22px;
  border-radius: var(--pill);
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(20, 24, 30, 0.97);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
}
.site-toast[data-show="true"] {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- 6. 头部 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 999;
  padding: 12px 22px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--cyan);
  color: #04232A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease),
              box-shadow 0.28s var(--ease);
}
.site-header[data-scrolled="true"] {
  background: rgba(20, 24, 30, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(100% - 40px, var(--w));
  min-height: var(--header-h);
  margin-inline: auto;
}

/* 字标 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding-block: 8px;
}
.brand-mark {
  display: grid;
  gap: 3px;
  width: 26px;
  flex: 0 0 auto;
}
.brand-mark span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--cyan);
  transition: width 0.24s var(--ease);
}
.brand-mark span:nth-child(1) { width: 26px; }
.brand-mark span:nth-child(2) { width: 18px; background: var(--cyan-mist); }
.brand-mark span:nth-child(3) { width: 10px; background: var(--amber); }
.brand:hover .brand-mark span:nth-child(1) { width: 20px; }
.brand:hover .brand-mark span:nth-child(3) { width: 16px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.brand-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(141, 246, 255, 0.72);
}

/* 主导航 */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(243, 239, 230, 0.78);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover { color: var(--paper); background: rgba(0, 229, 255, 0.09); }
.nav-link[aria-current="page"] {
  color: #04232A;
  background: var(--cyan);
  font-weight: 700;
}

.nav-quick { display: none; }

/* 操作带 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(20, 24, 30, 0.55);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
              background 0.2s var(--ease);
}
.action-chip:hover { border-color: var(--cyan); color: var(--cyan); }
.action-chip[aria-pressed="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: #241603;
  font-weight: 700;
}
.action-chip--amber { border-color: rgba(255, 181, 71, 0.5); color: var(--amber-soft); }
.action-chip--amber:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255, 181, 71, 0.12);
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 16px 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(20, 24, 30, 0.6);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-left: auto;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-box { display: grid; gap: 3px; width: 18px; }
.nav-toggle-box span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease), width 0.24s var(--ease);
}
.nav-toggle-box span:nth-child(2) { width: 13px; }
.nav-toggle-box span:nth-child(3) { width: 8px; }
.site-header[data-open="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-box span:nth-child(3) {
  width: 18px;
  transform: translateY(-5px) rotate(-45deg);
}

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-mist) 55%, var(--amber));
  transition: width 0.12s linear;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 128px);
  background: var(--ink);
  border-top: 1px solid var(--line);
  color: var(--paper);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0 16%,
    transparent 16% 18%,
    var(--amber) 18% 24%,
    transparent 24% 32%,
    var(--line) 32% 100%
  );
  opacity: 0.9;
}
.site-footer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -240px;
  width: 760px;
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 229, 255, 0.1), transparent 72%);
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1.5fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  width: min(100% - 40px, var(--w));
  margin-inline: auto;
  padding-block: clamp(48px, 6vw, 76px) clamp(36px, 4vw, 52px);
}

.footer-brand { min-width: 0; }
.footer-brand .brand { padding-block: 0; }

.footer-line {
  margin-top: 18px;
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(243, 239, 230, 0.58);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16);
  animation: status-pulse 2.6s ease-in-out infinite;
}

.footer-heading {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.footer-nav-col { min-width: 0; }

.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(243, 239, 230, 0.68);
  transition: color 0.2s var(--ease);
}
.footer-links a::before {
  content: "";
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--cyan);
  transition: width 0.22s var(--ease), margin-right 0.22s var(--ease);
}
.footer-links a:hover { color: var(--cyan); }
.footer-links a:hover::before { width: 12px; margin-right: 8px; }

.footer-contact { min-width: 0; }

.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-list__item { min-width: 0; }
.contact-list__item dt {
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.4);
}
.contact-list__item dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(243, 239, 230, 0.82);
  overflow-wrap: anywhere;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  width: min(100% - 40px, var(--w));
  margin-inline: auto;
  padding-block: 20px 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: rgba(243, 239, 230, 0.45);
}
.footer-copy { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal-links a {
  color: rgba(243, 239, 230, 0.55);
  transition: color 0.2s var(--ease);
}
.footer-legal-links a:hover { color: var(--cyan); }
.footer-icp { font-size: 12px; color: rgba(243, 239, 230, 0.34); }

/* ---------- 8. 工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0.04); }
}

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 9px 11px; font-size: 14px; }
  .header-actions { gap: 6px; }
  .action-chip { padding: 7px 12px; font-size: 12.5px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }

  .header-inner { gap: 14px; }

  .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: calc(var(--header-h) + 26px) 24px 40px;
    background:
      radial-gradient(120% 55% at 100% 0%, rgba(255, 181, 71, 0.1), transparent 62%),
      radial-gradient(110% 50% at 0% 0%, rgba(0, 229, 255, 0.13), transparent 58%),
      var(--ink);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0.26s;
  }
  .site-header[data-open="true"] .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }
  .nav-link {
    display: block;
    padding: 15px 18px;
    border-left: 2px solid var(--line);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 17px;
    font-weight: 700;
    color: rgba(243, 239, 230, 0.82);
  }
  .nav-link:hover { background: rgba(0, 229, 255, 0.08); }
  .nav-link[aria-current="page"] {
    background: rgba(0, 229, 255, 0.12);
    border-left-color: var(--cyan);
    color: var(--cyan);
  }

  .nav-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
  .nav-quick .btn { flex: 1 1 140px; }

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

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-line { max-width: 46ch; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container,
  .header-inner,
  .footer-top,
  .footer-bottom { width: calc(100% - 32px); }

  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 9px; letter-spacing: 0.14em; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { justify-content: flex-start; gap: 10px 20px; }
  .footer-legal-links { gap: 14px; }

  .site-toast { left: 16px; right: 16px; bottom: 18px; transform: translateY(14px); text-align: center; }
  .site-toast[data-show="true"] { transform: none; }
}

@media (max-width: 400px) {
  .footer-nav { grid-template-columns: 1fr; }
  .nav-quick .btn { flex: 1 1 100%; }
}

/* ---------- 10. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .status-dot { animation: none; }
  .has-js [data-reveal] { opacity: 1; transform: none; }
}
