/* ============================================================
   爱游戏看台 · 共享外壳样式
   文件：/assets/site.css
   内容：reset / 变量 / 中文排版 / 头部 / 页脚 / 按钮 /
        面包屑 / 容器网格 / 媒体容器 / 标签条 / 动效
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  scroll-padding-top: calc(var(--header-h, 72px) + 24px);
}

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

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

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

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

a { color: inherit; }

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩 */
  --ink: #0B1220;
  --ink-deep: #070C15;
  --charcoal: #151A22;
  --teal: #0E3B3A;
  --wine: #4A1626;
  --indigo: #241B4A;
  --orange: #FF4D2E;
  --orange-ink: #17060A;
  --cyan: #2EE6C8;
  --yellow: #FFD166;
  --paper: #E8EDF5;
  --mist: #9AA7B8;
  --line: rgba(232, 237, 245, 0.14);
  --line-soft: rgba(232, 237, 245, 0.08);

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", sans-serif;
  --font-editorial: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", monospace;

  /* 尺寸 */
  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --radius-pill: 999px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-lift: 0 26px 60px -34px rgba(0, 0, 0, 0.95);
  --shadow-orange: 0 14px 30px -16px rgba(255, 77, 46, 0.85);
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
}

/* ---------- 3. 中文排版与基础 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(70% 46% at 8% -6%, rgba(36, 27, 74, 0.75), transparent 62%),
    radial-gradient(54% 40% at 96% 4%, rgba(14, 59, 58, 0.62), transparent 66%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--paper);
}

h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 46px); }

h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--paper);
}

h3 { font-size: clamp(19px, 1.8vw, 23px); }
h4 { font-size: 17px; }

p { max-width: 68ch; }

small { font-size: 13px; color: var(--mist); }

strong { font-weight: 700; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- 4. 跳过导航 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #06201D;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 30px -14px rgba(46, 230, 200, 0.9);
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* ---------- 5. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.9) 0%, rgba(11, 18, 32, 0.34) 62%, rgba(11, 18, 32, 0) 100%);
  transition:
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(42%, 460px);
  height: 1px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 209, 102, 0.5) 40%, transparent);
  opacity: 0.9;
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(11, 18, 32, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 22px 48px -34px #000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(232, 237, 245, 0.07);
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange) 0%, var(--yellow) 70%, var(--cyan) 100%);
  transition: width 0.12s linear;
}

.header-inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--paper);
  flex: none;
}

.brand__mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--radius-s);
  transform: skewX(-8deg);
  background: linear-gradient(150deg, var(--orange) 0 48%, var(--indigo) 48% 100%);
  box-shadow: inset 0 0 0 1px rgba(232, 237, 245, 0.22);
  transition: transform 0.24s var(--ease);
}

.brand__mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(46, 230, 200, 0.9);
}

.brand:hover .brand__mark { transform: skewX(-8deg) translateY(-2px); }

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

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--orange);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__item { flex: none; }

.site-nav__link {
  position: relative;
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-s);
  font-size: 15px;
  font-weight: 500;
  color: rgba(232, 237, 245, 0.76);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}

.site-nav__link:hover {
  color: var(--paper);
  background: rgba(232, 237, 245, 0.07);
}

.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] {
  color: var(--orange-ink);
  background: var(--orange);
  font-weight: 700;
  box-shadow: var(--shadow-orange);
}

.site-nav__link[aria-current="page"]::after { display: none; }

.site-nav__cta { flex: none; }

.site-nav__note {
  display: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--mist);
  max-width: none;
}

/* 移动开合按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(21, 26, 34, 0.86);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav-toggle:hover { border-color: rgba(46, 230, 200, 0.55); }

.nav-toggle__bars,
.nav-toggle__bars::before {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transition: transform 0.2s var(--ease);
}

.nav-toggle__bars { position: relative; }

.nav-toggle__bars::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
}

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

.nav-toggle__label { line-height: 1; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: var(--orange-ink);
  box-shadow: var(--shadow-orange);
}

.btn--primary:hover {
  background: #FF6448;
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(232, 237, 245, 0.04);
  border-color: rgba(232, 237, 245, 0.28);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn--cyan {
  background: var(--cyan);
  color: #06201D;
}

.btn--cyan:hover {
  background: #55F0D6;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 11px 18px;
  font-size: 14px;
}

.btn__arrow {
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- 7. 容器与网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-head {
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 72px));
}

.section { padding-block: clamp(48px, 6.5vw, 96px); }
.section--tight { padding-block: clamp(28px, 3.5vw, 52px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px);
}

@media (max-width: 640px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- 8. 文本辅助 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
  flex: none;
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.8;
  color: rgba(232, 237, 245, 0.84);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- 9. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
}

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

.crumbs li + li::before {
  content: "/";
  color: rgba(154, 167, 184, 0.45);
}

.crumbs a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.crumbs a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 10. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(46, 230, 200, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(46, 230, 200, 0.09);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}

.tag--hot {
  border-color: rgba(255, 77, 46, 0.5);
  background: rgba(255, 77, 46, 0.16);
  color: #FFCDBF;
}

.tag--warn {
  border-color: rgba(255, 209, 102, 0.42);
  background: rgba(255, 209, 102, 0.12);
  color: var(--yellow);
}

/* ---------- 11. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background-color: var(--charcoal);
  background-image: linear-gradient(152deg, rgba(36, 27, 74, 0.95) 0%, rgba(11, 18, 32, 0.98) 58%, rgba(14, 59, 58, 0.9) 100%);
  aspect-ratio: 16 / 10;
  isolation: isolate;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(232, 237, 245, 0.07) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(232, 237, 245, 0.05) 0 1px, transparent 1px 34px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto -8% -34% -8%;
  height: 62%;
  background: radial-gradient(60% 100% at 30% 100%, rgba(255, 77, 46, 0.3), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  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__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 12, 21, 0.82);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  max-width: calc(100% - 28px);
}

@media (max-width: 640px) {
  .media-frame { aspect-ratio: 4 / 3; border-radius: var(--radius-s); }
  .media-frame--wide { aspect-ratio: 16 / 10; }
  .media-frame--tall { aspect-ratio: 3 / 4; }
}

/* ---------- 12. 横向看台条 / 标签页 ---------- */
.rail {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(21, 26, 34, 0.9);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.rail__item {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  padding: 10px 18px;
  color: rgba(232, 237, 245, 0.72);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.16s var(--ease),
    color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.rail__item:hover {
  color: var(--paper);
  background: rgba(232, 237, 245, 0.08);
}

.rail__item[aria-selected="true"] {
  background: var(--orange);
  color: var(--orange-ink);
  border-color: rgba(255, 77, 46, 0.6);
  font-weight: 700;
  box-shadow: var(--shadow-orange);
}

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

[data-tab-panel] {
  animation: panel-in 0.28s var(--ease) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 13. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

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

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 104px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 46%, #0C1622 100%);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 300px;
  background:
    radial-gradient(58% 100% at 18% 100%, rgba(255, 77, 46, 0.18), transparent 68%),
    radial-gradient(52% 100% at 82% 100%, rgba(46, 230, 200, 0.14), transparent 70%);
  pointer-events: none;
}

.footer-strip {
  position: relative;
  height: 18px;
  background-color: var(--wine);
  background-image:
    repeating-linear-gradient(90deg, rgba(232, 237, 245, 0.2) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, var(--orange) 0 3px, transparent 3px 104px);
  opacity: 0.85;
}

.footer-inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(26px, 3.4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.25fr);
  gap: clamp(26px, 3.6vw, 52px);
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }

.brand--footer .brand__name { font-size: 24px; }

.footer-brand__blurb {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(232, 237, 245, 0.78);
}

.footer-selfcheck {
  max-width: 36ch;
  padding: 12px 14px;
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: rgba(255, 209, 102, 0.08);
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 209, 102, 0.92);
}

