/* ==========================================================================
   亚星体育 · 赛事记录与统计对照 — 共享样式
   /assets/site.css
   气质：夜间赛况数据面板 / 深墨蓝底 + 荧光青路径 + 信号橙状态
   ========================================================================== */

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

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

ul, ol { list-style: none; }

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

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

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

table { border-collapse: collapse; border-spacing: 0; }

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #04101D;
  --ink-800: #071A2C;
  --ink-700: #0C2740;
  --line: #1D3A57;
  --line-soft: rgba(29, 58, 87, 0.55);

  --cyan: #2FE3D2;
  --cyan-soft: #A6F4EC;
  --orange: #FF7A1F;
  --green: #46D08A;
  --graphite: #74869A;
  --mist: #CBD8E3;
  --white: #F4F9FC;

  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --gap: 24px;
  --pad: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 中文排版基础 ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--mist);
  background-color: var(--ink-900);
  background-image:
    linear-gradient(90deg, rgba(29, 58, 87, 0.26) 1px, transparent 1px),
    linear-gradient(180deg, rgba(29, 58, 87, 0.26) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: -1px -1px;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--white);
}

strong, b { color: var(--white); font-weight: 600; }

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

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

.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;
}

/* ---------- 4. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.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--split { grid-template-columns: minmax(0, 32fr) minmax(0, 68fr); gap: 40px; }

/* ---------- 5. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-900);
  background: var(--cyan);
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 10px; }

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(4, 16, 29, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(560px, 76%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(47, 227, 210, 0.5), transparent);
  pointer-events: none;
}

/* 6.1 状态带 */
.header-strip {
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--graphite);
}
.header-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}
.header-strip__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan-soft);
}
.header-strip__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(70, 208, 138, 0.16);
}
.header-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.header-strip__link::after {
  content: "→";
  color: var(--orange);
  letter-spacing: 0;
}
.header-strip__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* 6.2 刊头 */
.masthead { padding: 20px 0 16px; }
.masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.masthead__inner::before,
.masthead__inner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(160px, 12vw);
  height: 1px;
  background: var(--line);
}
.masthead__inner::before { left: var(--pad); }
.masthead__inner::after { right: var(--pad); }

.masthead__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
}
.masthead__name {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.2vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--white);
  transition: color 0.16s var(--ease);
}
.masthead__brand:hover .masthead__name { color: var(--cyan); }
.masthead__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: var(--graphite);
}

/* 6.3 移动端切换按钮 */
.nav-toggle {
  display: none;
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--ink-800);
  color: var(--cyan);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.nav-toggle::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle[aria-expanded="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-900);
}

/* 6.4 栏目导航 */
.masthead-nav { border-top: 1px solid var(--line); }
.masthead-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
}
.masthead-nav__item { display: flex; }
.masthead-nav__link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--mist);
  border-bottom: 2px solid transparent;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.masthead-nav__link:hover {
  color: var(--white);
  background: rgba(12, 39, 64, 0.75);
}
.masthead-nav__link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: linear-gradient(180deg, rgba(47, 227, 210, 0.12), rgba(47, 227, 210, 0));
}

/* 6.5 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  pointer-events: none;
  z-index: 3;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  background: var(--ink-800);
  border-top: 1px solid var(--line);
  color: var(--graphite);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange) 55%, transparent);
  opacity: 0.65;
}

.footer-grid {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.5fr)
    repeat(3, minmax(110px, 0.8fr))
    minmax(240px, 1.7fr);
  gap: 32px 28px;
  padding: 56px 0 40px;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--white);
}
.footer-brand__sub {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--graphite);
}
.footer-brand__rule {
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 18px;
  background: var(--cyan);
}

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--cyan-soft);
}
.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col__link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}
.footer-col__link::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1px;
  margin-right: 9px;
  vertical-align: middle;
  background: var(--line);
  transition: width 0.16s var(--ease), background-color 0.16s var(--ease);
}
.footer-col__link:hover { color: var(--cyan); transform: translateX(3px); }
.footer-col__link:hover::before { width: 16px; background: var(--cyan); }

.footer-contact {
  border: 1px solid var(--line);
  background: var(--ink-700);
  padding: 20px 22px;
}
.footer-contact__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.footer-contact__row:last-of-type { border-bottom: 0; }
.footer-contact__label {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--graphite);
}
.footer-contact__value {
  color: var(--mist);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.footer-contact__note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.75;
  color: var(--graphite);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--line);
}
.footer-meta__record {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--graphite);
}
.footer-meta__copy {
  font-size: 12px;
  color: var(--graphite);
}
.footer-note {
  max-width: 74ch;
  padding-bottom: 38px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--graphite);
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
              border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn--primary {
  background: var(--orange);
  color: var(--ink-900);
}
.btn--primary:hover { background: #FF8F42; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--cyan);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  background: rgba(47, 227, 210, 0.08);
}
.btn--sm {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 12px;
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  padding: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--graphite);
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.breadcrumbs__link {
  color: var(--graphite);
  transition: color 0.16s var(--ease);
}
.breadcrumbs__link:hover { color: var(--cyan); }
.breadcrumbs__sep { color: var(--line); }
.breadcrumbs__current { color: var(--mist); }

/* ---------- 10. 正文容器 ---------- */
.prose {
  max-width: 38em;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--mist);
}
.prose p + p { margin-top: 1.2em; }
.prose h2 {
  margin: 2em 0 0.7em;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.03em;
}
.prose h3 {
  margin: 1.6em 0 0.6em;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.prose ul { margin: 1em 0; }
.prose li { padding-left: 20px; position: relative; }
.prose li + li { margin-top: 0.5em; }
.prose li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--cyan);
}
.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(47, 227, 210, 0.4);
  transition: border-color 0.16s var(--ease);
}
.prose a:hover { border-bottom-color: var(--cyan); }

