/* ============================================================
   安博体育 · 联赛数据档案馆
   共享层样式 /assets/site.css
   夜场墨绿底 + 蓝图网格 + 战术板白排版 + 琥珀橙 / 电光蓝双强调
   ============================================================ */

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

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

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

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

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

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

button { background: none; border: 0; padding: 0; }

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

a { color: inherit; }

/* ---------- 变量 ---------- */
:root {
  /* 底色层 */
  --ink-950: #04100C;
  --ink-900: #07120E;
  --ink-800: #0E1F18;
  --ink-700: #1B3A2E;

  /* 文字与浅区 */
  --paper: #F2F5F1;
  --white: #FFFFFF;

  /* 强调 */
  --amber: #FFA51F;
  --amber-soft: rgba(255, 165, 31, 0.14);
  --amber-line: rgba(255, 165, 31, 0.42);
  --blue: #3AA0FF;
  --blue-soft: rgba(58, 160, 255, 0.14);
  --red: #E23E45;
  --red-soft: #FF8A8A;

  /* 结构与辅助 */
  --grid: #6F8F82;
  --moss: #A8C0B5;

  --line: rgba(111, 143, 130, 0.28);
  --line-soft: rgba(111, 143, 130, 0.14);

  /* 字体 */
  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", STSong, SimSun, Georgia, serif;
  --font-mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* 尺度 */
  --shell: 1360px;
  --gutter: clamp(16px, 3vw, 40px);
  --rail: 88px;
  --header-utility-h: 54px;
  --header-main-h: 60px;
}

/* ---------- 页面基底 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(to right, rgba(111, 143, 130, 0.085) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(111, 143, 130, 0.085) 1px, transparent 1px),
    linear-gradient(to right, rgba(111, 143, 130, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(111, 143, 130, 0.03) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 8px 8px, 8px 8px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--white);
  font-stretch: semi-condensed;
}

h1 {
  font-size: clamp(28px, 5vw, 64px);
  letter-spacing: -0.025em;
}

h2 { font-size: clamp(22px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: clamp(16px, 1.6vw, 18px); }

p { max-width: 68ch; }

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.8;
  color: var(--moss);
}

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.9em; }
.prose a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid var(--amber-line);
}
.prose a:hover { border-bottom-color: var(--amber); }
.prose ul { list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 20px;
}
.prose ul li + li { margin-top: 0.5em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--amber);
}

/* ---------- 焦点与可达性 ---------- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

[id] { scroll-margin-top: 132px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--amber);
  color: #1A0F00;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: none; }

/* ---------- 容器与区块 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 84px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 28px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(28px, 4vw, 56px);
  background: var(--line);
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ink-800);
  border: 1px solid var(--line);
}

.panel--glass {
  background: rgba(14, 31, 24, 0.58);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}

.panel--flat { background: transparent; }

/* ---------- 展签 ---------- */
.exhibit-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grid);
}

.exhibit-tag::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 1px;
  background: var(--amber);
}

.crossref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grid);
  text-decoration: none;
  align-self: flex-end;
  transition: color 0.2s ease;
}

.crossref:hover { color: var(--amber); }

/* ---------- 数据数字 ---------- */
.data-figure {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(40px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--white);
}

.data-figure--amber { color: var(--amber); }
.data-figure--blue { color: var(--blue); }
.data-figure--red { color: var(--red-soft); }

.data-figure__unit {
  margin-left: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.24em;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--grid);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #1A0F00;
}

.btn--amber:hover { background: #FFB84D; border-color: #FFB84D; }

.btn--blue {
  background: var(--blue);
  border-color: var(--blue);
  color: #04121F;
}

.btn--blue:hover { background: #5CB2FF; border-color: #5CB2FF; }

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

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

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grid);
}

.breadcrumb a {
  color: var(--moss);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.breadcrumb__sep { color: var(--grid); opacity: 0.6; }

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

/* ---------- 图片容器基础 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--ink-800);
  background-image: linear-gradient(140deg, rgba(111, 143, 130, 0.18), rgba(4, 16, 12, 0.72));
  border: 1px solid var(--line);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 64%, rgba(255, 165, 31, 0.14) 64%);
}

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(4, 16, 12, 0.92), transparent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--moss);
}

/* ---------- 联赛窄栏 ---------- */
.league-rail {
  position: sticky;
  top: calc(var(--header-main-h) + 20px);
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  background: var(--ink-800);
  border: 1px solid var(--line);
}

.league-rail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 4px;
  border: 1px solid transparent;
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.league-rail__item:hover {
  background: var(--ink-700);
  color: var(--paper);
}

.league-rail__item[aria-current="page"],
.league-rail__item.is-active {
  background: var(--amber-soft);
  border-color: var(--amber);
  color: var(--amber);
}

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.28s ease;
}

.site-header.is-condensed {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* 上层：品牌说明条 */
.header-utility {
  height: var(--header-utility-h);
  overflow: hidden;
  background: var(--ink-950);
  border-bottom: 1px solid var(--line-soft);
  transition: height 0.28s ease;
}

.header-utility__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  height: var(--header-utility-h);
  transition: height 0.28s ease;
}

