/* ==========================================================================
   /assets/site.css — 36沙龙国服务 · 共享外壳与基础组件
   墨海深蓝基底 / 暖橙行动 / 青瓷状态 / 宣纸米白阅读
   ========================================================================== */

:root {
  --ink: #0B1B2B;
  --ink-2: #12293D;
  --ink-3: #1E3D55;
  --paper: #F4F0E8;
  --orange: #E8622A;
  --orange-soft: #F08A4B;
  --celadon: #3FA08B;
  --celadon-soft: #8FBFAE;
  --mist: #9AA7B4;
  --glow: #FFD9C2;

  --line: rgba(154, 167, 180, 0.22);
  --line-soft: rgba(154, 167, 180, 0.14);
  --line-strong: rgba(143, 191, 174, 0.34);

  --shell: 1280px;
  --pad: clamp(18px, 4vw, 48px);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

::selection {
  background: var(--orange);
  color: #fff;
}

/* ---------- 中文排版与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(11, 27, 43, 0.97), rgba(11, 27, 43, 0.9));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.3s var(--ease);
}
.site-header[data-scrolled="true"] {
  box-shadow: 0 18px 36px -26px rgba(0, 0, 0, 0.95);
}

.header-top__inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  min-height: 76px;
  transition: min-height 0.28s var(--ease);
}
.site-header[data-scrolled="true"] .header-top__inner { min-height: 58px; }

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  min-height: 44px;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 217, 194, 0.4);
  transition: background 0.2s var(--ease), width 0.28s var(--ease), height 0.28s var(--ease);
}
.brand:hover .brand__mark { background: var(--orange-soft); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 17px; font-weight: 900; letter-spacing: -0.01em; }
.brand__meta {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--celadon-soft);
}
.site-header[data-scrolled="true"] .brand__meta { display: none; }
.site-header[data-scrolled="true"] .brand__mark { width: 36px; height: 36px; font-size: 14px; }

/* 版本切换 */
.version-switch {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(30, 61, 85, 0.55);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.version-switch__label {
  padding: 0 8px 0 12px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--celadon-soft);
}
.version-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mist);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.version-switch__item:hover {
  color: var(--paper);
  background: rgba(232, 98, 42, 0.2);
}
.version-switch__item[aria-current="page"] {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px -10px rgba(232, 98, 42, 0.9);
}

/* 右侧动作 */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.header-phone { display: inline-flex; flex-direction: column; line-height: 1.25; text-align: right; }
.header-phone__label { font-size: 10px; letter-spacing: 0.3em; color: var(--mist); }
.header-phone__num { font-family: var(--font-mono); font-size: 14px; color: var(--paper); }

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(30, 61, 85, 0.5);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--celadon); color: var(--glow); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* 栏目层 */
.header-nav {
  border-top: 1px solid var(--line-soft);
  background: rgba(18, 41, 61, 0.72);
}
.nav { display: block; }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  transition: min-height 0.28s var(--ease);
}
.site-header[data-scrolled="true"] .nav__inner { min-height: 46px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.2vw, 30px);
  list-style: none;
}
.nav__item { display: block; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 2px;
  color: var(--mist);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(1); background: var(--celadon); }
