/* ==========================================================================
   贝斯特2255 · 共享站点样式 / assets/site.css
   技术蓝图网格 · 自然矿物灰 · 数字航程色系
   ========================================================================== */

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

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

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

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

img, picture, video, canvas, svg {
  max-width: 100%;
}

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

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --c-deep: #0A1F3C;
  --c-night: #061326;
  --c-cyan: #1BDDE6;
  --c-mist: #B9F3F6;
  --c-amber: #FF9F1C;
  --c-amber-lit: #FFB44A;
  --c-lime: #7CFC8A;
  --c-rock: #5C6874;
  --c-mineral: #2D3A46;
  --c-moss: #5E7C5A;
  --c-cream: #F4EFE3;
  --c-ink: #1B2C42;
  --c-paper: #F6F8FB;
  --c-paper-2: #DCE6F2;

  --line-dark: rgba(185, 243, 246, 0.16);
  --line-light: rgba(45, 58, 70, 0.16);

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

  --gutter: clamp(20px, 4vw, 64px);
  --shell-max: 1360px;

  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --shadow-lift: 0 12px 30px -20px rgba(10, 31, 60, 0.55);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-ink);
  background-color: #F1F5FA;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

p { line-height: 1.8; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 焦点与动效偏好 ---------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

.section {
  padding-block: clamp(40px, 6vw, 88px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-rock);
}

.annotation {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-rock);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ---------- 6. 栅格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 32px);
}

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

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- 7. 背景分区 ---------- */
.surface--cream {
  background-color: var(--c-cream);
  color: var(--c-ink);
}

