/* ============================================================
   01体育赛事 · 共享样式 /assets/site.css
   夜场墨绿 + 荧光青 + 倒计时橙红 · 控制台气质
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--score);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

[hidden] { display: none !important; }

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

a { color: var(--cyan); text-decoration: none; }

button { font: inherit; color: inherit; }

address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 变量 ---------- */
:root {
  --night: #05130F;
  --grass: #0B2A22;
  --stand: #123A2E;
  --cyan: #2BE6C8;
  --cyan-soft: #9BF6E6;
  --hot: #FF5A2B;
  --hot-soft: #FF7A52;
  --amber: #FFB020;
  --score: #F1F6F4;
  --mute: #9DB6AE;
  --line: #1E4A3E;

  --cyan-12: rgba(43, 230, 200, .12);
  --hot-12: rgba(255, 90, 43, .16);
  --amber-12: rgba(255, 176, 32, .16);
  --glass: rgba(5, 19, 15, .95);

  --r-card: 14px;
  --r-panel: 20px;
  --wrap: 1320px;
  --gutter: clamp(18px, 4vw, 40px);
  --gap: 24px;
  --header-h: 78px;
  --header-h-sm: 62px;
  --bar-h: 74px;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  color: var(--score);
}

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

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

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 9vw, 160px);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0 0 .18em;
  color: var(--score);
}

.h2 { font-size: clamp(32px, 4.2vw, 44px); }
.h3 { font-size: clamp(22px, 2.5vw, 26px); }

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.72;
  color: var(--mute);
  max-width: 46ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: .92em;
  letter-spacing: .02em;
  color: var(--cyan);
}

.muted { color: var(--mute); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--cyan);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  display: block;
}

.side-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--mute);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1;
}

/* ---------- 布局 ---------- */
main { display: block; }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }

.section { padding-block: clamp(56px, 8vw, 110px); position: relative; }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }

.page-head {
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(32px, 5vw, 64px);
}

.offset-top { padding-top: calc(var(--header-h) + 24px); }

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

.stack > * + * { margin-top: var(--stack, 16px); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: var(--gap); }
.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)); }
.grid--4-8 { grid-template-columns: 4fr 8fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .grid--4-8,
  .grid--8-4,
  .grid--7-5,
  .grid--5-7 { grid-template-columns: 1fr; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.btn--hot {
  background: var(--hot);
  border-color: var(--hot);
  color: #08130F;
}

.btn--hot:hover {
  background: var(--hot-soft);
  border-color: var(--hot-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(255, 90, 43, .9);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--score);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan-soft);
  transform: translateY(-2px);
}

/* ---------- 筛选 chip ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--score);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}

.chip:hover { border-color: var(--cyan); color: var(--cyan-soft); }

.chip[aria-pressed="true"] {
  background: var(--cyan-12);
  border-color: var(--cyan);
  color: var(--cyan-soft);
}

/* ---------- 状态与标签 ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mute);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mute);
  box-shadow: 0 0 0 4px rgba(157, 182, 174, .12);
  flex: 0 0 auto;
}

.status--live { color: var(--hot); }
.status--live .status__dot { background: var(--hot); box-shadow: 0 0 0 4px var(--hot-12); }

.status--soon { color: var(--amber); }
.status--soon .status__dot { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-12); }

.status--done { color: var(--cyan); }
.status--done .status__dot { background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-12); }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mute);
}

/* ---------- 面板与卡片 ---------- */
.panel {
  background: var(--grass);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: clamp(20px, 3vw, 32px);
}

.panel--stand { background: var(--stand); }

.card {
  background: var(--grass);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 20px 44px -28px rgba(43, 230, 200, .55);
}

.is-filtered-out { display: none !important; }

/* ---------- 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(43, 230, 200, .14), transparent 60%),
    linear-gradient(140deg, var(--stand), var(--grass) 55%, var(--night));
  isolation: isolate;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(241, 246, 244, .05) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

.media__img {
  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--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 21 / 9; }

.media__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 19, 15, .78);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan-soft);
}

/* 斜切收束工具 */
.tilt-top { clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%); }
.tilt-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%); }

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mute);
  margin-bottom: 26px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs__item[aria-current="page"] { color: var(--cyan); }

