/* =========================================================
   乐竞体育 · 全站共享样式  /assets/site.css
   夜场计分牌语言：深炭黑底 + 竞技绿 + 荧光黄 + 数据橙
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
  background: #0B0F0C;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  color-scheme: dark;

  /* 色彩 */
  --ink-900: #0B0F0C;
  --ink-800: #131C15;
  --ink-700: #1D2A20;
  --line: #33463A;
  --line-soft: rgba(51, 70, 58, .62);
  --green: #17E07A;
  --lime: #C8FF3D;
  --deep-green: #0E8F53;
  --orange: #FF7A1A;
  --white: #F5F9F4;
  --mist: #9FB5A6;

  /* 字体 */
  --font-display: "Oswald", "Barlow Condensed", "Arial Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-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;

  /* 尺度 */
  --shell: 1280px;
  --gutter: 20px;
  --ticker-h: 34px;
  --main-h: 78px;
  --header-h: 112px;

  /* 节奏 */
  --sp-1: 6px;
  --sp-2: 12px;
  --sp-3: 18px;
  --sp-4: 26px;
  --sp-5: 38px;
  --sp-6: 56px;
  --sp-7: 80px;
  --sp-8: 112px;

  /* 形状与动效 */
  --shadow-soft: 0 1px 0 rgba(51, 70, 58, .55), 0 22px 46px -34px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 240ms;
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--white);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html.nav-open,
html.nav-open body { overflow: hidden; }

#main-content { scroll-margin-top: calc(var(--header-h) + 18px); }

::selection { background: var(--lime); color: #0B0F0C; }

/* ---------- 4. 排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(38px, 6.4vw, 84px); }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; }
h4 { font-size: clamp(17px, 1.8vw, 21px); font-weight: 800; }

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 132px);
  line-height: .92;
  letter-spacing: -.025em;
}
.display--tight { letter-spacing: -.045em; }
.display strong, .display b { font-weight: 800; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.2;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--green);
  flex: none;
}

.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--mist); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--mist); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 5. Shell 与节奏 ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.section {
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line-soft);
}
.section--flush { border-top: 0; }
.rule { height: 1px; background: var(--line-soft); border: 0; }
.page-start { padding-top: calc(var(--header-h) + clamp(28px, 5vw, 64px)); }

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

/* ---------- 6. 斜切与档案块 ---------- */
.cut-a { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%); }
.cut-b { clip-path: polygon(0 0, 100% 0, 100% 100%, 30px 100%, 0 calc(100% - 30px)); }

.card {
  position: relative;
  background: var(--ink-800);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow-soft);
}
.card__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--green);
  margin-bottom: 10px;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--white);
  line-height: 1.2;
}
.card__body { margin-top: 12px; font-size: 14.5px; color: var(--mist); line-height: 1.55; }

/* ---------- 7. 标签与数字 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: var(--ink-800);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
  white-space: nowrap;
}
.tag--live { color: var(--lime); border-color: rgba(200, 255, 61, .42); }
.tag--alert { color: var(--orange); border-color: rgba(255, 122, 26, .45); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  letter-spacing: -.02em;
}
.num--xl { font-size: clamp(56px, 11vw, 140px); line-height: .86; font-weight: 700; color: var(--lime); }
.num--lg { font-size: clamp(32px, 5vw, 58px); line-height: .95; font-weight: 700; color: var(--white); }
.num--orange { color: var(--orange); }
.num--green { color: var(--green); }

/* ---------- 8. 数据单元 ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
}
.stat__delta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--orange); }

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 11px 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 12px) 100%, 0 100%);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn--solid { background: var(--green); border-color: var(--green); color: #06120C; }
.btn--solid:hover { background: var(--lime); border-color: var(--lime); }
.btn--ghost { color: var(--mist); }
.btn--ghost:hover { color: var(--lime); border-color: var(--green); }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------- 10. 图像容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-700);
  border: 1px solid var(--line);
}
.media > img,
.media > picture > img,
.media > video { width: 100%; height: 100%; object-fit: cover; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--skew { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%); }
.media--veil::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 15, 12, 0) 36%, rgba(11, 15, 12, .84) 100%);
}
.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--mist);
}

/* ---------- 11. 面包屑与正文 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--mist);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a { color: var(--mist); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--lime); }

.prose { max-width: 68ch; color: var(--mist); font-size: 16.5px; line-height: 1.65; }
.prose > * + * { margin-top: var(--sp-3); }
.prose h2, .prose h3 { color: var(--white); margin-top: var(--sp-5); }
.prose strong { color: var(--white); font-weight: 600; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--lime); }

/* ---------- 12. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--lime);
  color: #06120C;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- 13. 头部 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              backdrop-filter .3s var(--ease);
}
.site-header[data-scrolled="true"] {
  background: rgba(11, 15, 12, .95);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* 数据条 */