.nav__link[aria-current="page"] { color: var(--paper); font-weight: 700; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--celadon-soft);
  opacity: 0.75;
}
.nav__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
}
.nav__aside { display: none; }
.nav__aside-text {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
  text-align: center;
}

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn--accent { background: var(--orange); color: #fff; }
.btn--accent:hover { background: var(--orange-soft); transform: translateY(-1px); }
.btn--ghost {
  background: rgba(30, 61, 85, 0.4);
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--celadon); color: var(--glow); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  color: var(--paper);
}
.footer-main { padding-block: clamp(40px, 6vw, 76px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1.35fr 0.9fr;
  gap: clamp(24px, 3vw, 48px);
}
.footer-col { min-width: 0; }
.footer-col--brand { border-left: 3px solid var(--orange); padding-left: 18px; }
.footer-brand {
  display: inline-block;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
  min-height: 32px;
}
.footer-brand:hover { color: var(--glow); }
.footer-tagline {
  margin-top: 12px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist);
}
.footer-mono {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--celadon-soft);
}
.footer-title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--celadon-soft);
}
.footer-list { list-style: none; display: grid; gap: 6px; }
.footer-list__item { display: block; }
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-link:hover { color: var(--paper); border-color: var(--orange); }
.footer-link--cta {
  margin-top: 14px;
  color: var(--orange-soft);
  font-weight: 700;
}
.footer-contact { list-style: none; display: grid; gap: 10px; }
.footer-contact__row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
}
.footer-contact__key {
  padding-top: 3px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--celadon-soft);
}
.footer-contact__val { color: var(--paper); overflow-wrap: anywhere; }
.footer-contact__val.mono { font-size: 13px; color: var(--orange-soft); }

.footer-bottom {
  border-top: 1px solid var(--line);
  background: rgba(11, 27, 43, 0.7);
}
.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px;
}
.footer-bottom__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--celadon-soft);
}
.footer-bottom__copy { font-size: 13px; color: var(--mist); }

/* ==========================================================================
   页面骨架与通用排版
   ========================================================================== */
.page { padding-block: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.page__head { max-width: 60ch; margin-bottom: clamp(24px, 3.5vw, 44px); }
.page__title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.band { padding-block: clamp(44px, 6vw, 88px); }
.band--deep { background: var(--ink-2); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--paper .section-title { color: var(--ink); }
.band--paper .eyebrow { color: var(--celadon); }
.band--paper .lead { color: rgba(11, 27, 43, 0.78); }

.section { padding-block: clamp(32px, 5vw, 72px); }
.section__head { max-width: 58ch; margin-bottom: clamp(20px, 3vw, 36px); }
.eyebrow {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--celadon-soft);
}
.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.lead {
  margin-top: 14px;
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
  color: rgba(244, 240, 232, 0.8);
}

.prose {
  max-width: 34em;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(244, 240, 232, 0.86);
}
.prose p + p { margin-top: 1em; }
.prose h2, .prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); }
.prose h3 { font-size: 19px; }
.prose ul, .prose ol { margin: 1em 0 1em 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose a {
  color: var(--orange-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 98, 42, 0.45);
}
.prose a:hover { color: var(--glow); border-color: var(--glow); }

.label-vertical {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--celadon-soft);
}

/* 面包屑 */
.crumbs { margin-bottom: clamp(16px, 2.4vw, 28px); }
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mist);
}
.crumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.crumbs__link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.crumbs__link:hover { color: var(--paper); border-color: var(--orange); }
.crumbs__sep { color: rgba(154, 167, 180, 0.5); }
.crumbs__current { color: var(--celadon-soft); }

/* ==========================================================================
   栅格
   ========================================================================== */
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: clamp(16px, 2vw, 24px); }

/* ==========================================================================
   卡片与标签
   ========================================================================== */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-2);
}
.card--glass {
  background: rgba(30, 61, 85, 0.42);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.card--paper {
  background: var(--paper);
  border-color: transparent;
  color: var(--ink);
}
.card--paper .card__title { color: var(--ink); }
.card--paper .card__text { color: rgba(11, 27, 43, 0.78); }
.card__title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.card__text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 240, 232, 0.8);
}
.card__meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--celadon-soft);
}
@media (min-width: 901px) {
  .card--offset { top: 24px; }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.tag--accent {
  color: var(--orange-soft);
  border-color: rgba(232, 98, 42, 0.45);
  background: rgba(232, 98, 42, 0.12);
}
.tag--mint {
  color: var(--celadon-soft);
  border-color: rgba(63, 160, 139, 0.45);
  background: rgba(63, 160, 139, 0.12);
}
.band--paper .tag { border-color: rgba(11, 27, 43, 0.2); color: rgba(11, 27, 43, 0.72); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--orange-soft);
}

