/* ============================================================
   完美体育 · 共享外壳样式 /assets/site.css
   夜间球场指挥中心：深墨绿底 + 荧光青主强调 + 琥珀橙数据高亮
   ============================================================ */

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

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

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

ul, ol { list-style: none; }

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

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

a { color: inherit; text-decoration: none; }

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

:where([id]) { scroll-margin-top: 96px; }

/* ---------- 变量 ---------- */
:root {
  /* 色板 */
  --ink-900: #071A16;   /* 夜场墨绿 · 主背景 */
  --ink-800: #0A211C;
  --ink-700: #0E2A23;   /* 深墨绿面板 */
  --ink-600: #123029;
  --cyan:    #35F2C8;   /* 荧光青 · 主强调 */
  --amber:   #FFAB3D;   /* 琥珀橙 · 数据高亮 */
  --violet:  #8A6BFF;   /* 电子紫 · 客场语义 */
  --indigo:  #241B4A;   /* 靛紫深调 · 色带 */
  --white:   #F2FBF8;   /* 球场白 · 正文 */
  --mist:    #A8E6DA;   /* 青雾灰 · 次级文本 */
  --line:    #2F4F49;   /* 线框青灰 */
  --line-soft: rgba(47, 79, 73, 0.55);
  --sand:    #FFE7C6;   /* 浅琥珀底 */

  /* 字体 */
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Source Han Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                  system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono",
               Menlo, Consolas, "Courier New", monospace;

  /* 字号 */
  --fz-display: clamp(44px, 6.4vw, 92px);
  --fz-h2: clamp(30px, 3.6vw, 40px);
  --fz-body: clamp(16px, 0.4vw + 14px, 17px);
  --fz-index: 12px;

  /* 节奏 */
  --gutter: clamp(16px, 3.4vw, 44px);
  --radius: 0px;
  --shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.35), 0 18px 40px -28px rgba(0, 0, 0, 0.75);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fz-body);
  line-height: 1.7;
  color: var(--white);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(70% 50% at 82% -12%, rgba(53, 242, 200, 0.10), transparent 70%),
    radial-gradient(52% 42% at 0% 6%, rgba(138, 107, 255, 0.10), transparent 72%),
    linear-gradient(rgba(47, 79, 73, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 79, 73, 0.18) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 72px 72px, 72px 72px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h1 { font-size: var(--fz-display); }
h2 { font-size: var(--fz-h2); }
h3 { font-size: clamp(20px, 2vw, 26px); }

p { color: var(--white); }
p + p { margin-top: 0.9em; }

strong { color: var(--cyan); font-weight: 700; }

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

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

/* ---------- 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.stack > * + * { margin-top: clamp(28px, 4vw, 64px); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--white);
  background: transparent;
  white-space: nowrap;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease),
              color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  color: var(--mist);
  border-color: var(--line);
}
.btn--ghost:hover {
  color: var(--cyan);
  border-color: rgba(53, 242, 200, 0.7);
  background: rgba(53, 242, 200, 0.06);
}

.btn--accent {
  color: #1A1004;
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 750;
}
.btn--accent:hover {
  color: #1A1004;
  background: #FFC069;
  border-color: #FFC069;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  background: rgba(14, 42, 35, 0.6);
}
.tag--cyan   { color: var(--cyan);   border-color: rgba(53, 242, 200, 0.42); }
.tag--amber  { color: var(--amber);  border-color: rgba(255, 171, 61, 0.42); }
.tag--violet { color: var(--violet); border-color: rgba(138, 107, 255, 0.42); }

/* ---------- 卡片 / 指标 ---------- */
.card,
.data-card {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--ink-700);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.data-card {
  background: linear-gradient(180deg, var(--ink-600), var(--ink-700) 55%);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}
.metric__label {
  font-family: var(--font-mono);
  font-size: var(--fz-index);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.metric--accent .metric__value { color: var(--cyan); }
.metric--amber  .metric__value { color: var(--amber); }
.metric--violet .metric__value { color: var(--violet); }

/* ---------- 章节色带 / 面包屑 / 图例 ---------- */
.section-band {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fz-index);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.section-band::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  flex: 0 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fz-index);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}
.breadcrumb__sep { color: var(--line); }
.breadcrumb a:hover { color: var(--cyan); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fz-index);
  letter-spacing: 0.08em;
  color: var(--mist);
}
.legend__swatch {
  width: 14px;
  height: 3px;
  background: var(--cyan);
  flex: 0 0 auto;
}
.legend__item:nth-child(2) .legend__swatch { background: var(--violet); }
.legend__item:nth-child(3) .legend__swatch { background: var(--amber); }