.header-ticker {
  height: var(--ticker-h);
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.header-ticker__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ticker-pulse {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--green);
  transform: rotate(45deg);
}
.ticker-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
}
.ticker-chapter {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--lime);
}

/* 主导航行 */
.header-main { min-height: var(--main-h); display: flex; align-items: center; }
.header-main__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 44px);
  min-height: var(--main-h);
  padding-block: 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: none;
  padding-block: 3px;
}
.brand__mark {
  position: relative;
  padding-left: 13px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: .07em;
  line-height: 1.1;
  color: var(--white);
}
.brand__mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: var(--lime);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  line-height: 1.2;
  color: var(--mist);
}
.brand:hover .brand__mark { color: var(--lime); }

.primary-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.7vw, 28px);
}
.nav-item { flex: none; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14.5px;
  letter-spacing: .04em;
  color: var(--mist);
  transition: color var(--dur) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 2px;
  background: var(--green);
  transition: right var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { right: 0; }
.nav-link[aria-current="page"] { color: var(--lime); }
.nav-link[aria-current="page"]::after { right: 0; background: var(--lime); }
.nav-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

.nav-foot { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--green); color: var(--lime); }
.nav-toggle:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; flex: none; }
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 阅读进度条 */
.header-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: transparent;
}
.header-rail__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--deep-green), var(--green) 45%, var(--lime));
  will-change: transform;
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 9vw, 140px);
  background: var(--ink-800);
  border-top: 1px solid var(--line);
}
.footer-edge {
  height: 4px;
  background:
    linear-gradient(90deg,
      var(--green) 0 30%,
      var(--lime) 30% 40%,
      transparent 40% 43%,
      var(--orange) 43% 49%,
      transparent 49% 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .9fr .9fr 1.35fr;
  gap: clamp(26px, 4vw, 60px);
  padding-block: clamp(44px, 6vw, 78px);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.brand--footer .brand__mark { font-size: 23px; }
.brand--footer .brand__sub { letter-spacing: .22em; }
.footer-note { font-size: 14px; color: var(--mist); line-height: 1.6; max-width: 34ch; }

.footer-ticks { display: flex; flex-direction: column; gap: 7px; }
.footer-tick {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--deep-green);
}
.footer-tick::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 1px;
  background: var(--deep-green);
}

.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--green);
}
.footer-list { display: flex; flex-direction: column; gap: 2px; }
.footer-link {
  position: relative;
  display: inline-block;
  align-self: flex-start;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 2.05;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--lime);
  transition: width var(--dur) var(--ease);
}
.footer-link:hover { color: var(--lime); padding-left: 15px; }
.footer-link:hover::before { width: 10px; }
.footer-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.footer-contact {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px 14px;
  font-size: 14px;
}
.footer-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--green);
  align-self: start;
  padding-top: 3px;
}
.footer-val { color: var(--white); line-height: 1.55; word-break: break-word; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 20px 34px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--mist);
}
.footer-legal { color: var(--deep-green); }
.footer-copy { text-align: right; }

.footer-slash {
  height: clamp(26px, 4vw, 46px);
  background: var(--ink-900);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 62%);
}

/* ---------- 15. 显现动效协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-reveal][data-visible="true"] { opacity: 1; transform: none; }

/* ---------- 16. 焦点可见 ---------- */
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1240px) {
  .header-actions .btn--ghost { display: none; }
}
@media (max-width: 1080px) {
  .header-actions { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-contact { grid-template-columns: 74px minmax(0, 1fr); max-width: 640px; }
}
@media (max-width: 960px) {
  :root { --main-h: 66px; --header-h: 100px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--ink-800);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    max-height: min(78vh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .primary-nav[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 0;
  }
  .nav-item { width: 100%; }
  .nav-link {
    display: block;
    padding: 15px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { padding-left: 14px; }
  .nav-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    background: var(--lime);
    transform: rotate(45deg);
  }
  .nav-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px var(--gutter) 26px;
  }
  .header-main__inner { gap: 12px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .header-ticker__inner { gap: 10px; }
  .ticker-chapter { display: none; }
  .ticker-text { font-size: 10px; letter-spacing: .08em; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .brand__sub { font-size: 9px; letter-spacing: .2em; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); gap: 4px 0; }
  .footer-key { padding-top: 8px; }
}

/* ---------- 18. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .header-rail__bar { will-change: auto; }
}
