/* ==========================================================================
   必一体育入口 · 共享样式 /assets/site.css
   赛季时间轴 · 编辑部目录 · 玻璃层与实色层并置
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  --green: #0F3D2E;
  --night: #0B1F3A;
  --paper: #F4EFE3;
  --paper-white: #FCFAF4;
  --glass: rgba(255, 255, 255, 0.12);
  --orange: #FF6A2B;
  --indigo: #2B5FD9;
  --grass: #4FA37A;
  --ink: #14110D;
  --alert: #E0523A;

  --ink-62: rgba(20, 17, 13, 0.62);
  --ink-40: rgba(20, 17, 13, 0.4);
  --ink-line: rgba(20, 17, 13, 0.14);
  --paper-72: rgba(244, 239, 227, 0.72);
  --paper-40: rgba(244, 239, 227, 0.4);
  --paper-line: rgba(252, 250, 244, 0.2);

  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  --rail: 88px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1440px;
  --radius: 2px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#main-content { display: block; scroll-margin-top: 128px; }

.section-heading {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.06em;
  padding-left: 16px;
  border-left: 4px solid var(--orange);
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink-62);
  text-transform: uppercase;
}
.note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-62);
  padding-left: 10px;
  border-left: 2px solid var(--ink-40);
}
.prose { max-width: 34em; }
.prose p + p { margin-top: 1.2em; }
.prose a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }

.data-figure {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum" 1;
}
.data-figure--lg { font-size: clamp(44px, 6vw, 96px); line-height: 1; font-weight: 700; }

/* ---------- 4. 无障碍 ---------- */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--green);
  color: var(--paper);
  padding: 10px 18px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 布局工具 ---------- */
.container {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.band { padding: clamp(40px, 7vw, 96px) 0; }
.band--white { background: var(--paper-white); }
.band--night { background: var(--night); color: var(--paper); }
.band--green { background: var(--green); color: var(--paper); }
.band--night .section-heading,
.band--green .section-heading { color: var(--paper); }
.band--night .note,
.band--green .note { color: var(--paper-72); border-color: var(--paper-40); }
.band--night .eyebrow,
.band--green .eyebrow { color: var(--paper-72); }

.page-shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn--signal { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--signal:hover { background: #E85A1C; border-color: #E85A1C; }
.btn--solid { background: var(--green); color: var(--paper); border-color: var(--green); }
.btn--solid:hover { background: #14503C; border-color: #14503C; }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper-40); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- 7. 面板与图形 ---------- */
.solid-panel {
  background: var(--paper-white);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 26px);
}
.glass-panel {
  background: var(--glass);
  border: 1px solid rgba(252, 250, 244, 0.22);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 26px);
  color: var(--paper);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.figure-frame {
  background: var(--paper-white);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.figure-frame__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--night) 0%, var(--green) 100%);
  overflow: hidden;
}
.figure-frame__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-frame__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(90deg, rgba(252, 250, 244, 0.1) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, rgba(252, 250, 244, 0.1) 0 1px, transparent 1px 52px);
  pointer-events: none;
}
.figure-frame__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--glass);
  pointer-events: none;
}
.figure-frame__caption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-62);
  border-top: 1px solid var(--ink-line);
}
.figure-frame--wide .figure-frame__media { aspect-ratio: 21 / 9; }
.figure-frame--tall .figure-frame__media { aspect-ratio: 4 / 5; }

/* ---------- 8. 赛季时间轴 ---------- */
.season-rail { position: relative; }
.season-rail::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--ink-line);
}
.season-rail__item { position: relative; margin-bottom: 22px; }
.season-rail__dot {
  position: absolute;
  left: 6px;
  top: 5px;
  width: 11px;
  height: 11px;
  background: #CFC9BB;
  border: 2px solid var(--paper);
  transition: background-color 0.22s ease;
}
.season-rail__item.is-active .season-rail__dot { background: var(--orange); }
.season-rail__link {
  display: block;
  padding-left: 30px;
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: var(--ink-62);
  text-decoration: none;
  transition: color 0.22s ease;
}
.season-rail__link:hover,
.season-rail__item.is-active .season-rail__link { color: var(--ink); }

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  background: var(--paper);
  border-bottom: 1px solid var(--ink-line);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: 10px 0;
  font-size: 13px;
  color: var(--ink-62);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--ink-40);
}
.breadcrumb__link { text-decoration: none; }
.breadcrumb__link:hover { color: var(--indigo); }
.breadcrumb__item[aria-current="page"] { color: var(--ink); }

