/* ============================================================
   球盟会体育 — 全站共享样式 /assets/site.css
   数据竞技场 · 命令导航 · 展览面板
   ============================================================ */

/* ---------- 0. Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
a {
  color: var(--c-accent);
  transition: color 0.2s ease;
}

/* ---------- 1. Variables ---------- */
:root {
  --c-primary: #0A1F44;
  --c-accent: #FF6B00;
  --c-gold: #FFD700;
  --c-dark: #0D0D0D;
  --c-light: #F5F7FA;
  --c-white: #FFFFFF;
  --c-electric: #00E5FF;
  --c-purple: #8B5CF6;
  --c-gray: #6B7280;
  --c-border: #E5E7EB;

  --font-headline: "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Fira Mono", Consolas, monospace;

  --container: 1200px;
  --header-h: 64px;
  --status-h: 28px;
  --radius: 2px;
  --section-gap: 96px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* ---------- 2. Base Typography ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-dark);
}
::selection {
  background: var(--c-accent);
  color: var(--c-white);
}
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
#main-content {
  outline: none;
}
[id], [data-chapter] {
  scroll-margin-top: calc(var(--header-h) + var(--status-h) + 16px);
}

/* ---------- 3. Container & Section ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.section {
  padding-block: var(--section-gap);
}
.section.is-light {
  background: var(--c-light);
}
.section.is-dark {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.85);
}
.section.is-dark .section-title {
  color: var(--c-white);
}
.section-head {
  margin-bottom: 48px;
  max-width: 720px;
}
.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--c-accent);
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0.02em;
  margin: 0;
}
.prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-dark);
}
.prose p {
  margin-bottom: 1.5em;
}
.prose h2 {
  font-size: 28px;
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.prose h3 {
  font-size: 22px;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* ---------- 4. Grids ---------- */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-accent {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}
.btn-accent:hover {
  background: #ff812e;
  border-color: #ff812e;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
}
.btn-outline {
  background: transparent;
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.btn-outline:hover {
  background: var(--c-accent);
  color: var(--c-white);
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.25);
}
.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}
.btn-caret {
  font-weight: 700;
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .btn-caret {
  transform: translateX(3px);
}

/* ---------- 6. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  color: var(--c-gray);
  background: var(--c-light);
  line-height: 1.6;
}
.tag-live {
  color: var(--c-electric);
  border-color: rgba(0, 229, 255, 0.32);
  background: rgba(0, 229, 255, 0.07);
}
.tag-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: tag-pulse 1.6s infinite;
}
.tag-review {
  color: var(--c-purple);
  border-color: rgba(139, 92, 246, 0.32);
  background: rgba(139, 92, 246, 0.07);
}
.tag-gold {
  color: #7a6200;
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.12);
}
@keyframes tag-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* ---------- 7. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-gray);
  margin-bottom: 32px;
}
.breadcrumb a {
  color: var(--c-gray);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--c-accent);
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "//";
  color: var(--c-border);
  margin-right: 8px;
}
.breadcrumb-item[aria-current="page"] {
  color: var(--c-accent);
}

/* ---------- 8. Cards & Panels ---------- */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 0, 0.4);
}
.bevel-panel {
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.diagonal-accent {
  display: inline-block;
  width: 72px;
  height: 4px;
  background: var(--c-accent);
  transform: skewX(-24deg);
}
.divider-line {
  display: block;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--c-border) 0%, var(--c-border) calc(50% - 40px), var(--c-accent) 50%, var(--c-border) calc(50% + 40px), var(--c-border) 100%);
  margin: 40px 0;
}
.exhibition-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-electric);
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
}
.plaque {
  border: 1px solid var(--c-border);
  background: var(--c-light);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--c-gray);
  font-family: var(--font-body);
  line-height: 1.7;
}
.rotate-note {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gray);
  line-height: 1.8;
}

/* ---------- 9. Data Number ---------- */
.data-number {
  font-family: var(--font-headline);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-gold);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.data-unit {
  font-size: 0.4em;
  font-weight: 400;
  margin-left: 4px;
  color: var(--c-gray);
}

