/* ==========================================================================
   吉祥访体育 — /assets/site.css
   记分牌 × 档案夹：深草皮绿轨道、哨声黄高光、等宽比分数字
   ========================================================================== */

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

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

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

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

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

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

a { color: var(--pitch); text-underline-offset: 3px; }

[hidden] { display: none !important; }

/* 2. Tokens
   ========================================================================== */
:root {
  --pitch-deep: #0A2E23;
  --pitch: #157A4C;
  --pitch-tint: #E6F5EC;
  --whistle: #FFD23F;
  --card-yellow: #F5B21A;
  --card-red: #E0453B;
  --paper: #F7F7F2;
  --ink: #1B1F1C;
  --ink-soft: #4A5A52;
  --rule: #C9D3CC;
  --white: #FFFFFF;

  --team-color: var(--whistle);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --rail-w: 96px;
  --shell: 1200px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow-card: 0 18px 40px -30px rgba(10, 46, 35, 0.55);
  --shadow-pop: 0 26px 52px -26px rgba(10, 46, 35, 0.62);
}

html[data-team="jianghuai"] { --team-color: #4ADE80; }
html[data-team="binhu"] { --team-color: #FFD23F; }
html[data-team="shushan"] { --team-color: #FF7A6B; }

/* 3. Typography
   ========================================================================== */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 92%;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(27px, 3.6vw, 48px); }
h3 { font-size: clamp(22px, 2.4vw, 34px); }
h4 { font-size: clamp(19px, 1.8vw, 26px); }
h5 { font-size: 20px; }
h6 { font-size: 17px; }

p {
  margin-bottom: 1.05em;
  max-width: 42em;
}

p:last-child { margin-bottom: 0; }

strong { font-weight: 800; }

.num,
code,
kbd {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

code {
  font-size: 0.92em;
  background: var(--pitch-tint);
  color: var(--pitch-deep);
  padding: 2px 7px;
  border-radius: 6px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--pitch);
  outline-offset: 3px;
  border-radius: 8px;
}

.visually-hidden {
  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;
}

/* 4. Layout utilities
   ========================================================================== */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.section { padding-block: clamp(46px, 7vw, 88px); }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }

.stack > * + * { margin-top: clamp(14px, 1.6vw, 22px); }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.section-head {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-head__num {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--pitch);
}

.section-head__num::before {
  content: "";
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--pitch);
  flex: none;
}

.section-head__title { margin-bottom: 0; }

/* 5. Buttons / pills / tags / cards
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease, color 0.16s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--whistle {
  background: var(--whistle);
  color: #0E1116;
  box-shadow: 0 12px 26px -16px rgba(255, 210, 63, 0.95);
}

.btn--whistle:hover { box-shadow: 0 16px 30px -14px rgba(255, 210, 63, 0.95); }

.btn--pitch {
  background: var(--pitch);
  color: #FFFFFF;
}

.btn--ghost {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink);
}

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

.btn--dark {
  background: #0E1116;
  color: #FFFFFF;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--pitch-tint);
  border: 1px solid #CFE9DA;
  color: var(--pitch-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.pill--filter {
  cursor: pointer;
  background: var(--white);
  border-color: var(--rule);
  color: var(--pitch-deep);
  font-family: var(--font-body);
  transition: background-color 0.16s ease, border-color 0.16s ease,
    color 0.16s ease;
}

.pill--filter:hover { border-color: var(--pitch); color: var(--pitch); }

.pill--filter[aria-pressed="true"] {
  background: var(--whistle);
  border-color: var(--whistle);
  color: #0E1116;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.tag--yellow { background: var(--card-yellow); color: #0E1116; }
.tag--red { background: var(--card-red); color: #FFFFFF; }
.tag--green { background: var(--pitch); color: #FFFFFF; }

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow-card);
}

.band {
  background: var(--pitch-tint);
  border: 1px solid #CFE9DA;
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 34px);
}

.band--dark {
  background: #0E1116;
  border-color: #0E1116;
  color: #F7F7F2;
}

.band--dark h2,
.band--dark h3 { color: #FFFFFF; }

/* 6. Table
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 15px;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}

.table-wrap thead th {
  background: var(--pitch-tint);
  color: var(--pitch-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.table-wrap tbody tr:nth-child(even) { background: #F2F8F4; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

/* 7. Media containers
   ========================================================================== */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(148deg, var(--pitch-deep) 0%, var(--pitch) 100%);
  isolation: isolate;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(21, 122, 76, 0.22) 0%,
    rgba(10, 46, 35, 0.46) 100%);
  pointer-events: none;
}