/* ---------- 10. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-line);
}
.read-progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 6;
  background: rgba(20, 17, 13, 0.08);
}
.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
  transition: width 0.1s linear;
}

.masthead {
  position: relative;
  background: var(--paper);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding-block: clamp(12px, 2vw, 22px);
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.masthead__brand {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}
.masthead__name {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  transition: font-size 0.22s ease, letter-spacing 0.22s ease;
}
.masthead__tagline {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-62);
}
.masthead__tools {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}
.masthead__tool-link {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-62);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink-40);
}
.masthead__tool-link:hover { color: var(--indigo); border-color: var(--indigo); }

.site-header[data-stuck="true"] .masthead__inner { min-height: 56px; padding-block: 8px; }
.site-header[data-stuck="true"] .masthead__name { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: 0.1em; }
.site-header[data-stuck="true"] .masthead__tagline { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink);
  border: 1px solid var(--ink-40);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { background: var(--paper); border-bottom: 1px solid var(--ink-line); }
.site-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2.4vw, 38px);
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.site-nav__link {
  display: block;
  padding: 13px 2px 11px;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.site-nav__link:hover { color: var(--indigo); }
.site-nav__link[aria-current="page"] {
  color: var(--green);
  font-weight: 700;
  border-bottom-color: var(--orange);
}

.league-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 var(--gutter);
  background: var(--night);
  color: var(--paper);
}
.league-strip__label {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--paper-40);
  white-space: nowrap;
}
.league-strip__track {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  transition: padding 0.2s ease;
}
.league-strip__track::-webkit-scrollbar { display: none; }
.league-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(252, 250, 244, 0.26);
  border-radius: var(--radius);
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.league-chip:hover { border-color: var(--paper); }
.league-chip[aria-pressed="true"] {
  background: var(--paper-white);
  color: var(--night);
  border-color: var(--paper-white);
  font-weight: 700;
}
.league-chip__dot {
  display: block;
  width: 7px;
  height: 7px;
  background: rgba(252, 250, 244, 0.35);
}
.league-chip[aria-pressed="true"] .league-chip__dot { background: var(--orange); }
.site-header[data-stuck="true"] .league-strip__track { padding: 7px 0; }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 120px);
  padding: clamp(40px, 6vw, 84px) 0 26px;
  background: var(--green);
  color: var(--paper);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--orange) 0 22%,
    var(--grass) 22% 46%,
    var(--indigo) 46% 70%,
    rgba(252, 250, 244, 0.28) 70% 100%
  );
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.6fr);
  gap: clamp(28px, 4vw, 72px);
}
.footer__brandname {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.footer__brandline {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--paper-72);
}
.footer__brand .btn { margin-top: 20px; }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.footer__title {
  padding-bottom: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--paper);
  border-bottom: 1px solid var(--paper-line);
}
.footer__list li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.footer__list a {
  color: var(--paper-72);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer__list a:hover { color: var(--orange); }
.footer__list--contact li { margin-bottom: 16px; }
.footer__contact {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--paper-72);
  word-break: break-all;
}
.footer__contact--addr {
  font-family: var(--sans);
  letter-spacing: 0.04em;
  word-break: normal;
}
.copy-btn {
  margin-top: 6px;
  padding: 3px 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--paper-72);
  background: none;
  border: 1px dashed var(--paper-40);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.copy-btn:hover { color: var(--paper); border-color: var(--orange); }
.copy-btn.is-copied {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
  border-style: solid;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--paper-line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper-40);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.footer__legal a {
  color: var(--paper-72);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-40);
}
.footer__legal a:hover { color: var(--orange); border-color: var(--orange); }
.footer__sep { color: rgba(244, 239, 227, 0.28); }
.footer__note { max-width: 54ch; }

/* ---------- 12. 显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 900px) {
  :root { --rail: 0px; }
  #main-content { scroll-margin-top: 96px; }

  .page-shell { grid-template-columns: minmax(0, 1fr); }
  .season-rail { display: none; }

  .col-3, .col-4, .col-6, .col-8 { grid-column: span 12; }

  .masthead__inner { min-height: 66px; }
  .masthead__brand { max-width: 62%; }
  .masthead__tools { display: none; }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .site-header[data-stuck="true"] .nav-toggle { top: 50%; }

  .site-nav {
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.28s ease, visibility 0.28s ease;
  }
  .site-header[data-open] .site-nav {
    max-height: min(72vh, 560px);
    visibility: visible;
    overflow-y: auto;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
  }
  .site-nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--ink-line);
  }
  .site-nav__link[aria-current="page"] {
    padding-left: 12px;
    border-bottom-color: var(--ink-line);
    box-shadow: inset 3px 0 0 var(--orange);
  }

  .league-strip { gap: 10px; }
  .league-strip__label { font-size: 11px; letter-spacing: 0.14em; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .section-heading { padding-left: 12px; border-left-width: 3px; }
  .prose { max-width: 100%; }
}

/* ---------- 14. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .read-progress__bar { transition: none !important; }
}
