/* ============================================================
   银河官网指南 · 全站共享样式 /assets/site.css
   星图导航总台：深空底 + 蓝图网格 + 轨道线 + 暖金操作
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: clamp(6rem, 14vh, 9rem);
}

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

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

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

a { color: inherit; text-decoration: none; }

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

button { background: none; border: 0; cursor: pointer; }

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

/* 2 · 设计变量 --------------------------------------------- */
:root {
  --void: #050A18;
  --panel: #0C1730;
  --line: #1D2C52;
  --violet: #6C4CF1;
  --cyan: #35E0D0;
  --gold: #F2B84B;
  --ice: #E8F1FF;
  --slate: #93A7CC;
  --ok: #4AD18B;
  --warn: #FF6B6B;

  --line-soft: rgba(29, 44, 82, 0.72);
  --line-faint: rgba(29, 44, 82, 0.42);
  --glow-cyan: rgba(53, 224, 208, 0.45);
  --glow-violet: rgba(108, 76, 241, 0.42);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, "Noto Sans Mono", monospace;

  --step-1: clamp(1rem, 0.95rem + 0.2vw, 1.09rem);
  --step-2: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --step-3: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem);
  --step-4: clamp(2rem, 1.4rem + 2.6vw, 3rem);

  --shell: min(1240px, 100% - clamp(1.5rem, 6vw, 5rem));
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
}

/* 3 · 基础排版 --------------------------------------------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.94rem + 0.2vw, 1.075rem);
  line-height: 1.75;
  color: var(--ice);
  background-color: var(--void);
  background-image:
    linear-gradient(to right, rgba(29, 44, 82, 0.26) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 44, 82, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 10% -8%, rgba(108, 76, 241, 0.34), transparent 52%),
    radial-gradient(circle at 90% 2%, rgba(53, 224, 208, 0.14), transparent 46%),
    radial-gradient(circle at 50% 118%, rgba(108, 76, 241, 0.2), transparent 58%);
  background-size: 112px 112px, 112px 112px, 100% 100%, 100% 100%, 100% 100%;
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.28;
  color: var(--ice);
}

p { max-width: 68ch; }

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

::selection { background: var(--cyan); color: #04141a; }

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

/* 4 · 容器与通用工具 --------------------------------------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
}

.page-main {
  position: relative;
  padding-block: clamp(1.75rem, 4vw, 3rem) 0;
}

/* 5 · 页头 ------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 300;
  padding: 0.62rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #04141a;
  background: var(--cyan);
  border-radius: 2px;
  transition: top 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(5, 10, 24, 0.97) 0%, rgba(5, 10, 24, 0.9) 100%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 58%, var(--gold) 100%);
  pointer-events: none;
}

.header-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.6rem);
  padding-block: clamp(0.75rem, 1.6vw, 1.15rem);
}

/* 品牌块 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ice);
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 32% 26%, rgba(108, 76, 241, 0.55), transparent 72%);
  display: grid;
  place-items: center;
}

.brand-mark::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px 2px rgba(53, 224, 208, 0.55);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(53, 224, 208, 0.85);
  border-left-color: rgba(242, 184, 75, 0.5);
  transform: rotate(24deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: var(--slate);
  white-space: nowrap;
}

/* 频道导航 */
.primary-nav {
  grid-column: 2;
  justify-self: end;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 1.5vw, 1.45rem);
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.5rem 0.15rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), rgba(108, 76, 241, 0.9));
  transition: transform 0.24s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--ice); }

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  color: rgba(147, 167, 204, 0.55);
}

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

.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-link[aria-current="page"] .nav-index { color: var(--gold); }

/* 页头操作区 */
.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(12, 23, 48, 0.78);
  color: var(--ice);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-toggle:hover { border-color: rgba(53, 224, 208, 0.5); }

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: none;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--cyan);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { bottom: 0; }

.nav-toggle-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-header[data-open] .nav-toggle-icon::before { transform: translateY(4.25px) rotate(45deg); }
.site-header[data-open] .nav-toggle-icon::after { transform: translateY(-4.25px) rotate(-45deg); }

/* 按钮 */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.cta--gold {
  color: #241704;
  background: linear-gradient(135deg, #F7C963 0%, var(--gold) 78%);
  box-shadow: 0 0 0 1px rgba(242, 184, 75, 0.35), 0 10px 26px -14px rgba(242, 184, 75, 0.95);
}

.cta--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(242, 184, 75, 0.55), 0 14px 30px -14px rgba(242, 184, 75, 1);
}

.cta--ghost {
  color: var(--ice);
  border-color: var(--line);
  background: rgba(12, 23, 48, 0.62);
}

.cta--ghost:hover {
  color: var(--cyan);
  border-color: rgba(53, 224, 208, 0.55);
  background: rgba(53, 224, 208, 0.08);
}

/* 设备视角轨道条 */
.header-rail {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(12, 23, 48, 0.88), rgba(5, 10, 24, 0.55));
}

.rail-shell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-block: 0.42rem;
}

.rail-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(147, 167, 204, 0.82);
}

.device-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 24, 0.7);
}

