/* ==========================================================================
   尚牛竞猜 · 共享样式表 /assets/site.css
   深夜战术室 + 赛季手册：深空黑底、战术板灰面板、奶油纸长文区、霓虹青强调
   ========================================================================== */

:root {
  /* 色彩体系 */
  --ink: #07090E;
  --panel: #12161F;
  --panel-deep: #0A0D14;
  --paper: #F2E8D5;
  --paper-ink: #2A211C;
  --cyan: #35E6D2;
  --magenta: #FF3D8B;
  --violet: #8A2BE2;
  --lime: #A6FF3D;
  --copper: #B87333;
  --gold: #C9A227;
  --mist: #A8B0BF;
  --amber: #FFB020;

  /* 线条与材质 */
  --line: rgba(242, 232, 213, 0.14);
  --line-soft: rgba(242, 232, 213, 0.075);
  --shadow-card: 0 20px 44px -30px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(242, 232, 213, 0.05);

  /* 形状 */
  --radius: 18px;
  --radius-sm: 10px;
  --pill: 999px;

  /* 栅格与节奏 */
  --page-max: 1480px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --flow: clamp(28px, 4.4vw, 64px);

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

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--cyan); color: #06121A; }

/* ---------- 中文排版与标题 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); }

p { text-wrap: pretty; }

.display-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display-title em {
  font-style: normal;
  font-weight: 200;
  color: var(--mist);
}

.index-label,
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--cyan);
  line-height: 1.6;
}
.eyebrow { color: var(--mist); }

.prose {
  max-width: 46rem;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(242, 232, 213, 0.86);
}
.prose p + p { margin-top: 1.1em; }
.prose h2, .prose h3 { margin: 1.8em 0 0.6em; color: var(--paper); }
.prose a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(53, 230, 210, 0.4); }
.prose a:hover { border-bottom-color: var(--cyan); }

/* ---------- 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: var(--pill);
  background: var(--cyan);
  color: #06121A;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 页面容器 ---------- */
.wrap {
  width: min(var(--page-max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { padding-block: var(--flow); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(18px, 2.4vw, 32px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(53, 230, 210, 0.5), rgba(255, 61, 139, 0.35), transparent);
  opacity: 0.7;
}
.site-header.is-compact {
  background: rgba(7, 9, 14, 0.97);
  box-shadow: 0 14px 34px -26px #000;
}

.header-shell {
  width: min(var(--page-max), 100% - 2 * var(--gutter));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  padding-block: 9px;
  transition: min-height 0.3s var(--ease);
}
.site-header.is-compact .header-shell { min-height: calc(var(--header-h) - 16px); }

/* 品牌 */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}
.brand-glyph {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  color: #0B0710;
  background: linear-gradient(135deg, var(--magenta), var(--violet) 68%, var(--cyan));
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  transition: transform 0.3s var(--ease);
}
.brand-mark:hover .brand-glyph { transform: translateY(-2px); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  gap: 2px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--paper);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--mist);
  transition: opacity 0.25s var(--ease);
}
.site-header.is-compact .brand-sub { display: none; }
.brand-mark--footer .brand-glyph { width: 30px; height: 30px; flex-basis: 30px; font-size: 14px; }
.brand-mark--footer .brand-name { font-size: 15px; }

/* 赛季阶段灯 */
.phase-lamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  margin-right: auto;
  padding: 5px 12px 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(18, 22, 31, 0.72);
}
.phase-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: phasePulse 2.8s var(--ease) infinite;
}
@keyframes phasePulse {
  0%   { box-shadow: 0 0 0 0 rgba(53, 230, 210, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(53, 230, 210, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 230, 210, 0); }
}
.phase-list {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.phase-item {
  padding: 3px 8px;
  border-radius: var(--pill);
  color: var(--mist);
  white-space: nowrap;
}
.phase-item.is-current {
  color: #06121A;
  background: var(--cyan);
  font-weight: 700;
}

/* 头部 CTA */
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: var(--pill);
  background: linear-gradient(100deg, var(--magenta), var(--violet));
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 28px -16px var(--magenta);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cta-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -16px var(--magenta);
}
.cta-pill::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.85;
}

/* 导航 */
.nav-rail { flex: 0 0 auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.8vw, 10px);
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 6px 11px;
  color: var(--mist);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--paper); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 3px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s var(--ease), background 0.2s;
}
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--paper); }
.nav-link[aria-current="page"]::after {
  height: 2px;
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--cyan), var(--lime));
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.nav-link[aria-current="page"] .nav-index { opacity: 1; }
.site-header.is-compact .nav-index { display: none; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 22, 31, 0.8);
  color: var(--paper);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle:hover { border-color: rgba(53, 230, 210, 0.55); }
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.site-header[data-open="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #080A10 0%, #06080C 60%, #05070A 100%);
  border-top: 1px solid var(--line);
  color: var(--mist);
}

.footer-inner {
  width: min(var(--page-max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.footer-band { padding-block: clamp(28px, 3.6vw, 52px); }
.footer-band + .footer-band { border-top: 1px solid var(--line-soft); }

/* 第一带：赛季索引 */
.footer-season-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: clamp(14px, 2vw, 22px);
}
.footer-season-note { font-size: 13px; color: var(--mist); }

.season-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.season-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px 18px;
  background: var(--panel-deep);
  transition: background 0.25s var(--ease);
}
.season-step:hover { background: #0D1119; }
.season-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--mist);
}
.season-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.season-tag { font-size: 12.5px; color: var(--mist); }
.season-step.is-current { background: linear-gradient(160deg, rgba(53, 230, 210, 0.15), rgba(10, 13, 20, 0.95)); }
.season-step.is-current::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--cyan);
}
.season-step.is-current .season-num { color: var(--cyan); }
.season-step.is-current .season-name { color: var(--paper); }

