/* ==========================================================================
   电玩试玩中心 · 共享样式表 /assets/site.css
   视觉母题：潮汐电子 —— 深海蓝基底 / 霓虹青信号 / 电光紫版本 / 珊瑚橙额度
   ========================================================================== */

:root {
  /* 色彩体系 */
  --c-abyss: #071B2F;
  --c-deep: #0B2545;
  --c-paper: #F4EFE4;
  --c-cyan: #35E0E0;
  --c-violet: #7B5CFF;
  --c-coral: #FF6B4A;
  --c-mist: #9FB8C8;
  --c-signal: #4CE0A0;
  --c-ink: #0A1420;
  --c-stone: #6B7A88;
  --c-cyan-ink: #0C6A72;
  --c-violet-ink: #5638D6;
  --c-hairline: rgba(159, 184, 200, .22);
  --c-hairline-soft: rgba(159, 184, 200, .12);

  /* 字体 */
  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-num: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  /* 形状 */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  /* 尺度与阴影 */
  --shell: 1240px;
  --shell-wide: 1360px;
  --gutter: clamp(24px, 6vw, 72px);
  --shadow-panel: 0 34px 80px -48px rgba(0, 0, 0, .95);
  --shadow-float: 0 32px 64px -36px rgba(0, 0, 0, .9);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--c-mist);
  background-color: var(--c-abyss);
  background-image:
    radial-gradient(120% 80% at 10% -12%, rgba(53, 224, 224, .16), transparent 58%),
    radial-gradient(90% 70% at 102% 0%, rgba(123, 92, 255, .18), transparent 60%),
    linear-gradient(180deg, #071B2F 0%, #061728 100%);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
}

/* 缓慢漂移的数据网格（潮汐背景） */
body::before {
  content: "";
  position: fixed;
  inset: -8% -20%;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(53, 224, 224, .085) 0 1px, transparent 1px 140px),
    repeating-linear-gradient(0deg, rgba(123, 92, 255, .06) 0 1px, transparent 1px 140px);
  animation: tideDrift 60s linear infinite;
}

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

[hidden] { display: none !important; }

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

ul,
ol { margin: 0; padding: 0; }

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: #FFFFFF;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; }

a {
  color: var(--c-cyan);
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}

a:hover { text-decoration: underline; }

strong { color: #FFFFFF; font-weight: 700; }

small { font-size: .8125rem; }

hr {
  height: 1px;
  border: 0;
  margin: 32px 0;
  background: var(--c-hairline-soft);
}

::selection {
  background: rgba(53, 224, 224, .3);
  color: #FFFFFF;
}

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

[id] { scroll-margin-top: 104px; }

/* ---------- 布局工具 ---------- */
.shell {
  width: min(var(--shell), calc(100% - clamp(32px, 8vw, 96px)));
  margin-inline: auto;
}

.shell--wide {
  width: min(var(--shell-wide), calc(100% - clamp(28px, 6vw, 72px)));
}

#main-content {
  display: block;
  position: relative;
  z-index: 1;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-violet));
}

.lead {
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--c-mist);
}

.figure-lg {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c-cyan);
}

.divider-wave {
  height: 12px;
  margin: clamp(24px, 4vw, 48px) 0;
  background-image: radial-gradient(circle at 6px 6px, rgba(53, 224, 224, .5) 0 2px, transparent 2.6px);
  background-size: 12px 12px;
  background-repeat: repeat-x;
  opacity: .65;
}

/* ---------- 跳至主要内容 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 90;
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--c-cyan);
  color: #04202B;
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  transition: top .18s ease;
}

.skip-link:focus { top: 14px; text-decoration: none; }

/* ---------- 头部信号带 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 27, 47, .94);
  border-bottom: 1px solid var(--c-hairline);
  color: var(--c-paper);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, rgba(53, 224, 224, 0) 0%, var(--c-cyan) 22%, var(--c-violet) 64%, var(--c-coral) 100%);
  opacity: .85;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 30px);
  width: min(var(--shell-wide), calc(100% - clamp(24px, 6vw, 72px)));
  margin-inline: auto;
  padding-block: clamp(12px, 1.6vw, 18px);
  transition: padding-block .3s ease;
}

.site-header.is-stuck .header-inner { padding-block: 8px; }

/* 品牌信号柱 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--c-cyan), var(--c-violet) 78%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 12px 26px -16px rgba(53, 224, 224, .9);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 2px solid rgba(4, 32, 43, .85);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: #04202B;
  transform: translate(-50%, -85%) rotate(24deg);
  transform-origin: 50% 85%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #FFFFFF;
}

.brand-sub {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--c-cyan);
}

/* 栏目索引胶囊 */
.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  color: var(--c-mist);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.nav-list a:hover {
  color: var(--c-cyan);
  background: rgba(53, 224, 224, .1);
  border-color: rgba(53, 224, 224, .35);
  text-decoration: none;
}