.device-tab {
  padding: 0.26rem 0.72rem;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  border: 1px solid transparent;
  transition: color 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.device-tab:hover { color: var(--ice); }

.device-tab[aria-pressed="true"] {
  color: var(--ice);
  border-color: rgba(53, 224, 208, 0.5);
  background: linear-gradient(135deg, rgba(53, 224, 208, 0.2), rgba(108, 76, 241, 0.36));
  box-shadow: inset 0 0 0 1px rgba(53, 224, 208, 0.12);
}

.rail-readout {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.readout-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(74, 209, 139, 0.85);
}

/* 6 · 页脚 ------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(3.5rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(108, 76, 241, 0.3), transparent 62%),
    radial-gradient(90% 70% at 92% 8%, rgba(53, 224, 208, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(12, 23, 48, 0.94), rgba(5, 10, 24, 0.99));
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(460px, 58%);
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), transparent);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -46%;
  right: -12%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(29, 44, 82, 0.9);
  box-shadow: 0 0 0 42px rgba(29, 44, 82, 0.32), 0 0 0 96px rgba(29, 44, 82, 0.16);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.85fr 1.3fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 3rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.footer-note {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--slate);
  max-width: 34ch;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid var(--line);
  background: rgba(5, 10, 24, 0.55);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ice);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: status-pulse 2.8s var(--ease) infinite;
}

@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 209, 139, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(74, 209, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 209, 139, 0); }
}

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

.footer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(147, 167, 204, 0.88);
}

.footer-title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--cyan);
  flex: none;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.94rem;
  color: var(--ice);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-link::before {
  content: "›";
  font-family: var(--font-mono);
  color: var(--violet);
  line-height: 1;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cyan);
  transform: translateX(2px);
}

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

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

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(147, 167, 204, 0.72);
}

.contact-value {
  color: var(--ice);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.1rem 1.6rem;
  border-top: 1px solid var(--line-soft);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--slate);
  max-width: none;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.82rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--slate);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background 0.18s var(--ease);
}

.to-top::after { content: "↑"; }

.to-top:hover,
.to-top:focus-visible {
  color: var(--ice);
  border-color: rgba(53, 224, 208, 0.55);
  background: rgba(53, 224, 208, 0.1);
}

/* 7 · 正文通用组件 ----------------------------------------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(147, 167, 204, 0.88);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(147, 167, 204, 0.45);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--cyan); }

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

.section { padding-block: clamp(2rem, 5vw, 4rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
  flex: none;
}

.section-title {
  font-size: var(--step-3);
  color: var(--ice);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.8;
  color: var(--slate);
  max-width: 62ch;
}

.panel {
  position: relative;
  padding: clamp(1.05rem, 2.4vw, 1.75rem);
  border: 1px solid rgba(29, 44, 82, 0.9);
  background: linear-gradient(180deg, rgba(12, 23, 48, 0.92), rgba(12, 23, 48, 0.62));
}

.panel--accent {
  border-left: 2px solid var(--cyan);
  background: linear-gradient(115deg, rgba(53, 224, 208, 0.1), rgba(12, 23, 48, 0.72) 46%);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(29, 44, 82, 0.95);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(53, 224, 208, 0.45);
  background: rgba(53, 224, 208, 0.08);
}

.tag--gold {
  color: var(--gold);
  border-color: rgba(242, 184, 75, 0.45);
  background: rgba(242, 184, 75, 0.08);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.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)); }

/* 图片容器基础规则（共享层不放图片，仅提供响应式占位） */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(29, 44, 82, 0.9);
  background:
    radial-gradient(circle at 72% 18%, rgba(108, 76, 241, 0.34), transparent 56%),
    radial-gradient(circle at 18% 82%, rgba(53, 224, 208, 0.18), transparent 56%),
    #070d1e;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(29, 44, 82, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 44, 82, 0.45) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
  pointer-events: none;
}

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

.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__caption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}

/* 渐显（无 JS 时内容依然可见） */
[data-reveal] {
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

/* 8 · 响应式 ----------------------------------------------- */
@media (max-width: 1040px) {
  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.65rem;
  }

  .brand { grid-column: 1; }

  .header-actions { grid-column: 2; }

  .nav-toggle { display: inline-flex; }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    display: none;
  }

  .site-header[data-open] .primary-nav { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0.35rem;
    border-top: 1px solid var(--line);
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.82rem 0.4rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    color: var(--ice);
    background: linear-gradient(90deg, rgba(53, 224, 208, 0.14), transparent 72%);
    box-shadow: inset 2px 0 0 var(--gold);
  }

  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 5vw, 2.5rem);
  }

  .footer-brand { grid-column: 1 / -1; }

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

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .brand-tagline { display: none; }

  .rail-label { display: none; }

  .rail-readout {
    font-size: 0.66rem;
    margin-left: auto;
  }

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

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

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

@media (max-width: 520px) {
  .cta {
    padding: 0.52rem 0.85rem;
    font-size: 0.82rem;
  }

  .nav-toggle { padding: 0.45rem 0.6rem; }

  .nav-toggle-label { display: none; }

  .device-tabs { width: 100%; }

  .device-tab {
    flex: 1 1 auto;
    text-align: center;
  }

  .rail-readout { display: none; }

  .media-frame { aspect-ratio: 4 / 3; }
}

/* 9 · 动效偏好与降级 --------------------------------------- */
@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;
  }

  .reveal-ready [data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .status-dot { animation: none; }
}
