/* ============================================
   开云体育 - 数据可视化仪表盘风格
   主色: 午夜蓝 #000033 / 荧光黄 #FFFF00
   辅色: 深灰 #333333 / 科技蓝 #00BFFF
   ============================================ */

/* --- Google Fonts Fallback --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Roboto+Mono:wght@300;400;500;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --bg-primary: #000033;
  --bg-secondary: #0a0a3a;
  --bg-card: rgba(51, 51, 51, 0.5);
  --accent-yellow: #FFFF00;
  --accent-blue: #00BFFF;
  --text-white: #FFFFFF;
  --text-gray: #AAAAAA;
  --grid-line: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 191, 255, 0.3);
  --font-display: 'Orbitron', 'Noto Sans SC', sans-serif;
  --font-mono: 'Roboto Mono', 'Noto Sans SC', monospace;
  --font-body: 'Noto Sans SC', 'Roboto Mono', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent-blue); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-yellow); }

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

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 51, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grid-line);
  padding: 0 2rem;
  transition: background 0.3s;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo img { height: 42px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

.main-nav li a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-white);
  border-radius: 4px;
  transition: all 0.3s;
}

.main-nav li a:hover,
.main-nav li a.active {
  color: var(--accent-yellow);
  background: rgba(255, 255, 0, 0.08);
}

.nav-toggle { display: none; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-yellow);
  text-shadow: 0 0 30px rgba(255, 255, 0, 0.4);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.hero-content .hero-slogan {
  font-size: 1.3rem;
  color: var(--text-white);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent-yellow);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pulse-glow 2s infinite;
}

.btn-primary:hover {
  background: #e6e600;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 0, 0.3);
  color: var(--bg-primary);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 255, 0, 0.3); }
  50% { box-shadow: 0 0 25px rgba(255, 255, 0, 0.5); }
}

/* --- Section Common --- */
.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-yellow);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.view-all {
  font-size: 0.9rem;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  padding: 6px 18px;
  border-radius: 3px;
  transition: all 0.3s;
}

.view-all:hover {
  background: var(--accent-blue);
  color: var(--bg-primary);
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 191, 255, 0.15);
  border-color: var(--border-glow);
}

.card:hover::before { opacity: 1; }

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-blue);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.card-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-yellow);
  margin-bottom: 0.3rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* --- Data Table --- */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--grid-line);
  border-radius: 8px;
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.data-table thead {
  background: rgba(0, 191, 255, 0.1);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--accent-yellow);
  border-bottom: 1px solid var(--grid-line);
  white-space: nowrap;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--grid-line);
  color: var(--text-white);
}

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

.data-table .rank-col { color: var(--accent-yellow); font-weight: 700; }
.data-table .player-name { font-weight: 600; }
.data-table .highlight-val { color: var(--accent-yellow); font-weight: 700; }

/* --- Chart Container --- */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.chart-area {
  width: 100%;
  min-height: 400px;
  position: relative;
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--grid-line);
  color: var(--text-white);
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-yellow);
  color: var(--bg-primary);
  border-color: var(--accent-yellow);
}

/* --- Glossary / Tags --- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-item {
  padding: 5px 14px;
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent-blue);
  transition: all 0.3s;
}

.tag-item:hover {
  background: var(--accent-blue);
  color: var(--bg-primary);
}

/* --- Glossary Term --- */
.glossary-item {
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.glossary-item:hover {
  border-color: var(--accent-blue);
}

.glossary-term {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-yellow);
  margin-bottom: 0.3rem;
}

.glossary-full {
  font-size: 0.85rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.glossary-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* --- Partners --- */
.partners-section {
  background: rgba(20, 20, 50, 0.6);
  padding: 3rem 2rem;
  border-top: 1px solid var(--grid-line);
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

.partner-logo {
  height: 40px;
  filter: grayscale(100%) brightness(0.6);
  transition: all 0.3s;
  opacity: 0.6;
}

.partner-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* --- Footer --- */
.site-footer {
  background: #000022;
  border-top: 1px solid var(--grid-line);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent-yellow);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.footer-col ul { list-style: none; }

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col li a {
  color: var(--text-gray);
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-col li a:hover { color: var(--accent-yellow); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grid-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-gray);
}

/* --- Tab System --- */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--grid-line);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  color: var(--text-gray);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-btn:hover { color: var(--text-white); }

.tab-btn.active {
  color: var(--accent-yellow);
  border-bottom-color: var(--accent-yellow);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Article Cards --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 191, 255, 0.15);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: 1.5rem;
}

.article-card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.article-card-body p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.article-meta {
  font-size: 0.75rem;
  color: var(--text-gray);
  font-family: var(--font-mono);
}

/* --- Query Tool --- */
.query-box {
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: 8px;
  padding: 2rem;
}

.query-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.query-btn {
  padding: 8px 20px;
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s;
  font-family: var(--font-body);
}

.query-btn:hover {
  background: var(--accent-blue);
  color: var(--bg-primary);
}

.query-result {
  min-height: 100px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* --- APP Download Page --- */
.app-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.app-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto;
}

.app-feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: 8px;
  transition: all 0.3s;
}

.app-feature-item:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

.app-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-yellow);
}

.app-feature-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--accent-yellow);
}

.app-feature-item p {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.qr-section {
  text-align: center;
  padding: 3rem 2rem;
}

.qr-code {
  width: 200px;
  height: 200px;
  background: white;
  margin: 1rem auto;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Page Header (Inner Pages) --- */
.page-header {
  padding: 7rem 2rem 3rem;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  text-align: center;
  border-bottom: 1px solid var(--grid-line);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent-yellow);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-gray);
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--text-gray);
}

.breadcrumb a { color: var(--accent-blue); }
.breadcrumb span { margin: 0 0.5rem; }

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* --- Player Profile --- */
.player-profile {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.player-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-yellow);
}

.player-info h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent-yellow);
  margin-bottom: 0.3rem;
}

.player-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.player-meta-item {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.player-meta-item strong {
  color: var(--text-white);
}

.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.stat-box {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 191, 255, 0.05);
  border-radius: 6px;
  border: 1px solid var(--grid-line);
}

.stat-box .stat-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent-yellow);
  font-weight: 700;
}

.stat-box .stat-label {
  font-size: 0.7rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

/* --- Sidebar --- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent-yellow);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .player-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 51, 0.98);
    padding: 1rem;
  }
  .main-nav.open ul {
    flex-direction: column;
    width: 100%;
  }
  .nav-toggle { display: block; }
  .hero-content h1 { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .app-features { grid-template-columns: 1fr; }
  .player-profile { flex-direction: column; text-align: center; }
  .player-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3rem 1rem; }
}

/* --- Utility --- */
.text-yellow { color: var(--accent-yellow); }
.text-blue { color: var(--accent-blue); }
.text-gray { color: var(--text-gray); }
.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }

/* --- Interference tags (Baden-Baden) --- */
.xkr-data-panel, .zqm-stat-block, .wft-metric-row,
.bvn-score-cell, .jph-court-zone, .rml-assist-track,
.tnc-rebound-grid, .dkw-steal-counter, .qyp-block-rate,
.hxs-accuracy-bar { /* structural interference classes */ }
