/* ============================================================
   宝威体育 BVTY · 共享样式表 /assets/site.css
   设计逻辑：赛场指挥中心的蓝图网格 —— 深底框架 / 纸面展签 / 红黄信号
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --red: #E4002B;
  --yellow: #FFD100;
  --ink-green: #0E2A22;
  --charcoal: #141414;
  --cream: #F4EBDD;
  --cool: #C9D1CE;
  --cyan: #26F0D8;
  --maroon: #7A1E1B;
  --slate: #2A3B3F;
  --paper: #F7F7F2;

  /* 语义色 */
  --bg: var(--ink-green);
  --text: var(--paper);
  --muted: var(--cool);

  /* 字体 */
  --font-display: "Barlow Condensed", Oswald, "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Consolas, monospace;

  /* 尺度 */
  --pad: clamp(16px, 4vw, 40px);
  --maxw: 1440px;
  --rail: 44px;
  --header-h: 84px;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --pill: 999px;

  /* 线条 */
  --line: rgba(201, 209, 206, .18);
  --line-strong: rgba(201, 209, 206, .32);
  --line-yellow: rgba(255, 209, 0, .30);

  /* 动效 */
  --ease: cubic-bezier(.22, .7, .28, 1);
  --t: 200ms;

  --shadow-card: 0 18px 44px rgba(0, 0, 0, .28);
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
    --rail: 0px;
  }
}

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

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

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--text);
  background-color: var(--ink-green);
  background-image:
    linear-gradient(rgba(201, 209, 206, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 209, 206, .05) 1px, transparent 1px),
    radial-gradient(90% 70% at 85% -10%, rgba(122, 30, 27, .42), transparent 62%);
  background-size: 64px 64px, 64px 64px, 100% 100%;
  background-repeat: repeat, repeat, no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

p,
h1,
h2,
h3,
h4,
figure { margin: 0; }

ul,
ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; }

::selection { background: var(--yellow); color: var(--charcoal); }

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

/* ---------- 3. 排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .01em;
}

.display-xl { font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: .98; }
.h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.02; }
.h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.12; }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }

.lede {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.75;
  color: var(--cool);
  max-width: 48ch;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yellow);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--red);
  flex: 0 0 auto;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  color: var(--cyan);
  background: rgba(38, 240, 216, .12);
  border: 1px solid rgba(38, 240, 216, .30);
}

.prose { max-width: 68ch; }

.prose p { margin: 0 0 1.1em; }

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--yellow); }

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--yellow);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top 160ms var(--ease);
}

.skip-link:focus {
  top: 100%;
}

/* ---------- 5. 页头框架带 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  background: linear-gradient(180deg, #0E2A22 0%, #0B211B 100%);
  border-bottom: 1px solid var(--line-yellow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .38);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--red) 0 68%,
    var(--yellow) 68% 94%,
    var(--cyan) 94% 100%);
}

.site-header__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(0, 0, 0, .24);
  border-right: 1px solid var(--line);
}

.site-header__main {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
  max-width: var(--maxw);
  margin-inline: auto;
  min-height: var(--header-h);
  padding: 10px var(--pad) 10px calc(var(--pad) + var(--rail));
  transition: min-height var(--t) var(--ease), padding var(--t) var(--ease);
}

.site-header.is-compact .site-header__main {
  min-height: calc(var(--header-h) - 12px);
  padding-top: 4px;
  padding-bottom: 4px;
}

/* 品牌锁定 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--paper);
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--red);
  flex: 0 0 auto;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 2px;
  background: var(--yellow);
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.1;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cool);
}

.brand--footer .brand__sub { color: var(--cool); }

/* 主导航 */
.site-nav { margin-left: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--cool);
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--paper); }

.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] {
  color: var(--paper);
  font-weight: 700;
}

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--red);
}