.nav-list a[aria-current="page"],
.nav-list a[aria-current="true"] {
  color: #04202B;
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  box-shadow: 0 10px 24px -16px rgba(53, 224, 224, 1);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(159, 184, 200, .4);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-paper);
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}

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

.nav-toggle-bars {
  position: relative;
  width: 16px;
  height: 12px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease;
}

.nav-toggle-bars::before { top: 1px; }
.nav-toggle-bars::after { bottom: 1px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }

/* 右侧动作区与额度浮标 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.quota-dock { position: relative; }

.quota-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 107, 74, .55);
  border-radius: var(--r-pill);
  background: rgba(255, 107, 74, .1);
  color: #FFC6B6;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.quota-toggle:hover,
.quota-dock.is-open .quota-toggle {
  color: #FFFFFF;
  border-color: var(--c-coral);
  background: rgba(255, 107, 74, .2);
}

.quota-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-coral);
  animation: quotaPulse 2.8s ease-in-out infinite;
}

.quota-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  z-index: 70;
  width: min(330px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid rgba(123, 92, 255, .4);
  border-radius: 24px;
  background: var(--c-paper);
  color: var(--c-ink);
  box-shadow: var(--shadow-float);
}

.quota-title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--c-stone);
}

.quota-list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  list-style: none;
}

.quota-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(10, 20, 32, .18);
  font-size: .875rem;
}

.quota-key { color: var(--c-stone); }

.quota-val {
  font-family: var(--font-num);
  font-weight: 800;
  color: var(--c-ink);
}

.quota-val--live { color: #1C8F68; }

.quota-note {
  margin: 0 0 12px;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--c-stone);
}

.quota-link {
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  color: var(--c-violet-ink);
}

.quota-link:hover { color: var(--c-cyan-ink); }

/* ---------- 按钮与胶囊 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: inherit;
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

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

.btn--cta {
  background: var(--c-cyan);
  color: #04202B;
  box-shadow: 0 14px 30px -18px rgba(53, 224, 224, 1);
}

.btn--cta:hover { background: #5FF0F0; color: #04202B; }

.btn--ghost {
  border-color: rgba(159, 184, 200, .45);
  color: var(--c-paper);
}

.btn--ghost:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(53, 224, 224, .08);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: 8px 16px;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-mist);
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.pill:hover { color: var(--c-paper); border-color: rgba(53, 224, 224, .5); }

.pill[aria-pressed="true"],
.pill.is-active {
  color: #E8DEFF;
  border-color: var(--c-violet);
  background: rgba(123, 92, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(123, 92, 255, .35);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: 5px 12px;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-mist);
}

.tag--violet { color: #CFC3FF; border-color: rgba(123, 92, 255, .55); background: rgba(123, 92, 255, .14); }
.tag--coral { color: #FFB9A5; border-color: rgba(255, 107, 74, .55); background: rgba(255, 107, 74, .14); }
.tag--signal { color: #A9F4D2; border-color: rgba(76, 224, 160, .5); background: rgba(76, 224, 160, .12); }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-signal);
  animation: signalPulse 3s ease-in-out infinite;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: .8125rem;
  color: var(--c-mist);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

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

.breadcrumb li + li::before {
  content: "／";
  margin-right: 8px;
  color: rgba(159, 184, 200, .6);
}

.breadcrumb a { color: var(--c-mist); }
.breadcrumb a:hover { color: var(--c-cyan); text-decoration: none; }
.breadcrumb [aria-current="page"] { color: var(--c-cyan); font-weight: 700; }

/* ---------- 画板、正文与图片容器 ---------- */
.paper-panel {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-lg);
  background: var(--c-paper);
  color: var(--c-ink);
  box-shadow: var(--shadow-panel);
}

.paper-panel h1,
.paper-panel h2,
.paper-panel h3,
.paper-panel h4 { color: var(--c-ink); }

.paper-panel a { color: var(--c-violet-ink); font-weight: 500; }
.paper-panel a:hover { color: var(--c-cyan-ink); }
.paper-panel .eyebrow { color: var(--c-cyan-ink); }
.paper-panel .lead,
.paper-panel .media-caption { color: var(--c-stone); }
.paper-panel hr { background: rgba(10, 20, 32, .14); }

