/* ==========================================================================
   悦盈体育稳当 · 共享样式 /assets/site.css
   夜间赛场数据台：深墨绿连续画布 + 荧光青绿数据高亮 + 锐利直角与精密网格
   ========================================================================== */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; }

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

:target { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #071C16;
  --panel: #0C2A21;
  --panel-deep: #0A241C;
  --paper: #F4F1E8;
  --mint: #39FFB6;
  --mint-soft: #8CF5D0;
  --sage: #9BB5AA;
  --amber: #FFB547;
  --amber-deep: #7A4B12;
  --line: #1F4A3C;
  --alert: #FF6B6B;

  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --skew: -10deg;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-glow: 0 0 24px rgba(57, 255, 182, .28);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(12, 42, 33, .92) 0%, rgba(7, 28, 22, 0) 46%),
    repeating-linear-gradient(90deg, rgba(31, 74, 60, .30) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(31, 74, 60, .16) 0 1px, transparent 1px 88px);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

#main-content { outline: none; }
#main-content:focus-visible { outline: 2px solid var(--mint); outline-offset: 6px; }

/* ---------- 4. 无障碍工具 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--mint);
  color: #04211A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .22s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- 5. 版式容器与网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 880px; }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
  grid-template-columns: minmax(0, 1fr);
}
.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, 7fr) minmax(0, 5fr); }

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

/* ---------- 6. 排版 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.015em;
}
.display em {
  font-style: normal;
  color: var(--mint);
}

.lead {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  color: var(--sage);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--mint);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

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

.index-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--sage);
  margin-right: 10px;
}

.figure-lg {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 148px);
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--mint);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  background: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--mint); color: #04211A; }
.btn--primary:hover { background: var(--mint-soft); }
.btn--ghost { border-color: var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn--amber { background: var(--amber); color: #3A2200; }
.btn--amber:hover { background: #FFC772; }

/* ---------- 8. 标签 / 面板 / 图片容器 / 面包屑 / 数据带 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  border: 1px solid var(--line);
  color: var(--sage);
  white-space: nowrap;
}
.tag--live { background: var(--mint); border-color: var(--mint); color: #04211A; font-weight: 700; }
.tag--amber { background: rgba(122, 75, 18, .32); border-color: rgba(255, 181, 71, .45); color: var(--amber); }
.tag--alert { background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .45); color: var(--alert); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(16px, 2.2vw, 26px);
}
.panel--slant {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.media {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--panel);
  background-image:
    repeating-linear-gradient(135deg, rgba(31, 74, 60, .55) 0 1px, transparent 1px 14px);
  border: 1px solid var(--line);
}
.media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--slant {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
}
.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--sage);
}

.crumbs { padding: 18px 0 0; }
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
}
.crumbs__item { display: inline-flex; align-items: center; gap: 8px; color: var(--sage); }
.crumbs__item:not(:last-child)::after { content: "/"; color: rgba(155, 181, 170, .45); }
.crumbs__link { text-decoration: none; transition: color .2s var(--ease); }
.crumbs__link:hover { color: var(--mint); }
.crumbs__item[aria-current="page"] { color: var(--paper); }

.track {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.track::-webkit-scrollbar { height: 6px; }
.track::-webkit-scrollbar-thumb { background: var(--line); }
.track__rail {
  display: flex;
  gap: clamp(12px, 1.6vw, 22px);
  padding: 14px var(--gutter);
  min-width: max-content;
  scroll-snap-type: x proximity;
}
.track__rail > * { scroll-snap-align: start; }

/* ---------- 9. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .26s var(--ease), border-color .26s var(--ease),
              box-shadow .26s var(--ease);
}
.site-header.is-solid {
  background: rgba(7, 28, 22, .95);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .9);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(31, 74, 60, .55);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--mint-soft));
  transition: width .12s linear;
}

.header__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}
.brand__mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background: var(--mint);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 30% 30%, 30% 100%, 0 100%);
  box-shadow: var(--shadow-glow);
}
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.1;
}
.brand__version {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .14em;
  color: var(--mint);
  border: 1px solid rgba(57, 255, 182, .36);
  padding: 0 5px;
}
.brand:hover .brand__name { color: var(--mint); }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.nav__list { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); }
.nav__item { display: block; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14px;
  letter-spacing: .03em;
  color: var(--sage);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--paper); }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--paper); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__utility {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: clamp(10px, 1.5vw, 22px);
  border-left: 1px solid var(--line);
}
.util-link {
  display: inline-block;
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--paper);
  border: 1px solid var(--line);
  transition: border-color .2s var(--ease), color .2s var(--ease),
              background-color .2s var(--ease);
}
.util-link:hover,
.util-link:focus-visible { border-color: var(--mint); color: var(--mint); }
.util-link--accent {
  background: var(--mint);
  border-color: var(--mint);
  color: #04211A;
  font-weight: 700;
}
.util-link--accent:hover,
.util-link--accent:focus-visible {
  background: var(--mint-soft);
  border-color: var(--mint-soft);
  color: #04211A;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--mint); color: var(--mint); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 11px;
}
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.nav-toggle__text { line-height: 1; }

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  background: var(--panel-deep);
  border-top: 1px solid var(--line);
  color: var(--sage);
  overflow: hidden;
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  opacity: .55;
}

.footer__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 64px) var(--gutter) clamp(26px, 3.4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 64px);
}

.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__brand-name {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--paper);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer__brand-name:hover { color: var(--mint); }
.footer__tagline {
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 32ch;
  color: var(--sage);
}
.footer__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--mint);
  border: 1px solid rgba(57, 255, 182, .32);
  padding: 3px 7px;
}

.footer__contact { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.footer__contact-line {
  font-size: 13px;
  line-height: 1.6;
  color: var(--sage);
  word-break: break-word;
}
.footer__note {
  margin-top: 6px;
  padding-left: 11px;
  border-left: 2px solid var(--amber);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(155, 181, 170, .92);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.footer__col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--mint);
  margin-bottom: 14px;
}
.footer__list { display: flex; flex-direction: column; gap: 9px; }
.footer__item { display: block; }
.footer__link {
  display: inline-block;
  font-size: 14px;
  color: var(--sage);
  text-decoration: none;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer__link:hover,
.footer__link:focus-visible { color: var(--paper); padding-left: 6px; }

.footer__bottom { border-top: 1px solid var(--line); }
.footer__bottom-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px var(--gutter) clamp(20px, 3vw, 28px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.footer__legal {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--sage);
}
.footer__legal--muted { color: rgba(155, 181, 170, .62); }

/* ---------- 11. 动效 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav__link { font-size: 13.5px; }
  .nav__utility { padding-left: 12px; }
  .util-link { padding: 6px 9px; font-size: 11.5px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 62px; }

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

  .site-header .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: block;
    margin: 0;
    padding: 10px var(--gutter) 26px;
    background: var(--panel-deep);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 44px -30px rgba(0, 0, 0, .95);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s var(--ease);
  }
  .site-header .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list { display: block; }
  .nav__item + .nav__item { border-top: 1px solid var(--line); }
  .nav__link { display: block; padding: 14px 0; font-size: 16px; color: var(--paper); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--mint); }

  .nav__utility {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .util-link { padding: 9px 16px; font-size: 12.5px; }

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

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .brand__name { font-size: 16px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand__version { display: none; }
  .nav-toggle__text { display: none; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
}

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