/* ============================================================
   /assets/site.css — 亿兆体育 共享外壳
   设计线索：技术蓝图网格 + 看台热度 + 记分牌排版
   ============================================================ */

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

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

body,
h1, h2, h3, h4, p, figure, blockquote, ul, ol, 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; }

a { color: inherit; }

[hidden] { display: none !important; }

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

/* ---------- 变量 ---------- */
:root {
  --ink: #0B1730;
  --midnight: #060D1C;
  --pitch: #16A34A;
  --pitch-deep: #0B6B33;
  --stand: #F2622A;
  --lime: #E4FF3F;
  --paper: #F5F6F1;
  --steel: #8C97AC;
  --teal: #35D6C4;
  --grid: #1E2C48;

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

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --t-fast: 160ms ease;
  --t-mid: 200ms ease;
}

/* ---------- 基础排版 ---------- */
body {
  padding-top: 112px;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(30, 44, 72, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 44, 72, 0.55) 1px, transparent 1px),
    radial-gradient(120% 60% at 84% -12%, rgba(22, 163, 74, 0.16), transparent 62%),
    radial-gradient(90% 52% at -6% 0%, rgba(242, 98, 42, 0.10), transparent 58%);
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.display {
  font-size: clamp(44px, 7.2vw, 104px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.06;
}

.h3 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.78;
  color: var(--paper);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums slashed-zero;
  color: var(--steel);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: var(--steel);
}

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

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin: 1.6em 0 0.6em; }
.prose h3 { margin: 1.4em 0 0.5em; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose a {
  color: var(--teal);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--t-fast), color var(--t-fast);
}
.prose a:hover { background-size: 100% 1px; }

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

/* ---------- 布局 ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section { padding-block: 96px; }

.grid {
  display: grid;
  gap: 24px;
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--midnight);
}
.btn--lime:hover { background: var(--paper); border-color: var(--paper); }

.btn--line {
  background: transparent;
  border-color: var(--grid);
  color: var(--paper);
}
.btn--line:hover { border-color: var(--lime); color: var(--lime); }

.btn--solid {
  background: var(--pitch);
  border-color: var(--pitch);
  color: #04180C;
}
.btn--solid:hover { background: var(--teal); border-color: var(--teal); color: var(--midnight); }

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 2px;
  background: var(--lime);
  color: var(--midnight);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform var(--t-mid);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 悬浮控制台 ---------- */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 16px var(--gutter) 0;
  pointer-events: none;
}

.masthead__shell {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--max);
  min-height: 64px;
  margin-inline: auto;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--grid);
  border-radius: 2px;
  background: rgba(6, 13, 28, 0.94);
  transition: min-height var(--t-mid);
}

.masthead[data-condensed] .masthead__shell { min-height: 56px; }

.masthead__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pitch), var(--teal) 55%, var(--lime));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--pitch);
  color: #04180C;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--paper);
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.2;
  color: var(--steel);
}

/* 工具带 */
.tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.tools__mail {
  padding: 6px 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--t-fast), color var(--t-fast);
}
.tools__mail:hover { color: var(--lime); background-size: 100% 1px; }

.filter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 10px;
  border: 1px solid var(--grid);
  border-radius: 2px;
  background: rgba(11, 23, 48, 0.72);
  transition: border-color var(--t-fast);
}
.filter:focus-within { border-color: var(--lime); }

.filter__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--steel);
  white-space: nowrap;
}

.filter__input {
  width: clamp(84px, 10vw, 140px);
  min-width: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  outline: none;
}
.filter__input::placeholder { color: #5B6A86; }

.filter__hint {
  min-width: 2.6em;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--lime);
  text-align: right;
}

/* 胶囊 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--grid);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.chip:hover { border-color: var(--lime); color: var(--lime); }

.chip--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--midnight);
  font-weight: 700;
}
.chip--lime:hover { background: var(--paper); border-color: var(--paper); color: var(--midnight); }

/* 索引按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--grid);
  border-radius: 999px;
  background: rgba(11, 23, 48, 0.78);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle[aria-expanded="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--midnight);
}

.nav-toggle__glyph {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 14px;
}

.nav-toggle__glyph span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__glyph span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__glyph span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__glyph span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- 导航 ---------- */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav__sheet {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--grid);
  border-radius: 999px;
  background: rgba(11, 23, 48, 0.72);
}

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

.nav__item { display: flex; }

