/* =====================================================================
   B体育主站 — /assets/site.css
   夜间赛场指挥台 / 深墨绿 · 荧光青柠 · 暖橙 / 锐利直角 · 精密刻度
   ===================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink-800);
  background-image:
    radial-gradient(1200px 620px at 78% -8%, rgba(198, 242, 78, .06), transparent 62%),
    radial-gradient(900px 540px at 4% 10%, rgba(47, 74, 60, .30), transparent 60%);
  background-attachment: fixed;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

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

button { font: inherit; color: inherit; }

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

/* ---------- 2. Variables ---------- */
:root {
  /* 色彩体系 */
  --ink-900: #070B09;      /* 看台炭黑 */
  --ink-800: #0B1410;      /* 场地深墨绿 */
  --panel:   #16241E;      /* 苔绿面板 */
  --rule:    #24382E;      /* 深苔线 */
  --lime:    #C6F24E;      /* 荧光青柠 */
  --orange:  #FF8A3D;      /* 暖橙 */
  --paper:   #F3EEE2;      /* 暖纸白 */
  --mist:    #9FB0A4;      /* 雾绿灰 */
  --glow:    #2F4A3C;      /* 高光青柠淡调 */
  --dim:     #71857A;      /* 刻度标签弱化色 */

  /* 字体栈 */
  --font-display: "Oswald", "Barlow Condensed", "Arial Narrow",
                  "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif:   "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body:    "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
                  "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace,
                  SFMono-Regular, Menlo, Consolas, monospace;

  /* 尺度 */
  --header-h: 68px;
  --shell-w: 1440px;
  --content-w: 1240px;
  --gutter: clamp(14px, 2.4vw, 36px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -200px;
  z-index: 400;
  padding: .75em 1.2em;
  background: var(--lime);
  color: var(--ink-900);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  border: 1px solid var(--ink-900);
  transition: top .18s var(--ease);
}
.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* ---------- 4. 排版工具 ---------- */
.eyebrow,
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
  line-height: 1.4;
}

.section-label {
  padding: 3px 8px;
  border: 1px solid var(--rule);
  background: rgba(198, 242, 78, .06);
}

.serif-title {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.3;
}

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

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

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

/* ---------- 6. 按钮 / 悬浮标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .82em 1.35em;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { text-decoration: none; }

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-800);
}
.btn--lime:hover {
  background: #d7fa79;
  border-color: #d7fa79;
  color: var(--ink-900);
}

.btn--orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #1A0E05;
}
.btn--orange:hover {
  background: #ffa163;
  border-color: #ffa163;
  color: #1A0E05;
}

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

.tag-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .58em .92em;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--panel);
  color: var(--paper);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease);
}
.tag-btn:hover { text-decoration: none; }

.tag-btn--lime {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(198, 242, 78, .05);
}
.tag-btn--lime:hover {
  background: var(--lime);
  color: var(--ink-900);
  transform: translateX(6px);
}

.tag-btn--orange {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 138, 61, .06);
}
.tag-btn--orange:hover {
  background: var(--orange);
  color: #1A0E05;
  transform: translateX(6px);
}

/* ---------- 7. 共享内容组件 ---------- */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: clamp(16px, 2vw, 26px);
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}

.panel-paper {
  background: var(--paper);
  color: var(--ink-800);
  border: 1px solid var(--rule);
}
.panel-paper .eyebrow,
.panel-paper .section-label { color: #2C4A34; border-color: #C6BCA6; }
.panel-paper a { color: #1E3A28; }

.step-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--rule);
  padding-right: 12px;
}
.step-rail__num {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
  color: var(--lime);
  line-height: 1.9;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--dim);
  margin: 0 0 clamp(20px, 3vw, 34px);
}
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--lime); text-decoration: none; }
.breadcrumb__sep { color: var(--rule); }

.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  background:
    linear-gradient(140deg, var(--panel) 0%, var(--ink-900) 62%, rgba(198, 242, 78, .10) 100%);
  aspect-ratio: 16 / 9;
  width: 100%;
}
.media--wide { aspect-ratio: 21 / 9; }
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media__caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--dim);
  line-height: 1.6;
}

/* =====================================================================
   8. 头部框架
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 9, .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  color: var(--paper);
  transition: background .22s var(--ease), box-shadow .22s var(--ease);
}
.site-header[data-scrolled] {
  background: rgba(7, 11, 9, .995);
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .95);
}

.site-header__inner {
  display: flex;
  align-items: stretch;
  gap: clamp(10px, 1.6vw, 24px);
  width: 100%;
  max-width: var(--shell-w);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 品牌锁形 */
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding-right: clamp(10px, 1.6vw, 22px);
  border-right: 1px solid var(--rule);
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }

.brand__mark {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.35vw, 1.12rem);
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.1;
  color: var(--paper);
}
.brand__ver {
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .26em;
  line-height: 1;
  color: var(--lime);
}

