/* =========================================================
   /assets/site.css — 手机体育站 共享样式
   夜场数据台：深蓝黑底 + 电子绿/亮橙双强调 + 精密细线网格
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink: #070B14;
  --ink-2: #0F1729;
  --panel: #16203A;
  --green: #2BF08A;
  --orange: #FF7A1A;
  --green-deep: #0B2E22;
  --stone: #C3CDDD;
  --mist: #7E8CA6;
  --white: #F4F8FF;
  --red: #FF4D5E;

  --line: rgba(126, 140, 166, .20);
  --line-2: rgba(126, 140, 166, .42);

  --wrap: 1280px;
  --gut: clamp(16px, 4.2vw, 44px);
  --head-h: 60px;
  --tabbar-h: 56px;

  --ease: cubic-bezier(.2, .7, .3, 1);

  --ff-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ff-display: "Archivo Expanded", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;

  --fs-h1: clamp(30px, 5.4vw, 46px);
  --fs-h2: clamp(23px, 3.4vw, 33px);
  --fs-h3: clamp(18px, 2.3vw, 23px);
  --fs-body: clamp(15px, 1.5vw, 17px);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, dl, dt, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 3. 基础排版（中文） ---------- */
body {
  background-color: var(--ink);
  color: var(--stone);
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--white);
}
h1 { font-size: var(--fs-h1); font-weight: 900; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { text-wrap: pretty; }
strong { font-weight: 700; }

::selection { background: var(--green); color: #04150C; }

/* 数字统一等宽 + tabular */
.metric__value, .idx, .ver-badge, .foot-legal, .foot-contact dt, .foot-col__title,
.statusbar, .statusbar *, .head-nav .idx, .figure figcaption, .plaque__no, .tagboard {
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 0;
}

.skip-link {
  position: absolute;
  top: -64px;
  left: var(--gut);
  z-index: 200;
  padding: 10px 18px;
  background: var(--green);
  color: #04150C;
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 8px; }

/* ---------- 5. 布局原语 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section {
  position: relative;
  padding-block: clamp(44px, 7vw, 96px);
}
.section--sunken { background-color: var(--ink-2); }
.section--panel { background-color: var(--panel); }

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

.stack { display: grid; gap: var(--stack-gap, 16px); }

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

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }

/* ---------- 6. 通用元件 ---------- */
.idx {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist);
}

.tagboard {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
  text-transform: uppercase;
}
.tagboard::before {
  content: "";
  width: 18px;
  height: 1px;
  background-color: var(--green);
  flex: 0 0 auto;
}

.plaque {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 14px 9px 12px;
  border-left: 2px solid var(--green);
  background-color: rgba(22, 32, 58, .68);
}
.plaque__no {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--green);
}
.plaque__text { font-size: 13px; line-height: 1.5; color: var(--mist); }

.metric { display: flex; flex-direction: column; gap: 3px; }
.metric__value {
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--white);
}
.metric__label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

/* 按钮：锐利直角，只靠底色与细线区分 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background-color: var(--green); color: #04150C; }
.btn--primary:hover { background-color: #59f6a6; }
.btn--ghost { border-color: var(--line-2); color: var(--stone); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--ghost:focus-visible { outline-color: var(--green); }

/* 面包屑 */
.crumbs {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--mist);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before {
  content: "/";
  color: rgba(126, 140, 166, .5);
}
.crumbs a { color: var(--mist); transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--green); }
.crumbs [aria-current="page"] { color: var(--stone); }

/* 图片容器基础规则（页面阶段放置响应式图片） */
.figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--panel);
  border: 1px solid var(--line);
}
.figure--wide { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 3 / 4; }
.figure--square { aspect-ratio: 1 / 1; }
.figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.figure__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(126, 140, 166, .16) 0 1px, transparent 1px 12.5%),
    repeating-linear-gradient(0deg, rgba(126, 140, 166, .12) 0 1px, transparent 1px 25%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .25));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .25));
}
.figure figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 12px;
  background-color: rgba(7, 11, 20, .82);
  border-top: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist);
}

