/* ============================================================
   微玩赛场 / assets/site.css
   共享外壳：reset、变量、中文排版、头部轨道、胶囊导航、页脚、通用组件
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  --rail-w: 84px;
  --dock-h: 64px;
  --scroll-progress: 0;
}

html[data-rail="collapsed"] { --rail-w: 56px; }

:root {
  --ink-950: #07120F;
  --ink-900: #0C1A16;
  --moss-800: #16302A;
  --lime-400: #C6FF3D;
  --orange-500: #FF6B2C;
  --cyan-400: #38E8D0;
  --violet-400: #9A7BFF;
  --gold-400: #F2C14E;
  --silver-300: #C9D6D2;
  --bronze-600: #C77B45;
  --paper-100: #EAF4EE;

  --font-display: "Oswald", "Barlow Condensed", "Arial Narrow", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --line: rgba(234, 244, 238, 0.12);
  --muted: rgba(234, 244, 238, 0.62);
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.45);
  --radius: 14px;
}

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

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

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

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; }

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

/* ---------- 基础排版 ---------- */

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper-100);
  background-color: var(--ink-950);
  background-image:
    radial-gradient(1100px 520px at 84% -12%, rgba(198, 255, 61, 0.08), transparent 68%),
    radial-gradient(900px 520px at 6% 108%, rgba(56, 232, 208, 0.07), transparent 70%);
  background-attachment: fixed;
  transition: padding-left 0.22s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 6vw, 72px); }
h2 { font-size: clamp(26px, 3.2vw, 42px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 18px; }

p { color: rgba(234, 244, 238, 0.88); }

strong { color: var(--paper-100); }

small { font-size: 13px; }

main { padding-top: 26px; }

/* ---------- 容器 ---------- */

.shell {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ---------- 跳转链接 ---------- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  border: 2px solid var(--ink-950);
  border-radius: 0 0 10px 10px;
  background: var(--lime-400);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus-visible { top: 0; }

/* ---------- 头部外壳 ---------- */

.site-header { position: relative; z-index: 80; }

/* 品牌轨道 */
.brand-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 0 18px;
  z-index: 90;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 54%, var(--moss-800) 100%);
  border-right: 2px solid var(--moss-800);
  transition: width 0.22s ease;
}

.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.rail-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 2px solid var(--ink-950);
  background: var(--lime-400);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 4px 4px 0 rgba(255, 107, 44, 0.6);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.rail-brand:hover .rail-mark {
  background: var(--cyan-400);
  box-shadow: 4px 4px 0 rgba(198, 255, 61, 0.6);
}

.rail-brand-name {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--paper-100);
  transition: opacity 0.18s ease;
}

.rail-tagline {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--cyan-400);
  transition: opacity 0.18s ease;
}

html[data-rail="collapsed"] .rail-brand-name,
html[data-rail="collapsed"] .rail-tagline {
  opacity: 0;
  pointer-events: none;
}

.rail-ticks {
  flex: 1 1 auto;
  width: 2px;
  min-height: 28px;
  background: repeating-linear-gradient(180deg, rgba(234, 244, 238, 0.24) 0 1px, transparent 1px 12px);
}

.rail-toggle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 2px solid var(--moss-800);
  border-radius: 9px;
  background: rgba(56, 232, 208, 0.07);
  color: var(--cyan-400);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.rail-toggle:hover { border-color: var(--cyan-400); color: var(--lime-400); }

.rail-toggle-bar {
  display: block;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: currentColor;
}

.rail-progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: rgba(234, 244, 238, 0.08);
}

.rail-progress-bar {
  display: block;
  width: 100%;
  height: calc(var(--scroll-progress, 0) * 100%);
  background: linear-gradient(180deg, var(--cyan-400), var(--lime-400));
  transition: height 0.12s linear;
}

/* 悬浮胶囊导航 */
.nav-pill {
  position: fixed;
  top: 14px;
  left: calc(var(--rail-w) + 16px);
  right: 16px;
  z-index: 95;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  transition: left 0.22s ease;
}

