/* ============================================================
   开体育官网 V2.0 — 共享站点样式 /assets/site.css
   夜间球场数据指挥台 · 框景刻度 · 玻璃层与纸层并置
   ============================================================ */

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

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

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

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

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

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

a { color: inherit; text-decoration: none; }

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

:focus-visible {
  outline: 2px solid #C8F53C;
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 02 tokens ---------- */
:root {
  --ink: #0A0E0D;
  --ink-2: #0F2B24;
  --glass: #16382F;
  --lime: #C8F53C;
  --lime-soft: #E6FF9B;
  --orange: #FF8E3C;
  --blue: #58B6E8;
  --paper: #F3EEE4;
  --paper-line: #D9D0BE;
  --fog: #E9F1EC;
  --ink-text: #121A17;
  --moss: #7E8F88;

  --line-dark: rgba(233, 241, 236, 0.14);
  --line-lime: rgba(200, 245, 60, 0.22);
  --line-lime-strong: rgba(200, 245, 60, 0.5);

  --font-display: "Archivo Narrow", "Helvetica Neue", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --font-num: ui-monospace, "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --font-body: system-ui, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --shell: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .9, .24, 1);
  --header-h: 0px;
}

/* ---------- 03 base typography ---------- */
body {
  background: var(--ink);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

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

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  color: var(--fog);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-size: clamp(1.65rem, 3.2vw, 2.75rem);
  color: var(--fog);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 92%;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  color: var(--fog);
}

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

.kicker {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
}

.index-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
}

.index-tag__no {
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.78;
  color: #C6D6CE;
}

.prose h2,
.prose h3 { margin-top: 1.9em; margin-bottom: 0.6em; color: var(--fog); }
.prose h2 { font-size: 1.35rem; font-family: var(--font-display); font-weight: 700; font-stretch: 92%; }
.prose h3 { font-size: 1.05rem; font-weight: 600; }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.1em; list-style: disc; }
.prose li + li { margin-top: 0.45em; }
.prose a { color: var(--lime); border-bottom: 1px solid var(--line-lime-strong); }
.prose a:hover { color: var(--lime-soft); }
.prose strong { color: var(--fog); font-weight: 600; }

.paper .prose { color: #2C3733; }
.paper .prose h2, .paper .prose h3, .paper .prose strong { color: var(--ink-text); }
.paper .prose a { color: #1F4A3C; border-bottom-color: rgba(31, 74, 60, 0.4); }
.paper .kicker, .paper .index-tag { color: #6E7C74; }

/* ---------- 04 layout ---------- */
.shell {
  width: min(var(--shell), 100% - 40px);
  margin-inline: auto;
}

.shell--narrow {
  width: min(760px, 100% - 40px);
  margin-inline: auto;
}

.section { padding-block: clamp(48px, 7vw, 96px); }

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

/* ---------- 05 surfaces ---------- */
.paper {
  background: var(--paper);
  color: var(--ink-text);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
}

.glass {
  background: rgba(22, 56, 47, 0.68);
  border: 1px solid var(--line-lime);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass); }
}

.rule {
  height: 1px;
  width: 100%;
  border: 0;
  background: var(--line-dark);
}

.rule--paper { background: var(--paper-line); }

/* ---------- 06 buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-align: center;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

.btn--lime {
  background: var(--lime);
  color: #0A0E0D;
  border-color: var(--lime);
}
.btn--lime:hover { background: var(--lime-soft); border-color: var(--lime-soft); }

.btn--ghost {
  background: transparent;
  color: var(--lime);
  border-color: var(--line-lime-strong);
}
.btn--ghost:hover { background: rgba(200, 245, 60, 0.12); color: var(--lime-soft); border-color: var(--lime); }

.btn--paper {
  background: transparent;
  color: var(--ink-text);
  border-color: rgba(18, 26, 23, 0.28);
}
.btn--paper:hover { background: var(--ink-text); color: var(--paper); border-color: var(--ink-text); }

.btn:active { transform: translateY(1px); }

/* ---------- 07 breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: rgba(200, 245, 60, 0.55);
}
.breadcrumb a:hover { color: var(--lime); }

/* ---------- 08 media frames ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-lime);
  border-radius: var(--radius);
}

.media > img,
.media > picture > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 16 / 9; }
.media--std  { aspect-ratio: 4 / 3; }
.media--sq   { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 11px;
  background: rgba(10, 14, 13, 0.84);
  color: var(--fog);
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 四角短记号——框景语言 */
.media::after,
.corner-marks::after {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  background-image:
    linear-gradient(var(--lime), var(--lime)),
    linear-gradient(var(--lime), var(--lime)),
    linear-gradient(var(--lime), var(--lime)),
    linear-gradient(var(--lime), var(--lime)),
    linear-gradient(var(--lime), var(--lime)),
    linear-gradient(var(--lime), var(--lime)),
    linear-gradient(var(--lime), var(--lime)),
    linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-size: 13px 1px, 1px 13px, 13px 1px, 1px 13px, 13px 1px, 1px 13px, 13px 1px, 1px 13px;
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
}

.corner-marks { position: relative; }

/* ---------- 09 skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--lime);
  color: #0A0E0D;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}

.skip-link:focus-visible {
  top: 12px;
  outline-offset: 2px;
}

/* ---------- 10 header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, #0A0E0D 0%, #0C1B17 100%);
  border-bottom: 1px solid var(--line-lime);
  isolation: isolate;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 5px;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(200, 245, 60, 0.42) 0 1px,
    transparent 1px 15px
  );
  opacity: 0.75;
}

/* 上层：品牌 + 日期检索 */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 15px;
  transition: padding-block .25s var(--ease);
}

