/* ==========================================================================
   博鱼官方站 · 共享站点样式 /assets/site.css
   深海导航图 · 蓝图网格 · 侧边轨道
   ========================================================================== */

:root {
  --ink-900: #071A2B;
  --ink-800: #0E2A3F;
  --ink-700: #132F46;
  --paper: #F4F1E8;
  --mist: #DCE8EE;
  --coral: #FF6B4A;
  --aqua: #35F0D0;
  --sun: #FFD166;
  --violet: #7C5CFF;
  --tide: #A9BBC6;
  --kelp: #39D98A;

  --rail: 132px;
  --edge: clamp(20px, 4.2vw, 64px);
  --measure: 68ch;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "HarmonyOS Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;

  --line: rgba(220, 232, 238, 0.16);
  --line-strong: rgba(220, 232, 238, 0.32);
  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  padding-left: var(--rail);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--paper);
  background-color: var(--ink-900);
  background-image:
    linear-gradient(to right, rgba(53, 240, 208, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53, 240, 208, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { height: auto; }

ul,
ol { margin: 0 0 1em; padding-left: 1.3em; }

a { color: inherit; }

button { font: inherit; color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.35rem + 3.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.42rem); }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1em; }

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

::selection {
  background: var(--aqua);
  color: #04161f;
}

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--edge);
}

.prose {
  max-width: var(--measure);
  font-size: 17px;
  line-height: 1.9;
}

.prose p { color: var(--mist); }
.prose h2 { margin-top: 1.9em; }
.prose li { color: var(--mist); }

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}

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

.grid--blueprint {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.divider {
  height: 1px;
  border: 0;
  margin: clamp(28px, 4vw, 56px) 0;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* ---------- 章节题签 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.lede {
  max-width: 56ch;
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
  line-height: 1.85;
  color: var(--mist);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.2s var(--ease);
}

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

.btn--accent {
  background: var(--coral);
  color: #1A0A05;
  border-color: rgba(255, 107, 74, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 107, 74, 0.22);
}

.btn--accent:hover {
  background: #FF8163;
  color: #1A0A05;
  box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.18);
}

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

.btn--ghost:hover {
  color: var(--aqua);
  border-color: var(--aqua);
  background: rgba(53, 240, 208, 0.08);
}

.btn--quiet {
  min-height: 36px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(220, 232, 238, 0.08);
  color: var(--mist);
  border-color: var(--line);
  border-radius: 8px;
}

.btn--quiet:hover {
  background: rgba(53, 240, 208, 0.14);
  color: var(--paper);
  border-color: var(--aqua);
}

/* ---------- 面板 ---------- */
.panel {
  padding: clamp(20px, 3vw, 32px);
  background: rgba(220, 232, 238, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.panel--mist {
  background: var(--mist);
  color: #0A2434;
  border-color: transparent;
}

.panel--mist h2,
.panel--mist h3,
.panel--mist h4,
.panel--mist p,
.panel--mist li,
.panel--mist strong,
.panel--mist a { color: inherit; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(220, 232, 238, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--mist);
}

.tag--tool {
  background: var(--sun);
  color: #2A1E00;
  border-color: rgba(255, 209, 102, 0.6);
  font-weight: 600;
}

.tag--device {
  background: rgba(255, 209, 102, 0.12);
  color: var(--sun);
  border-color: rgba(255, 209, 102, 0.38);
}

.tag--status {
  background: rgba(57, 217, 138, 0.1);
  color: var(--kelp);
  border-color: rgba(57, 217, 138, 0.42);
}

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 22px 0 0; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--tide);
}

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

.breadcrumb__list li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.breadcrumb a:hover {
  color: var(--aqua);
  border-color: var(--aqua);
}

/* ---------- 图片容器基础（页面阶段放置 <img>） ---------- */
.figure { display: block; margin: 0; }

.figure__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-m);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(53, 240, 208, 0.18), transparent 62%),
    radial-gradient(90% 80% at 86% 92%, rgba(124, 92, 255, 0.22), transparent 66%),
    linear-gradient(160deg, #0B2436, var(--ink-900));
}

.figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--tide);
}

.figure--portrait .figure__media { aspect-ratio: 3 / 4; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }

/* ==========================================================================
   头部 · 侧边轨道
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--aqua);
  color: #04161F;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translate(-50%, -220%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: var(--rail);
  padding: 18px 14px 20px;
  background: linear-gradient(180deg, #061726 0%, var(--ink-900) 64%, #061726 100%);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 104px;
  background: linear-gradient(180deg, var(--aqua), transparent);
  opacity: 0.55;
  pointer-events: none;
}

/* 滚动进度 */
.site-progress {
  position: fixed;
  top: 0;
  left: calc(var(--rail) - 3px);
  z-index: 90;
  width: 3px;
  height: 100vh;
  background: rgba(220, 232, 238, 0.08);
  pointer-events: none;
}

.site-progress__bar {
  display: block;
  width: 100%;
  height: var(--progress, 0%);
  background: linear-gradient(180deg, var(--aqua), var(--violet));
  box-shadow: 0 0 12px rgba(53, 240, 208, 0.45);
  transition: height 0.08s linear;
}

