/* =========================================================
   博业体育中心 · 共享站点样式表  /assets/site.css
   负责：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink-900: #071A15;
  --ink-800: #0E2A22;
  --ink-700: #14352C;
  --navy-900: #08182A;
  --navy-800: #12314F;
  --lime: #C6FF3D;
  --orange: #FF8A2B;
  --text: #E9F3ED;
  --muted: #93A9A2;
  --stroke: #2A4A41;
  --stroke-2: #3E5C6B;
  --alert: #FF5A3C;

  --shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.45);

  --font-head: "Archivo Narrow", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1440px;
  --gutter: clamp(16px, 3vw, 40px);
  --radius: 16px;
  --dur: 240ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  margin: 0;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 520px at 78% -8%, rgba(198, 255, 61, 0.07), transparent 62%),
    radial-gradient(900px 460px at 6% 12%, rgba(18, 49, 79, 0.55), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, canvas { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

/* ---------- 3. 中文与标题排版 ---------- */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-stretch: 88%;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.05em; }

p { margin: 0 0 1.05em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime); }

strong { color: #fff; font-weight: 700; }

::selection { background: var(--lime); color: var(--ink-900); }

/* ---------- 4. 无障碍 ---------- */
.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--ink-900);
  border-radius: 0 0 14px 14px;
  transition: top 180ms ease-out;
}
.skip-link:focus { top: 0; color: var(--ink-900); }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 6.5vw, 92px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: var(--stroke);
}

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out,
              background-color 160ms ease-out, color 160ms ease-out;
}

.btn-primary {
  background: var(--lime);
  color: var(--ink-900);
  border-color: var(--lime);
  box-shadow: 4px 4px 0 var(--orange);
}
.btn-primary:hover {
  background: var(--lime);
  color: var(--ink-900);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--orange);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--stroke);
}
.btn-ghost:hover {
  background: var(--ink-700);
  color: var(--text);
  transform: translate(-2px, -2px);
}

/* ---------- 7. 头部：悬浮胶囊导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-top: 12px;
}

.header-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  padding: 8px 10px 8px clamp(12px, 1.6vw, 20px);
  background: rgba(7, 26, 21, 0.88);
  border: 2px solid var(--stroke);
  border-radius: 999px;
  box-shadow: var(--shadow-soft), 6px 6px 0 rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color var(--dur) ease-out, padding var(--dur) ease-out,
              box-shadow var(--dur) ease-out;
}

.site-header.is-condensed .header-pill {
  background: rgba(7, 26, 21, 0.97);
  padding-block: 5px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 4px 4px 0 rgba(0, 0, 0, 0.4);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: var(--lime);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid var(--ink-900);
  border-radius: 11px;
  box-shadow: 3px 3px 0 var(--orange);
}

.brand-text { display: flex; flex-direction: column; gap: 1px; }

.brand-name {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: 0.05em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 8px 14px;
  background: var(--ink-700);
  color: var(--text);
  border: 2px solid var(--stroke);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--navy-800); color: var(--text); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 200ms ease-out;
}
.nav-toggle-bars::before { top: 1px; }
.nav-toggle-bars::after { bottom: 1px; }

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

/* 导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

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

.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 160ms ease-out, color 160ms ease-out,
              border-color 160ms ease-out;
}
.nav-list a:hover {
  background: var(--ink-700);
  border-color: var(--stroke);
  color: var(--text);
}
.nav-list a[aria-current="page"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-900);
}

/* 右侧工具区 */
.header-utility {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.season-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 12px;
  background: var(--ink-800);
  border: 2px solid var(--stroke);
  border-radius: 999px;
}

.season-picker-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.season-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 4px 18px 4px 2px;
  background: transparent;
  border: 0;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%),
                    linear-gradient(135deg, var(--lime) 50%, transparent 50%);
  background-position: right 7px center, right 2px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.season-select option {
  background: var(--ink-800);
  color: var(--text);
}