/* ---------- 7. 顶部状态条 ---------- */
.statusbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  padding-inline: clamp(12px, 4vw, 24px);
  background-color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--mist);
  overflow: hidden;
}
.statusbar__live {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: .16em;
}
.statusbar__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green);
  animation: statusPulse 2.4s var(--ease) infinite;
}
@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(43, 240, 138, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(43, 240, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 240, 138, 0); }
}
.statusbar__view {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.statusbar__rail {
  display: flex;
  width: max-content;
  animation: rail 34s linear infinite;
}
.statusbar__rail span {
  padding-right: 46px;
  white-space: nowrap;
}
.statusbar__rail span::before {
  content: "·";
  margin-right: 10px;
  color: var(--orange);
}
@keyframes rail {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.statusbar__close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  color: var(--mist);
  transition: color .2s var(--ease);
}
.statusbar__close:hover { color: var(--white); }

/* ---------- 8. 页头 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 70;
  background-color: rgba(7, 11, 20, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.head-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: var(--head-h);
}

.head-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-color: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 12px rgba(43, 240, 138, .55);
  pointer-events: none;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand__mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background-color: var(--green);
  color: #04150C;
  font-family: var(--ff-mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}
.brand__text strong {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--white);
}
.brand__text em {
  font-family: var(--ff-mono);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--mist);
}

/* 顶部导航 */
.head-nav { justify-self: center; min-width: 0; }
.head-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.head-nav__list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--stone);
  transition: color .2s var(--ease);
}
.head-nav__list a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 1px;
  background-color: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .26s var(--ease);
}
.head-nav__list a:hover { color: var(--white); }
.head-nav__list a:hover::after,
.head-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.head-nav__list a[aria-current="page"] { color: var(--white); font-weight: 600; }

/* 右侧操作区 */
.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.ver-badge {
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--stone);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--green); color: var(--green); }
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 15px;
}
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  width: 100%;
  background-color: currentColor;
  transition: transform .26s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- 9. 移动端底部标签栏 ---------- */
.tabbar { display: none; }

/* ---------- 10. 页脚 ---------- */
.site-foot {
  margin-top: clamp(48px, 8vw, 96px);
  background-color: var(--ink-2);
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 48px);
  padding-block: clamp(38px, 6vw, 60px) clamp(28px, 4vw, 40px);
}

.foot-brand { display: grid; gap: 14px; justify-items: start; }
.brand--foot .brand__text strong { font-size: 16px; }
.foot-note {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--stone);
}
.foot-stamp {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

.foot-col { display: grid; gap: 12px; align-content: start; }
.foot-col__title {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.foot-col ul { display: grid; gap: 9px; }
.foot-col a {
  font-size: 14px;
  color: var(--stone);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.foot-col a:hover { color: var(--green); padding-left: 4px; }

.foot-base {
  display: grid;
  gap: 20px;
  padding-block: 24px calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.foot-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px clamp(20px, 3vw, 40px);
}
.foot-contact > div { display: grid; gap: 3px; }
.foot-contact dt {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}
.foot-contact dd {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--stone);
  overflow-wrap: anywhere;
}

.foot-legal {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--mist);
}

/* ---------- 11. 滚动显现协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  will-change: opacity, transform;
}
[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1180px) {
  .head-nav__list a { padding: 10px 9px; font-size: 13.5px; }
  .head-nav__list a::after { left: 9px; right: 9px; }
  .head-nav .idx { display: none; }
}

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .head-cta { display: none; }
  .head-bar { grid-template-columns: auto 1fr; }
  .head-nav { justify-self: end; }

  .head-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(86vw, 340px);
    padding: calc(var(--head-h) + 28px) 20px calc(32px + env(safe-area-inset-bottom));
    background-color: var(--ink-2);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(101%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s var(--ease);
  }
  .head-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }
  .head-nav__list {
    display: grid;
    gap: 0;
    width: 100%;
  }
  .head-nav__list li + li { border-top: 1px solid var(--line); }
  .head-nav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 4px;
    font-size: 16px;
    color: var(--stone);
  }
  .head-nav__list a::after { display: none; }
  .head-nav__list a[aria-current="page"] {
    color: var(--green);
    box-shadow: inset 2px 0 0 0 var(--green);
    padding-left: 12px;
  }
  .head-nav .idx { display: inline; }

  body[data-nav-open] { overflow: hidden; }
  body[data-nav-open]::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    background-color: rgba(7, 11, 20, .68);
  }

  .tabbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    background-color: rgba(15, 23, 41, .97);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .tabbar ul {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: 720px;
    margin-inline: auto;
  }
  .tabbar li { min-width: 0; }
  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: var(--tabbar-h);
    padding: 8px 2px 7px;
    font-size: 10px;
    line-height: 1.15;
    letter-spacing: .01em;
    color: var(--mist);
    transition: color .2s var(--ease), box-shadow .2s var(--ease);
  }
  .tabbar a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tabbar a:hover { color: var(--stone); }
  .tabbar a[aria-current="page"] {
    color: var(--green);
    box-shadow: inset 0 2px 0 0 var(--green);
  }

  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 6px); }

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

@media (max-width: 760px) {
  .grid12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-foot { margin-top: 56px; }
}

@media (max-width: 560px) {
  .brand__text em { display: none; }
  .head-actions { gap: 8px; }
  .ver-badge { display: none; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .foot-contact { grid-template-columns: minmax(0, 1fr); }
  .tabbar a { font-size: 9.5px; }
}

@media (min-width: 1041px) {
  .head-nav[data-open] { transform: none; visibility: visible; }
}

/* ---------- 13. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .statusbar__rail { animation: none; }
  .statusbar__live::before { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
