/* =====================================================
   中欧体育竞界 — 全站共享样式 /assets/site.css
   设计语言：赛事仪表板 × 杂志刊头 × 纵向叙事长卷
   ===================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure,
blockquote, table, pre, fieldset, legend, input, button, textarea {
  margin: 0;
  padding: 0;
}

ul[class], ol[class] {
  list-style: none;
}

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

main {
  display: block;
}

#main-content {
  outline: none;
}

/* ---------- 2. 设计变量 ---------- */
:root {
  --color-deep-blue: #0a1930;
  --color-elevated-blue: #0f2440;
  --color-neon-green: #39ff14;
  --color-orange-red: #ff4d00;
  --color-text-white: #f2f7ff;
  --color-muted-blue: #8ba3c7;
  --color-light-bg: #eef2f6;
  --color-mid-blue: #1a3a6b;
  --color-dark-slate: #050d1a;
  --color-amber: #ffcc00;

  --font-heading: 'Oswald', 'Arial Narrow', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --font-data: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Courier New', monospace;

  --container-max: 1240px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  --card-bg: linear-gradient(145deg, rgba(15, 36, 64, 0.92), rgba(26, 58, 107, 0.35));
  --line-muted: rgba(138, 163, 199, 0.18);
  --line-green: rgba(57, 255, 20, 0.4);
  --shadow-card: 0 10px 30px rgba(3, 10, 25, 0.35);
}

/* ---------- 3. 基础排版 ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-white);
  background-color: var(--color-deep-blue);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.25;
  margin-bottom: 0.75em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.25em;
}

strong {
  color: var(--color-text-white);
  font-weight: 700;
}

::selection {
  background-color: var(--color-neon-green);
  color: var(--color-deep-blue);
}

:focus-visible {
  outline: 2px solid var(--color-neon-green);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 4. 布局容器 ---------- */
.container {
  width: min(var(--container-max), 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-2xl);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-12 {
  grid-template-columns: repeat(12, 1fr);
}

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 1.25rem;
  z-index: 1000;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-neon-green);
  color: var(--color-deep-blue);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- 6. 头部刊头 ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--color-deep-blue);
  border-bottom: 1px solid var(--line-muted);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  z-index: 1;
  background: linear-gradient(90deg,
    var(--color-orange-red) 0%,
    var(--color-amber) 30%,
    var(--color-neon-green) 70%,
    transparent 100%);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(var(--container-max), 100% - 3rem);
  margin-inline: auto;
  padding: 1rem 0;
}

.site-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  line-height: 1;
}

.brand-mark {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text-white);
  text-transform: uppercase;
}

.brand-accent {
  color: var(--color-neon-green);
}

.brand-tagline {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--color-muted-blue);
  text-transform: uppercase;
}

.brand-tagline::before {
  content: '// ';
  color: var(--color-neon-green);
}

/* 移动端导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(57, 255, 20, 0.4);
  border-radius: 4px;
  color: var(--color-neon-green);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: var(--color-neon-green);
  color: var(--color-deep-blue);
  border-color: var(--color-neon-green);
}

.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.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(-6px) rotate(-45deg);
}

.nav-toggle-text {
  font-family: var(--font-data);
  font-size: 0.8125rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* 导航 */
.site-nav {
  background: rgba(5, 13, 26, 0.6);
  border-top: 1px solid var(--line-muted);
}

.nav-list {
  display: flex;
  width: min(var(--container-max), 100% - 3rem);
  margin-inline: auto;
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.875rem 1rem;
  color: var(--color-muted-blue);
  font-size: 0.9375rem;
  border-bottom: 2px solid transparent;
  background: transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav-num {
  font-family: var(--font-data);
  font-size: 0.6875rem;
  color: var(--color-neon-green);
  opacity: 0.6;
}

.nav-link:hover {
  color: var(--color-text-white);
  border-bottom-color: var(--color-neon-green);
  background: rgba(57, 255, 20, 0.05);
}

.nav-link[aria-current="page"] {
  color: var(--color-text-white);
  border-bottom-color: var(--color-orange-red);
  background: rgba(255, 77, 0, 0.08);
}

/* ---------- 7. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-neon-green), var(--color-orange-red));
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.35);
  z-index: 300;
  pointer-events: none;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  background: var(--color-dark-slate);
  border-top: 1px solid rgba(57, 255, 20, 0.15);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: var(--space-xl);
  width: min(var(--container-max), 100% - 3rem);
  margin-inline: auto;
  padding: var(--space-xl) 0;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand-mark {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-text-white);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-brand-mark:hover {
  color: var(--color-neon-green);
}

.footer-tagline {
  font-family: var(--font-data);
  font-size: 0.8125rem;
  color: var(--color-muted-blue);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-domain {
  font-family: var(--font-data);
  font-size: 0.8125rem;
  color: var(--color-neon-green);
  opacity: 0.8;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-muted-blue);
  margin-bottom: 1rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-list li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-muted-blue);
}

.footer-list a {
  display: inline-block;
  color: var(--color-muted-blue);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-list a:hover {
  color: var(--color-neon-green);
  border-bottom-color: var(--color-neon-green);
}

.footer-trust {
  width: min(var(--container-max), 100% - 3rem);
  margin-inline: auto;
  padding: 1.125rem 0;
  border-top: 1px solid rgba(138, 163, 199, 0.12);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(138, 163, 199, 0.75);
}

.footer-bottom {
  border-top: 1px solid rgba(138, 163, 199, 0.1);
  background: rgba(0, 0, 0, 0.25);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(var(--container-max), 100% - 3rem);
  margin-inline: auto;
  padding: 1rem 0;
  font-family: var(--font-data);
  font-size: 0.8125rem;
  color: var(--color-muted-blue);
}

.footer-icp {
  font-family: var(--font-data);
  font-size: 0.8125rem;
}

/* ---------- 9. 通用组件 ---------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--color-orange-red);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-neon-green);
  color: var(--color-deep-blue);
}

.btn-outline {
  background: transparent;
  border-color: rgba(57, 255, 20, 0.45);
  color: var(--color-neon-green);
}

.btn-outline:hover {
  background: var(--color-neon-green);
  color: var(--color-deep-blue);
  border-color: var(--color-neon-green);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

/* 卡片 */
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--line-muted);
  padding: var(--space-md);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(57, 255, 20, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* 徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-green {
  background: var(--color-neon-green);
  color: var(--color-deep-blue);
}

.badge-red {
  background: var(--color-orange-red);
  color: #ffffff;
}

.badge-amber {
  background: var(--color-amber);
  color: var(--color-deep-blue);
}

.badge-muted {
  background: rgba(138, 163, 199, 0.15);
  color: var(--color-muted-blue);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.8125rem;
  color: var(--color-muted-blue);
  margin-bottom: var(--space-lg);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: rgba(138, 163, 199, 0.4);
}

.breadcrumb a {
  color: var(--color-muted-blue);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--color-neon-green);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text-white);
}

