/* ============================================================
   完美体育 · 共享样式 Site.css
   视觉体系：赛事档案 / 印刷标尺 / 竞技霓虹
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--color-link); text-underline-offset: 3px; }
a:hover { color: var(--color-orange-deep); }
main { display: block; }

/* ---------- 2. Design Tokens ---------- */
:root {
  --color-bg: #F4F4F0;
  --color-surface: #FFFFFF;
  --color-ink: #1A1D1F;
  --color-muted: #6B7280;
  --color-cyan: #00D4FF;
  --color-purple: #8B5CF6;
  --color-border: #D1D5DB;
  --color-dark: #0E1116;

  --color-navy: #0A1E3C;
  --color-navy-deep: #071528;
  --color-navy-soft: #16325E;
  --color-orange: #FF6B35;
  --color-orange-light: #FF9A6B;
  --color-orange-deep: #C74512;
  --color-link: #007C99;

  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, Menlo, monospace;
  --font-editorial: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;

  --max-w: 1160px;
  --header-h: 96px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(10, 30, 60, .06), 0 8px 24px rgba(10, 30, 60, .07);
  --shadow-hover: 0 2px 4px rgba(10, 30, 60, .08), 0 20px 44px rgba(10, 30, 60, .14);
}

/* ---------- 3. Base Typography ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--color-ink);
  margin-bottom: .45em;
}
h1 { font-size: clamp(36px, 5vw, 44px); }
h2 { font-size: clamp(26px, 3.2vw, 32px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { line-height: 1.7; }
::selection { background: var(--color-navy); color: #fff; }
:focus-visible { outline: 3px solid var(--color-navy); outline-offset: 2px; border-radius: 4px; }
.nav-capsule :focus-visible,
.site-footer :focus-visible { outline-color: var(--color-orange); }

/* ---------- 4. Utilities ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mono { font-family: var(--font-mono); }
.editorial-serif { font-family: var(--font-editorial); font-weight: 600; }

/* ---------- 5. Layout Helpers ---------- */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 20px; }
.section { padding: 64px 0; }
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-eyebrow {
  display: block;
  font-family: var(--font-editorial);
  font-size: 15px;
  font-style: italic;
  color: var(--color-orange-deep);
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.section-title { margin-bottom: 0; }
.main-content { display: block; }
#main-content:focus { outline: none; }
.content-main { padding: calc(var(--header-h) + 40px) 0 72px; }

/* ---------- 6. Grids ---------- */
.content-grid { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .content-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .content-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .content-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .content-grid--sidebar { grid-template-columns: 1fr 320px; }
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-accent {
  background: var(--color-orange);
  color: var(--color-navy);
  box-shadow: 0 6px 18px rgba(255, 107, 53, .28);
}
.btn-accent:hover {
  background: var(--color-orange-light);
  color: var(--color-navy);
  box-shadow: 0 10px 26px rgba(255, 107, 53, .36);
}
.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 999px; }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 14px; }

/* ---------- 8. Breadcrumbs ---------- */
.breadcrumbs {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: calc(var(--header-h) + 24px) 20px 0;
  font-size: 13px;
  color: var(--color-muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.breadcrumbs a { color: var(--color-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-navy); text-decoration: underline; }
.breadcrumbs li + li::before { content: '/'; margin-right: 10px; color: var(--color-border); }
.breadcrumbs [aria-current="page"] { color: var(--color-ink); font-weight: 600; }

/* ---------- 9. Page Hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 48px) 20px 56px;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: #fff;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 84% 18%, rgba(255, 107, 53, .18), transparent 36%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 4px;
  background: var(--color-orange);
  border-radius: 0 4px 4px 0;
}
.page-hero .page-title { color: #fff; margin-bottom: 12px; }
.page-hero .page-subtitle {
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

/* ---------- 10. Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card--print { position: relative; }
.card--print::before,
.card--print::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.card--print::before {
  top: 8px; left: 8px;
  border-top: 2px solid var(--color-orange);
  border-left: 2px solid var(--color-orange);
  border-top-left-radius: 4px;
}
.card--print::after {
  bottom: 8px; right: 8px;
  border-bottom: 2px solid var(--color-cyan);
  border-right: 2px solid var(--color-cyan);
  border-bottom-right-radius: 4px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-title { font-size: 18px; margin: 0; }
.card-body { color: var(--color-ink); }
.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  margin-top: 16px;
}

/* ---------- 11. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}
.tag::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.tag--cyan { background: rgba(0, 212, 255, .10); color: #007C99; border-color: rgba(0, 212, 255, .30); }
.tag--purple { background: rgba(139, 92, 246, .10); color: #6D28D9; border-color: rgba(139, 92, 246, .28); }
.tag--orange { background: rgba(255, 107, 53, .10); color: var(--color-orange-deep); border-color: rgba(255, 107, 53, .30); }
.tag--dark { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

/* ---------- 12. Data Components ---------- */
.data-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.data-number {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--color-ink);
}
.data-number--orange { color: var(--color-orange-deep); }

.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 6px;
  border-bottom: 1px dashed var(--color-border);
}
.match-row:last-child { border-bottom: 0; }
.match-team { font-weight: 600; font-size: 15px; color: var(--color-ink); }
.match-team--home { text-align: right; }
.match-team--away { text-align: left; }
.match-score {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .1em;
  background: var(--color-navy);
  color: #fff;
  padding: 2px 12px;
  border-radius: 6px;
  min-width: 68px;
  text-align: center;
}
.match-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--color-muted);
  text-align: center;
  font-weight: 600;
}