.breadcrumbs__link {
  color: var(--mute);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.breadcrumbs__link:hover {
  color: var(--cyan-soft);
  border-bottom-color: var(--cyan);
}

.breadcrumbs__sep { color: var(--line); }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--cyan);
  color: #041410;
  font-weight: 700;
  font-size: 15px;
  transition: top .2s ease;
}

.skip-link:focus { top: 0; }

/* ---------- 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  color: var(--score);
  background: linear-gradient(180deg, rgba(5, 19, 15, .92) 0%, rgba(5, 19, 15, .5) 58%, rgba(5, 19, 15, 0) 100%);
  transition: background-color .35s ease;
}

.site-header.is-solid { background: transparent; }

.site-header__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--glass);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  opacity: 0;
  transition: opacity .35s ease, border-color .35s ease;
}

.site-header.is-solid .site-header__veil {
  opacity: 1;
  border-bottom-color: var(--line);
}

.header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  transition: min-height .3s ease;
}

.site-header.is-solid .header__inner { min-height: var(--header-h-sm); }

.header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: block;
  height: 2px;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--hot));
  pointer-events: none;
  transition: transform .15s linear;
}

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

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 2px 9px 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cyan-12);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cyan);
}

.brand__body {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .06em;
}

.brand__sign {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--mute);
}

.brand--footer .brand__mark { font-size: 30px; min-width: 54px; }
.brand--footer .brand__name { font-size: 20px; }

/* 导航 */
.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--score);
  text-decoration: none;
  transition: color .22s ease, background-color .22s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s ease;
}

.nav__link:hover { color: var(--cyan-soft); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  color: var(--cyan);
  background: var(--cyan-12);
}

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--hot);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--score);
  cursor: pointer;
  transition: border-color .22s ease, color .22s ease;
}

.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan-soft); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease;
}

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

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

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
}

/* ---------- 头部 · 平板 / 手机 ---------- */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .header__actions { margin-left: auto; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px var(--gutter) 26px;
    background: rgba(5, 19, 15, .99);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
  }

  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }

  .nav__item { border-bottom: 1px solid var(--line); }

  .nav__link {
    display: block;
    padding: 15px 4px;
    border-radius: 0;
    font-size: 17px;
    letter-spacing: .08em;
  }

  .nav__link::after { left: 4px; right: auto; width: 34px; bottom: 10px; }

  .nav__link[aria-current="page"] { background: transparent; }
}

/* ---------- 头部 · 移动端底部工具栏 ---------- */
@media (max-width: 767px) {
  body { padding-bottom: calc(var(--bar-h) + 12px); }

  .header__actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(5, 19, 15, .97);
    border-top: 1px solid var(--line);
  }

  .header__actions .btn { width: 100%; padding: 12px 10px; font-size: 14px; }
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 120px);
  padding: calc(52px + 3.4vw) 0 28px;
  background: linear-gradient(180deg, var(--stand) 0%, var(--grass) 44%, #071B16 100%);
  color: var(--score);
  clip-path: polygon(0 3.4vw, 100% 0, 100% 100%, 0 100%);
}

.footer__inner { position: relative; z-index: 2; }

.footer__top {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) repeat(3, minmax(118px, 1fr)) minmax(220px, 1.25fr);
  gap: clamp(24px, 3vw, 46px);
}

.footer__brand { display: flex; flex-direction: column; gap: 16px; }

.footer__tagline {
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mute);
  margin: 0;
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--cyan);
  margin: 0 0 16px;
}

.footer__list { display: grid; gap: 11px; }

.footer__link {
  display: inline-block;
  font-size: 15px;
  color: var(--score);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.footer__link:hover {
  color: var(--cyan-soft);
  border-bottom-color: var(--cyan);
}

.contact-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 12px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

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

.contact-row__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.contact-row__value {
  color: var(--score);
  overflow-wrap: anywhere;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  margin-top: clamp(32px, 5vw, 58px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mute);
}

.footer__copy, .footer__icp, .footer__hours { display: inline-block; }

.footer__icp { color: var(--cyan-soft); }

.footer__hours { color: var(--mute); }

@media (max-width: 1100px) {
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand,
  .footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
  transition-delay: calc(var(--i, 0) * 60ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] { opacity: 1 !important; transform: none !important; }

  .card:hover,
  .btn:hover { transform: none; }

  .header__progress { transition: none; }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: #fff; color: #111; }
}