.site-header.is-condensed .header-utility { height: 44px; }
.site-header.is-condensed .header-utility__inner { height: 44px; }
.site-header.is-condensed .ticker,
.site-header.is-condensed .chip--feedback { display: none; }

.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-lockup__mark {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
}

.brand-lockup__mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.44em;
  width: 8px;
  height: 8px;
  background: var(--amber);
  transform: rotate(45deg);
}

.brand-lockup__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--grid);
  text-transform: uppercase;
}

/* 归档进度滚动条 */
.ticker {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.ticker__tag {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid var(--amber-line);
  background: var(--amber-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.ticker__track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: ticker-scroll 42s linear infinite;
}

.ticker__item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--moss);
}

.ticker__item::before {
  content: "◆";
  margin-right: 9px;
  font-size: 8px;
  color: var(--grid);
  vertical-align: 2px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip--season {
  border-color: rgba(58, 160, 255, 0.45);
  color: var(--blue);
}

.chip--season:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.chip--feedback { color: var(--moss); }

.chip--feedback:hover {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: var(--amber);
}

/* 下层：主要栏目条 */
.header-mainbar {
  position: relative;
  background: rgba(7, 18, 14, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-mainbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-main-h);
}

.primary-nav { flex: 1 1 auto; }

.primary-nav__list {
  display: flex;
  align-items: stretch;
  gap: clamp(2px, 1.4vw, 24px);
}

.primary-nav__item { display: flex; }

.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--header-main-h);
  padding: 0 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s ease;
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.primary-nav__link:hover { color: var(--amber); }
.primary-nav__link:hover::after { transform: scaleX(1); }

.primary-nav__link[aria-current="page"] { color: var(--amber); }
.primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.mainbar-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--amber);
  border: 1px solid var(--amber);
  color: #1A0F00;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.mainbar-cta:hover {
  background: #FFB84D;
  box-shadow: 0 0 0 4px rgba(255, 165, 31, 0.16);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover { border-color: var(--amber); color: var(--amber); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s ease, top 0.24s ease, bottom 0.24s ease;
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  bottom: 4px;
  transform: rotate(-45deg);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 128px);
  background: var(--ink-950);
  border-top: 1px solid var(--line);
  color: var(--moss);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(120px, 22vw, 300px);
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--blue));
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(111, 143, 130, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(111, 143, 130, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

.footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-block: clamp(40px, 6vw, 76px) clamp(30px, 4vw, 48px);
}

.footer__brandname {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--white);
}

.footer__tagline {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--grid);
}

.footer__contact {
  margin-top: 18px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.9;
  color: var(--moss);
}

.footer__note {
  margin-top: 14px;
  max-width: 32ch;
  padding-left: 12px;
  border-left: 2px solid var(--amber-line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--grid);
}

.footer-col__title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-col__list {
  display: grid;
  gap: 9px;
}

.footer-col__link,
.footer-col__static {
  font-size: 14px;
  line-height: 1.6;
}

.footer-col__link {
  display: inline-block;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.footer-col__link:hover {
  color: var(--amber);
  padding-left: 6px;
}

.footer-col__static { color: var(--moss); }

.footer__legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 22px 30px;
  border-top: 1px solid var(--line-soft);
}

.footer__legal-line {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--grid);
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(4, 16, 12, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s ease,
              border-color 0.2s ease, color 0.2s ease;
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root {
    --header-utility-h: 48px;
    --header-main-h: 56px;
  }

  .header-utility { height: 48px; }
  .header-utility__inner { height: 48px; gap: 12px; }

  .brand-lockup__sub { display: none; }
  .ticker { display: none; }
  .header-tools .chip--feedback { display: none; }

  .site-header.is-condensed .header-utility { height: 44px; }
  .site-header.is-condensed .header-utility__inner { height: 44px; }

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: var(--ink-800);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .primary-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
  }

  .primary-nav__item {
    display: block;
    border-bottom: 1px solid var(--line-soft);
  }

  .primary-nav__item:last-child { border-bottom: 0; }

  .primary-nav__link {
    width: 100%;
    height: auto;
    padding: 15px clamp(16px, 5vw, 24px);
    font-size: 16px;
  }

  .primary-nav__link::after { display: none; }

  .primary-nav__link[aria-current="page"] {
    background: var(--amber-soft);
    box-shadow: inset 3px 0 0 var(--amber);
  }

  .mainbar-cta { display: none; }

  .league-rail {
    position: static;
    width: auto;
    flex-direction: row;
    overflow-x: auto;
    top: auto;
  }

  .league-rail__item { flex: 0 0 auto; }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

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

  .page-shell,
  .section { padding-block: clamp(28px, 7vw, 48px); }
}

/* ============================================================
   动效降级
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .ticker__track { animation: none; }

  .to-top { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