/* ---------- 响应式图片容器 ---------- */
.media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(53, 242, 200, 0.07), rgba(138, 107, 255, 0.10)),
    var(--ink-700);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 79, 73, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 79, 73, 0.4) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.5;
  pointer-events: none;
}
.media-frame > img,
.media-frame > picture,
.media-frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 8px 14px;
  background: rgba(7, 26, 22, 0.86);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fz-index);
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* ---------- 显现动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   命令栏导航
   ============================================================ */
.cmd-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 26, 22, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.cmd-bar.is-compact {
  box-shadow: 0 14px 34px -26px rgba(0, 0, 0, 0.95);
  background: rgba(7, 26, 22, 0.985);
}

.cmd-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 74px;
  transition: min-height 0.3s var(--ease);
}
.cmd-bar.is-compact .cmd-bar__inner { min-height: 56px; }

/* 品牌 */
.cmd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.cmd-brand__mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
  transition: border-color 0.24s var(--ease), transform 0.4s var(--ease);
}
.cmd-brand__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--amber);
}
.cmd-brand:hover .cmd-brand__mark { transform: rotate(135deg); }

.cmd-brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.cmd-brand__name {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--white);
}
.cmd-brand__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  line-height: 1.2;
  color: var(--mist);
  max-height: 16px;
  overflow: hidden;
  transition: max-height 0.28s var(--ease), opacity 0.24s var(--ease);
}
.cmd-bar.is-compact .cmd-brand__meta {
  max-height: 0;
  opacity: 0;
}

/* 压缩态当前章节名 */
.cmd-now {
  display: none;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 18ch;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmd-bar.is-compact .cmd-now { display: block; }
.cmd-bar.is-compact .cmd-now:empty { display: none; }

/* 主导航 */
.cmd-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.7vw, 12px);
  min-width: 0;
}
.cmd-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 11px;
  font-size: 14px;
  letter-spacing: 0.015em;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.cmd-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 17px;
  background: var(--cyan);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform 0.26s var(--ease);
}
.cmd-nav__link:hover { color: var(--white); }
.cmd-nav__link[aria-current="page"] { color: var(--white); }
.cmd-nav__link[aria-current="page"]::before { transform: translateY(-50%) scaleY(1); }

.cmd-nav__idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(168, 230, 218, 0.55);
  transition: color 0.2s var(--ease);
}
.cmd-nav__link[aria-current="page"] .cmd-nav__idx,
.cmd-nav__link:hover .cmd-nav__idx { color: var(--cyan); }

/* 右侧入口 */
.cmd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.cmd-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  color: var(--mist);
}
.cmd-toggle:hover { border-color: var(--cyan); }
.cmd-toggle__bars {
  position: relative;
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: background 0.2s var(--ease);
}
.cmd-toggle__bars::before,
.cmd-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 0.26s var(--ease), top 0.26s var(--ease), opacity 0.2s;
}
.cmd-toggle__bars::before { top: -6px; }
.cmd-toggle__bars::after  { top: 6px; }
.cmd-toggle[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan); }
.cmd-toggle[aria-expanded="true"] .cmd-toggle__bars { background: transparent; }
.cmd-toggle[aria-expanded="true"] .cmd-toggle__bars::before { top: 0; transform: rotate(45deg); }
.cmd-toggle[aria-expanded="true"] .cmd-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

/* 移动索引面板 */
.cmd-panel { display: none; }

/* ============================================================
   页脚
   ============================================================ */
.foot {
  margin-top: clamp(64px, 9vw, 140px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900) 46%);
}
.foot__inner { width: 100%; }

/* 赛季时间轴 */
.season-rail {
  padding-block: clamp(26px, 4vw, 46px) clamp(10px, 1.6vw, 18px);
  border-bottom: 1px solid var(--line-soft);
}
.season-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.season-rail__title {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}
.season-rail__hint {
  font-family: var(--font-mono);
  font-size: var(--fz-index);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.season-rail__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(22px, 4vw, 62px);
  margin-top: 8px;
  padding: 26px 2px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -webkit-overflow-scrolling: touch;
}
.season-rail__track::-webkit-scrollbar { height: 4px; }
.season-rail__track::-webkit-scrollbar-track { background: transparent; }
.season-rail__track::-webkit-scrollbar-thumb { background: var(--line); }

.season-node {
  position: relative;
  flex: 0 0 auto;
  padding-top: 24px;
  scroll-snap-align: start;
  cursor: default;
}
.season-node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 100%;
  height: 1px;
  background: var(--line-soft);
}
.season-node::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 9px;
  height: 9px;
  background: var(--ink-900);
  border: 1px solid var(--mist);
  transform: rotate(45deg);
  transition: background 0.24s var(--ease), border-color 0.24s var(--ease);
}
.season-node__year {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--mist);
  transition: color 0.22s var(--ease);
}
.season-node__tag {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(168, 230, 218, 0.48);
}
.season-node:hover .season-node__year { color: var(--cyan); }
.season-node:hover::after { border-color: var(--cyan); }
.season-node--is-active .season-node__year { color: var(--amber); }
.season-node--is-active::after { background: var(--amber); border-color: var(--amber); }
.season-node--is-active::before { background: rgba(255, 171, 61, 0.5); }

