/* ============================================================
   爱游戏主站 · 共享样式表  /assets/site.css
   深空数据驾驶舱：固定左轨道 + 顶部命令栏 + 底部分层页脚
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --bg-deep: #050A14;
  --bg-rail: #0B1424;
  --bg-card: #121E33;
  --bg-float: #1B2B47;
  --line: #2A3B58;

  --cyan: #2EF2BE;
  --orange: #FF7A2F;
  --violet: #A26BFF;
  --indigo: #5B3DF5;
  --amber: #FFC24B;

  --text: #EAF2FF;
  --text-dim: #93A4BF;
  --text-mute: #6C7F9B;

  --rail-w: 220px;
  --cmd-h: 56px;
  --max-w: 1280px;
  --pad-x: clamp(20px, 4vw, 44px);

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

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

  --shadow-card: 0 18px 44px -28px rgba(0, 0, 0, 0.95);
  --glow-cyan: 0 0 18px rgba(46, 242, 190, 0.42);
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--cmd-h);
  padding-left: var(--rail-w);
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.24;
  letter-spacing: -0.01em;
  font-weight: 900;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
table { border-collapse: collapse; width: 100%; }

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

/* ---------- 3. 无障碍工具 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--cyan);
  color: #02241C;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px -14px rgba(46, 242, 190, 0.9);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 4. 排版基调 ---------- */
h1 { font-size: clamp(34px, 5.4vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
h4 { font-size: 22px; }

.num,
[data-sync-clock] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 700;
}

.glow-title {
  color: var(--text);
  text-shadow: 0 0 1px rgba(46, 242, 190, 0.85),
    0 0 18px rgba(46, 242, 190, 0.32);
}

/* ---------- 5. 头部骨架 ---------- */
.site-header {
  position: relative;
  z-index: 70;
}

/* 5.1 紧凑命令栏 */
.cmdbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  height: var(--cmd-h);
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  padding: 0 clamp(14px, 2vw, 22px);
  background: linear-gradient(
    90deg,
    rgba(11, 20, 36, 0.98) 0%,
    rgba(11, 20, 36, 0.98) 52%,
    rgba(8, 16, 30, 0.95) 100%
  );
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cmd-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(46, 242, 190, 0.55);
  will-change: transform;
}

/* 5.2 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--cyan) 0%, #12B9A6 46%, var(--indigo) 100%);
  box-shadow: 0 0 14px rgba(46, 242, 190, 0.35);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--bg-deep);
  clip-path: polygon(0 64%, 38% 24%, 62% 48%, 100% 4%, 100% 44%, 62% 88%, 38% 64%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.14;
}
.brand-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  white-space: nowrap;
}

/* 5.3 命令栏状态区 */
.cmd-here {
  padding-left: clamp(10px, 2vw, 26px);
  border-left: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  white-space: nowrap;
}

.cmd-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}
.cmd-live-k { letter-spacing: 0.08em; }
.cmd-live .num { color: var(--cyan); font-size: 12.5px; }

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(46, 242, 190, 0.85);
  animation: dotPulse 2.4s ease-out infinite;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 242, 190, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(46, 242, 190, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 242, 190, 0); }
}

/* 5.4 移动导航开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(27, 43, 71, 0.55);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-toggle-bar {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  color: var(--cyan);
}
.nav-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* 5.5 左侧品牌轨道 */
.rail-nav {
  position: fixed;
  top: var(--cmd-h);
  left: 0;
  bottom: 0;
  z-index: 60;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 26px 0 22px;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(120% 55% at 0% 0%, rgba(46, 242, 190, 0.10) 0%, transparent 62%),
    radial-gradient(120% 55% at 0% 100%, rgba(91, 61, 245, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0B1424 0%, #080F1C 100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.rail-head {
  padding: 0 22px 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--text-mute);
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-item { display: block; }

.rail-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-left: 3px solid transparent;
  color: var(--text-dim);
  font-size: 14.5px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.rail-link:hover {
  color: var(--text);
  background: rgba(46, 242, 190, 0.07);
}
.rail-link[aria-current="page"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(46, 242, 190, 0.16) 0%, transparent 100%);
  text-shadow: 0 0 14px rgba(46, 242, 190, 0.45);
}
.rail-link[aria-current="page"] .rail-ico {
  color: var(--cyan);
  opacity: 1;
}

.rail-ico {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  opacity: 0.85;
}

.rail-text { white-space: nowrap; }

.rail-status {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 22px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-mute);
}
.rail-status-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.rail-status-row .num { color: var(--cyan); font-size: 11px; }

/* ---------- 6. 主内容容器 ---------- */
.site-main {
  display: block;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 48px) var(--pad-x) 0;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(46, 242, 190, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, #0B1424 0%, #070E1A 100%);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(46, 242, 190, 0.75) 28%,
    rgba(91, 61, 245, 0.7) 70%,
    transparent 100%
  );
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) var(--pad-x) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand .brand-name { font-size: 17px; }

.footer-tagline {
  margin-top: 18px;
  max-width: 26em;
  font-size: 15px;
  color: var(--text-dim);
}

.footer-contact {
  margin-top: 22px;
  display: grid;
  gap: 8px;
}
.footer-contact-row {
  display: flex;
  gap: 10px;
  font-size: 13px;
}
.footer-contact-row dt {
  flex: 0 0 66px;
  color: var(--text-mute);
}
.footer-contact-row dd {
  margin: 0;
  color: var(--text-dim);
  word-break: break-word;
}
.footer-contact-row .num { color: var(--cyan); }

.footer-col-title {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--text-mute);
}
.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 26px; height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(46, 242, 190, 0.7);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-list a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-list a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

