/* ============================================================
   U球体育免费版 / site.css
   战术板视觉系统：锐利直角、1px 细线、精密网格、近单色 + 单点亮色
   ============================================================ */

:root {
  /* 色彩系统 */
  --ink: #05100C;          /* 球场墨 · 主背景 */
  --moss: #0A1B15;         /* 深苔 · 次级背景 */
  --panel: #12291F;        /* 苔板 · 面板填充 */
  --line: #1F4437;         /* 网格线 */
  --cyan: #3FF0C4;         /* 荧光青 · 主强调 */
  --cyan-soft: #B8FFEA;    /* 浅青 · 高亮文字 */
  --signal: #FF6A1F;       /* 信号橙 · 行动色 */
  --paper: #EDF5F1;        /* 纸白 · 正文 */
  --gray: #8CA69B;         /* 索引灰 · 次要文字 */
  --sand: #D9C9A8;         /* 暖砂 · 地域点缀 */

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

  /* 尺度系统 */
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 80px;
  --header-h-compact: 48px;
  --gap: clamp(16px, 2vw, 28px);

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  background-color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(31, 68, 55, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 68, 55, 0.22) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
}
h1 { font-size: clamp(36px, 6vw, 76px); }
h2 { font-size: clamp(26px, 3.4vw, 42px); }
h3 { font-size: clamp(19px, 2vw, 25px); }
h4 { font-size: clamp(16px, 1.4vw, 19px); letter-spacing: -0.01em; }

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--cyan-soft); }

strong { font-weight: 800; color: var(--paper); }
small { font-size: 12px; }

/* ---------- 焦点可见 ---------- */
:where(a, button, [tabindex], summary, input, select, textarea):focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}
:where(a, button):focus:not(:focus-visible) { outline: none; }

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

#main-content {
  display: block;
  scroll-margin-top: calc(var(--header-h-compact) + 24px);
}

.prose { max-width: 36em; }
.prose p { color: rgba(237, 245, 241, 0.86); }
.prose h2, .prose h3 { margin-top: 1.6em; }

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

.rule {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  margin: 0;
  background-color: var(--line);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gray);
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background-color: var(--cyan);
}

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

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray);
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs a { color: var(--gray); }
.crumbs a:hover { color: var(--cyan); }
.crumbs__sep { color: var(--line); }

/* ---------- 状态标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background-color: rgba(18, 41, 31, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--gray);
  text-transform: uppercase;
}
.chip--cyan { border-color: rgba(63, 240, 196, 0.45); color: var(--cyan); }
.chip--live { border-color: rgba(255, 106, 31, 0.55); color: var(--signal); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  background-color: transparent;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.btn--signal {
  background-color: var(--signal);
  border-color: var(--signal);
  color: #160700;
  font-weight: 800;
}
.btn--signal:hover,
.btn--signal:focus-visible {
  background-color: #FF8348;
  border-color: #FF8348;
  color: #160700;
}
.btn--ghost {
  border-color: var(--line);
  color: var(--cyan-soft);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: var(--gutter);
  z-index: 200;
  padding: 10px 18px;
  background-color: var(--cyan);
  color: #05100C;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 10px;
  color: #05100C;
}

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header[data-scrolled="true"] {
  background-color: var(--moss);
  border-bottom-color: var(--line);
}
.site-header[data-open] {
  background-color: var(--moss);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}
.site-header[data-scrolled="true"] .site-header__inner {
  height: var(--header-h-compact);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}
.brand:hover { color: var(--paper); }

.brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--cyan);
  background-color: rgba(63, 240, 196, 0.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.brand__text { display: block; min-width: 0; }
.brand__name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 1.4;
  white-space: nowrap;
}

.brand__index {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan-soft);
  white-space: nowrap;
}

/* 主导航 */
.site-nav { justify-self: center; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  color: rgba(237, 245, 241, 0.78);
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.24s var(--ease);
}
.site-nav__link:hover { color: var(--cyan-soft); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] { color: var(--cyan); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 行动区 */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}
.site-header__actions .btn {
  padding: 9px 16px;
  font-size: 13px;
  white-space: nowrap;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  background-color: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle__bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background-color: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.18s var(--ease);
}
.nav-toggle__bar:nth-child(1) { top: 13px; }
.nav-toggle__bar:nth-child(2) { top: 19px; }
.nav-toggle__bar:nth-child(3) { top: 25px; }