/* 页头工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.league-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: rgba(20, 20, 20, .55);
}

.league-switch__btn {
  appearance: none;
  border: 0;
  padding: 6px 13px;
  border-radius: var(--pill);
  background: transparent;
  color: var(--cool);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.league-switch__btn:hover {
  color: var(--paper);
  background: rgba(255, 209, 0, .14);
}

.league-switch__btn[aria-pressed="true"],
.league-switch__btn.is-active {
  background: var(--yellow);
  color: var(--charcoal);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    transform 180ms var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--signal {
  background: var(--red);
  color: var(--paper);
}

.btn--signal:hover {
  background: var(--maroon);
  color: var(--cream);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
}

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

/* ---------- 7. 移动菜单按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: rgba(20, 20, 20, .45);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.nav-toggle:hover { border-color: var(--yellow); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: background var(--t) var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform var(--t) var(--ease);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 8. 主内容与容器 ---------- */
.main-content {
  display: block;
  min-height: 56vh;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.container--narrow { max-width: 900px; }

.section {
  position: relative;
  padding-block: clamp(40px, 6.5vw, 104px);
}

.section--paper {
  background: var(--cream);
  color: var(--charcoal);
}

.section--paper .lede { color: #4A433A; }
.section--paper .eyebrow { color: var(--maroon); }

.section--dark {
  background: var(--charcoal);
  color: var(--paper);
}

.blueprint { position: relative; }

.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(201, 209, 206, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 209, 206, .07) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(14px, 2vw, 28px);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cool);
}

.breadcrumbs a {
  color: var(--cool);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.breadcrumbs__sep { color: rgba(201, 209, 206, .42); }

.breadcrumbs [aria-current="page"] {
  color: var(--paper);
  border-bottom: 0;
}

/* ---------- 10. 卡片 ---------- */
.card--paper {
  position: relative;
  padding: clamp(18px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: var(--cream);
  color: var(--charcoal);
  box-shadow: var(--shadow-card);
}

.card--paper .lede { color: #4A433A; }
.card--paper .eyebrow { color: var(--maroon); }

.card--dark {
  position: relative;
  padding: clamp(18px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: var(--slate);
  color: var(--paper);
  border: 1px solid var(--line);
}

/* ---------- 11. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(122, 30, 27, .55), rgba(42, 59, 63, .9)),
    var(--slate);
  aspect-ratio: 16 / 10;
  isolation: isolate;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 209, 206, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 209, 206, .10) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .8;
}

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

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

/* ---------- 12. 滚动进度与显现 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  pointer-events: none;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  transition: width 90ms linear;
}

[data-reveal] {
  transition:
    opacity 420ms var(--ease),
    transform 420ms var(--ease);
}

html.reveal-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(14px);
}

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

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(32px, 6vw, 88px);
  background: var(--charcoal);
  color: var(--cream);
  border-top: 1px solid var(--line-yellow);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 84px;
  height: 3px;
  background: var(--yellow);
}

.site-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--pad) 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(0, 2.2fr) minmax(230px, 1.4fr);
  gap: clamp(24px, 4vw, 56px);
}

.footer-brand { display: flex; flex-direction: column; gap: 10px; }

.footer-brand__line {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--yellow);
  margin-top: 6px;
}

.footer-brand__meta {
  font-size: 13px;
  line-height: 1.7;
  color: var(--cool);
  max-width: 24ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yellow);
}

.footer-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col__link {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.footer-col__link:hover,
.footer-col__link:focus-visible {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

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

.footer-contact__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.6;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--yellow);
}

.footer-contact__value {
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-contact__note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.72;
  color: var(--cool);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line-yellow);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--cool);
}

.footer-bottom__copy,
.footer-bottom__icp { margin: 0; }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
  }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 8px var(--pad) 22px;
    background: linear-gradient(180deg, #0B211B 0%, #0E2A22 100%);
    border-bottom: 1px solid var(--line-yellow);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  .site-header[data-open] .site-nav { display: block; }

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

  .site-nav__link {
    padding: 15px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav__link::after { display: none; }

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

  .header-tools { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
  .site-header__rail { display: none; }
  .site-header__main {
    padding-left: var(--pad);
    padding-right: var(--pad);
    gap: 12px;
  }
  .brand__name { font-size: 18px; }
  .btn { padding: 10px 18px; font-size: 13px; }
}

@media (max-width: 760px) {
  .league-switch { display: none; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-column: auto; }
}

@media (max-width: 420px) {
  .footer-nav { grid-template-columns: 1fr; }
  .brand__sub { letter-spacing: .16em; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 15. 无障碍与偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  html.reveal-ready [data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .scroll-progress { display: none; }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .scroll-progress,
  .nav-toggle { display: none !important; }

  body {
    padding-top: 0;
    background: #fff;
    color: #111;
  }
}
