:root {
  --color-bg-primary: #0B1F3A;
  --color-bg-secondary: #0E2A47;
  --color-bg-card: #1A3A5C;
  --color-accent-gold: #D4AF37;
  --color-accent-cta: #FF6B35;
  --color-text-white: #FFFFFF;
  --color-text-muted: #A0B3C9;
  --color-border-light: #E5E7EB;
  --color-success: #28A745;
  --color-alert: #DC3545;
  --font-head: 'DIN Alternate', 'Arial Black', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-data: 'Roboto Mono', 'Courier New', monospace;
  --nav-width: 280px;
  --space-section: 48px;
  --content-max: 1440px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--color-bg-primary);
  color: var(--color-text-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--color-text-white);
}

p { margin: 0 0 1em; }

a { color: var(--color-accent-gold); }
a:hover, a:focus-visible { color: var(--color-accent-cta); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.5rem; }

:focus-visible { outline: 2px solid var(--color-accent-cta); outline-offset: 3px; }

::selection { background: var(--color-accent-gold); color: var(--color-bg-primary); }

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

#main-content { min-height: 80vh; }

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* ----- 进度条 ----- */
.site-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-gold) 0%, var(--color-accent-cta) 100%);
  z-index: 10000;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

/* ----- 头部与导航 ----- */
.site-header { position: relative; z-index: 1002; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10001;
  background: var(--color-accent-gold);
  color: var(--color-bg-primary);
  padding: 10px 20px;
  border-radius: 0 0 4px 4px;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 0; color: var(--color-bg-primary); }

.header-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-bg-card);
  position: sticky;
  top: 0;
  z-index: 1003;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-cta) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--color-bg-primary);
  clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 92%, 0 65%);
}

.brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--color-text-white);
  line-height: 1;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--color-bg-card);
  padding: 8px 12px;
  color: var(--color-text-white);
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s;
}
.nav-toggle:hover { border-color: var(--color-accent-gold); }

.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle-box span {
  height: 2px;
  background: var(--color-accent-gold);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle-label { font-family: var(--font-head); font-size: 14px; font-weight: 700; }

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--color-bg-secondary);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(212, 175, 55, 0.2);
  z-index: 1002;
}

.nav-brand {
  padding: 28px 24px 32px;
  border-bottom: 1px solid var(--color-bg-card);
}
.nav-brand a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.nav-brand .brand-mark { width: 32px; height: 32px; }
.nav-brand .brand-name { font-size: 24px; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  flex: 1;
  overflow-y: auto;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: var(--color-text-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  font-weight: 500;
  font-size: 15px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.nav-list a:hover, .nav-list a:focus-visible {
  background: rgba(26, 58, 92, 0.6);
  color: var(--color-text-white);
  border-left-color: var(--color-accent-gold);
}

.nav-list a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), transparent);
  color: var(--color-accent-gold);
  border-left-color: var(--color-accent-gold);
  font-weight: 700;
}

.nav-meta {
  padding: 24px;
  border-top: 1px solid var(--color-bg-card);
}

.nav-live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--color-text-muted);
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* 遮罩层与移动端抽屉 */
.site-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.7);
  backdrop-filter: blur(3px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.site-overlay[data-open] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ----- 按钮 ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }

.btn-cta {
  background: var(--color-accent-cta);
  color: var(--color-bg-primary);
  border-color: var(--color-accent-cta);
}
.btn-cta:hover, .btn-cta:focus-visible { background: transparent; color: var(--color-accent-cta); }

.btn-ghost {
  background: transparent;
  color: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--color-accent-gold); color: var(--color-bg-primary); }

.btn-block { display: flex; width: 100%; }

/* ----- 页脚 ----- */
.site-footer {
  position: relative;
  background: var(--color-bg-secondary);
  border-top: 4px solid transparent;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-gold) 0%, var(--color-accent-cta) 60%, transparent 100%);
}

.footer-panels {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 56px 40px 40px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.footer-brand .brand-mark { width: 36px; height: 36px; }
.footer-brand .brand-name { font-size: 26px; }

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-top: 16px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--color-accent-gold);
  font-family: var(--font-data);
  font-size: 13px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 6px 14px;
  border-radius: 2px;
  background: rgba(212, 175, 55, 0.05);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
}

.footer-title {
  color: var(--color-accent-gold);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.footer-links, .footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-links a:hover, .footer-links a:focus-visible {
  color: var(--color-accent-gold);
  padding-left: 4px;
}

.footer-contact li {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--color-bg-card);
  padding: 20px 40px;
  margin-top: 24px;
}

.footer-bottom-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--color-accent-gold); }

.footer-icp { font-family: var(--font-data); font-size: 12px; }

/* ----- 通用页面基础组件 ----- */
.section { padding: var(--space-section) 40px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-title::before {
  content: '';
  width: 8px;
  height: 32px;
  background: var(--color-accent-gold);
  display: inline-block;
  flex-shrink: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 40px;
  background: var(--color-bg-secondary);
  font-size: 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.breadcrumbs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; color: var(--color-text-muted); }
.breadcrumbs a { color: var(--color-accent-gold); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li + li::before { content: '/'; color: var(--color-bg-card); font-family: var(--font-data); }

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

/* ----- 数据仪表板组件 ----- */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.data-panel {
  background: var(--color-bg-card);
  padding: 20px;
  border-radius: 4px;
  border-left: 4px solid var(--color-accent-gold);
  transition: background-color 0.2s, transform 0.2s;
}
.data-panel:hover { background: #1E4168; transform: translateY(-2px); }

.data-panel__value {
  font-family: var(--font-data);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-white);
  line-height: 1.2;
}
.data-panel__label {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-top: 8px;
}
.data-panel--highlight { border-left-color: var(--color-accent-cta); }
.data-panel--highlight .data-panel__value { color: var(--color-accent-cta); }

/* ----- 响应式图片容器 ----- */
.img-placeholder {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-secondary) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 4px;
  overflow: hidden;
}
.img-placeholder::after {
  content: '欧皇体育 · 赛事数据视觉';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-text-muted);
  font-family: var(--font-data);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.img-placeholder--tall { padding-bottom: 125%; }
.img-placeholder--wide { padding-bottom: 42%; }

/* ----- 显现动画 ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ----- 响应式布局 ----- */
@media (min-width: 769px) {
  #main-content, .site-footer { margin-left: var(--nav-width); }
}

@media (max-width: 1024px) {
  .footer-panels { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-mobile-bar { display: flex; }

  .site-nav {
    transform: translateX(-100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
    width: 320px;
    max-width: 85vw;
  }
  .site-nav[data-open] {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.5);
  }

  #main-content, .site-footer { margin-left: 0; }

  .section { padding: 40px 20px; }
  .breadcrumbs { padding: 12px 20px; }
  .footer-panels { padding: 40px 20px; grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { padding: 16px 20px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { gap: 12px; }
}

@media (max-width: 600px) {
  .footer-panels { grid-template-columns: 1fr; gap: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
  .section-title::before { height: 24px; }
  .data-panel__value { font-size: 28px; }
  .nav-toggle-label { display: none; }
  .img-placeholder--wide { padding-bottom: 56.25%; }
}

/* ----- 无障碍与减少动态 ----- */
@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-reveal] { opacity: 1; transform: none; transition: none; }
  .live-dot { animation: none; }
}