.prose {
  max-width: 42rem;
  color: inherit;
}

.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose p { margin: 0; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  background:
    linear-gradient(140deg, #0B2545 0%, #123A5E 58%, #0B2545 100%);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(4, 32, 43, .22) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

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

.media-caption {
  margin-top: 10px;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--c-mist);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(64px, 10vw, 128px);
  padding: clamp(56px, 8vw, 96px) 0 28px;
  background: var(--c-abyss);
  color: var(--c-mist);
  border-top: 1px solid rgba(53, 224, 224, .2);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -13px;
  height: 14px;
  pointer-events: none;
  background-image: radial-gradient(circle at 12px 14px, var(--c-abyss) 0 11px, transparent 12px);
  background-size: 24px 14px;
  background-repeat: repeat-x;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(53, 224, 224, .8) 26%, rgba(123, 92, 255, .8) 72%, transparent 100%);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, .7fr));
  gap: clamp(24px, 4vw, 56px);
  width: min(var(--shell-wide), calc(100% - clamp(32px, 6vw, 72px)));
  margin-inline: auto;
  align-items: start;
}

.footer-brand-name {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #FFFFFF;
}

.footer-brand-line {
  max-width: 30ch;
  margin: 0 0 16px;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--c-mist);
}

.footer-version {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.version-figure {
  font-family: var(--font-num);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c-cyan);
}

.version-note {
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  color: #A08CFF;
}

.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--c-cyan);
}

.footer-links {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-links a {
  font-size: .875rem;
  color: var(--c-mist);
}

.footer-links a:hover { color: var(--c-cyan); text-decoration: none; }

.footer-coords {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding-top: clamp(20px, 3vw, 34px);
  border-top: 1px dashed rgba(159, 184, 200, .28);
}

.coord-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(159, 184, 200, .2);
  border-radius: var(--r-md);
  background: rgba(11, 37, 69, .72);
}

.coord-key {
  font-family: var(--font-head);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--c-cyan);
}

.coord-value {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--c-paper);
  word-break: break-word;
}

.coord-copy {
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 12px;
  border: 1px solid rgba(159, 184, 200, .4);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-mist);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.coord-copy:hover { color: var(--c-cyan); border-color: var(--c-cyan); }

.coord-copy.is-copied {
  color: #04202B;
  background: var(--c-signal);
  border-color: var(--c-signal);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  width: min(var(--shell-wide), calc(100% - clamp(32px, 6vw, 72px)));
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--c-hairline-soft);
  font-size: .8125rem;
  color: rgba(159, 184, 200, .78);
}

.footer-base p { margin: 0; }

/* ---------- 滚动进度信号条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 80;
  pointer-events: none;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-cyan) 0%, var(--c-violet) 60%, var(--c-coral) 100%);
  box-shadow: 0 0 18px -4px rgba(53, 224, 224, .8);
}

/* ---------- 显现动画 ---------- */
[data-reveal] { transition: opacity .32s ease, transform .32s ease; }

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

.is-armed[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 关键帧 ---------- */
@keyframes tideDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-140px, 0, 0); }
}

@keyframes signalPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 224, 160, .55); }
  50% { box-shadow: 0 0 0 7px rgba(76, 224, 160, 0); }
}

@keyframes quotaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, .6); }
  50% { box-shadow: 0 0 0 7px rgba(255, 107, 74, 0); }
}

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .brand { flex: 1 1 auto; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: rgba(7, 27, 47, .99);
    border-bottom: 1px solid rgba(53, 224, 224, .3);
    box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .95);
    transition: max-height .28s ease, visibility .28s ease;
  }

  .site-nav[data-open] {
    max-height: min(72vh, 520px);
    overflow-y: auto;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 2px;
    padding: 14px clamp(16px, 5vw, 28px) 20px;
  }

  .nav-list a {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: .9375rem;
  }

  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-2, .span-3, .span-4, .span-5 { grid-column: span 3; }
  .span-6, .span-7, .span-8 { grid-column: span 6; }

  .footer-shell { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- 手机 ---------- */
@media (max-width: 720px) {
  body::before { opacity: .55; }

  .brand-sub { display: none; }
  .brand-mark { width: 34px; height: 34px; border-radius: 12px; }

  .btn { padding: 10px 18px; font-size: .875rem; }

  .quota-toggle-text { display: none; }
  .quota-panel { right: -10px; }

  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 2; }

  .footer-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .footer-shell { grid-template-columns: minmax(0, 1fr); }
  .nav-toggle-label { display: none; }
}

/* ---------- 无障碍：降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  body::before { animation: none; }

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