/* ============================================================
   site.css — 新2足球备用 共享样式
   reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

:root {
  --c-turf: #17683F;
  --c-turf-deep: #0B3A26;
  --c-paper: #F4EEE2;
  --c-paper-2: #E4D9C6;
  --c-ink-blue: #0D1B2A;
  --c-neon: #4FE3C1;
  --c-orange: #E2711D;
  --c-silver: #A9B3BC;
  --c-ink: #14181B;
  --c-white: #FCFAF6;

  --font-display: "Helvetica Neue", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --fs-56: clamp(38px, 5.6vw, 56px);
  --fs-40: clamp(28px, 4vw, 40px);
  --fs-28: clamp(22px, 2.6vw, 28px);
  --fs-20: 20px;
  --fs-16: 16px;
  --fs-13: 13px;

  --shell: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  --edge: 3px;

  --shadow-paper: 0 1px 0 var(--c-paper-2), 0 14px 26px -20px rgba(13, 27, 42, .6);
  --shadow-lift: 0 2px 0 var(--c-paper-2), 0 24px 36px -24px rgba(13, 27, 42, .68);
  --hairline: rgba(169, 179, 188, .5);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.02em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--c-ink-blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(79, 227, 193, .8);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--c-ink-blue);
  color: var(--c-neon);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
}
.skip-link:focus {
  left: 12px;
  top: 8px;
}

/* ---------- 容器 ---------- */
.shell {
  width: min(var(--shell), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}
.shell--narrow { width: min(820px, calc(100% - var(--pad) * 2)); }

.section { padding: clamp(44px, 6vw, 80px) 0; }
.section--tight { padding: clamp(26px, 4vw, 44px) 0; }
.section--data {
  background: var(--c-ink-blue);
  color: var(--c-white);
}
.section--data .muted { color: rgba(252, 250, 246, .62); }

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- 文字 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--c-turf);
  margin-bottom: 12px;
}
.section--data .eyebrow { color: var(--c-neon); }

.display-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 12vw, 140px);
  line-height: .86;
  letter-spacing: -.045em;
}

.section-title {
  font-size: var(--fs-40);
  letter-spacing: -.025em;
}

.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; }
.muted { color: rgba(20, 24, 27, .62); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.sup {
  font-size: .5em;
  vertical-align: super;
  letter-spacing: .04em;
}

.note-rot {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--c-silver);
}
.section--data .note-rot { color: rgba(252, 250, 246, .5); }

/* ---------- 纸张与面板 ---------- */
.paper {
  background: var(--c-paper);
  border: 1px solid rgba(20, 24, 27, .16);
  box-shadow: var(--shadow-paper);
  padding: clamp(16px, 2vw, 26px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.paper:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.data-panel {
  position: relative;
  background: var(--c-ink-blue);
  color: var(--c-white);
  border: 1px solid rgba(169, 179, 188, .28);
  padding: clamp(20px, 3vw, 34px);
}
.data-panel__title {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  color: var(--c-neon);
  letter-spacing: .02em;
  margin-bottom: 12px;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--c-silver);
  opacity: .6;
}

/* ---------- 数字锚点 ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 88px);
  line-height: .9;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--c-ink);
}
.section--data .stat__num,
.data-panel .stat__num { color: var(--c-white); }
.stat__unit {
  font-size: .34em;
  vertical-align: super;
  font-weight: 700;
  letter-spacing: .04em;
  margin-left: .12em;
  color: var(--c-orange);
}
.section--data .stat__unit,
.data-panel .stat__unit { color: var(--c-neon); }
.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(20, 24, 27, .55);
}
.section--data .stat__label,
.data-panel .stat__label { color: var(--c-silver); }

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: var(--c-turf);
  --btn-fg: var(--c-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid transparent;
  border-radius: 2px;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--orange {
  --btn-bg: var(--c-orange);
  --btn-fg: var(--c-ink-blue);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-turf);
  border-color: var(--c-turf);
}
.btn--ghost:hover {
  --btn-bg: var(--c-turf);
  --btn-fg: var(--c-white);
}
.btn--light {
  --btn-bg: var(--c-paper);
  --btn-fg: var(--c-ink-blue);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.4;
  border: 1px solid currentColor;
  border-radius: 1px;
  color: var(--c-ink);
}
.tag--turf { color: var(--c-turf); }
.tag--orange { color: var(--c-orange); }
.tag--neon { color: var(--c-neon); }

/* ---------- 表格 ---------- */
.table { font-size: 14px; }
.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(20, 24, 27, .55);
  border-bottom: 2px solid rgba(169, 179, 188, .75);
}
.table tbody tr { transition: background .16s ease; }
.table tbody tr:hover { background: rgba(23, 104, 63, .08); }