/* ---------- 10. Image Frame ---------- */
.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-light);
  aspect-ratio: 16 / 9;
}
.image-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.image-frame:hover > img {
  transform: scale(1.03);
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 31, 68, 0.35) 0%, transparent 42%);
  pointer-events: none;
}

/* ---------- 11. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-300%);
  z-index: 3000;
  padding: 10px 18px;
  background: var(--c-accent);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 12. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.header-status {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--status-h);
  padding: 0 clamp(16px, 4vw, 48px);
  background: #071830;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
}
.status-indicator {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-electric);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  animation: tag-pulse 2s infinite;
}
.status-label {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.14em;
}
.status-divider {
  color: var(--c-accent);
  opacity: 0.6;
}
.status-text {
  color: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-countdown {
  margin-left: auto;
  color: var(--c-gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.status-clock {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Header main */
.header-main {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 48px);
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.06em;
  line-height: 1;
}
.brand-sticker {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  border: 1px solid rgba(255, 107, 0, 0.5);
  background: rgba(255, 107, 0, 0.08);
  padding: 2px 5px;
  transform: skewX(-12deg);
}
.command-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-left: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.05);
}
.nav-link[aria-current="page"] {
  color: var(--c-accent);
  border-left-color: var(--c-accent);
  background: rgba(255, 107, 0, 0.08);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}
.nav-link:hover .nav-index,
.nav-link[aria-current="page"] .nav-index {
  color: var(--c-gold);
}
.header-cta {
  flex-shrink: 0;
  position: relative;
}
.header-cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--c-gold);
  border-radius: 0 0 2px 2px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-white);
  margin: 3px 0;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: var(--c-accent);
}
.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(-8px) rotate(-45deg);
  background: var(--c-accent);
}

/* ---------- 13. Footer ---------- */
.site-footer {
  margin-top: 120px;
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.7;
}
.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-gold) 100%);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.2fr;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px clamp(16px, 4vw, 48px) 48px;
}
.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.footer-brand-logo {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.06em;
}
.footer-brand-sticker {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  border: 1px solid rgba(255, 107, 0, 0.5);
  padding: 2px 5px;
  transform: skewX(-12deg);
}
.footer-desc {
  max-width: 280px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 14px;
}
.footer-trust {
  max-width: 320px;
  padding: 12px 16px;
  border-left: 2px solid var(--c-accent);
  background: rgba(255, 107, 0, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.7;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link-list a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-link-list a:hover {
  color: var(--c-accent);
}
.footer-contact {
  font-style: normal;
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 2px;
}
.contact-value {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  word-break: break-all;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-copy {
  margin: 0;
}
.footer-icp {
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- 14. Scroll Progress ---------- */
[data-progress-bar] {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold));
  z-index: 3000;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1199px) {
  .container {
    width: min(100% - 32px, var(--container));
  }
}
@media (max-width: 1023px) {
  .header-main {
    gap: 16px;
  }
  .command-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px clamp(20px, 4vw, 48px) 16px;
    background: var(--c-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  }
  .command-nav[data-open] {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-link {
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 2px solid transparent;
    padding: 14px 8px;
    font-size: 15px;
  }
  .nav-link[aria-current="page"] {
    border-left: 2px solid var(--c-accent);
    background: rgba(255, 107, 0, 0.07);
  }
  .nav-index {
    font-size: 11px;
  }
  .header-cta {
    display: none;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 767px) {
  :root {
    --section-gap: 64px;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .status-label,
  .status-divider {
    display: none;
  }
  .status-countdown {
    margin-left: auto;
  }
  .brand-logo {
    font-size: 19px;
  }
  .brand-sticker {
    font-size: 8px;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 16. Reduced Motion ---------- */
@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;
  }
  [data-progress-bar] {
    transition: none;
  }
  .card-hover:hover {
    transform: none;
  }
  .btn:hover {
    transform: none;
  }
  .image-frame > img {
    transition: none;
  }
  .image-frame:hover > img {
    transform: none;
  }
}
