/* ============ 足球备用赛场 · 共享层 /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, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
main { display: block; }

/* --- tokens --- */
:root {
  --night: #0C1F19;
  --turf: #17402F;
  --turf-line: #2E6B52;
  --fluo: #D9FF4B;
  --arc: #FF7A1A;
  --deep: #071322;
  --paper: #F1EFE7;
  --grey: #8AA79A;
  --edge: #C9E6D8;
  --stoppage: #E4573D;

  --font-display: "Source Han Sans SC Heavy", "Noto Sans SC Heavy", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-index: ui-monospace, "JetBrains Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --font-note: "ZCOOL KuaiLe", "LXGW WenKai", "Kaiti SC", STKaiti, KaiTi, "Songti SC", cursive;

  --wrap: 1240px;
  --rule: 1px solid rgba(46, 107, 82, 0.55);
  --header-h: 128px;
}

/* --- 中文排版基座 --- */
body {
  background: var(--night);
  color: var(--edge);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 900; line-height: 1.22; color: var(--paper); letter-spacing: -0.005em; }
.mono, .is-mono { font-family: var(--font-index); letter-spacing: 0.06em; }
.hand { font-family: var(--font-note); letter-spacing: 0.03em; font-size: 20px; line-height: 1.7; }
::selection { background: var(--fluo); color: var(--night); }

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

#main-content { scroll-margin-top: 140px; }
[id] { scroll-margin-top: 140px; }

/* --- 跳转链接 --- */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 300;
  transform: translate(-50%, -160%);
  padding: 10px 20px;
  background: var(--fluo);
  color: var(--night);
  font-family: var(--font-index);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --- 布局容器 --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.rule { height: 1px; background: var(--turf-line); border: 0; opacity: 0.6; }

/* --- 章节节奏 --- */
.section {
  padding: 58px 0;
  border-top: var(--rule);
}
.section--tight { padding: 30px 0; }
.section--deep { background: var(--deep); border-top-color: transparent; }
.section--panel { background: var(--turf); }
.section--wide .wrap { max-width: var(--wrap); }
.section--narrow .wrap { max-width: 820px; }
.section__index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-family: var(--font-index);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--grey);
}
.section__index::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--turf-line);
  opacity: 0.7;
}
.section__title {
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--paper);
  margin: 0 0 14px;
}

/* --- 12 列网格 --- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--turf-line);
  background: transparent;
  color: var(--edge);
  font-family: var(--font-index);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn--solid {
  background: var(--fluo);
  border-color: var(--fluo);
  color: var(--night);
  font-weight: 700;
}
.btn--solid:hover,
.btn--solid:focus-visible { box-shadow: 0 0 0 3px rgba(217, 255, 75, 0.22); }
.btn--ghost:hover,
.btn--ghost:focus-visible { border-color: var(--fluo); color: var(--fluo); }
.btn--arc { border-color: var(--arc); color: var(--arc); }
.btn--arc:hover,
.btn--arc:focus-visible { background: var(--arc); color: var(--night); }

/* --- 刊头 --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--night);
  border-bottom: var(--rule);
  box-shadow: 0 10px 26px rgba(3, 10, 8, 0.55);
}
.site-header::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--fluo);
}
.masthead {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "coord brand actions";
  align-items: center;
  gap: 20px;
  padding: 18px 0 16px;
  transition: padding 0.22s ease;
}
.masthead__coord {
  grid-area: coord;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.masthead__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--arc);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.16);
}
.brand {
  grid-area: brand;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--paper);
}
.brand__flag {
  flex: none;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--arc);
  border-left: 2px solid var(--arc);
  border-top-left-radius: 16px;
  transition: transform 0.24s ease;
}
.brand:hover .brand__flag { transform: translateY(-2px) rotate(-6deg); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.brand--footer .brand__name { font-size: 22px; }
.masthead__actions {
  grid-area: actions;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- 移动导航按钮 --- */