/* 导航横带 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: stretch;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__item {
  display: flex;
  align-items: stretch;
  flex: 1 1 0;
  border-left: 1px solid var(--rule);
  min-width: 0;
}
.site-nav__item:last-child { border-right: 1px solid var(--rule); }

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5em;
  width: 100%;
  padding: 0 clamp(7px, 1vw, 14px);
  color: var(--mist);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.3;
  text-decoration: none;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.site-nav__link:hover {
  color: var(--paper);
  background: var(--panel);
  text-decoration: none;
}

.site-nav__num {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  color: var(--dim);
  flex: 0 0 auto;
  transition: color .18s var(--ease);
}

.site-nav__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav__link[aria-current="page"] {
  color: var(--lime);
  background: rgba(198, 242, 78, .07);
}
.site-nav__link[aria-current="page"] .site-nav__num { color: var(--lime); }
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 2px;
  transform: translateX(-50%);
  background: var(--lime);
}

/* 抽屉内行动区（仅移动端） */
.site-nav__cta { display: none; }

/* 右上悬浮标签 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-left: auto;
  padding: 0 12px;
  min-height: 42px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--panel);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .2em;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle[data-open] { border-color: var(--lime); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: background .2s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .22s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

.nav-toggle[data-open] .nav-toggle__bars { background: transparent; }
.nav-toggle[data-open] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
  background: var(--lime);
}
.nav-toggle[data-open] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--lime);
}

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

/* 头部刻度尺 + 滚动进度 */
.header-ruler {
  height: 6px;
  background-image:
    repeating-linear-gradient(to right, rgba(198, 242, 78, .35) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 14px);
  background-repeat: repeat-x;
  background-size: 72px 100%, 14px 100%;
  opacity: .85;
  pointer-events: none;
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(198, 242, 78, .55);
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}

/* =====================================================================
   9. 页脚
   ===================================================================== */
.site-footer {
  margin-top: clamp(56px, 9vw, 128px);
  background: var(--ink-900);
  border-top: 1px solid var(--rule);
  color: var(--mist);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 48px);
  width: 100%;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) var(--gutter) clamp(24px, 3vw, 40px);
}

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

.footer-brand__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.15;
  color: var(--paper);
}
.footer-brand__ver {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  color: var(--lime);
  line-height: 1;
}
.footer-brand__note {
  margin: 16px 0 0;
  max-width: 24em;
  font-size: .82rem;
  line-height: 1.75;
  color: var(--mist);
}

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

.footer-col__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1.4;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer-list a {
  display: inline-block;
  color: var(--mist);
  font-size: .83rem;
  line-height: 1.55;
  text-decoration: none;
  transition: color .16s var(--ease), transform .16s var(--ease);
}
.footer-list a:hover {
  color: var(--lime);
  transform: translateX(3px);
  text-decoration: none;
}

.footer-contact {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: .82rem;
  line-height: 1.6;
}
.footer-contact dt {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 10px;
}
.footer-contact dt:first-child { margin-top: 0; }
.footer-contact dd {
  margin: 0;
  color: var(--paper);
  word-break: break-word;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 28px;
  width: 100%;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 16px var(--gutter) 30px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  line-height: 1.7;
  color: var(--dim);
}

/* =====================================================================
   10. 响应式
   ===================================================================== */

/* —— 平板 / 小笔电：头部折叠为抽屉 —— */
@media (max-width: 1240px) {
  .site-header__inner { gap: 12px; }

  .header-actions { display: none; }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--ink-900);
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    transition: max-height .28s var(--ease), border-color .28s var(--ease),
                visibility .28s var(--ease);
  }

  .site-nav[data-open] {
    max-height: min(82vh, 640px);
    overflow-y: auto;
    visibility: visible;
    border-top-color: var(--rule);
    border-bottom-color: var(--rule);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .site-nav__item {
    flex: 0 0 auto;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }
  .site-nav__item:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .site-nav__link {
    padding: 15px var(--gutter);
    font-size: .9rem;
    letter-spacing: .02em;
  }

  .site-nav__num {
    font-size: .7rem;
    width: 26px;
  }

  .site-nav__link[aria-current="page"]::after {
    left: var(--gutter);
    bottom: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(50%) rotate(45deg);
    background: var(--lime);
  }

  .site-nav__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px var(--gutter) 20px;
    border-top: 1px solid var(--rule);
    background: rgba(22, 36, 30, .55);
  }
  .site-nav__cta .tag-btn {
    width: 100%;
    padding: .85em 1em;
    font-size: .8rem;
  }
  .site-nav__cta .tag-btn:hover { transform: none; }

  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* —— 手机 —— */
@media (max-width: 760px) {
  :root { --header-h: 60px; }

  .brand__mark { font-size: .92rem; letter-spacing: .1em; }
  .brand__ver { font-size: .54rem; letter-spacing: .2em; }

  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 0 11px; }

  .header-ruler { height: 4px; }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .site-footer__legal {
    flex-direction: column;
    font-size: .62rem;
  }

  .grid-12 { gap: 14px; }
}

@media (max-width: 420px) {
  .brand { padding-right: 8px; }
  .brand__mark { font-size: .84rem; }
}

/* —— 减少动效 —— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .scroll-progress { transition: none !important; }
  .tag-btn:hover { transform: none; }
  .footer-list a:hover { transform: none; }
}
