/* ==========================================================================
   米乐赛场 · 共享外壳样式 /assets/site.css
   高原夜空深靛蓝 + 经幡五色状态系统 + 悬浮胶囊浮岛
   ========================================================================== */

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

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

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

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

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

a { color: inherit; }

button { font: inherit; }

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 底色与结构色 */
  --ink-950: #070B1E;
  --ink-900: #0C1230;
  --ink-800: #131A3F;
  --indigo-600: #243B8F;
  --cyan-300: #5FF2E4;
  --mist-050: #F4F7FF;
  --mist-400: #8C9BC4;

  /* 经幡状态色 */
  --flag-blue: #3D7BFF;
  --flag-white: #E9EEF8;
  --flag-red: #FF4D5E;
  --flag-green: #3DDC97;
  --flag-yellow: #FFD166;

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

  /* 尺寸与节奏 */
  --shell: 1320px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;
  --line: rgba(140, 155, 196, 0.22);
  --line-strong: rgba(140, 155, 196, 0.40);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-panel: 0 30px 70px -50px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(244, 247, 255, 0.05);
}

/* ---------- 3. 页面底层 ---------- */
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--mist-050);
  background-color: var(--ink-950);
  background-image:
    radial-gradient(1100px 640px at 84% -10%, rgba(36, 59, 143, 0.62), transparent 62%),
    radial-gradient(760px 520px at 2% 6%, rgba(61, 123, 255, 0.16), transparent 64%),
    linear-gradient(180deg, #070B1E 0%, #0A102A 48%, #070B1E 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(140, 155, 196, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 155, 196, 0.075) 1px, transparent 1px);
  background-size: 104px 104px;
  -webkit-mask-image: radial-gradient(125% 92% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.35) 62%, transparent 100%);
  mask-image: radial-gradient(125% 92% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.35) 62%, transparent 100%);
}

body > * { position: relative; z-index: 1; }

#main-content { scroll-margin-top: 104px; }

/* ---------- 4. 通用容器与排版 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.sr-only {
  position: absolute;
  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: fixed;
  top: 12px;
  left: 50%;
  z-index: 200;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--cyan-300);
  color: #04121A;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transform: translate(-50%, -180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-300);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 36em;
  font-size: clamp(15px, 1.1vw, 17.5px);
  line-height: 1.85;
  color: var(--mist-400);
}

.data-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.prose {
  max-width: 36em;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.85;
  color: rgba(244, 247, 255, 0.86);
}

.prose p + p { margin-top: 1.1em; }

.prose h3 {
  margin: 1.9em 0 0.6em;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--mist-050);
}

.prose ul {
  margin: 0.8em 0 0;
  padding-left: 1.1em;
  list-style: disc;
}

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

.prose a {
  color: var(--cyan-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 242, 228, 0.4);
}

.divider {
  height: 0;
  border: 0;
  margin: clamp(36px, 6vw, 72px) 0;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--line-strong), transparent 72%) 1;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-300), #A6FFF6 70%);
  color: #04121A;
  box-shadow: 0 16px 32px -20px rgba(95, 242, 228, 0.95);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px -20px rgba(95, 242, 228, 1);
}

.btn-ghost {
  background: rgba(19, 26, 63, 0.62);
  border-color: var(--line-strong);
  color: var(--mist-050);
}

.btn-ghost:hover {
  background: rgba(36, 59, 143, 0.66);
  border-color: rgba(95, 242, 228, 0.5);
}

/* ---------- 6. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag-cyan { background: rgba(95, 242, 228, 0.12); border-color: rgba(95, 242, 228, 0.45); color: var(--cyan-300); }
.tag-blue { background: rgba(61, 123, 255, 0.14); border-color: rgba(61, 123, 255, 0.48); color: #8FB4FF; }
.tag-green { background: rgba(61, 220, 151, 0.12); border-color: rgba(61, 220, 151, 0.44); color: var(--flag-green); }
.tag-yellow { background: rgba(255, 209, 102, 0.12); border-color: rgba(255, 209, 102, 0.44); color: var(--flag-yellow); }
.tag-red { background: rgba(255, 77, 94, 0.12); border-color: rgba(255, 77, 94, 0.44); color: #FF8E99; }
.tag-white { background: rgba(233, 238, 248, 0.10); border-color: rgba(233, 238, 248, 0.38); color: var(--flag-white); }

/* ---------- 7. 页头：悬浮胶囊浮岛 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 12px 0;
  background: linear-gradient(180deg, rgba(7, 11, 30, 0.94), rgba(7, 11, 30, 0.62) 76%, rgba(7, 11, 30, 0));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: #04121A;
  background: linear-gradient(150deg, var(--cyan-300), #9EF7FF 46%, var(--flag-blue));
  box-shadow: 0 12px 28px -14px rgba(95, 242, 228, 0.9);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--mist-050);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mist-400);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 10px 16px 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(19, 26, 63, 0.78);
  color: var(--mist-050);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover { background: rgba(36, 59, 143, 0.7); }

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* 栏目胶囊 */
.nav-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 26, 63, 0.62);
  box-shadow: 0 22px 46px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(244, 247, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mist-400);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--mist-050);
  background: rgba(36, 59, 143, 0.55);
}

