/* ============================================================
   完美体育赛事 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

/* ---------- 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%; height: auto; }

a { color: inherit; text-decoration: none; }

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色 */
  --ink: #061A14;
  --ink-2: #0B2F2A;
  --indigo: #2B1F4A;
  --wine: #5C1E2D;
  --cyan: #38F2C8;
  --gold: #F4B860;
  --orange: #FF7A1A;
  --paper: #F3F5ED;
  --muted: #8FA89D;
  --edge: #0A0D0C;
  --alert: #FF5C5C;

  /* 线条与阴影 */
  --hair: rgba(243, 245, 237, 0.14);
  --line-cyan: rgba(56, 242, 200, 0.42);
  --shadow-hard: 8px 8px 0 rgba(10, 13, 12, 0.9);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);

  /* 字体 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-heading: "Barlow Condensed", "Oswald", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --font-num: "DIN Alternate", "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* 节奏 */
  --header-h: 66px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --gutter: clamp(16px, 3vw, 28px);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 620px at 84% -10%, rgba(56, 242, 200, 0.13), transparent 62%),
    radial-gradient(940px 540px at 4% 0%, rgba(43, 31, 74, 0.6), transparent 60%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

p { max-width: 68ch; }

strong { color: var(--gold); font-weight: 700; }

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

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

#main-content:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

/* ---------- 4. 布局容器 ---------- */
.container {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 32px, 1360px);
  margin-inline: auto;
}

.page-shell { padding-block: clamp(24px, 4vw, 48px); }

.section { padding-block: clamp(32px, 5vw, 72px); }

.section--band {
  background: var(--ink-2);
  border-block: 2px solid var(--edge);
}

.section--violet { background: var(--indigo); }

.section--wine {
  background: var(--wine);
  border-block: 2px solid var(--edge);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--12 { grid-template-columns: repeat(12, 1fr); }

/* ---------- 5. 刊头与索引文本 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.04em;
}

.lede {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.8;
  max-width: 62ch;
}

.muted { color: var(--muted); }

.numeric {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.module-code {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid rgba(244, 184, 96, 0.55);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

/* ---------- 6. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--hair);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.tag--cyan {
  color: var(--cyan);
  border-color: var(--line-cyan);
  background: rgba(56, 242, 200, 0.1);
}

.tag--gold {
  color: var(--gold);
  border-color: rgba(244, 184, 96, 0.55);
}

.tag--live {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--edge);
  font-weight: 700;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid var(--edge);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  box-shadow: 4px 4px 0 rgba(10, 13, 12, 0.85);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(10, 13, 12, 0.9);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(10, 13, 12, 0.9);
}

.btn--primary {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--edge);
}

.btn--primary:hover { background: #ff8c3d; }

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 4px 4px 0 rgba(56, 242, 200, 0.22);
}

.btn--ghost:hover {
  background: rgba(56, 242, 200, 0.12);
  box-shadow: 6px 6px 0 rgba(56, 242, 200, 0.28);
}

/* ---------- 8. 卡片 ---------- */
.card {
  background: var(--ink-2);
  border: 2px solid var(--edge);
  box-shadow: var(--shadow-hard);
  padding: clamp(16px, 2.2vw, 24px);
}

.card--paper { background: var(--paper); color: var(--ink); }

.card--violet { background: var(--indigo); }

/* ---------- 9. 图片容器（供页面阶段放图） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--edge);
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--indigo) 78%);
  box-shadow: var(--shadow-hard);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 26, 20, 0) 42%, rgba(6, 26, 20, 0.82) 100%);
  pointer-events: none;
}

.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: 12px;
  bottom: 10px;
  z-index: 1;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs { padding-block: 14px; }

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item::after {
  content: "/";
  color: rgba(143, 168, 157, 0.5);
}

.breadcrumbs__item:last-child::after { content: ""; }

.breadcrumbs__link {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.breadcrumbs__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.breadcrumbs__current { color: var(--paper); }

/* ---------- 11. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--ink);
  border: 2px solid var(--edge);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: top 0.16s var(--ease);
}

.skip-link:focus { top: 10px; }

/* ---------- 12. 头部 · 命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, #08211B 0%, #061A14 100%);
  border-bottom: 3px solid var(--edge);
  box-shadow: 0 10px 0 rgba(10, 13, 12, 0.35), 0 18px 34px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(56, 242, 200, 0) 44%, var(--gold) 72%, var(--orange) 100%);
  opacity: 0.75;
  pointer-events: none;
}

.site-header.is-scrolled {
  background: #05170F;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.66);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 2;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  width: min(100% - 32px, 1360px);
  min-height: var(--header-h);
  margin-inline: auto;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-block: 8px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--cyan);
  color: var(--ink);
  border: 2px solid var(--edge);
  box-shadow: 3px 3px 0 rgba(10, 13, 12, 0.9);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* 状态区 */
.header-utility {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin-left: auto;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line-cyan);
  background: rgba(56, 242, 200, 0.08);
  color: var(--cyan);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.status-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 242, 200, 0.2);
  animation: chip-pulse 2.4s var(--ease) infinite;
}

