/* ============================================================
   爱体育口碑 · 共享样式表 /assets/site.css
   骨架：技术蓝图网格｜配色：夜间球场记分牌
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --bg: #0A0F0D;
  --bg-deep: #0F2A24;
  --board: #123B32;
  --cyan: #2CF5D4;
  --mint: #A8FFE9;
  --yellow: #F2D14B;
  --red: #FF5C57;
  --violet: #7C5CFF;
  --muted: #8BA39C;
  --text: #D9EDE7;
  --glass: rgba(233, 245, 241, 0.72);
  --line: rgba(168, 255, 233, 0.16);
  --line-soft: rgba(168, 255, 233, 0.08);
  --shell: 1440px;
  --content: 1200px;
  --gutter: clamp(16px, 3.6vw, 40px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-head: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 2. RESET 与中文排版 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--mint);
  text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 5vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
h4 { font-size: 1.0625rem; letter-spacing: 0.02em; }

p { margin: 0; }

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

a {
  color: var(--cyan);
  text-decoration: none;
}

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

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

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

/* ---------- 3. 通用工具 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 220;
  transform: translateY(-180%);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  background: var(--cyan);
  color: #04231D;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 30px -18px rgba(44, 245, 212, 0.9);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  z-index: 210;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(44, 245, 212, 0.7);
  pointer-events: none;
}

/* ---------- 4. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
}

.header-frame {
  padding: 0;
  transition: padding 0.3s var(--ease);
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  width: 100%;
  max-width: var(--shell);
  min-height: 76px;
  margin-inline: auto;
  padding: 0 var(--gutter);
  background: rgba(10, 15, 13, 0.94);
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  transition: min-height 0.3s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    border-radius 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    padding 0.3s var(--ease);
}

.site-header[data-scrolled] .header-frame {
  padding: 10px clamp(10px, 2.4vw, 26px) 0;
}

.site-header[data-scrolled] .header-shell {
  min-height: 62px;
  background: rgba(15, 42, 36, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-color: rgba(168, 255, 233, 0.2);
  border-radius: 14px;
  box-shadow: 0 26px 52px -32px rgba(0, 0, 0, 0.95);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--mint);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  border: 1px solid rgba(44, 245, 212, 0.55);
  background-color: var(--bg-deep);
  background-image:
    repeating-linear-gradient(90deg, rgba(168, 255, 233, 0.22) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(168, 255, 233, 0.12) 0 1px, transparent 1px 7px),
    linear-gradient(150deg, rgba(44, 245, 212, 0.85), rgba(18, 59, 50, 0.92) 72%);
  transition: box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}

.brand:hover .brand-mark {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(44, 245, 212, 0.16);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.07em;
  color: var(--mint);
}

.brand-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* 导航 */
.site-nav {
  margin-left: auto;
}

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

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-list a:hover {
  color: var(--mint);
  background-color: rgba(44, 245, 212, 0.08);
}

.nav-list a[aria-current="page"] {
  color: #04231D;
  background-color: var(--cyan);
  font-weight: 700;
}

.nav-list a[aria-current="page"]:hover {
  color: #04231D;
  background-color: var(--mint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-cta {
  font-family: var(--font-head);
  letter-spacing: 0.06em;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid rgba(168, 255, 233, 0.24);
  background-color: rgba(44, 245, 212, 0.06);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(44, 245, 212, 0.6);
  background-color: rgba(44, 245, 212, 0.12);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--mint);
  transition: transform 0.24s var(--ease), opacity 0.18s var(--ease);
}

.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);
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  overflow: hidden;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(120% 90% at 10% 0%, rgba(18, 59, 50, 0.92), transparent 62%),
    radial-gradient(90% 80% at 100% 100%, rgba(124, 92, 255, 0.12), transparent 60%);
  border-top: 1px solid rgba(44, 245, 212, 0.32);
}

.footer-ticks {
  height: 9px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(44, 245, 212, 0.55) 0 1px,
    transparent 1px 16px
  );
  border-bottom: 1px solid var(--line-soft);
  opacity: 0.6;
}

.footer-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 62px) var(--gutter) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
}

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

.footer-note {
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(217, 237, 231, 0.76);
}