.surface--paper {
  background-image: linear-gradient(180deg, #F6F8FB 0%, #DCE6F2 100%);
  color: var(--c-ink);
}

.surface--deep {
  background-image: linear-gradient(180deg, #0A1F3C 0%, #061326 100%);
  color: var(--c-cream);
}

.blueprint-grid {
  background-image:
    linear-gradient(to right, rgba(45, 58, 70, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 58, 70, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.16s var(--ease),
    color 0.16s var(--ease),
    border-color 0.16s var(--ease),
    transform 0.16s var(--ease);
}

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

.btn--ghost {
  color: rgba(244, 239, 227, 0.88);
  border-color: rgba(244, 239, 227, 0.28);
  background-color: transparent;
}

.btn--ghost:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
}

.btn--cta {
  color: var(--c-night);
  background-color: var(--c-amber);
  border-color: var(--c-amber);
}

.btn--cta:hover {
  background-color: var(--c-amber-lit);
  border-color: var(--c-amber-lit);
}

.btn--solid {
  color: var(--c-night);
  background-color: var(--c-cyan);
  border-color: var(--c-cyan);
}

.btn--solid:hover {
  background-color: var(--c-mist);
  border-color: var(--c-mist);
}

.btn--line {
  color: var(--c-deep);
  background-color: transparent;
  border-color: rgba(45, 58, 70, 0.34);
}

.btn--line:hover {
  color: var(--c-deep);
  border-color: var(--c-cyan);
  background-color: rgba(27, 221, 230, 0.14);
}

/* ---------- 9. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 240;
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--r-xs);
  background-color: var(--c-amber);
  color: var(--c-night);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top 0.16s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
}

/* ---------- 10. 站点头部命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background-image:
    radial-gradient(90% 150% at 78% -50%, rgba(27, 221, 230, 0.18), transparent 62%),
    linear-gradient(180deg, #08182D 0%, #061326 100%);
  background-color: var(--c-night);
  color: var(--c-cream);
  border-bottom: 1px solid rgba(27, 221, 230, 0.26);
  box-shadow: 0 18px 32px -30px rgba(0, 0, 0, 0.9);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background-color: rgba(185, 243, 246, 0.08);
}

.header-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--c-cyan) 0%, var(--c-lime) 58%, var(--c-amber) 100%);
  transition: transform 0.12s linear, opacity 0.2s linear;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  min-height: 66px;
  padding-block: 11px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--c-cream);
}

.brand__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  border: 1px solid rgba(27, 221, 230, 0.5);
  border-radius: var(--r-xs);
  background-color: rgba(27, 221, 230, 0.09);
  color: var(--c-cyan);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__line {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(185, 243, 246, 0.62);
  white-space: nowrap;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.1vw, 16px);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 2px;
  color: rgba(244, 239, 227, 0.72);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}

.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(185, 243, 246, 0.42);
  transition: color 0.16s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background-color: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-link:hover { color: var(--c-cream); }
.nav-link:hover .nav-link__idx { color: var(--c-cyan); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--c-cream); }
.nav-link[aria-current="page"] .nav-link__idx { color: var(--c-amber); }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background-color: var(--c-amber);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(244, 239, 227, 0.28);
  border-radius: var(--r-xs);
  background-color: transparent;
  color: var(--c-cream);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 15px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  border-radius: 1px;
  background-color: currentColor;
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

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

/* ---------- 11. 站点页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: clamp(44px, 6vw, 76px);
  background-image:
    radial-gradient(110% 100% at 88% 0%, rgba(27, 221, 230, 0.13), transparent 60%),
    linear-gradient(180deg, #08182D 0%, #061326 100%);
  background-color: var(--c-night);
  color: rgba(244, 239, 227, 0.82);
  border-top: 1px solid rgba(27, 221, 230, 0.3);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(185, 243, 246, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(185, 243, 246, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
}

.footer-track {
  position: absolute;
  top: 18px;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(27, 221, 230, 0.5) 0 6px,
    transparent 6px 14px
  );
}

.footer-track__node {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--c-lime);
  box-shadow: 0 0 0 3px rgba(124, 252, 138, 0.14);
}

.footer-track__node:nth-child(1) { left: 8%; }
.footer-track__node:nth-child(2) {
  left: 54%;
  background-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(27, 221, 230, 0.16);
}
.footer-track__node:nth-child(3) {
  left: 89%;
  background-color: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.16);
}

.footer-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 1.9fr) minmax(230px, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.footer-lead__mark {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--c-cream);
}

.footer-lead__mono {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-cyan);
}

.footer-lead__desc {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(244, 239, 227, 0.66);
}

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

.footer-col__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--c-cyan);
}

.footer-col__list {
  display: grid;
  gap: 2px;
}

.footer-link {
  display: inline-block;
  padding-block: 5px;
  color: rgba(244, 239, 227, 0.76);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-link:hover {
  color: var(--c-cream);
  border-bottom-color: var(--c-amber);
}

.footer-contact__list {
  display: grid;
  gap: 10px;
}

.footer-contact__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.footer-contact__item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(185, 243, 246, 0.55);
}

.footer-contact__item dd {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(244, 239, 227, 0.88);
  overflow-wrap: anywhere;
}

.footer-contact__note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(244, 239, 227, 0.5);
}

.footer-legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid rgba(185, 243, 246, 0.14);
}

.footer-legal__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: rgba(244, 239, 227, 0.52);
}

.footer-legal__sep {
  color: rgba(185, 243, 246, 0.34);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-legal__links a {
  font-size: 12.5px;
  color: rgba(244, 239, 227, 0.62);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.footer-legal__links a:hover {
  color: var(--c-cyan);
}

/* ---------- 12. 面包屑 ---------- */
.breadcrumb {
  margin-bottom: clamp(16px, 2.5vw, 28px);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-rock);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(45, 58, 70, 0.38);
}

.breadcrumb__link {
  color: var(--c-rock);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.breadcrumb__link:hover {
  color: var(--c-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb__item [aria-current="page"] {
  color: var(--c-deep);
}

/* ---------- 13. 正文容器 ---------- */
.prose {
  max-width: 72ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
  color: var(--c-ink);
}

.prose > * + * {
  margin-top: 1.05em;
}

.prose h2 {
  margin-top: 2em;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-deep);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--c-deep);
}

.prose strong {
  font-weight: 700;
  color: var(--c-deep);
}

.prose a {
  color: var(--c-deep);
  text-decoration: underline;
  text-decoration-color: var(--c-amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose ul {
  padding-left: 1.3em;
}

.prose ul li {
  position: relative;
}

.prose ul li + li {
  margin-top: 0.5em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: -0.95em;
  top: 0.72em;
  width: 5px;
  height: 5px;
  background-color: var(--c-amber);
}

.prose ol {
  padding-left: 1.5em;
  list-style: decimal;
}

.prose ol li + li {
  margin-top: 0.5em;
}

/* ---------- 14. 媒体容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  background-image: linear-gradient(140deg, #DCE6F2 0%, #F6F8FB 58%, #E8EEF7 100%);
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media__label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  background-color: rgba(6, 19, 38, 0.74);
  color: var(--c-mist);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* ---------- 15. 卡片与标签 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  background-color: #FFFFFF;
  transition:
    transform 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--c-cyan);
  box-shadow: var(--shadow-lift);
}

.card__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--c-deep);
}

.card__meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--c-rock);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid rgba(10, 31, 60, 0.12);
  border-radius: var(--r-xs);
  background-color: var(--c-mist);
  color: var(--c-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.tag--moss {
  background-color: rgba(94, 124, 90, 0.16);
  border-color: rgba(94, 124, 90, 0.32);
  color: #3F563C;
}

.tag--amber {
  background-color: var(--c-amber);
  border-color: var(--c-amber);
  color: var(--c-night);
}

.tag--deep {
  background-color: rgba(6, 19, 38, 0.06);
  border-color: rgba(45, 58, 70, 0.24);
  color: var(--c-deep);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--c-lime);
  box-shadow: 0 0 0 3px rgba(124, 252, 138, 0.16);
}

.dot--cyan {
  background-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(27, 221, 230, 0.16);
}

.dot--amber {
  background-color: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.16);
}

/* ---------- 16. 滚动显现 ---------- */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.12s linear, transform 0.12s var(--ease);
}

html.reveal-ready [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- 17. 响应式：平板 ---------- */
@media (max-width: 1023px) {
  .footer-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 4vw, 40px);
  }

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

  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 {
    grid-column: span 6;
  }
}

/* ---------- 18. 响应式：移动命令栏 ---------- */
@media (max-width: 959px) {
  .brand { order: 1; margin-right: auto; }
  .nav-toggle { display: inline-flex; order: 2; }
  .header-actions { order: 3; margin-left: 0; gap: 6px; }

  .primary-nav {
    order: 4;
    flex: 1 0 100%;
    display: none;
    justify-content: flex-start;
    padding-top: 6px;
    border-top: 1px solid rgba(185, 243, 246, 0.14);
  }

  .site-header[data-open="true"] .primary-nav {
    display: flex;
  }

  .nav-list {
    gap: 18px;
    padding-block: 4px 10px;
    width: 100%;
    justify-content: flex-start;
    scroll-snap-type: x proximity;
  }

  .nav-item { scroll-snap-align: start; }

  .nav-link {
    padding: 8px 2px;
    font-size: 13px;
  }

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

/* ---------- 19. 响应式：手机 ---------- */
@media (max-width: 599px) {
  .brand__line { display: none; }
  .brand__mark { font-size: 15px; }

  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 8px; }

  .header-actions .btn {
    padding: 7px 10px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 {
    grid-column: span 12;
  }
}

@media (max-width: 479px) {
  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
  }
}