/* 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px 0 16px;
  border-bottom: 1px dashed var(--line);
  color: var(--paper);
  text-decoration: none;
}

.brand__mark {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(53, 240, 208, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 107, 74, 0.85) 0%, rgba(255, 107, 74, 0) 58%),
    var(--ink-800);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.brand__mark::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 8px rgba(53, 240, 208, 0.8);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 10px;
  width: 17px;
  height: 1px;
  background: linear-gradient(90deg, rgba(53, 240, 208, 0.9), transparent);
  transform: rotate(-45deg);
  transform-origin: left center;
}

.brand:hover .brand__mark {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(53, 240, 208, 0.12);
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-left: 0.16em;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--tide);
  text-transform: uppercase;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--aqua);
  color: var(--aqua);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  padding: 14px 0;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px 10px 8px;
  border-left: 2px solid transparent;
  border-radius: 8px;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--tide);
  transition: color 0.25s var(--ease);
}

.site-nav__label {
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-align: center;
}

.site-nav__link:hover {
  color: var(--paper);
  background: rgba(53, 240, 208, 0.08);
  border-left-color: var(--aqua);
}

.site-nav__link:hover .site-nav__index { color: var(--aqua); }

.site-nav__link[aria-current="page"] {
  color: var(--paper);
  background: linear-gradient(90deg, rgba(255, 107, 74, 0.22), rgba(255, 107, 74, 0));
  border-left-color: var(--coral);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 74, 0.24);
}

.site-nav__link[aria-current="page"] .site-nav__index { color: var(--coral); }
.site-nav__link[aria-current="page"] .site-nav__label { font-weight: 700; }

/* 轨道底部状态 */
.site-header__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.site-header__status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--tide);
  text-align: center;
}

.site-header .btn--accent {
  padding: 10px 8px;
  font-size: 12px;
  line-height: 1.35;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  padding: clamp(44px, 6vw, 88px) var(--edge) 0;
  background: linear-gradient(180deg, #0B2334 0%, var(--ink-800) 100%);
  border-top: 1px solid var(--line-strong);
  color: var(--mist);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), transparent);
  pointer-events: none;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 3vw, 48px);
  max-width: 1240px;
  margin-inline: auto;
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.site-footer__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--aqua);
}

.site-footer__summary {
  max-width: 24em;
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.32rem);
  line-height: 1.65;
  color: var(--paper);
}

.footer-col__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.footer-col__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--violet);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 0;
  font-size: 15px;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.22s var(--ease), gap 0.22s var(--ease);
}

.footer-col__list a::before {
  content: "";
  display: block;
  width: 7px;
  height: 1px;
  background: var(--tide);
  transition: width 0.22s var(--ease), background-color 0.22s var(--ease);
}

.footer-col__list a:hover {
  color: var(--aqua);
  gap: 12px;
}

.footer-col__list a:hover::before {
  width: 15px;
  background: var(--aqua);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 16px;
}

.footer-contact__label {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--tide);
}

.footer-contact__label:first-child { margin-top: 0; }

.footer-contact__value {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--paper);
  word-break: break-word;
}

.footer-contact__status {
  min-height: 18px;
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--kelp);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.footer-contact__status[data-state="done"] { opacity: 1; }
.footer-contact__status[data-state="error"] { opacity: 1; color: var(--coral); }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  max-width: 1240px;
  margin-inline: auto;
  padding: 20px 0 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--tide);
}

.site-footer__legal p { margin: 0; }

.site-footer__legal a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.site-footer__legal a:hover {
  color: var(--aqua);
  border-color: var(--aqua);
}

/* ==========================================================================
   滚动显现
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 899px) {
  .grid--blueprint { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  body {
    padding-left: 0;
    padding-top: 64px;
    font-size: 16px;
  }

  body.is-nav-open { overflow: hidden; }

  .site-header {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 64px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 26, 43, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: visible;
  }

  .site-header::before { display: none; }

  .site-progress {
    top: 64px;
    left: 0;
    width: auto;
    height: 2px;
    right: 0;
    bottom: auto;
  }

  .site-progress__bar {
    width: var(--progress, 0%);
    height: 100%;
    background: linear-gradient(90deg, var(--aqua), var(--violet));
    transition: width 0.08s linear;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-bottom: 0;
  }

  .brand__mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .brand__mark::before { top: 6px; right: 6px; width: 5px; height: 5px; }
  .brand__mark::after { left: 6px; bottom: 8px; width: 14px; }

  .brand__name {
    font-size: 15px;
    letter-spacing: 0.12em;
    margin-left: 0.12em;
  }

  .brand__sub { display: none; }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header[data-open] .nav-toggle {
    color: var(--coral);
    border-color: rgba(255, 107, 74, 0.5);
  }

  .site-header[data-open] .nav-toggle__bars span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .site-header[data-open] .nav-toggle__bars span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-header__meta { display: none; }

  .site-nav {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 18px 20px 44px;
    background: linear-gradient(180deg, #08202F 0%, var(--ink-900) 72%);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0.3s var(--ease);
  }

  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-nav__list { gap: 2px; }

  .site-nav__link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 52px;
    padding: 12px 8px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .site-nav__index { width: 24px; font-size: 11px; }

  .site-nav__label {
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.02em;
  }

  .site-nav__link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(255, 107, 74, 0.16), transparent);
    border-bottom-color: var(--coral);
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-col__list a { min-height: 44px; }

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

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

  .figure--portrait .figure__media { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */
@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;
    transition-delay: 0ms !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:hover,
  .brand:hover .brand__mark { transform: none; }
}