/* 数据表格 */
.data-table {
  width: 100%;
  font-family: var(--font-data);
  font-size: 0.875rem;
  border-collapse: collapse;
}

.data-table thead th {
  padding: 0.625rem 1rem;
  text-align: left;
  background: rgba(26, 58, 107, 0.45);
  color: var(--color-muted-blue);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-muted);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid rgba(138, 163, 199, 0.1);
  color: var(--color-text-white);
  white-space: nowrap;
}

.data-table tbody tr:hover td {
  background: rgba(57, 255, 20, 0.04);
}

.num-highlight {
  color: var(--color-neon-green);
  font-weight: 700;
}

.num-warn {
  color: var(--color-amber);
}

/* 分页 */
.pager {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: var(--space-xl);
}

.pager a,
.pager .page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  font-family: var(--font-data);
  font-size: 0.875rem;
  border: 1px solid var(--line-muted);
  background: var(--color-elevated-blue);
  color: var(--color-muted-blue);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.pager a:hover {
  border-color: var(--color-neon-green);
  color: var(--color-neon-green);
}

.pager .page-current {
  border-color: var(--color-neon-green);
  color: var(--color-deep-blue);
  background: var(--color-neon-green);
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line-muted);
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--color-muted-blue);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tag:hover {
  border-color: var(--color-neon-green);
  color: var(--color-neon-green);
}

/* 章节标题 */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: var(--space-lg);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-muted);
}

.section-index {
  font-family: var(--font-data);
  font-size: 0.875rem;
  color: var(--color-neon-green);
  letter-spacing: 1px;
}

.section-title {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  color: var(--color-text-white);
  margin-bottom: 0;
  letter-spacing: 2px;
}

.section-desc {
  font-family: var(--font-data);
  font-size: 0.875rem;
  color: var(--color-muted-blue);
  margin-top: 0.5rem;
}

/* 分隔线 */
.divider {
  border: 0;
  border-top: 1px solid var(--line-muted);
  margin: var(--space-xl) 0;
}

.divider-slash {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-neon-green);
  font-size: 0.875rem;
  font-family: var(--font-data);
}

.divider-slash::before,
.divider-slash::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.4), transparent);
}

/* 手风琴 */
details {
  border: 1px solid var(--line-muted);
  background: var(--color-elevated-blue);
  margin-bottom: 0.75rem;
}

details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-white);
  transition: color 0.2s ease, background-color 0.2s ease;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  font-family: var(--font-data);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-neon-green);
}

details[open] summary {
  background: rgba(57, 255, 20, 0.06);
  color: var(--color-neon-green);
}

details[open] summary::after {
  content: '−';
}

details .details-body {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line-muted);
  font-size: 0.9375rem;
  color: var(--color-muted-blue);
}

/* 提示条 */
.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 77, 0, 0.08);
  border-left: 3px solid var(--color-orange-red);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-white);
  margin-bottom: var(--space-lg);
}

.notice-bar .notice-icon {
  color: var(--color-orange-red);
  flex-shrink: 0;
  font-family: var(--font-data);
}

/* 图片容器 */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--color-mid-blue);
  aspect-ratio: 16 / 9;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1rem 0.75rem;
  background: linear-gradient(0deg, rgba(5, 13, 26, 0.85) 0%, transparent 100%);
  color: var(--color-text-white);
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1023px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .site-nav[data-open] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-link {
    padding: 0.875rem 1.5rem;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(138, 163, 199, 0.1);
  }

  .nav-link:hover,
  .nav-link[aria-current="page"] {
    border-left-color: var(--color-neon-green);
    border-bottom-color: transparent;
  }

  .brand-tagline {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 1.5rem, 600px);
  }

  .section {
    padding-block: var(--space-xl);
  }

  .section-head {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .breadcrumb {
    font-size: 0.75rem;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .grid-12,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .col-span-2,
  .col-span-3,
  .col-span-4,
  .col-span-6,
  .col-span-8,
  .col-span-12 {
    grid-column: span 1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
  }

  .footer-brand-col {
    grid-column: auto;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-trust {
    padding: 1rem 0;
  }
}

/* ---------- 11. 无障碍与降级 ---------- */
@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;
  }

  .scroll-progress {
    display: none;
  }

  .card:hover {
    transform: none;
  }
}