/* 栏目分组 */
.foot__grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) repeat(4, minmax(130px, 1fr));
  gap: clamp(26px, 3vw, 48px);
  padding-block: clamp(36px, 5vw, 66px) clamp(28px, 4vw, 48px);
}
.foot__brand { padding-right: clamp(0px, 2vw, 26px); }
.foot__brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--white);
}
.foot__brand-note {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 42ch;
}
.foot__brand-note--dim { color: rgba(168, 230, 218, 0.55); }

.foot__col-title {
  font-family: var(--font-mono);
  font-size: var(--fz-index);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.foot__list { margin-top: 16px; }
.foot__list li + li { margin-top: 10px; }
.foot__link {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.foot__link:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

/* 备案 / 联系 */
.foot__legal {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 44px);
  padding-block: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line-soft);
}
.foot__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.foot__contact-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--white);
}
.foot__contact-key {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.foot__note {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(168, 230, 218, 0.72);
}

.foot__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  padding-block: 20px 30px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(168, 230, 218, 0.6);
}
.foot__icp { color: var(--mist); }

/* ============================================================
   滚动进度 / 返回顶部（由 site.js 注入）
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: transparent;
}
.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 0.12s linear;
}

.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 30px);
  bottom: clamp(14px, 2.4vw, 30px);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: rgba(14, 42, 35, 0.92);
  color: var(--cyan);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
              visibility 0.28s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.to-top::before {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px);
}
.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--ink-700);
  border-color: var(--cyan);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .cmd-nav__link { padding: 10px 8px; font-size: 13.5px; }
  .cmd-actions .btn { padding: 0 14px; }
}

@media (max-width: 1080px) {
  .foot__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 22px;
  }
  .foot__brand {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 920px) {
  .cmd-bar__inner { min-height: 60px; }
  .cmd-bar.is-compact .cmd-bar__inner { min-height: 54px; }
  .cmd-nav { display: none; }
  .cmd-actions .btn { display: none; }
  .cmd-toggle { display: inline-flex; }

  .cmd-now {
    display: block;
    flex: 1 1 auto;
    max-width: none;
    font-size: 11px;
    text-align: right;
  }
  .cmd-bar.is-compact .cmd-now { display: block; }
  .cmd-bar.is-compact .cmd-now:empty { display: none; }

  .cmd-panel {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    flex-direction: column;
    padding: 22px var(--gutter) 32px;
    background: var(--ink-900);
    border-bottom: 1px solid var(--cyan);
    overflow-y: auto;
    transform: translateY(-102%);
    visibility: hidden;
    transition: transform 0.38s var(--ease), visibility 0.38s var(--ease);
  }
  .cmd-panel[data-open] {
    transform: translateY(0);
    visibility: visible;
  }

  .cmd-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .cmd-panel__title {
    font-family: var(--font-mono);
    font-size: var(--fz-index);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mist);
  }
  .cmd-panel__close {
    padding: 8px 14px;
    border: 1px solid var(--line);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--cyan);
  }
  .cmd-panel__close:hover { border-color: var(--cyan); }

  .cmd-panel__list {
    display: flex;
    flex-direction: column;
    padding-top: 6px;
  }
  .cmd-panel__link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 2px;
    border-bottom: 1px solid var(--line-soft);
    font-size: clamp(20px, 5.6vw, 26px);
    font-weight: 680;
    letter-spacing: 0.01em;
    color: var(--white);
    transition: color 0.2s var(--ease);
  }
  .cmd-panel__link:hover,
  .cmd-panel__link[aria-current="page"] { color: var(--cyan); }
  .cmd-panel__idx {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    color: var(--mist);
  }
  .cmd-panel__link[aria-current="page"] .cmd-panel__idx { color: var(--amber); }

  .cmd-panel__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }
  .cmd-panel__ver {
    font-family: var(--font-mono);
    font-size: var(--fz-index);
    letter-spacing: 0.14em;
    color: var(--mist);
  }

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

@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-12 > * { grid-column: 1 / -1; }

  .season-rail__track { gap: 26px; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .media-frame { aspect-ratio: 4 / 3; }
  .media-frame--wide { aspect-ratio: 16 / 9; }
}

@media (max-width: 480px) {
  body { background-attachment: scroll; }
  .cmd-brand__meta { display: none; }
  .cmd-brand__name { font-size: 16px; }
  .foot__end { justify-content: flex-start; }
  .to-top { width: 42px; height: 42px; }
}

/* ============================================================
   动效降级
   ============================================================ */
@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;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .to-top { transition: none; }
  .scroll-progress__bar { transition: none; }
}