.media__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  margin: 0;
  max-width: 90%;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #F7F7F2;
  text-shadow: 0 1px 12px rgba(10, 46, 35, 0.8);
}

/* 8. Prose & breadcrumb
   ========================================================================== */
.prose {
  max-width: 42em;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
}

.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3 { margin-top: 1.8em; margin-bottom: 0.55em; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose a { font-weight: 700; }

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.crumb a {
  color: var(--pitch);
  text-decoration: none;
}

.crumb a:hover { text-decoration: underline; }

.crumb__sep {
  color: var(--rule);
  font-family: var(--font-mono);
}

/* 9. Header — skip link, rail, topbar, team switch
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--whistle);
  color: #0E1116;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid #0E1116;
  outline-offset: 2px;
}

.site-header {
  position: relative;
  z-index: 60;
}

/* --- 移动端抽屉 --- */
.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 72;
  background: rgba(10, 46, 35, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.site-header[data-open="true"] .rail-scrim {
  opacity: 1;
  pointer-events: auto;
}

.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 75;
  width: min(304px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 76px 16px 22px;
  background: var(--pitch-deep);
  color: var(--paper);
  border-inline-end: 1px solid #1D4A39;
  transform: translateX(-104%);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-header[data-open="true"] .rail { transform: none; }

.rail__brand {
  display: none;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  text-decoration: none;
  color: inherit;
}

.rail__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--whistle);
  color: var(--pitch-deep);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.rail__brand-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-align: center;
}

.rail__note {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(247, 247, 242, 0.6);
  line-height: 1.5;
}

.rail__nav { width: 100%; }

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  color: rgba(247, 247, 242, 0.82);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.rail__link:hover {
  background: rgba(255, 210, 63, 0.14);
  color: #FFFFFF;
}

.rail__link[aria-current="page"] {
  background: var(--whistle);
  color: var(--pitch-deep);
  box-shadow: 0 8px 20px -12px rgba(255, 210, 63, 0.9);
}

.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 4px;
}

.rail__cta {
  width: 100%;
  padding: 12px 10px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  text-align: center;
  line-height: 1.25;
}

/* --- 球队切换 --- */
.team-switch {
  position: relative;
  width: 100%;
}

.team-switch__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 210, 63, 0.34);
  background: rgba(255, 255, 255, 0.07);
  color: var(--paper);
  cursor: pointer;
  text-align: left;
  line-height: 1.25;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.team-switch__btn:hover {
  background: rgba(255, 210, 63, 0.12);
  border-color: rgba(255, 210, 63, 0.6);
}

.team-switch__btn:focus-visible { outline-color: var(--whistle); }

.team-switch__dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--team-color);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.team-switch__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.team-switch__kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(247, 247, 242, 0.55);
  white-space: nowrap;
}

.team-switch__name {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-switch__panel {
  position: absolute;
  z-index: 130;
  top: calc(100% + 8px);
  left: 0;
  width: min(272px, calc(100vw - 36px));
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-pop);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.team-switch[data-open="true"] .team-switch__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.team-switch__hint {
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: none;
}

.team-switch__list {
  display: grid;
  gap: 4px;
}

.team-switch__opt {
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.team-switch__opt:hover { background: var(--pitch-tint); }

.team-switch__opt.is-active {
  background: var(--whistle);
  color: #0E1116;
}

/* --- 移动端顶栏 --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 14px;
  background: var(--pitch-deep);
  color: var(--paper);
  border-bottom: 1px solid rgba(255, 210, 63, 0.22);
}

.topbar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  cursor: pointer;
}

.topbar__toggle:focus-visible { outline-color: var(--whistle); }

.topbar__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.topbar__bars > span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--whistle);
}

.site-header[data-open="true"] .topbar__bars > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header[data-open="true"] .topbar__bars > span:nth-child(2) {
  opacity: 0;
}
.site-header[data-open="true"] .topbar__bars > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.topbar__bars > span { transition: transform 0.2s ease, opacity 0.2s ease; }

.topbar__brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
}

.team-switch--compact {
  width: auto;
  margin-inline-start: auto;
}

.team-switch--compact .team-switch__btn {
  width: auto;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
}

.team-switch--compact .team-switch__kicker { display: none; }
.team-switch--compact .team-switch__name { font-size: 12.5px; }
.team-switch--compact .team-switch__panel { left: auto; right: 0; }

/* 10. Footer
   ========================================================================== */
.site-footer {
  margin-top: clamp(46px, 8vw, 96px);
  padding-block: clamp(28px, 4vw, 44px) 22px;
  background: var(--pitch-deep);
  color: rgba(247, 247, 242, 0.82);
  border-top: 3px solid var(--whistle);
}

.footer__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.footer__status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}

.footer__status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(247, 247, 242, 0.88);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
}