.header-search {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: transparent;
  border: 2px solid var(--stroke);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background-color 160ms ease-out, color 160ms ease-out,
              border-color 160ms ease-out;
}
.header-search:hover {
  background: var(--ink-700);
  border-color: var(--stroke-2);
  color: var(--text);
}

.header-cta { white-space: nowrap; }

/* 阅读进度条 */
.read-progress {
  position: relative;
  height: 2px;
  margin-top: 8px;
  background: rgba(42, 74, 65, 0.75);
  border-radius: 2px;
  overflow: hidden;
}

.read-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(198, 255, 61, 0.7);
  transition: width 120ms linear;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(42, 74, 65, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 74, 65, 0.26) 1px, transparent 1px);
  background-size: 48px 48px;
  border-top: 2px solid var(--stroke);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--lime) 0 18%,
    var(--orange) 18% 26%,
    rgba(18, 49, 79, 0.9) 26% 100%);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter) 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--stroke);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 620px;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  background: var(--lime);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  border: 2px solid var(--ink-900);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--orange);
}

.footer-brand-text { min-width: 0; }

.footer-title {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: 0.05em;
  line-height: 1.15;
  color: var(--text);
}

.footer-desc {
  margin: 0;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-note {
  margin: 0;
  max-width: 34ch;
  padding: 12px 16px;
  background: var(--navy-900);
  border: 2px solid var(--stroke-2);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 28px;
  padding: 34px 0;
}

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

.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-list {
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-list a {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease-out, border-color 160ms ease-out;
}
.footer-list a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-text {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 2px solid var(--stroke);
}

.footer-legal,
.footer-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  font-family: var(--font-mono);
  color: var(--stroke-2);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- 10. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--ink-800);
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.5);
}

.card--navy {
  background: var(--navy-900);
  border-color: var(--stroke-2);
}

.card--flat:hover {
  transform: none;
  box-shadow: var(--shadow);
}

/* ---------- 11. 数据与文字组件 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.lede {
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.85;
  color: var(--text);
}

.stat { display: block; }

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--ink-800);
  border: 2px solid var(--stroke);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.tag--lime { border-color: var(--lime); color: var(--lime); }
.tag--orange { border-color: var(--orange); color: var(--orange); }

/* ---------- 12. 媒体容器（供页面阶段放图 / SVG） ---------- */
.figure { margin: 0; }

.figure-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(198, 255, 61, 0.10), transparent 46%),
    linear-gradient(315deg, rgba(255, 138, 43, 0.13), transparent 52%),
    linear-gradient(rgba(62, 92, 107, 0.20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 92, 107, 0.20) 1px, transparent 1px),
    var(--navy-900);
  background-size: auto, auto, 40px 40px, 40px 40px, auto;
}

.figure-frame > img,
.figure-frame > svg,
.figure-frame > video,
.figure-frame > canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.figure-caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 13. 滚动显现 ---------- */
html.reveal-armed [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease-out, transform 520ms ease-out;
}
html.reveal-armed [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1240px) {
  .brand-tagline { display: none; }
  .header-search { display: none; }
  .season-picker-label { display: none; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    justify-content: flex-start;
    padding: 12px;
    background: var(--ink-800);
    border: 2px solid var(--stroke);
    border-radius: 20px;
    box-shadow: var(--shadow-soft), 8px 8px 0 rgba(0, 0, 0, 0.42);
    z-index: 90;
  }

  .site-nav[data-open] {
    display: block;
    animation: navDrop 240ms ease-out;
  }

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

  .nav-list a {
    display: block;
    padding: 12px 14px;
    font-size: 15.5px;
    border-radius: 12px;
  }

  .header-utility { margin-left: auto; }
  .season-picker { display: none; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-toggle-label { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .brand-name { font-size: 15.5px; }
  .header-cta { padding: 9px 14px; font-size: 13px; }
}

/* ---------- 15. 动效偏好 ---------- */
@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;
  }

  html.reveal-armed [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