.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 7px 8px 7px 16px;
  border: 2px solid var(--moss-800);
  border-radius: 999px;
  background: rgba(12, 26, 22, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(56, 232, 208, 0.07);
  backdrop-filter: blur(12px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--silver-300);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.nav-link:hover { color: var(--lime-400); background: rgba(22, 48, 42, 0.9); }

.nav-link[aria-current="page"] {
  color: var(--lime-400);
  background: rgba(198, 255, 61, 0.1);
  border-bottom-color: var(--lime-400);
  font-weight: 700;
}

.nav-cta {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 2px solid var(--ink-950);
  border-radius: 999px;
  background: var(--lime-400);
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 3px 3px 0 rgba(255, 107, 44, 0.6);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.nav-cta:hover {
  background: var(--cyan-400);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(255, 107, 44, 0.75);
}

.nav-toggle { display: none; }

/* ---------- 页脚 ---------- */

.footer-site {
  position: relative;
  margin-top: clamp(48px, 8vw, 88px);
  padding-bottom: 36px;
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 58%, var(--ink-900) 100%);
  border-top: 1px solid rgba(56, 232, 208, 0.14);
  color: var(--paper-100);
}

.footer-slice {
  height: 38px;
  background: var(--moss-800);
  clip-path: polygon(0 100%, 0 42%, 100% 0, 100% 100%);
}

.footer-shell { padding-top: clamp(28px, 4vw, 44px); }

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(0, 1.45fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer-mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--lime-400);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-mark:hover { color: var(--cyan-400); }

.footer-note {
  margin-top: 12px;
  max-width: 32em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--silver-300);
}

.footer-facts {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-fact {
  padding: 4px 10px;
  border: 1px solid rgba(56, 232, 208, 0.35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan-400);
}

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

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.footer-col-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--silver-300);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-col-list a:hover {
  color: var(--lime-400);
  border-bottom-color: var(--lime-400);
}

.footer-contact {
  margin-top: clamp(26px, 4vw, 46px);
  padding: clamp(18px, 3vw, 28px);
  border: 2px solid var(--moss-800);
  border-radius: var(--radius);
  background: rgba(22, 48, 42, 0.35);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.footer-contact-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.footer-contact-title::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
}

.footer-contact-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px 24px;
}

.footer-contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.footer-contact-value {
  display: inline;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper-100);
  overflow-wrap: anywhere;
}

.copy-btn {
  margin-left: 8px;
  padding: 3px 9px;
  border: 1px solid rgba(198, 255, 61, 0.5);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--lime-400);
  cursor: pointer;
  vertical-align: 1px;
  transition: background 0.16s ease, color 0.16s ease;
}

.copy-btn:hover { background: var(--lime-400); color: var(--ink-950); }

.footer-contact-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-bottom {
  margin-top: clamp(24px, 4vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.footer-copy,
.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.to-top {
  padding: 7px 14px;
  border: 2px solid var(--ink-950);
  border-radius: 999px;
  background: var(--cyan-400);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  transition: background 0.16s ease, transform 0.16s ease;
}

.to-top:hover { background: var(--lime-400); transform: translate(-1px, -1px); }

/* ---------- 通用按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-primary {
  background: var(--lime-400);
  color: var(--ink-950);
  border-color: var(--ink-950);
  box-shadow: 4px 4px 0 rgba(255, 107, 44, 0.55);
}

.btn-primary:hover {
  background: var(--cyan-400);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(255, 107, 44, 0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--paper-100);
  border-color: var(--moss-800);
}

.btn-ghost:hover { border-color: var(--lime-400); color: var(--lime-400); }

.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- 面包屑 ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumb a { color: var(--silver-300); text-decoration: none; }

.breadcrumb a:hover { color: var(--lime-400); }

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

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(234, 244, 238, 0.3);
}

/* ---------- 长文 ---------- */

.prose { max-width: 38em; }

.prose p { margin-bottom: 1.1em; }

.prose h2 { margin: 1.6em 0 0.6em; font-size: clamp(22px, 2.4vw, 30px); }

.prose h3 { margin: 1.4em 0 0.5em; }

.prose ul, .prose ol { margin: 0 0 1.2em 1.2em; }

.prose li { margin-bottom: 0.5em; color: rgba(234, 244, 238, 0.86); }

.prose a { color: var(--cyan-400); text-underline-offset: 3px; }

/* ---------- 网格 ---------- */

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }

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

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

.grid-aside { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }

/* ---------- 卡片 ---------- */

.card {
  position: relative;
  padding: clamp(16px, 2.2vw, 22px);
  border: 2px solid var(--moss-800);
  border-radius: var(--radius);
  background: rgba(22, 48, 42, 0.4);
  box-shadow: var(--shadow-hard);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: rgba(198, 255, 61, 0.55);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55);
}