.table--dark { color: var(--c-white); }
.table--dark thead th { color: var(--c-silver); border-bottom-color: rgba(169, 179, 188, .5); }
.table--dark th,
.table--dark td { border-bottom-color: rgba(169, 179, 188, .24); }
.table--dark tbody tr:hover { background: rgba(79, 227, 193, .1); }

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(20, 24, 27, .58);
}
.crumbs a { color: var(--c-turf); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs__sep { opacity: .55; }

/* ---------- 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--c-paper-2);
  border: 1px solid rgba(20, 24, 27, .16);
}
.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.06);
  transition: transform .5s ease;
}
.media:hover .media__img { transform: scale(1.03); }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, rgba(13, 27, 42, .44), rgba(13, 27, 42, 0) 58%);
  pointer-events: none;
}
.media__cap {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  background: rgba(13, 27, 42, .8);
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
}
.media__ph {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(13, 27, 42, .07) 0 8px, transparent 8px 16px);
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }

/* ============================================================
   头部：双层命令栏
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}

/* 顶层赛季刻度尺 */
.hd-ticks {
  background: var(--c-ink-blue);
  color: rgba(252, 250, 246, .62);
  height: 28px;
  overflow: hidden;
  transition: height .25s ease, opacity .25s ease;
}
.hd-ticks__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
}
.hd-ticks__label { color: var(--c-neon); }
.hd-ticks__span { color: var(--c-white); font-weight: 700; }
.hd-ticks__dash {
  width: 16px;
  height: 2px;
  background: var(--c-silver);
  opacity: .6;
}
.hd-ticks__rule {
  flex: 1;
  height: 8px;
  background-image: repeating-linear-gradient(90deg, rgba(169, 179, 188, .7) 0 1px, transparent 1px 16px);
}
.hd-ticks__note { white-space: nowrap; }

/* 主命令栏 */
.hd-bar {
  position: relative;
  background: var(--c-turf);
  color: var(--c-white);
  border-bottom: var(--edge) solid var(--c-ink-blue);
}
.hd-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  min-height: 66px;
  transition: min-height .25s ease;
}

.site-header[data-stuck="true"] .hd-ticks { height: 0; opacity: 0; }
.site-header[data-stuck="true"] .hd-bar__inner { min-height: 54px; }

/* 品牌 */
.hd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.hd-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--c-ink-blue);
  color: var(--c-neon);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  transform: rotate(-6deg);
  box-shadow: 3px 3px 0 rgba(11, 58, 38, .9);
  transition: transform .25s ease;
}
.hd-brand:hover .hd-brand__mark { transform: rotate(0deg); }
.hd-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hd-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--c-white);
}
.hd-brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: rgba(252, 250, 246, .66);
}

/* 导航 */
.hd-nav {
  display: flex;
  margin-left: auto;
}
.hd-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.hd-nav__item { flex: 0 0 auto; }
.hd-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1;
  color: rgba(252, 250, 246, .82);
  border-radius: 2px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.hd-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--c-neon);
  opacity: .72;
}
.hd-nav__label { white-space: nowrap; }
.hd-nav__link:hover {
  background: rgba(11, 58, 38, .55);
  color: var(--c-white);
}
.hd-nav__link[aria-current="page"] {
  background: var(--c-ink-blue);
  color: var(--c-white);
  box-shadow: inset 0 -3px 0 var(--c-neon);
}
.hd-nav__link[aria-current="page"] .hd-nav__idx { opacity: 1; }

/* 右侧动作区 */
.hd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hd-cta {
  padding: 9px 14px;
  font-size: 13px;
}

