/* ==========================================================================
   澳门新浦京游 · CN SPORT — 共享样式 /assets/site.css
   夜间赛场指挥中心：深墨绿基底 + 青柠数据信号 + 电光橙次序列 + 玫红战报角标
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

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

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

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

a { color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色板 */
  --ink-950: #06120F;
  --moss-900: #0B211B;
  --moss-850: #0E2A22;
  --moss-600: #1C5B45;
  --lime-400: #C8FF3D;
  --lime-200: #E9FFB0;
  --orange-500: #FF7A1A;
  --rose-500: #FF2E7E;
  --mist-50: #EAF4EF;
  --slate-400: #93ACA3;
  --line-20: #26443A;
  --glass-08: rgba(234, 244, 239, .08);
  --glass-14: rgba(234, 244, 239, .14);

  /* 语义别名 */
  --bg: var(--ink-950);
  --bg-alt: var(--moss-900);
  --fg: var(--mist-50);
  --fg-dim: var(--slate-400);
  --accent: var(--lime-400);
  --accent-2: var(--orange-500);
  --accent-3: var(--rose-500);
  --border: var(--line-20);

  /* 字体 */
  --font-display: "Archivo Black", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "JetBrains Mono", "DIN Condensed", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 尺寸 */
  --shell: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 66px;
  --radius: 14px;
  --radius-sm: 8px;

  /* 动效 */
  --ease: cubic-bezier(.22, .7, .28, 1);
  --shadow-1: 0 22px 48px -28px rgba(0, 0, 0, .95);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.01em;
  text-wrap: balance;
  color: var(--fg);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.375rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1.05rem; line-height: 1.35; }

p { text-wrap: pretty; }

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

strong, b { font-weight: 700; }

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

::selection {
  background: var(--lime-400);
  color: var(--ink-950);
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: .6rem;
  left: .6rem;
  z-index: 200;
  padding: .62rem 1.05rem;
  background: var(--lime-400);
  color: var(--ink-950);
  font-weight: 700;
  font-size: .9rem;
  border-radius: 6px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 5. 吸顶命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(6, 18, 15, .97) 0%, rgba(11, 33, 27, .92) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  backdrop-filter: blur(14px) saturate(1.35);
  border-bottom: 1px solid var(--line-20);
}

.cmd-bar { position: relative; }

.cmd-inner {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.8vw, 1.5rem);
}

/* 品牌三柱信号标 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--fg);
}

.brand__glyph {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 3px;
  align-items: end;
  height: 22px;
}

.brand__glyph i {
  display: block;
  width: 4px;
  border-radius: 1px;
  background: var(--lime-400);
}

.brand__glyph i:nth-child(1) { height: 10px; }
.brand__glyph i:nth-child(2) { height: 22px; background: var(--orange-500); }
.brand__glyph i:nth-child(3) { height: 15px; }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: .98rem;
  letter-spacing: .01em;
  white-space: nowrap;
}

.brand__sub {
  font-family: var(--font-num);
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--lime-400);
  margin-top: .16rem;
}

.brand--foot .brand__mark { font-size: 1.1rem; }
.brand--foot .brand__glyph { height: 26px; }
.brand--foot .brand__glyph i:nth-child(1) { height: 12px; }
.brand--foot .brand__glyph i:nth-child(2) { height: 26px; }
.brand--foot .brand__glyph i:nth-child(3) { height: 18px; }

/* ---------- 6. 导航 ---------- */
.site-nav {
  display: block;
  margin-inline: auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(.15rem, .8vw, .5rem);
}

.nav-item { min-width: 0; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .38rem;
  padding: .5rem .62rem;
  border-radius: 6px;
  color: var(--slate-400);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav-link:hover {
  color: var(--fg);
  background-color: var(--glass-08);
}

.nav-index {
  font-family: var(--font-num);
  font-size: .6rem;
  letter-spacing: .08em;
  color: var(--moss-600);
  transition: color .18s var(--ease);
}

.nav-label { display: inline-block; }

.nav-link:hover .nav-index { color: var(--lime-400); }

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

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

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .62rem;
  right: .62rem;
  bottom: .04rem;
  height: 2px;
  border-radius: 2px;
  background: var(--lime-400);
  box-shadow: 0 0 10px rgba(200, 255, 61, .8);
}

/* 移动抽屉底部区（桌面隐藏） */
.nav-aside { display: none; }

.nav-aside__status {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-num);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.nav-aside__link {
  font-size: .86rem;
  color: var(--slate-400);
  text-decoration: none;
  border-bottom: 1px solid var(--line-20);
  padding-bottom: .1rem;
  align-self: start;
}

.nav-aside__link:hover { color: var(--lime-400); border-bottom-color: var(--lime-400); }