.nav-link[aria-current="page"] {
  color: #04121A;
  background: linear-gradient(135deg, var(--cyan-300), #A6FFF6 72%);
  box-shadow: 0 10px 24px -14px rgba(95, 242, 228, 0.95);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

/* 联赛浮岛 */
.league-switch { position: relative; }

.league-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(61, 123, 255, 0.45);
  border-radius: 999px;
  background: rgba(61, 123, 255, 0.14);
  color: var(--mist-050);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.league-btn:hover { background: rgba(61, 123, 255, 0.26); }

.league-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flag-green);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.2);
}

.league-round {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(244, 247, 255, 0.72);
}

.league-caret {
  font-size: 10px;
  color: var(--mist-400);
}

.league-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  min-width: 168px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(12, 18, 48, 0.98);
  box-shadow: 0 32px 62px -32px rgba(0, 0, 0, 0.98);
}

.league-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--mist-400);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.league-opt:hover {
  background: rgba(36, 59, 143, 0.6);
  color: var(--mist-050);
}

.league-opt[aria-pressed="true"] {
  background: rgba(95, 242, 228, 0.1);
  color: var(--cyan-300);
}

/* 球队检索浮岛 */
.team-search {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 4px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 11, 30, 0.72);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.team-search:focus-within {
  border-color: rgba(95, 242, 228, 0.6);
  box-shadow: 0 0 0 3px rgba(95, 242, 228, 0.14);
}

.team-input {
  width: 128px;
  padding: 8px 6px 8px 0;
  border: 0;
  background: transparent;
  color: var(--mist-050);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
}

.team-input::placeholder { color: rgba(140, 155, 196, 0.85); }

.team-input::-webkit-search-cancel-button,
.team-input::-webkit-search-decoration { display: none; }

.team-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: 300px;
  max-width: calc(100vw - 36px);
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(12, 18, 48, 0.98);
  box-shadow: 0 32px 62px -32px rgba(0, 0, 0, 0.98);
}

.team-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--mist-050);
  text-decoration: none;
  transition: background 0.16s var(--ease);
}

.team-result:hover,
.team-result:focus-visible { background: rgba(36, 59, 143, 0.58); }

.team-result-name {
  font-size: 13.5px;
  font-weight: 700;
}

.team-result-name mark {
  background: transparent;
  color: var(--cyan-300);
  font-weight: 800;
}

.team-result-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--mist-400);
}

.team-empty {
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist-400);
}