.site-header[data-open] .nav-toggle { border-color: var(--cyan); color: var(--cyan); }
.site-header[data-open] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header[data-open] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 阅读进度线 */
.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--line);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.site-header[data-scrolled="true"] .scroll-rail,
.site-header[data-open] .scroll-rail { opacity: 1; }

.scroll-rail::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--cyan);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: 0;
  background-color: var(--moss);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.site-footer__rail {
  height: 4px;
  background-image:
    repeating-linear-gradient(
      90deg,
      var(--cyan) 0,
      var(--cyan) 22px,
      transparent 22px,
      transparent 44px
    );
  background-color: var(--line);
  opacity: 0.55;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.5fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 5.5vw, 72px) var(--gutter) clamp(28px, 4vw, 44px);
}

/* 品牌列 */
.foot-brand { min-width: 0; }
.foot-brand__name {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.foot-brand__line {
  margin: 0 0 16px;
  max-width: 22em;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(237, 245, 241, 0.7);
}
.foot-brand__tag {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* 通用列 */
.foot-col { min-width: 0; }

.foot-title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 1.4;
}

.foot-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-list li { margin-bottom: 10px; }
.foot-list li:last-child { margin-bottom: 0; }

.foot-link {
  display: inline-block;
  color: rgba(237, 245, 241, 0.82);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.foot-link:hover { color: var(--cyan); }
.foot-link[aria-current="page"] { color: var(--cyan); }

/* 联系方式 */
.foot-contact {
  margin: 0 0 16px;
  padding: 0;
}
.foot-contact__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(31, 68, 55, 0.6);
}
.foot-contact__row:first-child { padding-top: 0; }
.foot-contact__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.foot-contact__val {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.foot-note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray);
}

.foot-icp {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray);
}

/* 底部元信息 */
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 20px var(--gutter) 36px;
  border-top: 1px solid var(--line);
}
.foot-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--gray);
}

/* ============================================================
   图片容器
   ============================================================ */
.figure {
  display: block;
  margin: 0;
  min-width: 0;
}
.figure__frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--figure-ratio, 16 / 9);
  border: 1px solid var(--line);
  background-color: var(--panel);
  background-image: linear-gradient(
    135deg,
    rgba(31, 68, 55, 0.55) 0%,
    rgba(5, 16, 12, 0.92) 100%
  );
}
.figure__frame > img,
.figure__frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.figure__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--gray);
}
.figure--wide { --figure-ratio: 21 / 9; }
.figure--portrait { --figure-ratio: 3 / 4; }
.figure--square { --figure-ratio: 1 / 1; }
.figure--slant .figure__frame {
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}
.figure--slant-rev .figure__frame {
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 100%);
}

/* ============================================================
   主题筛选
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background-color: transparent;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}
.filter-btn:hover {
  color: var(--paper);
  border-color: var(--cyan);
}
.filter-btn[aria-pressed="true"] {
  background-color: rgba(63, 240, 196, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.is-hidden { display: none !important; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
  .site-footer__inner {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .site-header__inner {
    grid-template-columns: auto auto;
    height: 64px;
    gap: 12px;
  }
  .site-header[data-scrolled="true"] .site-header__inner { height: 56px; }

  .brand__index { display: none; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    justify-self: stretch;
    padding: 6px var(--gutter) 22px;
    background-color: var(--moss);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .site-header[data-open] .site-nav { display: block; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__link {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    color: var(--paper);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link:hover { color: var(--cyan); }
  .site-nav__link[aria-current="page"] {
    color: var(--cyan);
    padding-left: 14px;
    border-left: 2px solid var(--cyan);
  }
}

@media (max-width: 760px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
  .foot-brand { grid-column: 1 / -1; }
  .grid-12 { gap: 12px; }
}

@media (max-width: 600px) {
  .site-header__actions .btn {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  .brand__sub { display: none; }
  .brand__mark { width: 26px; height: 26px; font-size: 14px; }
  .brand__name { font-size: 15px; }
}

@media (max-width: 520px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__base { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   动效偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