.dot--whistle { background: var(--whistle); }
.dot--pitch { background: #4ADE80; }
.dot--yellow { background: var(--card-yellow); }

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.footer__mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--whistle);
  color: var(--pitch-deep);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.footer__name {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  line-height: 1.25;
}

.footer__summary {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(247, 247, 242, 0.72);
  max-width: 32em;
}

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--whistle);
  line-height: 1.4;
}

.footer__links {
  display: grid;
  gap: 9px;
  font-size: 15px;
}

.footer__links--contact { font-size: 14px; }

.footer__links a {
  color: rgba(247, 247, 242, 0.86);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer__links a:hover {
  color: var(--whistle);
  border-bottom-color: var(--whistle);
}

.footer__links a:focus-visible { outline-color: var(--whistle); }

.footer__addr {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(247, 247, 242, 0.64);
  max-width: 26em;
}

.footer__note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(247, 247, 242, 0.5);
  max-width: 30em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.footer__copy {
  margin: 0;
  max-width: none;
  color: rgba(247, 247, 242, 0.7);
  font-weight: 600;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__legal a {
  color: rgba(247, 247, 242, 0.72);
  font-weight: 600;
  text-decoration: none;
}

.footer__legal a:hover { color: var(--whistle); }
.footer__legal a:focus-visible { outline-color: var(--whistle); }

.footer__icp {
  margin: 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(247, 247, 242, 0.56);
}

/* 11. Reveal
   ========================================================================== */
[data-reveal].reveal-init {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].reveal-init.is-visible {
  opacity: 1;
  transform: none;
}

[data-team-item][hidden] { display: none !important; }

#main-content:focus { outline: none; }

/* 12. Responsive — 平板
   ========================================================================== */
@media (min-width: 720px) {
  .footer__top { grid-template-columns: 1.15fr 0.85fr 1.2fr; }
  .footer__bottom { flex-wrap: nowrap; }
}

@media (min-width: 860px) {
  .rail { width: min(320px, 62vw); }
}

/* 13. Responsive — 桌面：左轨道
   ========================================================================== */
@media (min-width: 1024px) {
  body { padding-inline-start: var(--rail-w); }

  .rail-scrim { display: none; }

  .rail {
    top: 0;
    bottom: 0;
    width: var(--rail-w);
    gap: 12px;
    padding: 16px 8px 16px;
    transform: none;
    transition: none;
    overflow: visible;
    box-shadow: none;
  }

  .rail__brand { display: flex; }
  .rail__note { display: none; }

  .rail__nav { flex: 1 1 auto; }

  .rail__list { gap: 6px; }

  .rail__link {
    justify-content: center;
    min-height: 52px;
    padding: 6px 4px;
    border-radius: 16px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    line-height: 1.25;
  }

  .rail__foot { gap: 10px; }

  .team-switch__btn {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px;
    text-align: center;
  }

  .team-switch__text { align-items: center; }
  .team-switch__kicker { font-size: 9.5px; letter-spacing: 0.1em; }
  .team-switch__name { font-size: 12px; width: 100%; text-align: center; }

  .rail .team-switch__panel {
    position: fixed;
    top: auto;
    left: calc(var(--rail-w) + 14px);
    bottom: 96px;
    width: 252px;
  }

  .rail__cta {
    padding: 11px 4px;
    font-size: 12px;
  }

  .topbar { display: none; }

  .footer__top { gap: clamp(32px, 5vw, 64px); }
}

/* 14. Reduced motion
   ========================================================================== */
@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;
  }

  .btn:hover { transform: none; }

  [data-reveal].reveal-init,
  [data-reveal].reveal-init.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  .rail { transition: none; }
}