/* 第二带：导航与法律 */
.footer-nav-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.footer-col { min-width: 0; }
.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--mist);
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links a {
  display: inline-block;
  width: fit-content;
  color: var(--paper);
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(53, 230, 210, 0.6);
}
.footer-tagline {
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist);
}

/* 第三带：联系与备案 */
.footer-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  align-items: start;
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
}
.contact-item dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--mist);
  margin-bottom: 6px;
}
.contact-item dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
}
.contact-item dd.is-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
  white-space: nowrap;
  padding-top: 24px;
}

/* 版权细行 */
.footer-base {
  border-top: 1px solid var(--line-soft);
  padding-block: 16px;
}
.footer-base-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12px;
  color: var(--mist);
}
.footer-copy { font-family: var(--font-mono); letter-spacing: 0.08em; }
.footer-note { opacity: 0.78; }

/* ==========================================================================
   通用组件
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease), border-color 0.22s, background 0.22s, color 0.22s, box-shadow 0.22s;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 230, 210, 0.6);
  color: var(--cyan);
}
.btn--primary {
  background: linear-gradient(100deg, var(--magenta), var(--violet));
  border-color: transparent;
  color: #FFFFFF;
}
.btn--primary:hover {
  color: #FFFFFF;
  box-shadow: 0 18px 36px -20px var(--magenta);
}
.btn--ghost {
  background: rgba(53, 230, 210, 0.08);
  border-color: rgba(53, 230, 210, 0.42);
  color: var(--cyan);
}
.btn--lime {
  background: var(--lime);
  border-color: transparent;
  color: #0A1206;
  font-weight: 700;
}
.btn--lime:hover { color: #0A1206; box-shadow: 0 18px 36px -22px var(--lime); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.bento > * { min-width: 0; }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 28px);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 230, 210, 0.35);
}
.card--paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-color: rgba(42, 33, 28, 0.12);
  box-shadow: 0 24px 44px -34px rgba(0, 0, 0, 0.85);
}
.card--paper .card-title { color: var(--paper-ink); }
.card--paper .card-meta { color: rgba(42, 33, 28, 0.66); }
.card--accent { border-color: rgba(255, 61, 139, 0.42); }
.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.32;
  letter-spacing: 0.005em;
  color: var(--paper);
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--mist);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: rgba(168, 176, 191, 0.42);
}
.breadcrumb a { color: var(--mist); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* 图片容器基类 */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: radial-gradient(120% 90% at 20% 0%, #151A26 0%, #0A0D14 72%);
}
.media-frame > img,
.media-frame > video,
.media-frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 44%, rgba(7, 9, 14, 0.74) 100%);
  opacity: 0.9;
}
.media-frame--hero { aspect-ratio: 16 / 10; }
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--band { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--accent {
  border-color: rgba(53, 230, 210, 0.34);
  box-shadow: 0 28px 64px -42px rgba(53, 230, 210, 0.7);
}
.media-frame figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(242, 232, 213, 0.84);
}
.media-ph {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(168, 176, 191, 0.6);
  text-align: center;
}

/* 斜切转场（全站唯一角度 −7deg） */
.slant-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 42px), 0 100%); }
.slant-top { clip-path: polygon(0 42px, 100% 0, 100% 100%, 0 100%); }

/* 显现动画 */
[data-reveal] {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* 顶部滚动进度 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--lime) 46%, var(--magenta));
  pointer-events: none;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 32px);
  bottom: clamp(14px, 2.4vw, 32px);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(18, 22, 31, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.2s, border-color 0.2s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--panel);
  border-color: rgba(53, 230, 210, 0.6);
}
.to-top-icon {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--cyan);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  :root { --header-h: 70px; }
  .phase-list .phase-item:not(.is-current) { display: none; }
  .nav-index { display: none; }
  .nav-link { font-size: 13px; padding-inline: 5px; }
  .footer-nav-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
}

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

  .header-shell { gap: 10px; }

  .phase-lamp {
    padding: 6px;
    gap: 0;
  }
  .phase-list { display: none; }

  .cta-pill {
    padding: 8px 14px;
    font-size: 12px;
    letter-spacing: 0.06em;
    margin-left: auto;
  }
  .cta-pill::after { display: none; }

  .nav-toggle { display: inline-flex; }

  .nav-rail {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 14, 0.985);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 50px -34px #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .site-header[data-open="true"] .nav-rail {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line-soft); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 4px;
    font-size: 18px;
    color: var(--paper);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--cyan); }
  .nav-index { display: inline-block; font-size: 10.5px; opacity: 0.7; }
  .nav-label { order: -1; }

  body.nav-open { overflow: hidden; }

  .footer-nav-grid { grid-template-columns: 1fr 1fr; gap: 26px 22px; }
  .footer-col--brand { grid-column: 1 / -1; order: -1; }
  .footer-contact-grid { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; gap: 16px; }
  .footer-icp { padding-top: 0; }
  .season-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .to-top { padding: 9px 14px; font-size: 11px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-sub { display: none; }
  h1, .display-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .season-track { grid-template-columns: 1fr; }
  .season-step.is-current::before { width: 100%; height: 2px; bottom: auto; }
  .footer-base-row { flex-direction: column; align-items: flex-start; }
  .to-top { right: 12px; bottom: 12px; }
  .to-top-text { display: none; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */
@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;
  }
  .phase-dot { box-shadow: 0 0 0 3px rgba(53, 230, 210, 0.22); }
  .js [data-reveal] { opacity: 1; transform: none; }
  .to-top { transform: none; }
}