.nav__link {
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__link:hover { background: rgba(22, 163, 74, 0.22); color: #FFFFFF; }

.nav__link[aria-current="page"] {
  background: var(--pitch);
  color: #04180C;
  font-weight: 700;
}

.nav__aside { display: none; }

.nav__aside-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.nav__aside-link {
  padding: 4px 0;
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--t-fast), color var(--t-fast);
}
.nav__aside-link:hover { background-size: 100% 1px; color: var(--lime); }

.nav__aside-note {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: var(--steel);
}

/* 展开面板 */
.nav[data-open] .nav__sheet {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 90;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: 16px;
  border-radius: 3px;
  background: var(--midnight);
}

.nav[data-open] .nav__list {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.nav[data-open] .nav__link {
  border-radius: 2px;
  padding: 11px 12px;
  font-size: 14px;
}

.nav[data-open] .nav__link[aria-current="page"] {
  box-shadow: inset 4px 0 0 0 var(--lime);
}

.nav[data-open] .nav__aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--grid);
}

.nav[data-open] .nav__aside .btn { width: 100%; }

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.crumbs li { display: inline-flex; align-items: center; }
.crumbs li::after { content: "/"; margin-left: 8px; color: var(--grid); }
.crumbs li:last-child::after { content: none; }

.crumbs a { text-decoration: none; transition: color var(--t-fast); }
.crumbs a:hover { color: var(--lime); }
.crumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 面板 / 数据件 ---------- */
.panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--grid);
  border-radius: 2px;
  background: rgba(6, 13, 28, 0.66);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.panel:hover { border-color: var(--lime); }

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums slashed-zero;
  color: var(--lime);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--steel);
}

/* ---------- 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--grid);
  border-radius: 2px;
  background: var(--midnight);
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }

.media__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 44, 72, 0.85) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 44, 72, 0.85) 1px, transparent 1px);
  background-size: 28px 28px;
}

.media > .media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(6, 13, 28, 0), rgba(6, 13, 28, 0.94));
}

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  margin-top: 96px;
  border-top: 1px solid var(--grid);
  background: var(--midnight);
  color: var(--paper);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pitch) 0 40%, var(--stand) 40% 72%, var(--lime) 72% 100%);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 44px 32px;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  padding: 76px 0 30px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 36ch;
}

.footer__mark {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.footer__statement {
  font-size: 14px;
  line-height: 1.8;
  color: var(--steel);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__heading {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--paper);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__link {
  font-size: 14px;
  color: var(--steel);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer__link:hover { color: var(--lime); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  line-height: 1.65;
  color: var(--steel);
}

.footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--steel);
}

.footer__legal-part { display: inline-block; }

/* ---------- 平板 ---------- */
@media (max-width: 1179px) and (min-width: 900px) {
  .nav:not([data-open]) .nav__sheet { display: none; }
  .brand__tag { display: none; }
  .tools__mail { display: none; }
}

@media (max-width: 1179px) {
  .nav[data-open] .nav__sheet { width: min(300px, calc(100vw - 2 * var(--gutter))); }
}

@media (min-width: 1180px) {
  .masthead[data-condensed] .nav:not([data-open]) .nav__sheet { display: none; }
}

@media (max-width: 1023px) {
  .section { padding-block: 76px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; padding-top: 60px; }
  .footer__brand { grid-column: 1 / -1; max-width: 48ch; }
}

/* ---------- 移动 ---------- */
@media (max-width: 899px) {
  body {
    padding-top: 152px;
    padding-bottom: 96px;
    background-size: 56px 56px, 56px 56px, 100% 100%, 100% 100%;
  }

  .masthead { padding: 10px 12px 0; }

  .masthead__shell {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 0;
    padding: 10px;
  }

  .brand__mark { width: 36px; height: 36px; font-size: 12px; }
  .brand__name { font-size: 16px; }
  .brand__tag { display: none; }

  .tools {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 8px;
  }

  .filter { flex: 1 1 auto; }
  .filter__label { display: none; }
  .filter__input { width: 100%; }

  .masthead__shell > .nav-toggle { margin-left: auto; }
  .nav-toggle__text { display: none; }
  .nav-toggle { width: 40px; padding: 0; justify-content: center; }

  .nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 90;
    display: block;
  }

  .nav__sheet {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 999px;
    background: rgba(6, 13, 28, 0.97);
    scrollbar-width: none;
  }
  .nav__sheet::-webkit-scrollbar { display: none; }

  .nav__list { flex-wrap: nowrap; gap: 2px; }

  .nav__link {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .nav[data-open] .nav__sheet {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 3px;
  }

  .nav[data-open] .nav__item { display: block; }

  .section { padding-block: 64px; }
  .footer { margin-top: 64px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding: 48px 0 26px; }
  .footer__brand { max-width: none; }
  .footer__legal { flex-direction: column; }
}

@media (max-width: 599px) {
  .tools__mail { display: none; }
  .grid--12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 无障碍：减少动态 ---------- */
@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;
  }
}