/* ---------- 7. 状态灯 ---------- */
.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-400);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, .14), 0 0 10px rgba(200, 255, 61, .8);
  animation: lampPulse 2.6s var(--ease) infinite;
}

@keyframes lampPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.status-lamp {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-num);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-400);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex: 0 0 auto;
  margin-left: auto;
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .62rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

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

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

.btn--lime:hover {
  background: var(--lime-200);
  border-color: var(--lime-200);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-20);
}

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

.btn--orange {
  background: var(--orange-500);
  color: #1A0900;
  border-color: var(--orange-500);
}

.btn--orange:hover { background: #FF9346; border-color: #FF9346; }

.btn--sm { padding: .46rem .9rem; font-size: .8rem; }
.btn--lg { padding: .86rem 1.6rem; font-size: .98rem; }
.btn--block { width: 100%; }

/* ---------- 9. 汉堡按钮 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  flex: 0 0 auto;
  background: var(--glass-08);
  border: 1px solid var(--line-20);
  border-radius: 8px;
  cursor: pointer;
  color: var(--fg);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

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

/* ---------- 10. 滚动进度 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--lime-400) 0%, var(--orange-500) 100%);
  box-shadow: 0 0 12px rgba(200, 255, 61, .55);
  pointer-events: none;
}

/* ---------- 11. 容器与排版域 ---------- */
.container {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: 70ch;
  color: var(--fg);
}

.prose > * + * { margin-top: 1em; }

.prose ul {
  list-style: disc;
  padding-left: 1.3rem;
}

.prose ol {
  list-style: decimal;
  padding-left: 1.3rem;
}

.prose li + li { margin-top: .35em; }

.prose a {
  color: var(--lime-400);
  text-decoration: underline;
}

.prose a:hover { color: var(--lime-200); }

.rule {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line-20);
  margin-block: clamp(1.5rem, 3vw, 2.5rem);
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
  color: var(--slate-400);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-num);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lime-400);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.stack > * + * { margin-top: var(--stack-gap, 1rem); }

/* ---------- 12. 面包屑 ---------- */
.breadcrumbs { padding-block: clamp(1rem, 2.2vw, 1.6rem); }

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-num);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--slate-400);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--moss-600);
}

.breadcrumbs__link {
  color: var(--slate-400);
  text-decoration: none;
}

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

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

/* ---------- 13. 章节色带 ---------- */
.section-band {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem clamp(.8rem, 2vw, 1.3rem);
  margin-bottom: clamp(1rem, 2.4vw, 1.75rem);
  border-left: 3px solid var(--lime-400);
  background: linear-gradient(100deg, rgba(200, 255, 61, .16) 0%, rgba(200, 255, 61, .02) 55%, transparent 100%);
}

.section-band__index {
  font-family: var(--font-num);
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--lime-400);
  flex: 0 0 auto;
}

/* ---------- 14. 网格 ---------- */
.grid {
  display: grid;
  gap: var(--grid-gap, clamp(.75rem, 1.6vw, 1.25rem));
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
}

/* ---------- 15. 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  border: 1px solid var(--line-20);
  border-radius: var(--radius);
  background: var(--moss-850);
}

.panel--solid {
  background: var(--moss-600);
  border-color: transparent;
}

.panel--glass {
  background: var(--glass-08);
  border-color: var(--line-20);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.panel--hover {
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}

.panel--hover:hover {
  transform: translateY(-2px);
  border-color: var(--lime-400);
}

/* ---------- 16. 数字与标签 ---------- */
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.kpi { display: block; }

.kpi__value {
  display: block;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--lime-400);
}

.kpi__label {
  display: block;
  margin-top: .45rem;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .16rem .55rem;
  border: 1px solid var(--line-20);
  border-radius: 4px;
  background: var(--glass-08);
  color: var(--fg);
  font-family: var(--font-num);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.6;
}

.tag--lime {
  background: rgba(200, 255, 61, .13);
  border-color: rgba(200, 255, 61, .35);
  color: var(--lime-400);
}

.tag--orange {
  background: rgba(255, 122, 26, .13);
  border-color: rgba(255, 122, 26, .35);
  color: var(--orange-500);
}

.tag--rose {
  background: rgba(255, 46, 126, .15);
  border-color: rgba(255, 46, 126, .4);
  color: var(--rose-500);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .82rem;
  border: 1px solid var(--line-20);
  border-radius: 999px;
  background: var(--glass-08);
  color: var(--slate-400);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease),
              background-color .18s var(--ease);
}

.chip:hover {
  color: var(--fg);
  border-color: var(--moss-600);
}

.chip[aria-pressed="true"] {
  background: var(--lime-400);
  border-color: var(--lime-400);
  color: var(--ink-950);
  font-weight: 600;
}

