/* ==========================================================
   B体育旧版 · 共享样式表  /assets/site.css
   复古体育数据终端：墨绿底 + 荧光绿信号 + 等宽数据列
   ========================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote,
dl, dd, hr { margin: 0; }

ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

table { border-collapse: collapse; border-spacing: 0; }

hr { border: 0; height: 1px; background: var(--line); }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink:        #0B1F1A;
  --panel:      #121212;
  --slate:      #1C2B27;
  --signal:     #4CE07A;
  --amber:      #F2B23C;
  --rust:       #C4553F;
  --paper:      #C9D4CD;
  --text:       #E8EFEA;
  --muted:      #7E9A8E;
  --edge:       #1F8A4C;
  --deep:       #06120F;

  --line:        rgba(126, 154, 142, 0.24);
  --line-strong: rgba(126, 154, 142, 0.42);
  --line-soft:   rgba(126, 154, 142, 0.14);

  /* 字体 */
  --font-head: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  /* 尺寸 */
  --shell: 1280px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius-l: 24px;
  --radius-m: 16px;
  --radius-s: 10px;
  --pill: 999px;
  --head-h: 74px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 88% -12%, rgba(76, 224, 122, 0.075), transparent 68%),
    radial-gradient(900px 640px at -12% 18%, rgba(28, 43, 39, 0.85), transparent 70%),
    var(--ink);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--text);
}

h1 { font-size: clamp(34px, 5.4vw, 62px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2.1vw, 24px); font-weight: 700; }

p { line-height: 1.78; }

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

::selection { background: rgba(76, 224, 122, 0.28); color: #F4FFF8; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. 焦点与可达性 ---------- */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  transform: translateY(-120%);
  padding: 12px 20px;
  background: var(--signal);
  color: #05150E;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 0 0 14px 0;
  text-decoration: none;
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 5. 容器与网格 ---------- */
.shell {
  width: min(calc(100% - var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

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

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.grid--split {
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  align-items: start;
}

.stack > * + * { margin-top: clamp(14px, 1.8vw, 22px); }
.stack--loose > * + * { margin-top: clamp(26px, 3.4vw, 46px); }

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent 72%);
  border: 0;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              box-shadow 0.18s var(--ease), border-color 0.18s var(--ease),
              transform 0.18s var(--ease);
}

.btn--accent {
  background: var(--signal);
  color: #05150E;
  box-shadow: 0 0 0 1px rgba(76, 224, 122, 0.42), 0 6px 20px rgba(76, 224, 122, 0.16);
}

.btn--accent:hover {
  background: #6BEB92;
  box-shadow: 0 0 0 1px rgba(76, 224, 122, 0.6), 0 8px 26px rgba(76, 224, 122, 0.26);
}

.btn--ghost {
  background: rgba(28, 43, 39, 0.6);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--edge);
  color: var(--signal);
  background: rgba(31, 138, 76, 0.12);
}

.btn--sm { padding: 8px 15px; font-size: 13px; }

.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 0 1px var(--edge);
}

/* ---------- 7. 状态灯与标签 ---------- */
.status-light {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(76, 224, 122, 0.14), 0 0 10px rgba(76, 224, 122, 0.55);
  animation: lamp-breathe 3s ease-in-out infinite;
  flex: none;
}

@keyframes lamp-breathe {
  0%, 100% { opacity: 0.95; }
  50%      { opacity: 0.52; }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.tag--green { color: var(--signal); border-color: rgba(76, 224, 122, 0.45); background: rgba(76, 224, 122, 0.1); }
.tag--amber { color: var(--amber);  border-color: rgba(242, 178, 60, 0.45); background: rgba(242, 178, 60, 0.1); }
.tag--red   { color: #E4735C;       border-color: rgba(196, 85, 63, 0.5);   background: rgba(196, 85, 63, 0.12); }
.tag--muted { color: var(--muted);  border-color: var(--line);              background: rgba(126, 154, 142, 0.08); }

/* ---------- 8. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(9, 26, 21, 0.985), rgba(9, 26, 21, 0.9));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.header-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--edge), var(--signal));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.header-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: var(--head-h);
  transition: min-height 0.24s var(--ease);
}

.site-header.is-condensed .header-shell { min-height: 58px; }
.site-header.is-condensed .brand__meta { opacity: 0; }

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--signal);
  color: #05150E;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 21px;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(76, 224, 122, 0.45), 0 0 18px rgba(76, 224, 122, 0.24);
  flex: none;
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.brand__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  transition: opacity 0.24s var(--ease);
}

/* 胶囊导航 */
.site-nav { justify-self: center; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  background: rgba(28, 43, 39, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(232, 239, 234, 0.05);
}

.site-nav__list a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.site-nav__list a:hover {
  color: var(--text);
  background: rgba(76, 224, 122, 0.1);
  box-shadow: inset 0 0 0 1px rgba(76, 224, 122, 0.32);
}

.site-nav__list a[aria-current="page"] {
  color: #05150E;
  background: var(--signal);
  box-shadow: 0 0 0 1px rgba(76, 224, 122, 0.5), 0 0 18px rgba(76, 224, 122, 0.26);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: rgba(28, 43, 39, 0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--signal);
  flex: none;
  transition: background-color 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--signal);
  transition: transform 0.2s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-5px) rotate(-45deg); }

.header-cta { justify-self: end; }

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 8vw, 118px);
  background: linear-gradient(180deg, rgba(8, 23, 19, 0.55), var(--deep) 44%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(300px, 42%);
  height: 2px;
  background: linear-gradient(90deg, var(--signal), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.35fr 0.9fr;
  gap: clamp(24px, 3vw, 46px);
  padding: clamp(44px, 5.5vw, 78px) 0 clamp(30px, 4vw, 52px);
}

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

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(76, 224, 122, 0.14);
  border: 1px solid rgba(76, 224, 122, 0.42);
  color: var(--signal);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  flex: none;
}