.header-cta { margin-left: 4px; }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 10vw, 124px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 18, 48, 0.58), rgba(7, 11, 30, 0.98) 42%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -340px;
  right: -180px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(36, 59, 143, 0.7), transparent 68%);
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan-300), rgba(61, 123, 255, 0.5) 42%, rgba(255, 209, 102, 0.5) 78%, transparent);
}

.footer-shell {
  padding-top: clamp(40px, 6vw, 76px);
  padding-bottom: 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: start;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--mist-050);
  text-decoration: none;
}

.footer-logo::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan-300), transparent);
}

.footer-summary {
  max-width: 34ch;
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist-400);
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-groups {
  display: flex;
  gap: clamp(26px, 4vw, 56px);
}

.footer-group { min-width: 0; }

.footer-group-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist-400);
}

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

.footer-links a {
  font-size: 14.5px;
  color: var(--mist-050);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-links a:hover { color: var(--cyan-300); }

.footer-contact-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 13px;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist-400);
}

.footer-contact-value {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--mist-050);
  word-break: break-word;
}

.footer-contact-note {
  margin-bottom: 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist-400);
}

.footer-cta { font-size: 13px; padding: 9px 16px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--mist-400);
}

.footer-copy { margin: 0; }

.footer-note { margin: 0; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.footer-legal-links a {
  color: var(--mist-400);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-legal-links a:hover { color: var(--cyan-300); }

/* ---------- 9. 滚动进度条（JS 注入） ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  height: 2px;
  pointer-events: none;
}

.scroll-progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan-300), var(--flag-blue) 58%, var(--flag-yellow));
}

/* ---------- 10. 通用内容组件 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--mist-400);
}

.breadcrumb a {
  color: var(--mist-400);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.breadcrumb a:hover { color: var(--cyan-300); }

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
}

.breadcrumb li { display: inline-flex; align-items: center; }

.plate {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(158deg, rgba(19, 26, 63, 0.92), rgba(7, 11, 30, 0.88));
  box-shadow: var(--shadow-panel);
}

.plate-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist-400);
}

.plate-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--cyan-300);
}

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

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: clamp(18px, 2.4vw, 26px);
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(95, 242, 228, 0.16), transparent 58%),
    linear-gradient(150deg, rgba(36, 59, 143, 0.72), rgba(7, 11, 30, 0.94));
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame[data-ratio="4/5"] { aspect-ratio: 4 / 5; }
.media-frame[data-ratio="1/1"] { aspect-ratio: 1 / 1; }
.media-frame[data-ratio="21/9"] { aspect-ratio: 21 / 9; }

.media-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid rgba(95, 242, 228, 0.45);
  border-radius: 999px;
  background: rgba(7, 11, 30, 0.82);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--cyan-300);
}

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist-400);
}

.page-shell { padding-top: clamp(26px, 5vw, 64px); }

/* ---------- 11. 响应式：页头抽屉 ---------- */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }

  .header-cta { display: none; }

  .nav-dock {
    position: absolute;
    top: calc(100% + 12px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-left: 0;
    padding: 14px;
    border-radius: 26px;
    background: rgba(10, 15, 40, 0.985);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.98);
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s var(--ease);
  }

  .nav-dock[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  .nav-link {
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 15px;
  }

  .nav-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .league-switch { width: 100%; }

  .league-btn {
    width: 100%;
    justify-content: space-between;
    padding: 11px 14px;
  }

  .league-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
  }

  .team-search {
    width: 100%;
    padding: 0 6px 0 14px;
  }

  .team-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 11px 4px 11px 0;
    font-size: 14px;
  }

  .team-results {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 8px;
  }
}

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

@media (max-width: 860px) {
  .grid-2,
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 16px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-groups { flex-direction: column; gap: 26px; }
  .footer-legal-links { margin-left: 0; }
  .footer-bottom { font-size: 11px; }

  .display-title { font-size: clamp(34px, 10vw, 52px); }
}

/* ---------- 12. 减少动态偏好 ---------- */
@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;
  }
}