/* ---------- 11. 通用组件 ---------- */
.panel {
  background: var(--ink-800);
  border: 1px solid var(--line);
  padding: 24px;
}
.panel--tight { padding: 18px; }
.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.panel__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--white);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.sec-num {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--ink-700);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  background: var(--ink-800);
  color: var(--graphite);
}
.tag--cyan {
  color: var(--cyan);
  border-color: rgba(47, 227, 210, 0.45);
  background: rgba(47, 227, 210, 0.08);
}
.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 31, 0.45);
  background: rgba(255, 122, 31, 0.08);
}
.tag--green {
  color: var(--green);
  border-color: rgba(70, 208, 138, 0.45);
  background: rgba(70, 208, 138, 0.08);
}

/* 图片容器基础规则（供页面阶段放置图片占位） */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line);
}
.media-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 34px;
  height: 2px;
  background: var(--cyan);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 14px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--cyan-soft);
  background: linear-gradient(0deg, rgba(4, 16, 29, 0.92), rgba(4, 16, 29, 0));
}

/* 分段切换 */
.tabs__list {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.tabs__btn {
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--graphite);
  border-bottom: 2px solid transparent;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.tabs__btn:hover { color: var(--white); background: rgba(12, 39, 64, 0.7); }
.tabs__btn[aria-selected="true"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(47, 227, 210, 0.07);
}
.tabs__panel { padding-top: 22px; }

/* 滚动显现 */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--cyan);
  background: var(--ink-700);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease),
              background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; }
.to-top:hover {
  background: var(--cyan);
  color: var(--ink-900);
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 24px;
  }
  .footer-brand,
  .footer-contact { grid-column: 1 / -1; }
}

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

  .masthead { padding: 16px 0 14px; }
  .masthead__inner::before,
  .masthead__inner::after { display: none; }
  .masthead__name { font-size: 28px; letter-spacing: 0.14em; }
  .masthead__sub { font-size: 10px; letter-spacing: 0.18em; }

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

  .masthead-nav {
    max-height: 0;
    overflow-y: auto;
    border-top: 1px solid transparent;
    transition: max-height 0.3s var(--ease);
  }
  .masthead-nav[data-open="true"] {
    max-height: min(62vh, 520px);
    border-top-color: var(--line);
  }
  .masthead-nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .masthead-nav__item { width: 100%; }
  .masthead-nav__link {
    justify-content: flex-start;
    min-height: 50px;
    padding: 0 22px;
    font-size: 14px;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--line-soft);
    border-left: 2px solid transparent;
  }
  .masthead-nav__link:hover { background: rgba(12, 39, 64, 0.8); }
  .masthead-nav__link[aria-current="page"] {
    color: var(--cyan);
    border-left-color: var(--cyan);
    border-bottom-color: var(--line-soft);
    background: linear-gradient(90deg, rgba(47, 227, 210, 0.14), rgba(47, 227, 210, 0));
  }
}

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

  .header-strip__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 16px;
    padding: 7px 0;
    text-align: center;
  }
  .header-strip { font-size: 10px; letter-spacing: 0.08em; }
  .header-strip__badge { font-size: 10px; }

  .panel { padding: 18px; }
  .panel__head { flex-direction: column; gap: 6px; }

  .to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 640px) {
  :root { --pad: 18px; }
  body { font-size: 15.5px; }
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    padding: 40px 0 30px;
  }
  .footer-brand,
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact { padding: 18px; }
  .footer-meta { justify-content: flex-start; }
}

/* ---------- 13. 减少动效 ---------- */
@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;
  }

  html.has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