.footer-coord {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.footer-col a {
  display: inline-block;
  padding: 2px 0;
  font-size: 14.5px;
  color: rgba(217, 237, 231, 0.78);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-col a:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(20px, 4vw, 56px);
  margin: 0;
  padding: clamp(20px, 3vw, 28px) 0;
  border-bottom: 1px solid var(--line-soft);
}

.footer-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.footer-meta dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--mint);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding: 22px 0 30px;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-reply {
  max-width: 54ch;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-watermark {
  position: absolute;
  right: var(--gutter);
  bottom: -0.16em;
  z-index: 1;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(64px, 12vw, 168px);
  line-height: 0.8;
  letter-spacing: 0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(168, 255, 233, 0.1);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--mint);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn-primary {
  background-color: var(--cyan);
  color: #04231D;
}

.btn-primary:hover {
  background-color: var(--mint);
  box-shadow: 0 12px 28px -16px rgba(44, 245, 212, 0.95);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--mint);
  border-color: rgba(168, 255, 233, 0.28);
}

.btn-ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background-color: rgba(44, 245, 212, 0.08);
}

.btn-sm {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 14px;
}

/* ---------- 7. 容器与章节 ---------- */
.shell {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(40px, 6vw, 88px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.lede {
  max-width: 62ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.8;
  color: rgba(217, 237, 231, 0.82);
}

/* ---------- 8. 标签与数据 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background-color: var(--cyan);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(168, 255, 233, 0.18);
  background-color: rgba(168, 255, 233, 0.1);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.tag--cyan {
  color: var(--cyan);
  background-color: rgba(44, 245, 212, 0.14);
  border-color: rgba(44, 245, 212, 0.34);
}

.tag--yellow {
  color: var(--yellow);
  background-color: rgba(242, 209, 75, 0.14);
  border-color: rgba(242, 209, 75, 0.34);
}

.tag--red {
  color: var(--red);
  background-color: rgba(255, 92, 87, 0.14);
  border-color: rgba(255, 92, 87, 0.34);
}

.tag--violet {
  color: #B7A6FF;
  background-color: rgba(124, 92, 255, 0.16);
  border-color: rgba(124, 92, 255, 0.42);
}

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

.stat-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- 9. 面板与网格 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background-color: rgba(18, 59, 50, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-top: 1px solid rgba(44, 245, 212, 0.55);
  border-left: 1px solid rgba(44, 245, 212, 0.55);
  border-top-left-radius: var(--r-md);
  pointer-events: none;
}

.blueprint {
  position: relative;
}

.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 255, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 255, 233, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------- 10. 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.crumb a {
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.crumb a:hover {
  color: var(--cyan);
}

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

.crumb-sep {
  color: rgba(139, 163, 156, 0.5);
}

/* ---------- 11. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background-color: var(--bg-deep);
  background-image:
    repeating-linear-gradient(90deg, rgba(168, 255, 233, 0.07) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(168, 255, 233, 0.07) 0 1px, transparent 1px 26px),
    linear-gradient(150deg, rgba(18, 59, 50, 0.95), rgba(10, 15, 13, 0.98));
}

.media > img,
.media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.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__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mint);
  background-image: linear-gradient(0deg, rgba(10, 15, 13, 0.9), transparent);
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1120px) {
  .header-shell {
    gap: 10px;
  }
  .nav-list a {
    padding: 0 10px;
    font-size: 14.5px;
  }
}

@media (max-width: 920px) {
  .header-shell {
    min-height: 64px;
    gap: 8px;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .brand {
    order: 1;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    margin-left: 0;
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    background-color: rgba(10, 15, 13, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(168, 255, 233, 0.16);
    border-top: 1px solid var(--line-soft);
    border-radius: 0 0 18px 18px;
    transition: max-height 0.32s var(--ease),
      opacity 0.2s var(--ease),
      transform 0.22s var(--ease),
      padding 0.32s var(--ease),
      visibility 0.32s;
  }

  .site-header[data-open] .site-nav {
    max-height: min(74vh, 560px);
    overflow-y: auto;
    padding: 12px var(--gutter) 18px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-header[data-scrolled] .site-nav {
    border-radius: 0 0 14px 14px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list a {
    min-height: 48px;
    padding: 0 14px;
    font-size: 16px;
    border-radius: 10px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

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

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .brand-name {
    font-size: 16px;
    letter-spacing: 0.05em;
  }

  .brand-sub {
    display: none;
  }

  .header-cta {
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 13. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
