/* ==========================================================================
   HO赛场 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用按钮 / 容器 / 基础组件
   ========================================================================== */

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

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

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

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

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

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

a { color: var(--cyan); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange); }

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

::selection { background: var(--orange); color: var(--ink); }

/* ---------- 2. 变量 ---------- */
:root {
  --night: #071522;
  --night-deep: #040910;
  --pitch: #0E3B2E;
  --orange: #FF6A1A;
  --cyan: #35D0BA;
  --ice: #E9EEF3;
  --slate: #93A3B1;
  --amber: #FFC857;
  --line: #223546;
  --red: #E2574C;
  --ink: #040910;

  --max: 1280px;
  --max-wide: 1440px;
  --max-narrow: 820px;
  --radius: 4px;
  --shadow: 8px 8px 0 rgba(4, 9, 16, .65);
  --shadow-hard: 10px 12px 0 rgba(4, 9, 16, .72);
  --header-h: 84px;

  --font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "HarmonyOS Sans",
          "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 3. 中文正文基础 ---------- */
body {
  min-height: 100%;
  padding-top: var(--header-h);
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(34, 53, 70, .28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 53, 70, .22) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px;
  color: var(--ice);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.2; }
p + p { margin-top: .9em; }

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

/* ---------- 4. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.container--narrow { max-width: var(--max-narrow); }
.container--wide { max-width: var(--max-wide); }

.grid { display: grid; gap: clamp(18px, 2.6vw, 32px); }
.grid--3-9 { grid-template-columns: 3fr 9fr; }
.grid--4-8 { grid-template-columns: 4fr 8fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 5. 分区与纹理 ---------- */
.section {
  position: relative;
  padding-block: clamp(44px, 7vw, 96px);
}
.section--tight { padding-block: clamp(26px, 4vw, 52px); }
.section--pitch { background-color: var(--pitch); }
.section--deep { background-color: var(--night-deep); }

.texture-grid {
  background-image:
    linear-gradient(rgba(233, 238, 243, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 238, 243, .045) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ---------- 6. 排版 ---------- */
.display {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.02;
}
.page-title {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
}
.section-title {
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.22;
}
.lede {
  max-width: 62ch;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ice);
}
.note {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--slate);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--orange);
}
.mark-highlight {
  background: var(--orange);
  color: var(--ink);
  padding: 0 .18em;
  border-radius: 2px;
}
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 13px; color: var(--slate); }