/* ---------- 17. 图片容器基础规则 ---------- */
.media-frame {
  --media-ratio: 16 / 10;
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--media-ratio);
  border: 1px solid var(--line-20);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--moss-850) 0%, var(--ink-950) 100%);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 扫描线 + 底部压暗，保证叠字可读 */
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .45;
  background: repeating-linear-gradient(
    to bottom,
    rgba(200, 255, 61, .06) 0 1px,
    transparent 1px 5px
  );
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(6, 18, 15, .88), transparent);
}

.media-frame--wide { --media-ratio: 21 / 9; }
.media-frame--tall { --media-ratio: 4 / 5; }
.media-frame--square { --media-ratio: 1 / 1; }

.media-frame--placeholder {
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(200, 255, 61, .2) 0%, transparent 62%),
    radial-gradient(100% 80% at 92% 100%, rgba(255, 122, 26, .18) 0%, transparent 64%),
    linear-gradient(160deg, var(--moss-850) 0%, var(--ink-950) 100%);
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: .9rem 1rem;
  font-family: var(--font-num);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg);
}

/* ---------- 18. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  background: var(--moss-900);
  border-top: 1px solid var(--line-20);
  color: var(--fg);
}

.foot-sweep {
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--lime-400) 0%, var(--lime-400) 14%,
    var(--orange-500) 14%, var(--orange-500) 22%,
    var(--rose-500) 22%, var(--rose-500) 27%,
    var(--moss-600) 27%, var(--moss-600) 100%
  );
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
}

.foot-inner {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding: clamp(2rem, 4.5vw, 3.25rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  gap: clamp(1.6rem, 3.4vw, 2.75rem);
  grid-template-columns: minmax(0, 1fr);
}

.foot-brand { min-width: 0; }

.foot-tagline {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--fg);
}

.foot-meta {
  margin-top: .55rem;
  font-family: var(--font-num);
  font-size: .68rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--slate-400);
}

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

.foot-col__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .95rem;
  font-family: var(--font-num);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.foot-col__title::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime-400);
}

.foot-list { display: grid; gap: .3rem; }

.foot-link {
  display: inline-block;
  padding: .18rem 0;
  font-size: .92rem;
  color: var(--mist-50);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.foot-link:hover {
  color: var(--lime-400);
  border-bottom-color: var(--lime-400);
}

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

.contact-item {
  margin-bottom: .8rem;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--slate-400);
  overflow-wrap: anywhere;
}

.contact-item b {
  display: block;
  margin-bottom: .12rem;
  font-family: var(--font-num);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime-400);
}

.foot-legal {
  border-top: 1px solid var(--line-20);
  background: rgba(6, 18, 15, .55);
}

.foot-legal__inner {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding: 1.15rem var(--gutter) 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}

.foot-legal__text {
  font-family: var(--font-num);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--slate-400);
}

.foot-legal__text--dim { color: var(--moss-600); }

/* ---------- 19. 显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  will-change: opacity, transform;
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 20. 平板 ---------- */
@media (max-width: 1239px) {
  .status-lamp { display: none; }
}

@media (max-width: 1023px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    display: none;
    padding: 1rem var(--gutter) 1.5rem;
    background: linear-gradient(180deg, #0B211B 0%, #06120F 100%);
    border-top: 1px solid var(--line-20);
    border-bottom: 1px solid var(--line-20);
    box-shadow: var(--shadow-1);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-nav[data-open="true"] { display: block; }

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

  .nav-link {
    display: flex;
    justify-content: flex-start;
    gap: .8rem;
    padding: .85rem .25rem;
    border-bottom: 1px solid rgba(38, 68, 58, .55);
    border-radius: 0;
    font-size: 1rem;
  }

  .nav-index { font-size: .68rem; }

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

  .nav-link[aria-current="page"]::after {
    left: .25rem;
    right: auto;
    width: 20px;
    bottom: 0;
  }

  .nav-aside {
    display: grid;
    gap: .75rem;
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--line-20);
  }

  .header-actions { margin-left: 0; }
}

/* ---------- 21. 页脚响应式 ---------- */
@media (min-width: 700px) {
  .foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .foot-inner {
    grid-template-columns: 1.15fr .72fr .72fr .72fr 1.05fr;
    align-items: start;
  }
  .foot-brand { grid-column: auto; }
}

/* ---------- 22. 手机 ---------- */
@media (max-width: 640px) {
  :root { --header-h: 60px; }

  .header-actions { display: none; }

  .cmd-inner { gap: .6rem; }

  .brand__mark { font-size: .9rem; }
  .brand__sub { font-size: .55rem; letter-spacing: .24em; }

  .foot-legal__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- 23. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .status-dot { animation: none; }

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

  .btn:hover,
  .panel--hover:hover { transform: none; }
}