.footer-brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.footer-blurb {
  max-width: 34em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-batch {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 9px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-s);
  background: rgba(18, 18, 18, 0.5);
  font-size: 12.5px;
  color: var(--paper);
  letter-spacing: 0.04em;
}

.footer-links li + li { margin-top: 9px; }

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

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

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13.5px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.footer-contact li:last-child { border-bottom: 0; }

.footer-contact__k {
  flex: none;
  width: 3.2em;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-contact__v {
  color: var(--paper);
  word-break: break-all;
}

.footer-hint {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-region {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-base__left,
.footer-base__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-dot { color: var(--line-strong); }

/* ---------- 10. 通用内容组件 ---------- */
.panel {
  background: rgba(18, 18, 18, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(18px, 2.3vw, 28px);
}

.panel--slate {
  background: rgba(28, 43, 39, 0.58);
  border-color: var(--line-strong);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.panel__head h2,
.panel__head h3 { font-size: clamp(17px, 1.6vw, 21px); }

.section-head { margin-bottom: clamp(20px, 3vw, 36px); }

.section-head__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
}

.section-head h2 { margin-top: 9px; }

.section-head p {
  margin-top: 11px;
  max-width: 38em;
  font-size: 15px;
  color: var(--muted);
}

/* 面包屑 */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.crumbs li { display: flex; align-items: center; gap: 9px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }

.crumbs a { text-decoration: none; transition: color 0.16s var(--ease); }
.crumbs a:hover { color: var(--signal); }

/* 正文容器 */
.prose {
  max-width: 38em;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--paper);
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--text);
  margin-top: 1.9em;
}

.prose h3 { margin-top: 1.7em; color: var(--text); }

.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-top: 0.55em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 9px;
  height: 1px;
  background: var(--edge);
}

.prose a {
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid var(--edge);
}

/* 数据表 */
.data-table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: rgba(18, 18, 18, 0.55);
}

.data-table thead th {
  padding: 12px 14px;
  background: rgba(28, 43, 39, 0.78);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 13px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table tbody tr {
  transition: background-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.data-table tbody tr:hover {
  background: rgba(76, 224, 122, 0.06);
  box-shadow: inset 3px 0 0 var(--edge);
}

.data-table .col-status { text-align: right; white-space: nowrap; }

/* ---------- 11. 图片容器基础规则（供页面阶段使用） ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--panel);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06) brightness(0.94);
}

.media--soft { border-radius: var(--radius-m); }
.media--wide   { aspect-ratio: 16 / 9; }
.media--tall   { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media--scan::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(11, 31, 26, 0.3) 0 1px,
    transparent 1px 4px
  );
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(6, 18, 15, 0.92));
}

/* ---------- 12. 显现协议 ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

html[data-js="on"] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .header-shell {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: var(--gutter);
    right: var(--gutter);
    justify-self: stretch;
    padding: 10px;
    background: rgba(14, 28, 24, 0.985);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s linear;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav__list a {
    padding: 13px 15px;
    border-radius: 14px;
    font-size: 15px;
  }

  .grid--split { grid-template-columns: minmax(0, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .brand__meta { display: none; }

  .brand__mark { width: 34px; height: 34px; font-size: 19px; }
  .brand__name { font-size: 16.5px; }

  .header-cta .btn { padding: 7px 13px; font-size: 12.5px; }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-contact li { flex-direction: column; gap: 2px; }
  .footer-contact__k { width: auto; }
}

/* ---------- 14. 动效降低 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .status-light { animation: none; }

  html[data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