/* ---------- 7. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -120px;
  z-index: 400;
  padding: 10px 18px;
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top .2s ease;
}
.skip-link:focus { top: 14px; color: var(--ink); }

/* ---------- 8. 头部 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  background: rgba(7, 21, 34, .86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1.5px solid var(--line);
  transition: background-color .3s ease, border-color .3s ease;
}
.site-header[data-stuck] {
  background: rgba(4, 9, 16, .95);
  border-bottom-color: #1b2c3c;
}
.site-header__inner {
  max-width: var(--max-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 12px clamp(14px, 4vw, 40px);
  transition: padding .3s ease;
}
.site-header[data-stuck] .site-header__inner { padding-block: 8px; }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1.5px;
  width: 100%;
  height: 2.5px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  pointer-events: none;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ice);
}
.brand:hover { color: var(--ice); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background: var(--orange);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(53, 208, 186, .28);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.brand__line { font-size: 12px; color: var(--slate); letter-spacing: .02em; }

/* 悬浮胶囊导航 */
.nav-pill {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.nav-pill__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 5px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 59, 46, .42);
  list-style: none;
}
.nav-pill__link {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.nav-pill__link:hover { color: var(--ice); background: rgba(233, 238, 243, .07); }
.nav-pill__link[aria-current="page"] {
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
}

/* 头部动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ice);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.nav-toggle:hover { border-color: var(--orange); color: var(--orange); }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

/* ---------- 9. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s ease,
              background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn--primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 5px 5px 0 rgba(4, 9, 16, .75);
}
.btn--primary:hover {
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(4, 9, 16, .75);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ice);
}
.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}
.btn--cyan {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 5px 5px 0 rgba(4, 9, 16, .75);
}
.btn--cyan:hover { color: var(--ink); transform: translate(-2px, -2px); }
.btn--sm { padding: 8px 15px; font-size: 13.5px; }

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--slate);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--slate); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--ice); }

/* ---------- 11. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background: rgba(14, 59, 46, .36);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card--flat {
  background: rgba(7, 21, 34, .55);
  box-shadow: none;
}
.card--accent { border-color: var(--orange); }
.card--link {
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease, border-color .3s ease;
}
.card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hard);
  border-color: var(--orange);
}
.card--slash::after {
  content: "";
  position: absolute;
  top: -1.5px;
  right: -1.5px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, transparent 50%, var(--orange) 50%);
  border-top-right-radius: var(--radius);
  pointer-events: none;
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.card__title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.card__body { font-size: 15.5px; color: var(--ice); }
.card__foot {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ---------- 12. 筛选 chip ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.chip:hover { color: var(--ice); border-color: var(--slate); transform: translateY(-2px); }
.chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}
.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.is-filtered-out { display: none !important; }

/* ---------- 13. 时间线与比分 ---------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
  padding-left: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange), var(--pitch) 62%, transparent);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--orange);
}
.timeline__item--live::before {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 26, .18);
  animation: ho-pulse 2.4s ease-in-out infinite;
}
.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
@keyframes ho-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 106, 26, .18); }
  50% { box-shadow: 0 0 0 10px rgba(255, 106, 26, 0); }
}

.score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.score__sep { font-size: .68em; color: var(--slate); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.status--live {
  color: var(--orange);
  border-color: rgba(255, 106, 26, .45);
  background: rgba(255, 106, 26, .1);
}
.status--soon {
  color: var(--amber);
  border-color: rgba(255, 200, 87, .4);
  background: rgba(255, 200, 87, .08);
}
.status--done {
  color: var(--cyan);
  border-color: rgba(53, 208, 186, .4);
  background: rgba(53, 208, 186, .08);
}

/* ---------- 14. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(14, 59, 46, .95), rgba(7, 21, 34, .98) 62%, rgba(4, 9, 16, 1));
  box-shadow: var(--shadow);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(233, 238, 243, .05) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(233, 238, 243, .04) 0 1px, transparent 1px 22px);
  pointer-events: none;
}
.media-frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 15px;
  font-size: 13px;
  color: var(--ice);
  background: linear-gradient(to top, rgba(4, 9, 16, .92), rgba(4, 9, 16, 0));
}
.media-frame__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ---------- 15. 滚动显现 ---------- */
.reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }
html[data-reveal="ready"] .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}
.reveal--d1 { transition-delay: 60ms; }
.reveal--d2 { transition-delay: 120ms; }
.reveal--d3 { transition-delay: 180ms; }

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  background: var(--night-deep);
  color: var(--ice);
  border-top: 1.5px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--cyan) 46%, transparent 82%);
}
.footer__grid {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 40px) clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(140px, .8fr));
  gap: clamp(24px, 4vw, 48px);
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 36ch; }
.brand--footer .brand__mark { box-shadow: 4px 4px 0 rgba(255, 106, 26, .22); }
.footer__note { font-size: 14px; line-height: 1.72; color: var(--slate); }
.footer__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.badge--live { color: var(--cyan); border-color: rgba(53, 208, 186, .42); }

.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links a {
  font-size: 14.5px;
  color: var(--slate);
  transition: color .2s ease, padding-left .2s ease;
}
.footer__links a:hover { color: var(--ice); padding-left: 4px; }

.footer__meta {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding: 18px clamp(16px, 4vw, 40px) 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  font-size: 13px;
  color: var(--slate);
}
.footer__legal,
.footer__contact { font-variant-numeric: tabular-nums; }
.footer__contact { color: var(--slate); }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1180px) {
  .brand__line { display: none; }
}

@media (max-width: 960px) {
  .grid--3-9,
  .grid--4-8,
  .grid--5-7 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 74px; }

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

  .nav-pill {
    position: absolute;
    left: clamp(14px, 4vw, 40px);
    right: clamp(14px, 4vw, 40px);
    top: calc(100% + 10px);
    display: block;
    padding: 10px;
    background: rgba(4, 9, 16, .97);
    border: 1.5px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-hard);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }
  .site-header[data-open] .nav-pill {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-pill__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .nav-pill__link {
    display: block;
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 16px;
    color: var(--ice);
  }
  .nav-pill__link[aria-current="page"] { color: var(--ink); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid--3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .header-cta { display: none; }
  .brand__mark { width: 36px; height: 36px; font-size: 14px; }
  .nav-toggle__label { display: none; }
  .btn { width: 100%; }
  .card__foot .btn { width: auto; }
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }
  html[data-reveal="ready"] .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
  .timeline__item--live::before { animation: none; }
  .card--link:hover { transform: none; }
  .chip:hover { transform: none; }
}