@keyframes chip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.utility-text {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

/* 导航 */
.site-nav { flex: 0 1 auto; }

.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.site-nav__item { display: flex; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 12px;
  border-bottom: 3px solid transparent;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
  white-space: nowrap;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.site-nav__index {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.16s var(--ease);
}

.site-nav__link:hover {
  color: var(--cyan);
  background: rgba(56, 242, 200, 0.07);
}

.site-nav__link:hover .site-nav__index { color: var(--gold); }

.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.site-nav__link[aria-current="page"] .site-nav__index { color: var(--gold); }

/* 右侧操作 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-cta {
  padding: 10px 16px;
  font-size: 14px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 2px solid var(--cyan);
  background: rgba(56, 242, 200, 0.08);
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.nav-toggle:hover { background: rgba(56, 242, 200, 0.18); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 14px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle[data-open] .nav-toggle__bar:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[data-open] .nav-toggle__bar:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle__label { line-height: 1; }

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, #08211B 0%, #061A14 58%, #04120F 100%);
  border-top: 3px solid var(--edge);
  box-shadow: inset 0 3px 0 rgba(56, 242, 200, 0.14);
  color: var(--paper);
}

.footer-tape {
  height: 10px;
  background: repeating-linear-gradient(
    45deg,
    rgba(56, 242, 200, 0.42) 0px,
    rgba(56, 242, 200, 0.42) 8px,
    transparent 8px,
    transparent 16px
  );
  border-bottom: 1px solid rgba(10, 13, 12, 0.8);
}

.footer__inner { padding-block: clamp(32px, 5vw, 60px) 0; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer-brand__line {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.02em;
  color: var(--paper);
  padding-bottom: 8px;
}

.footer-brand__line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  background: var(--gold);
}

.footer-brand__sub {
  margin-top: 12px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.footer-brand__note {
  margin-top: 10px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-brand__cta { margin-top: 20px; }

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  font-size: 15px;
  color: var(--paper);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-links--legal { margin-bottom: 22px; }

.footer-links--legal a {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-links--legal a:hover { color: var(--cyan); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 10px;
  border-left: 2px solid rgba(56, 242, 200, 0.35);
}

.contact-list__label {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.contact-list__value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-service {
  margin-top: 18px;
  max-width: 40ch;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-bottom {
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--hair);
  background: rgba(10, 13, 12, 0.5);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-copy { max-width: none; }

.footer-icp {
  max-width: none;
  color: var(--paper);
  border: 1px solid var(--hair);
  padding: 2px 8px;
}

.footer-hours { max-width: none; }

/* ---------- 14. 滚动呈现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* ---------- 15. 平板 ---------- */
@media (max-width: 1180px) {
  .utility-text { display: none; }
  .site-nav__link { padding-inline: 9px; font-size: 13.5px; }
}

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__note { max-width: 46ch; }
}

/* ---------- 16. 移动端 ---------- */
@media (max-width: 900px) {
  :root { --header-h: 60px; }

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

  .header-utility { display: none; }

  .site-header__inner {
    gap: 10px;
    min-height: var(--header-h);
  }

  .brand__sub { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 10px 16px 18px;
    background: var(--ink-2);
    border-top: 2px solid var(--edge);
    border-bottom: 3px solid var(--cyan);
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.62);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease),
      visibility 0.18s var(--ease);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__item { border-bottom: 1px solid var(--hair); }

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

  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 4px;
    border-bottom: 0;
    border-left: 3px solid transparent;
    font-size: 16px;
  }

  .site-nav__link[aria-current="page"] {
    padding-left: 12px;
    border-left-color: var(--cyan);
    background: rgba(56, 242, 200, 0.08);
  }

  .site-nav__index {
    font-size: 11px;
    color: var(--gold);
  }

  .header-cta { padding: 9px 12px; font-size: 13px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .footer__grid { grid-template-columns: 1fr; }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .brand__mark { width: 32px; height: 32px; font-size: 17px; }
  .brand__name { font-size: 14px; letter-spacing: 0.08em; }
  .nav-toggle__label { display: none; }
  .header-cta { padding: 8px 10px; font-size: 12px; letter-spacing: 0.04em; }
}

@media (max-width: 380px) {
  .header-cta { 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;
  }

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

  .status-chip__dot { animation: none; }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}