/* 数字层 */
.stat { display: grid; gap: 4px; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--orange-soft);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--mist);
}
.band--paper .stat__label { color: rgba(11, 27, 43, 0.62); }
.band--paper .stat__num { color: var(--orange); }

/* ==========================================================================
   时间轴清单
   ========================================================================== */
.timeline { position: relative; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--celadon), rgba(63, 160, 139, 0.08));
}
.timeline__item { position: relative; padding: 0 0 24px 34px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__node {
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--celadon);
}
.timeline__date {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--orange-soft);
}
.timeline__body {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 240, 232, 0.82);
}

/* ==========================================================================
   对照表
   ========================================================================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.data-table thead th {
  background: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--celadon-soft);
}
.data-table tbody tr { transition: background 0.2s var(--ease); }
.data-table tbody tr:hover { background: rgba(232, 98, 42, 0.1); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ==========================================================================
   图片容器（页面阶段放置截图与示意图）
   ========================================================================== */
.media {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: repeating-linear-gradient(
    135deg,
    rgba(30, 61, 85, 0.95) 0 12px,
    rgba(18, 41, 61, 0.95) 12px 24px
  );
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--ui { aspect-ratio: 5 / 3; }
.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mist);
}
.band--paper .media { border-color: rgba(11, 27, 43, 0.16); }
.band--paper .media__caption { color: rgba(11, 27, 43, 0.62); }

/* ==========================================================================
   动效与显现
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(30, 61, 85, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--orange-soft);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.to-top:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}
.to-top[hidden] { display: none; }

/* ==========================================================================
   响应式：平板
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--thirds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .grid--split,
  .grid--wide { grid-template-columns: minmax(0, 1fr); }
  .nav__note { display: none; }
}

/* ==========================================================================
   响应式：移动导航与头部压缩
   ========================================================================== */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .header-actions { gap: 8px; }
  .header-phone { display: none; }
  .header-actions > .btn { display: none; }

  .header-top__inner {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    min-height: 64px;
    gap: 8px;
  }
  .version-switch__label { display: none; }
  .version-switch__item { padding: 0 12px; font-size: 13px; }

  .header-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: rgba(11, 27, 43, 0.99);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 46px -28px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
      visibility 0.26s linear;
  }
  .header-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav__inner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    gap: 0;
    padding-block: 4px 22px;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line-soft); }
  .nav__link {
    width: 100%;
    min-height: 54px;
    font-size: 16px;
  }
  .nav__link::after {
    left: 0;
    right: auto;
    bottom: 16px;
    width: 0;
    height: 3px;
    transform: none;
    transition: width 0.22s var(--ease), background 0.2s var(--ease);
  }
  .nav__link:hover::after,
  .nav__link[aria-current="page"]::after { width: 22px; }
  .nav__index { font-size: 11px; }

  .nav__aside { display: block; margin-top: 20px; }
  .site-header[data-scrolled="true"] .nav__inner { min-height: 0; }
}

@media (max-width: 620px) {
  .brand__meta { display: none; }
  .brand__mark { width: 36px; height: 36px; font-size: 14px; }
  .brand__name { font-size: 15px; }
  .version-switch__item { padding: 0 10px; font-size: 12px; }
  .nav-toggle { padding: 0 10px; }
  .nav-toggle__text { display: none; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-col--brand { border-left-width: 2px; padding-left: 14px; }
  .footer-link { min-height: 44px; }
  .footer-bottom__inner { flex-direction: column; align-items: flex-start; }

  .grid--thirds { grid-template-columns: minmax(0, 1fr); }
  .data-table { font-size: 14px; }
  .data-table th,
  .data-table td { padding: 10px; }
}

/* ==========================================================================
   reduced motion
   ========================================================================== */
@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;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .header-nav { transition: none; }
  .btn--accent:hover,
  .to-top:hover { transform: none; }
}