.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--turf-line);
  color: var(--edge);
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.12em;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle__bar {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--fluo); color: var(--fluo); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --- 栏目导航 --- */
.primary-nav {
  border-top: var(--rule);
  transition: border-color 0.22s ease;
}
.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.primary-nav__item { display: flex; align-items: center; }
.primary-nav__item + .primary-nav__item::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin: 0 3px;
  border-left: 1px solid var(--turf-line);
  border-bottom: 1px solid var(--turf-line);
  border-bottom-left-radius: 14px;
  opacity: 0.85;
}
.primary-nav__link {
  position: relative;
  display: inline-block;
  padding: 15px 15px 14px;
  color: var(--edge);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.18s ease;
}
.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 9px;
  height: 2px;
  background: var(--fluo);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.primary-nav__link:hover,
.primary-nav__link:focus-visible { color: var(--fluo); }
.primary-nav__link:hover::after,
.primary-nav__link:focus-visible::after { transform: scaleX(1); }
.primary-nav__link[aria-current="page"] { color: var(--fluo); }
.primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* --- 刊头收缩态 --- */
.site-header[data-shrunk] .masthead__coord,
.site-header[data-shrunk] .masthead__actions { display: none; }
.site-header[data-shrunk] .masthead__inner { padding: 9px 0 8px; }
.site-header[data-shrunk] .brand__name { font-size: 20px; }
.site-header[data-shrunk] .primary-nav__link { padding: 11px 15px 10px; }
.site-header[data-shrunk] .primary-nav__link::after { bottom: 6px; }

/* --- 页脚 --- */
.site-footer {
  background: var(--deep);
  border-top: 1px solid var(--turf-line);
  color: var(--grey);
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 38px 28px;
  padding-top: 54px;
  padding-bottom: 34px;
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__tagline {
  max-width: 30ch;
  font-family: var(--font-index);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--grey);
}
.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-index);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fluo);
}
.footer__list { display: flex; flex-direction: column; gap: 6px; }
.footer__link {
  display: inline-block;
  padding: 3px 0;
  color: var(--edge);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.16s ease;
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--fluo);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer__link[aria-current="page"] { color: var(--fluo); }
.footer__bottom {
  display: grid;
  gap: 8px;
  padding-top: 22px;
  padding-bottom: 20px;
  border-top: var(--rule);
  font-family: var(--font-index);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--grey);
}
.footer__contact { color: var(--edge); }
.footer__legal { color: var(--grey); }
.footer__copy { color: var(--grey); }
.footer__band { padding-top: 4px; padding-bottom: 22px; }
.tick-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(46, 107, 82, 0.7);
}
.tick { width: 1px; height: 8px; background: var(--turf-line); }
.tick--tall { height: 15px; background: var(--edge); opacity: 0.6; }
.tick--now {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fluo);
  box-shadow: 0 0 0 4px rgba(217, 255, 75, 0.18);
}

/* --- 返回顶部 --- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 140;
  padding: 10px 15px;
  background: var(--paper);
  color: var(--night);
  border: 1px solid var(--night);
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.12em;
  box-shadow: 4px 4px 0 rgba(255, 122, 26, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--fluo); }

/* --- 展览标签 --- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: var(--paper);
  color: var(--night);
  border: 1px solid var(--tur-line, #2E6B52);
  border: 1px solid #2E6B52;
  font-family: var(--font-index);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.label--arc { background: var(--arc); border-color: var(--arc); color: var(--night); }
.label--stoppage { background: var(--stoppage); border-color: var(--stoppage); color: var(--paper); }
.label--outline { background: transparent; border-color: var(--turf-line); color: var(--grey); }

/* --- 纸白说明牌 --- */
.plate {
  position: relative;
  padding: 20px 22px;
  background: var(--paper);
  color: var(--night);
  border: 1px solid var(--turf-line);
  box-shadow: 7px 7px 0 rgba(46, 107, 82, 0.4);
}
.plate::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 3px;
  background: var(--fluo);
}
.plate__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--night);
  margin-bottom: 8px;
}
.plate__body { font-size: 15px; line-height: 1.7; color: #14301f; }
.plate--deck {
  background: var(--turf);
  color: var(--edge);
  box-shadow: 7px 7px 0 rgba(7, 19, 34, 0.6);
}
.plate--deck .plate__title { color: var(--paper); }
.plate--deck .plate__body { color: var(--edge); }

/* --- 数字 --- */
.numeral {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}
.numeral--fluo { color: var(--fluo); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  color: var(--fluo);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--grey);
}
.is-ticking { animation: stoppagePulse 3.6s ease-in-out infinite; }
@keyframes stoppagePulse {
  0%, 88%, 100% { opacity: 1; }
  94% { opacity: 0.35; }
}