.footer-legal {
  margin-top: clamp(34px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  font-size: 12.5px;
  color: var(--text-mute);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-legal-links a {
  color: var(--text-dim);
  transition: color 0.18s ease;
}
.footer-legal-links a:hover { color: var(--cyan); }

.footer-copy {
  margin-left: auto;
  letter-spacing: 0.03em;
}

/* ---------- 8. 通用章节与排版组件 ---------- */
.section { padding-block: clamp(40px, 6vw, 80px); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.section-title { font-size: clamp(26px, 3.4vw, 40px); }

.section-lead {
  margin-top: 12px;
  max-width: 40em;
  font-size: 15px;
  color: var(--text-dim);
}

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

.prose p {
  max-width: 40em;
  margin-bottom: 1em;
  color: var(--text-dim);
}
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin: 1.5em 0 0.5em; }
.prose ul {
  display: grid;
  gap: 8px;
  margin-bottom: 1em;
}
.prose ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.78em;
  width: 8px; height: 1px;
  background: var(--cyan);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 12px;
  color: var(--text-mute);
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}
.breadcrumb a {
  color: var(--text-dim);
  transition: color 0.18s ease;
}
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- 9. 卡片与标签 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(18, 30, 51, 0.96), rgba(11, 20, 36, 0.96));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  border-color: rgba(46, 242, 190, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 26px 54px -30px rgba(46, 242, 190, 0.45);
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(27, 43, 71, 0.6);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}
.chip--live {
  color: var(--cyan);
  border-color: rgba(46, 242, 190, 0.5);
  background: rgba(46, 242, 190, 0.1);
}
.chip--warm {
  color: var(--orange);
  border-color: rgba(255, 122, 47, 0.45);
  background: rgba(255, 122, 47, 0.1);
}
.chip--vip {
  color: var(--violet);
  border-color: rgba(162, 107, 255, 0.5);
  background: rgba(162, 107, 255, 0.12);
}
.chip--warn {
  color: var(--amber);
  border-color: rgba(255, 194, 75, 0.45);
  background: rgba(255, 194, 75, 0.1);
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--cyan);
  color: #03231B;
  box-shadow: 0 0 0 1px rgba(46, 242, 190, 0.5),
    0 10px 28px -12px rgba(46, 242, 190, 0.85);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(46, 242, 190, 0.95),
    0 14px 36px -12px rgba(46, 242, 190, 0.95);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(27, 43, 71, 0.35);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(46, 242, 190, 0.08);
}

.btn-warm {
  background: var(--orange);
  color: #200D03;
  box-shadow: 0 10px 28px -14px rgba(255, 122, 47, 0.9);
}

.cmd-cta {
  padding: 8px 18px;
  font-size: 14px;
  flex: 0 0 auto;
}

/* ---------- 11. 数据视觉组件 ---------- */
.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(46, 242, 190, 0.35);
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(42, 59, 88, 0.7);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--indigo));
  box-shadow: 0 0 14px rgba(46, 242, 190, 0.5);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress--vip .progress-bar {
  background: linear-gradient(90deg, var(--violet), var(--indigo));
  box-shadow: 0 0 14px rgba(162, 107, 255, 0.5);
}

/* ---------- 12. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background-color: #0A1220;
  background-image:
    linear-gradient(rgba(46, 242, 190, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 242, 190, 0.055) 1px, transparent 1px),
    radial-gradient(120% 120% at 14% 8%, rgba(46, 242, 190, 0.16) 0%, transparent 55%),
    radial-gradient(120% 120% at 88% 94%, rgba(162, 107, 255, 0.2) 0%, transparent 58%),
    linear-gradient(150deg, #121E33 0%, #080F1C 100%);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
}
.media-frame > img,
.media-frame > svg,
.media-frame > picture,
.media-frame > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 20, 0.78);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ---------- 13. 网格 ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

/* ---------- 14. 进入视口渐显 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 15. 响应式：平板 ---------- */
@media (max-width: 1023px) {
  :root { --rail-w: 64px; }

  .rail-head { display: none; }
  .rail-status { display: none; }
  .rail-nav { padding-top: 18px; }
  .rail-link {
    justify-content: center;
    gap: 0;
    padding: 15px 0;
  }
  .rail-ico { font-size: 13px; letter-spacing: 0.02em; }
  .rail-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

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

/* ---------- 16. 响应式：移动端 ---------- */
@media (max-width: 719px) {
  :root { --rail-w: 0px; }

  .brand-sub { display: none; }
  .cmd-here { display: none; }
  .cmd-live-k { display: none; }
  .cmd-cta { padding: 8px 14px; font-size: 13px; }

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

  .rail-nav {
    width: min(78vw, 296px);
    padding-top: 20px;
    transform: translateX(-104%);
    box-shadow: 0 26px 64px -20px rgba(0, 0, 0, 0.92);
  }
  .rail-nav[data-open] { transform: translateX(0); }
  .rail-nav[data-open] .rail-head { display: block; }
  .rail-nav[data-open] .rail-status { display: flex; }

  .rail-link {
    justify-content: flex-start;
    gap: 14px;
    padding: 13px 22px;
  }
  .rail-text {
    position: static !important;
    width: auto; height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(4, 8, 16, 0.74);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

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

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand .footer-contact-row { flex-direction: column; gap: 2px; }
  .footer-contact-row dt { flex-basis: auto; font-size: 12px; letter-spacing: 0.1em; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .footer-copy { margin-left: 0; }
  .btn { padding: 10px 18px; font-size: 14px; }
}

/* ---------- 17. 降低动效偏好 ---------- */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .dot-live { animation: none; }
  .cmd-progress { display: none; }
}