/* ---------- 13. Data Table ---------- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 15px;
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: left;
  padding: 12px 16px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ink);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background-color .15s ease; }
.data-table tbody tr:hover { background: rgba(0, 212, 255, .06); }

/* ---------- 14. Media Frames ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--color-navy);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.media-frame:hover img { transform: scale(1.03); }
.media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(10, 30, 60, .28) 0%, transparent 45%);
}
.media-frame--3x2 { aspect-ratio: 3 / 2; }
.media-frame--4x5 { aspect-ratio: 4 / 5; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--placeholder {
  min-height: 200px;
  background-color: var(--color-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 107, 53, .22), transparent 55%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
}
.media-frame--placeholder::after { background: none; }

/* ---------- 15. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 16px 16px 8px;
  pointer-events: none;
}
.nav-capsule {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 10px 10px 10px 14px;
  background: rgba(10, 30, 60, .90);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(10, 30, 60, .25);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  pointer-events: auto;
}
.site-header.is-scrolled .nav-capsule {
  background: rgba(7, 21, 40, .97);
  border-color: rgba(255, 107, 53, .35);
  box-shadow: 0 14px 36px rgba(10, 30, 60, .32);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 300;
  transform: translate(-50%, -400%);
  background: var(--color-orange);
  color: var(--color-navy);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 107, 53, .45);
  pointer-events: auto;
  transition: transform .25s ease;
}
.skip-link:hover { color: var(--color-navy); }
.skip-link:focus { transform: translate(-50%, 0); }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 260;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-orange), var(--color-cyan));
  box-shadow: 0 0 10px rgba(255, 107, 53, .55);
  pointer-events: none;
}

/* Brand */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo:hover { color: #fff; text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(255, 107, 53, .25));
}
.brand-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1;
}

/* Nav */
.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav-link[aria-current="page"] {
  color: var(--color-orange);
  background: rgba(255, 107, 53, .16);
  font-weight: 800;
}

/* Actions */
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: background-color .2s ease;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .16); }
.toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header responsive */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    padding: 12px;
    background: rgba(10, 30, 60, .97);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(7, 21, 40, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, .85);
    font-size: 16px;
  }
}
@media (min-width: 900px) {
  .site-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
@media (max-width: 420px) {
  .nav-capsule .btn-sm { padding: 6px 10px; font-size: 12px; }
  .nav-actions { gap: 6px; }
}

/* ---------- 16. Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  background: var(--color-navy);
  color: rgba(255, 255, 255, .72);
  border-top: 4px solid var(--color-orange);
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 52px 52px;
}
.site-footer::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 53, .14);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 64px 20px 36px;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer-about {
  font-size: 15px;
  max-width: 340px;
  color: rgba(255, 255, 255, .68);
  line-height: 1.75;
}
.footer-tagline { color: var(--color-orange); font-size: 15px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-heading {
  display: inline-block;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 107, 53, .5);
}
.footer-link-list { display: flex; flex-direction: column; gap: 12px; }
.footer-link-list a {
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}
.footer-link-list a:hover { color: #fff; padding-left: 6px; }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; flex-direction: column; gap: 2px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-orange);
}
.contact-value {
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
  word-break: break-all;
}
.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 18px 20px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}
.footer-copy, .footer-icp, .footer-trust { margin: 0; }
.footer-trust {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.3fr; gap: 48px; }
}

/* ---------- 17. Reveal Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .js [data-reveal][data-revealed="true"] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 18. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
