/* ==========================================================================
   趣体育赛场 · 共享样式表 /assets/site.css
   reset → 变量 → 中文排版 → 布局 → 按钮与链接 → 头部 → 页脚
   → 内容构件 → 动效与辅助 → 焦点与降级 → 响应式
   ========================================================================== */

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

* { margin: 0; }

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

body { min-height: 100vh; }

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

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

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

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

table { border-collapse: collapse; }

address { font-style: normal; }

[id] { scroll-margin-top: 96px; }

/* --- 变量 --- */
:root {
  --ink: #0B1424;
  --green: #12603E;
  --green-deep: #0C4630;
  --moss: #2E8B63;
  --fluo: #E8FF3A;
  --alert: #FF5A2B;
  --clay: #B4562F;
  --paper: #F5F2E8;
  --stone: #6B736C;
  --mist: #DCE8DC;
  --card: #EDF3ED;

  --line: rgba(107, 115, 108, .34);
  --line-soft: rgba(107, 115, 108, .2);
  --line-dark: rgba(245, 242, 232, .18);

  --wrap: 1240px;
  --gut: 24px;
  --header-h: 72px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- 中文排版 --- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-flush { padding-top: 0; }

h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

strong { font-weight: 700; }

.display {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: .92;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.skew {
  display: block;
  font-weight: 800;
  font-size: clamp(1.45rem, 3.2vw, 2.5rem);
  letter-spacing: -.035em;
  transform: skewX(-3deg);
  transform-origin: left bottom;
}

.idx {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
  font-variant-numeric: tabular-nums;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- 布局 --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

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

.page-top { padding-top: calc(var(--header-h) + 20px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.gridlines {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* --- 按钮与链接 --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  transition:
    background-color .18s var(--ease),
    color .18s var(--ease),
    border-color .18s var(--ease);
}

.btn--accent { background: var(--fluo); color: var(--ink); }
.btn--accent:hover,
.btn--accent:focus-visible { background: var(--paper); color: var(--ink); }

.btn--solid { background: var(--green); color: var(--paper); }
.btn--solid:hover,
.btn--solid:focus-visible { background: var(--green-deep); }

.btn--ghost { border-color: var(--line); color: inherit; }
.btn--ghost:hover,
.btn--ghost:focus-visible { border-color: var(--moss); color: var(--green); }

.btn--header { padding: 9px 15px; font-size: 13px; }

.tick-link {
  display: inline-block;
  position: relative;
  padding-left: 0;
  transition: padding-left .2s var(--ease), color .2s var(--ease);
}

.tick-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: .32em;
  height: .9em;
  background: var(--fluo);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}

.tick-link:hover,
.tick-link:focus-visible { padding-left: .95em; }

.tick-link:hover::before,
.tick-link:focus-visible::before { transform: scaleX(1); }

/* --- 头部 --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: linear-gradient(
    180deg,
    rgba(11, 20, 36, .94) 0%,
    rgba(11, 20, 36, .74) 62%,
    rgba(11, 20, 36, 0) 100%
  );
  transition: background-color .28s var(--ease), box-shadow .28s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-nav-open {
  background: var(--ink);
  background-image: none;
  box-shadow: 0 1px 0 rgba(245, 242, 232, .12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--wrap);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 0;
  height: 2px;
  background: var(--fluo);
  transition: width .1s linear;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--paper);
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green) 0 58%, var(--moss) 58% 100%);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 9px;
  height: 3px;
  background: var(--fluo);
  box-shadow:
    0 6px 0 0 rgba(245, 242, 232, .85),
    0 12px 0 0 rgba(245, 242, 232, .4);
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.1;
}

.brand__meta {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(245, 242, 232, .6);
}

.brand__season {
  align-self: flex-start;
  margin-top: 1px;
  padding: 3px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  background: var(--fluo);
  color: var(--ink);
}

/* 主导航 */
.main-nav {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

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

.main-nav__list a {
  position: relative;
  display: block;
  padding: 10px 13px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(245, 242, 232, .78);
  transition: color .18s var(--ease);
}

.main-nav__list a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  background: var(--fluo);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}

.main-nav__list a:hover,
.main-nav__list a:focus-visible { color: #fff; }

.main-nav__list a:hover::after,
.main-nav__list a:focus-visible::after { transform: scaleX(1); }

.main-nav__list a[aria-current="page"] { color: #fff; }

.main-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.main-nav__cta { display: none; }

/* 头部右侧 */
.header-aside {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-left: auto;
}

.round-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.3;
  color: var(--paper);
  border: 1px solid var(--line-dark);
  white-space: nowrap;
}

.round-badge__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--fluo);
  animation: qu-pulse 2.4s var(--ease) infinite;
}

@keyframes qu-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* 移动导航按钮 */
.nav-toggle {
  position: relative;
  display: none;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 242, 232, .28);
  transition: border-color .18s var(--ease);
}

.nav-toggle:hover { border-color: var(--fluo); }

.nav-toggle__bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--paper);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle__bar:nth-of-type(1) { top: 14px; }
.nav-toggle__bar:nth-of-type(2) { top: 20px; }
.nav-toggle__bar:nth-of-type(3) { top: 26px; }

.nav-toggle[aria-expanded="true"] { border-color: var(--fluo); }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-of-type(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-of-type(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-of-type(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- 页脚 --- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--green);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 92px;
  height: 3px;
  background: var(--fluo);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 34px 26px;
  padding-block: 56px 42px;
}

.footer-brand .brand { margin-bottom: 16px; }

.footer-brand__note {
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(245, 242, 232, .6);
}

.footer-brand__stamp { margin-top: 16px; }

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--fluo);
}

.footer-list {
  display: grid;
  gap: 9px;
}