.site-header[data-scrolled="true"] .header-top { padding-block: 8px; }
.site-header[data-scrolled="true"] .brand__meta { display: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(200, 245, 60, 0.55);
  border-radius: 1px;
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(200, 245, 60, 0.24);
}

.brand__mark::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(200, 245, 60, 0.85);
}

.brand__text { min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  font-size: 19px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--fog);
  white-space: nowrap;
}

.brand__meta {
  display: block;
  margin-top: 2px;
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  white-space: nowrap;
}

/* 日期检索条 */
.datestrip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.datestrip__label {
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
  white-space: nowrap;
  padding-right: 10px;
  border-right: 1px solid var(--line-dark);
}

.datestrip__chips {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.datestrip__chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  min-height: 34px;
  border: 1px solid rgba(233, 241, 236, 0.16);
  border-radius: var(--radius);
  background: rgba(22, 56, 47, 0.55);
  color: var(--fog);
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.chip__num {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--moss);
}

.chip:hover {
  border-color: var(--line-lime-strong);
  color: var(--lime-soft);
}

.chip[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: #0A0E0D;
  font-weight: 600;
}

.chip[aria-pressed="true"] .chip__num { color: #0A0E0D; }

/* 下层：栏目导航 */
.header-bar {
  position: relative;
  background: var(--ink-2);
  border-top: 1px solid rgba(233, 241, 236, 0.08);
}

.header-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}

.mainnav { position: relative; z-index: 3; }

.mainnav ul {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2px;
}

.mainnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 15px 14px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: #C3D3CB;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.mainnav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 9px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 1;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.mainnav a:hover { color: var(--lime-soft); background: rgba(22, 56, 47, 0.7); }
.mainnav a:hover::after { transform: scaleX(1); opacity: 0.5; }

.mainnav a[aria-current="page"] { color: var(--lime); }
.mainnav a[aria-current="page"]::after { transform: scaleX(1); opacity: 1; }

.header-help {
  display: none;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--moss);
  white-space: nowrap;
}

.header-help:hover { color: var(--lime); }

/* 移动导航按钮 */
.navtoggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-height: 40px;
  border: 1px solid var(--line-lime-strong);
  border-radius: var(--radius);
  color: var(--lime);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.navtoggle:hover { background: rgba(200, 245, 60, 0.12); }

.navtoggle__bars {
  position: relative;
  width: 16px;
  height: 11px;
  flex: 0 0 auto;
}

.navtoggle__bars::before,
.navtoggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .22s var(--ease);
}

.navtoggle__bars::before { top: 0; }
.navtoggle__bars::after { bottom: 0; }

.navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(4.75px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars::after { transform: translateY(-4.75px) rotate(-45deg); }

.navtoggle__text { line-height: 1; }

/* 滚动进度光带 */
.scroll-line {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  z-index: 4;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0.85;
  pointer-events: none;
}

/* ---------- 11 reveal ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

/* ---------- 12 footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--ink-2);
  color: #C3D3CB;
  border-top: 1px solid var(--line-lime);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(200, 245, 60, 0.4) 0 1px,
    transparent 1px 16px
  );
  opacity: 0.8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: 36px 32px;
  padding-block: 60px 40px;
}

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

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  font-size: 22px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--fog);
}

.footer-brand__meta {
  margin-top: 6px;
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-brand__note {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: #9FB3AA;
}

.footer-link-strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line-lime-strong);
  border-radius: var(--radius);
  color: var(--lime);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.footer-link-strong:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: #0A0E0D;
}

.footer-h {
  margin-bottom: 16px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-list li + li { margin-top: 10px; }

.footer-list a {
  font-size: 13.5px;
  line-height: 1.6;
  color: #C3D3CB;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.footer-list a:hover {
  color: var(--lime-soft);
  border-bottom-color: var(--line-lime-strong);
}

.footer-meta li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #9FB3AA;
  word-break: break-word;
}

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

.footer-meta__k {
  flex: 0 0 auto;
  min-width: 38px;
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6E857C;
  padding-top: 2px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 30px;
  padding-block: 18px 28px;
  border-top: 1px solid rgba(233, 241, 236, 0.1);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #6E857C;
}

.footer-base__item { line-height: 1.7; }

/* ---------- 13 responsive ---------- */
@media (max-width: 1100px) {
  .header-help { display: none; }
}

@media (max-width: 920px) {
  .shell,
  .shell--narrow { width: min(var(--shell), 100% - 28px); }

  .header-top {
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 12px;
  }

  .datestrip {
    width: 100%;
    order: 3;
    gap: 10px;
  }

  .datestrip__chips { flex: 1 1 auto; }

  .navtoggle { display: inline-flex; }

  .mainnav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line-lime);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    transition: max-height .28s var(--ease), visibility .28s var(--ease);
  }

  .mainnav[data-open="true"] {
    visibility: visible;
    max-height: min(72vh, 540px);
    overflow-y: auto;
  }

  .mainnav ul {
    flex-direction: column;
    gap: 0;
    padding: 6px 14px 18px;
  }

  .mainnav a {
    width: 100%;
    padding: 14px 6px;
    font-size: 15px;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(233, 241, 236, 0.08);
  }

  .mainnav a::after {
    left: 6px;
    right: auto;
    width: 24px;
    bottom: 10px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 48px 32px;
  }

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

@media (max-width: 620px) {
  .brand__name { font-size: 17px; }
  .brand__meta { font-size: 9.5px; letter-spacing: 0.12em; }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

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

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

  .media::after,
  .corner-marks::after { inset: 7px; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js-reveal [data-reveal],
  .js-reveal [data-reveal="in"] {
    opacity: 1;
    transform: none;
  }

  .scroll-line { transition: none; }
}