/* --- 图片占位容器 --- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--turf);
  border: 1px solid var(--turf-line);
}
.media__img { width: 100%; height: 100%; object-fit: cover; }
.media--square { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--banner { aspect-ratio: 21 / 9; }
.media__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 9px;
  background: rgba(12, 31, 25, 0.85);
  color: var(--edge);
  border-left: 2px solid var(--arc);
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* --- 正文 --- */
.prose { max-width: 680px; }
.prose h2,
.prose h3 {
  margin: 2em 0 0.6em;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--paper);
}
.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.15em; }
.prose a {
  color: var(--fluo);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.prose ul,
.prose ol { margin: 0 0 1.15em; padding-left: 1.2em; }
.prose ul li { list-style: square; }
.prose ol li { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--paper); }
.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 2px solid var(--arc);
  background: rgba(23, 64, 47, 0.5);
  font-family: var(--font-note);
  font-size: 19px;
  color: var(--edge);
}

/* --- 面包屑 --- */
.breadcrumb {
  padding: 14px 0;
  border-bottom: var(--rule);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey);
}
.breadcrumb__item { display: flex; align-items: center; gap: 8px; }
.breadcrumb__link { color: var(--edge); text-decoration: none; }
.breadcrumb__link:hover,
.breadcrumb__link:focus-visible { color: var(--fluo); }
.breadcrumb__sep { color: var(--turf-line); }

/* --- 平板 --- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid { gap: 18px; }
}

/* --- 移动 / 小屏刊头 --- */
@media (max-width: 900px) {
  .col-3, .col-4, .col-5, .col-6, .col-8 { grid-column: span 12; }
  .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  #main-content, [id] { scroll-margin-top: 110px; }
  .masthead__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "coord toggle"
      "brand brand"
      "actions actions";
    gap: 10px 12px;
    padding: 13px 0 12px;
  }
  .masthead__coord { font-size: 10px; letter-spacing: 0.1em; }
  .brand { justify-self: start; }
  .brand__name { font-size: 26px; }
  .masthead__actions { justify-self: stretch; }
  .masthead__actions .btn { flex: 1 1 auto; padding: 9px 10px; font-size: 11px; }
  .nav-toggle { display: inline-flex; }
  .site-header[data-shrunk] .masthead__coord,
  .site-header[data-shrunk] .masthead__actions { display: flex; }

  .primary-nav {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    border-top-color: transparent;
    transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.3s, border-color 0.2s ease;
  }
  .primary-nav[data-open] {
    max-height: 560px;
    opacity: 1;
    visibility: visible;
    border-top-color: var(--turf-line);
    padding-bottom: 8px;
  }
  .primary-nav__list { flex-direction: column; align-items: stretch; }
  .primary-nav__item { display: block; }
  .primary-nav__item + .primary-nav__item::before { display: none; }
  .primary-nav__item + .primary-nav__item { border-top: 1px solid rgba(46, 107, 82, 0.4); }
  .primary-nav__link { display: block; padding: 13px 4px; font-size: 15px; }
  .primary-nav__link::after { left: 4px; right: auto; width: 26px; bottom: 8px; }

  .footer__grid { grid-template-columns: 1fr 1fr; padding-top: 40px; padding-bottom: 26px; gap: 28px 20px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .wrap, .masthead { padding-left: 18px; padding-right: 18px; }
  .brand__name { font-size: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .to-top { right: 12px; bottom: 12px; }
  .tick-band { gap: 4px; }
  .section { padding: 42px 0; }
}

/* --- 动效降级 --- */
@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;
  }
  .is-ticking { animation: none; }
  .to-top { transform: none; }
}