.footer-list--tight { margin-bottom: 18px; }

.footer-list a {
  position: relative;
  display: inline-block;
  padding-left: 0;
  font-size: 14px;
  color: rgba(245, 242, 232, .74);
  transition: padding-left .18s var(--ease), color .18s var(--ease);
}

.footer-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 10px;
  height: 2px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  padding-left: 16px;
  color: var(--fluo);
}

.footer-list a:hover::before,
.footer-list a:focus-visible::before { transform: scaleX(1); }

.footer-contact {
  display: grid;
  gap: 7px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 242, 232, .62);
}

.footer-contact__note {
  margin-top: 4px;
  padding-left: 10px;
  border-left: 2px solid rgba(46, 139, 99, .6);
  color: rgba(245, 242, 232, .5);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 26px;
  padding-block: 20px 26px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(245, 242, 232, .48);
}

/* --- 内容构件 --- */
.panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}

.panel:hover { border-color: var(--moss); }

.panel--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.panel--ink:hover { border-color: var(--green); }

.panel--green {
  background: var(--green);
  border-color: var(--green-deep);
  color: var(--paper);
}

.panel--mist { background: var(--mist); }

.panel--edge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--fluo);
}

.panel__pad { padding: 24px 26px 28px; }

.stat { display: block; }

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 9px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--stone);
}

.stat--accent .stat__value { color: var(--green); }

.panel--ink .stat__label,
.panel--green .stat__label { color: rgba(245, 242, 232, .68); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .12em;
  color: var(--green-deep);
  background: var(--mist);
  border: 1px solid rgba(18, 96, 62, .2);
}

.tag--clay {
  color: var(--clay);
  background: rgba(180, 86, 47, .12);
  border-color: rgba(180, 86, 47, .32);
}

.tag--alert {
  color: #C33C13;
  background: rgba(255, 90, 43, .14);
  border-color: rgba(255, 90, 43, .36);
}

.tag--fluo {
  color: var(--ink);
  background: var(--fluo);
  border-color: var(--fluo);
}

.table {
  width: 100%;
  font-size: 14px;
  background: var(--paper);
}

.table th,
.table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.table thead th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--stone);
  background: var(--mist);
  border-bottom-color: rgba(18, 96, 62, .22);
}

.table tbody tr { transition: background-color .16s var(--ease); }

.table tbody tr:hover { background: var(--mist); }

.table tbody tr:hover time { color: var(--green); }

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

.table time { transition: color .16s var(--ease); }

.note {
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.7;
  background: var(--mist);
  border-left: 3px solid var(--moss);
}

.note--alert {
  background: rgba(255, 90, 43, .1);
  border-left-color: var(--alert);
}

.figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--mist);
  border: 1px solid var(--line-soft);
}

.figure--wide { aspect-ratio: 21 / 9; }
.figure--4x3 { aspect-ratio: 4 / 3; }
.figure--3x4 { aspect-ratio: 3 / 4; }
.figure--1x1 { aspect-ratio: 1 / 1; }

.figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.figure__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  line-height: 1.6;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(11, 20, 36, .88), rgba(11, 20, 36, 0));
}

.figure__tag {
  position: absolute;
  top: 0;
  left: 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stone);
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumbs li + li::before {
  content: "/";
  color: var(--stone);
  opacity: .55;
}

.crumbs a { transition: color .16s var(--ease); }

.crumbs a:hover,
.crumbs a:focus-visible { color: var(--green); }

.crumbs [aria-current="page"] { color: var(--ink); }

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.anchor-nav a {
  display: block;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--stone);
  border: 1px solid var(--line);
  transition:
    color .18s var(--ease),
    border-color .18s var(--ease),
    background-color .18s var(--ease);
}

.anchor-nav a:hover,
.anchor-nav a:focus-visible {
  color: var(--green);
  border-color: var(--moss);
}

.anchor-nav a[aria-current="true"] {
  color: var(--ink);
  background: var(--fluo);
  border-color: var(--fluo);
}

/* --- 动效 --- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .5s var(--ease),
    transform .5s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --- 焦点 --- */
:focus-visible {
  outline: 2px solid var(--fluo);
  outline-offset: 2px;
}

.panel--ink :focus-visible,
.panel--green :focus-visible,
.site-footer :focus-visible { outline-color: var(--fluo); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 200;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--fluo);
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 12px; }

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .round-badge__dot { animation: none; }
}

/* --- 响应式 --- */
@media (max-width: 1120px) {
  .main-nav__list a {
    padding-inline: 8px;
    font-size: 13.5px;
  }

  .main-nav__list a::after {
    left: 8px;
    right: 8px;
  }

  .header-aside .round-badge { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: block; }

  .header-aside .btn--header { display: none; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 10px var(--gut) 22px;
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
    border-bottom: 3px solid var(--green);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

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

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav__list li + li { border-top: 1px solid rgba(245, 242, 232, .1); }

  .main-nav__list a {
    padding: 15px 4px;
    font-size: 15.5px;
  }

  .main-nav__list a::after {
    left: 4px;
    right: auto;
    width: 24px;
    bottom: 9px;
  }

  .main-nav__cta {
    display: inline-flex;
    margin: 18px 4px 0;
  }

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

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

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .brand__meta { display: none; }

  .brand__mark { width: 24px; height: 24px; }

  .brand__mark::after {
    left: 5px;
    top: 5px;
    box-shadow:
      0 5px 0 0 rgba(245, 242, 232, .85),
      0 10px 0 0 rgba(245, 242, 232, .4);
  }

  .brand__name { font-size: 16px; }

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

  .panel__pad { padding: 20px 18px 24px; }

  .table th,
  .table td { padding: 10px 10px; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