.footer-col { display: flex; flex-direction: column; }

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-col__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(46, 230, 200, 0.45), transparent);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: rgba(232, 237, 245, 0.76);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.footer-col__list a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: rgba(154, 167, 184, 0.5);
  transition: background-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.footer-col__list a:hover { color: var(--paper); }

.footer-col__list a:hover::before {
  background: var(--orange);
  transform: scale(1.5);
}

.footer-contact { display: flex; flex-direction: column; }

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact__row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-contact__row dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-legal {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px var(--gutter) clamp(26px, 3.4vw, 40px);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}

.footer-legal__note {
  max-width: 56ch;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--mist);
}

.footer-legal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(232, 237, 245, 0.72);
  max-width: none;
}

.footer-legal__dot { color: rgba(154, 167, 184, 0.55); }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1180px) {
  .site-nav__link { padding: 9px 10px; font-size: 14.5px; }
  .site-nav { gap: 10px; }
}

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

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 110;
    margin-left: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 20px var(--gutter) 30px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #0B1220 0%, #0A1120 62%, #0C1A24 100%);
    box-shadow: 0 30px 60px -30px #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.2s var(--ease),
      transform 0.2s var(--ease),
      visibility 0.2s var(--ease);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav__link {
    padding: 14px 16px;
    border-left: 3px solid transparent;
    border-radius: var(--radius-s);
    font-size: 17px;
    color: rgba(232, 237, 245, 0.86);
  }

  .site-nav__link::after { display: none; }

  .site-nav__link[aria-current="page"] {
    border-left-color: var(--paper);
  }

  .site-nav__cta {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 15px;
  }

  .site-nav__note {
    display: block;
    padding-top: 14px;
    border-top: 1px dashed rgba(232, 237, 245, 0.16);
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .brand__name { font-size: 18px; }
  .brand__tagline { font-size: 9px; letter-spacing: 0.2em; }
  .brand__mark { width: 26px; height: 26px; }

  .nav-toggle { padding: 9px 14px 9px 12px; font-size: 13px; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }

  .rail { border-radius: var(--radius-m); }
}

@media (max-width: 380px) {
  .nav-toggle__label { display: none; }
}

/* ---------- 16. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::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;
    transform: none;
  }

  [data-tab-panel] { animation: none; }

  .site-nav { transform: none; }
}