.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--paper-100);
}

/* ---------- 坐标索引与标签 ---------- */

.coord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.coord::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.tag--live { color: var(--orange-500); }

.tag--new { color: var(--violet-400); }

.tag--data { color: var(--cyan-400); }

/* ---------- 图片容器 ---------- */

.media-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--moss-800);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--moss-800), var(--ink-950));
  box-shadow: var(--shadow-hard);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.95);
}

.media-frame--wide { aspect-ratio: 16 / 9; }

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

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

.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- 数据表格与排名语义色 ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 2px solid var(--moss-800);
  border-radius: var(--radius);
  background: rgba(7, 18, 15, 0.6);
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  padding: 12px 14px;
  border-bottom: 2px solid var(--moss-800);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: left;
  white-space: nowrap;
  color: var(--muted);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(22, 48, 42, 0.9);
  color: var(--paper-100);
}

.data-table tbody tr:hover { background: rgba(198, 255, 61, 0.06); }

.data-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.rank-gold { color: var(--gold-400); }

.rank-silver { color: var(--silver-300); }

.rank-bronze { color: var(--bronze-600); }

/* ---------- 平板紧凑导航 ---------- */

@media (min-width: 901px) and (max-width: 1150px) {
  .nav-inner { padding: 6px 6px 6px 12px; }
  .nav-link { padding: 8px 9px; font-size: 13px; }
  .nav-cta { padding: 9px 14px; font-size: 13px; }
}

/* ---------- 桌面：内容让位给侧轨 ---------- */

@media (min-width: 901px) {
  body { padding-left: var(--rail-w); }
  main { padding-top: 92px; }
}

/* ---------- 移动端 ---------- */

@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  }

  main { padding-top: 26px; }

  .brand-rail {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 72px 0 14px;
    border-right: 0;
    border-top: 2px solid var(--moss-800);
    background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
    transition: none;
  }

  .rail-brand { flex-direction: row; gap: 10px; }

  .rail-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; }

  .rail-brand-name {
    writing-mode: horizontal-tb;
    font-size: 14px;
    letter-spacing: 0.16em;
  }

  .rail-tagline {
    writing-mode: horizontal-tb;
    padding-left: 10px;
    border-left: 1px solid var(--moss-800);
    font-size: 10px;
    letter-spacing: 0.26em;
  }

  .rail-ticks, .rail-toggle { display: none; }

  .rail-progress {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 3px;
    background: rgba(234, 244, 238, 0.08);
  }

  .rail-progress-bar {
    width: calc(var(--scroll-progress, 0) * 100%);
    height: 100%;
    background: linear-gradient(90deg, var(--cyan-400), var(--lime-400));
    transition: width 0.12s linear;
  }

  .nav-pill {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: calc(var(--dock-h) + 14px + env(safe-area-inset-bottom, 0px));
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav-pill[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-height: calc(100vh - 160px);
    overflow: auto;
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.62);
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }

  .nav-link {
    padding: 13px 14px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    border-radius: 12px;
    font-size: 16px;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--lime-400);
    border-bottom-color: transparent;
  }

  .nav-cta {
    margin: 6px 0 0;
    justify-content: center;
    padding: 14px 18px;
    font-size: 16px;
  }

  .nav-toggle {
    display: inline-flex;
    position: fixed;
    right: 12px;
    bottom: calc((var(--dock-h) - 46px) / 2 + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink-950);
    border-radius: 14px;
    background: var(--lime-400);
    color: var(--ink-950);
    box-shadow: 3px 3px 0 rgba(255, 107, 44, 0.6);
    cursor: pointer;
    z-index: 120;
  }

  .nav-toggle-bars { display: grid; gap: 5px; width: 20px; }

  .nav-toggle-bar {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

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

  .footer-slice { height: 26px; }

  .footer-site { padding-bottom: 28px; }
}

@media (max-width: 600px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }

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

  .footer-fact { font-size: 10px; }
}

/* ---------- 动效降级 ---------- */

@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;
  }

  .nav-cta:hover,
  .btn-primary:hover,
  .to-top:hover {
    transform: none;
  }
}