/* 菜单按钮 */
.hd-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 38px;
  border: 1px solid rgba(252, 250, 246, .42);
  border-radius: 2px;
  transition: background .18s ease, border-color .18s ease;
}
.hd-toggle:hover { background: rgba(11, 58, 38, .5); }
.hd-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-white);
  transition: transform .22s ease, opacity .22s ease;
}
.hd-toggle[aria-expanded="true"] .hd-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd-toggle[aria-expanded="true"] .hd-toggle__bar:nth-child(2) { opacity: 0; }
.hd-toggle[aria-expanded="true"] .hd-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 阅读进度条 */
.hd-progress {
  position: absolute;
  left: 0;
  bottom: calc(var(--edge) * -1);
  width: 100%;
  height: var(--edge);
  background: var(--c-neon);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 2;
  pointer-events: none;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--c-ink-blue);
  color: rgba(252, 250, 246, .78);
  border-top: var(--edge) solid var(--c-turf);
}
.ft-diag {
  position: absolute;
  top: -10%;
  right: -12%;
  width: 52%;
  height: 120%;
  background: linear-gradient(180deg, rgba(79, 227, 193, .1), rgba(23, 104, 63, .28));
  transform: skewX(-9deg);
  pointer-events: none;
}
.ft-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1.05fr .85fr 1.05fr;
  gap: clamp(22px, 3vw, 40px);
  padding: clamp(38px, 5vw, 62px) 0 clamp(24px, 3vw, 38px);
}
.ft-col { min-width: 0; }
.ft-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--c-white);
  margin: 0 0 8px;
}
.ft-desc {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.ft-coords {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(169, 179, 188, .85);
  margin: 0;
}
.ft-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--c-neon);
  margin: 0 0 14px;
}
.ft-list {
  font-size: 14px;
  line-height: 2.05;
}
.ft-key {
  display: inline-block;
  min-width: 44px;
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(252, 250, 246, .45);
}
.ft-list--links a {
  color: rgba(252, 250, 246, .82);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.ft-list--links a:hover {
  color: var(--c-neon);
  border-bottom-color: currentColor;
}
.ft-note {
  font-size: 13.5px;
  line-height: 1.8;
  margin: 0 0 10px;
}
.ft-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 16px 0 26px;
  border-top: 1px solid rgba(169, 179, 188, .24);
  font-size: 12px;
  color: rgba(252, 250, 246, .6);
}
.ft-icp {
  font-family: var(--font-mono);
  letter-spacing: .06em;
}
.ft-mini { letter-spacing: .1em; }

/* ============================================================
   滚动显现
   ============================================================ */
[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .62s cubic-bezier(.2, .7, .3, 1);
}
[data-js="on"] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  html { scroll-padding-top: 78px; }

  .hd-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    background: var(--c-turf-deep);
    border-bottom: var(--edge) solid var(--c-ink-blue);
    z-index: 6;
  }
  .hd-nav[data-open="true"] { display: block; }
  .hd-nav__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    padding: 10px var(--pad);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hd-nav__list::-webkit-scrollbar { display: none; }
  .hd-nav__item { flex: 0 0 auto; }
  .hd-nav__link {
    padding: 10px 14px;
    border-left: 1px solid rgba(169, 179, 188, .22);
    border-radius: 0;
  }
  .hd-nav__link[aria-current="page"] { box-shadow: inset 0 3px 0 var(--c-neon); }
  .hd-actions { margin-left: auto; }
  .hd-toggle { display: inline-flex; }
  .hd-cta { padding: 9px 12px; font-size: 12px; }
}

@media (max-width: 1024px) {
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-diag { width: 70%; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .col-4, .col-6, .col-8 { grid-column: span 12; }
}

@media (max-width: 640px) {
  .hd-ticks__note,
  .hd-ticks__rule { display: none; }
  .hd-ticks,
  .hd-ticks__inner { height: 24px; }
}

@media (max-width: 600px) {
  .ft-grid { grid-template-columns: 1fr; }
  .ft-diag { width: 92%; opacity: .6; }
}

@media (max-width: 520px) {
  .hd-brand__sub { display: none; }
  .hd-brand__mark { width: 34px; height: 34px; font-size: 12px; }
  .hd-cta { padding: 8px 10px; letter-spacing: 0; }
}

/* ============================================================
   reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity .2s ease;
  }
  .paper:hover,
  .btn:hover { transform: none; }
  .media:hover .media__img { transform: none; }
  .hd-brand:hover .hd-brand__mark { transform: rotate(-6deg); }
}
