/* ==========================================================
   爱体育赛场 · 共享样式表 /assets/site.css
   暖纸画册 + 夜场灯光：深绿封面、活力橙行动、荧光青数据
   ========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 76px) + 20px);
}

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, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { padding: 0; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { width: 100%; border-collapse: collapse; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink-green: #0C2A1E;
  --ink: #10201A;
  --green-mid: #1B4D36;
  --orange: #FF6A2B;
  --orange-soft: #FFD9C2;
  --cyan: #34E7CE;
  --paper: #F7F1E6;
  --paper-layer: #EFE6D6;
  --white: #FFFFFF;
  --gray: #6E6A60;
  --rule: #D9CFBC;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --header-h: 76px;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1280px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

@media (max-width: 1024px) { :root { --header-h: 66px; } }
@media (max-width: 620px)  { :root { --header-h: 60px; } }

/* ---------- 3. 页面基底与中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background-color: var(--orange); color: #2A0D00; }

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

/* ---------- 4. 排版工具 ---------- */
.t-display {
  font-size: clamp(2.75rem, 7.4vw, 6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.t-slant { display: inline-block; transform: skewX(-5deg); transform-origin: left bottom; }

.t-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.t-lead {
  max-width: 34em;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.7;
  color: var(--gray);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background-color: currentColor;
}

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

.prose {
  max-width: 68ch;
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.1em;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.prose h3 {
  margin-top: 1.7em;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.3;
}
.prose strong { font-weight: 800; }
.prose a {
  color: var(--orange);
  border-bottom: 1px solid currentColor;
}

.rule {
  height: 1px;
  border: 0;
  background-color: var(--rule);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background-color: var(--orange);
  border-color: var(--orange);
  color: #2A0D00;
}
.btn-primary:hover { background-color: #FF8850; border-color: #FF8850; }

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

/* ---------- 7. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 12px 18px;
  background-color: var(--orange);
  color: #2A0D00;
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-130%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 8. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  color: var(--paper);
  background-color: transparent;
  transition: background-color 0.34s var(--ease), color 0.34s var(--ease),
              box-shadow 0.34s var(--ease);
}
.site-header.is-scrolled {
  background-color: rgba(247, 241, 230, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule), 0 18px 30px -26px rgba(12, 42, 30, 0.7);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled {
    background-color: rgba(247, 241, 230, 0.86);
    backdrop-filter: blur(12px) saturate(1.15);
  }
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 40px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand-mark {
  padding: 7px 8px 6px;
  background-color: var(--orange);
  color: #2A0D00;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  transform: skewX(-6deg);
}
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.03em;
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  opacity: 0.62;
}

/* 主导航 */
.site-nav { margin-inline-start: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.9vw, 28px);
}
.nav-item { flex: 0 0 auto; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 2px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.22s var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.55;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background-color: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover { color: var(--orange); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--orange); }

/* 头部右侧 */
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  flex: 0 0 auto;
}
.header-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  opacity: 0.58;
  white-space: nowrap;
}
.header-cta { white-space: nowrap; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.nav-toggle:hover { color: var(--orange); border-color: var(--orange); }
.nav-toggle-bars {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.nav-toggle-label { line-height: 1; }

/* 滚动进度条 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.scroll-meter-bar {
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--orange);
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(24px, 3vw, 36px);
  background-color: var(--ink-green);
  color: var(--paper);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--orange) 0%, var(--orange) 38%,
    var(--cyan) 38%, var(--cyan) 52%,
    var(--green-mid) 52%, var(--green-mid) 100%
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 76px);
  max-width: var(--maxw);
  margin-inline: auto;
}

.footer-mark {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}
.footer-name {
  display: inline-block;
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  transform: skewX(-4deg);
  transform-origin: left bottom;
}
.footer-line {
  max-width: 30ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(247, 241, 230, 0.66);
}
.footer-cta {
  margin-top: 22px;
  color: var(--paper);
  border-color: rgba(247, 241, 230, 0.34);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.footer-group-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(247, 241, 230, 0.16);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(247, 241, 230, 0.55);
}
.footer-group ul { display: grid; gap: 11px; }
.footer-group a {
  display: inline-block;
  font-size: 14.5px;
  color: rgba(247, 241, 230, 0.86);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-group a:hover { color: var(--orange); transform: translateX(4px); }

.footer-contact-list { display: grid; gap: 14px; }
.footer-contact-item { display: grid; gap: 3px; }
.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: rgba(247, 241, 230, 0.5);
}
.footer-contact-value {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(247, 241, 230, 0.9);
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  max-width: var(--maxw);
  margin: clamp(40px, 5vw, 72px) auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 241, 230, 0.16);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(247, 241, 230, 0.58);
}
.footer-legal-item { white-space: nowrap; }
.footer-legal-sep {
  width: 16px;
  height: 1px;
  background-color: rgba(247, 241, 230, 0.3);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--gray);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 8px;
  color: var(--rule);
}
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- 11. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background-color: var(--orange-soft);
  border: 1px solid #F0B58F;
  color: #7A2A05;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.3;
}
.tag--ink {
  background-color: var(--ink-green);
  border-color: var(--green-mid);
  color: var(--cyan);
}

/* ---------- 12. 数据看板 ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-green);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gray);
}

/* ---------- 13. 图像容器（供页面阶段放置图片） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background-color: var(--paper-layer);
  background-image: radial-gradient(var(--rule) 1px, transparent 1px);
  background-size: 8px 8px;
  border: 1px solid var(--rule);
}
.media > img { width: 100%; height: 100%; object-fit: cover; }

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--3x2  { aspect-ratio: 3 / 2; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--3x4  { aspect-ratio: 3 / 4; }
.media--banner { aspect-ratio: 21 / 8; }
.media--screen {
  aspect-ratio: 9 / 19;
  max-width: 300px;
  margin-inline: auto;
  border-radius: 20px;
}
.media--deep {
  background-color: var(--ink-green);
  background-image: radial-gradient(rgba(52, 231, 206, 0.18) 1px, transparent 1px);
  border-color: var(--green-mid);
}
.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gray);
}

/* ---------- 14. 进入视口显现 ---------- */
[data-reveal] {
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 15. 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: clamp(16px, 4vw, 40px);
  bottom: clamp(16px, 4vw, 40px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background-color: var(--ink-green);
  border: 1px solid var(--green-mid);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s var(--ease), background-color 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  background-color: var(--orange);
  border-color: var(--orange);
  color: #2A0D00;
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 32px;
  }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .header-meta { display: none; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px var(--gutter) 30px;
    background-color: var(--ink-green);
    color: var(--paper);
    border-top: 1px solid var(--green-mid);
    box-shadow: 0 24px 40px -30px rgba(0, 0, 0, 0.8);
  }
  .site-nav[data-open] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item { border-bottom: 1px solid rgba(247, 241, 230, 0.12); }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 15px 2px;
    font-size: 17px;
  }
  .nav-link::after { display: none; }
}

@media (max-width: 860px) {
  .brand-tagline { display: none; }
  .brand-name { font-size: 17px; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .header-cta { padding: 9px 13px; font-size: 13px; }
  .footer-links { grid-template-columns: minmax(0, 1fr); }
  .footer-contact-list { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { gap: 8px 14px; font-size: 10.5px; }
  .back-top { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 8px 10px; }
  .header-cta { padding: 8px 11px; font-size: 12.5px; }
  .footer-legal-sep { display: none; }
}

/* ---------- 17. 减少动态偏好 ---------- */
@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;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .back-top { transform: none; }
}
