:root {
  --navy: #0a1628;
  --navy-light: #132040;
  --navy-card: #1a2d4a;
  --orange: #f97316;
  --orange-light: #fb923c;
  --gold: #fbbf24;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.4);
}

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

body {
  background: var(--navy);
  color: var(--white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--navy);
  border-bottom: 1px solid #1e3a5f;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

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

.logo-icon {
  font-size: 28px;
}

.logo span:last-child {
  color: var(--white);
  font-weight: 900;
  font-size: 1.2rem;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  color: var(--gray-300);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-link.active {
  color: var(--orange);
  background: rgba(249,115,22,0.15);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 60px 0 40px;
  text-align: center;
}

.hero-section h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
}

.hero-section p {
  color: var(--gray-300);
  font-size: 1.1rem;
  margin-top: 12px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.badge-pill {
  background: rgba(249,115,22,0.2);
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s;
}

.badge-pill:hover {
  background: rgba(249,115,22,0.35);
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--orange);
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.view-all {
  color: var(--orange);
  font-size: 0.875rem;
  text-decoration: none;
}

.view-all:hover {
  text-decoration: underline;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #1e3a5f;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.news-thumb-1 { background: linear-gradient(135deg, #1d428a, #0a1628); }
.news-thumb-2 { background: linear-gradient(135deg, #552583, #1d428a); }
.news-thumb-3 { background: linear-gradient(135deg, #007a33, #0a1628); }
.news-thumb-4 { background: linear-gradient(135deg, #c8102e, #1d428a); }
.news-thumb-5 { background: linear-gradient(135deg, #00538c, #0a1628); }
.news-thumb-6 { background: linear-gradient(135deg, #0e2240, #1d428a); }
.news-thumb-7 { background: linear-gradient(135deg, #98002e, #0a1628); }

.news-body {
  padding: 16px;
}

.news-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.cat-tag {
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.news-date {
  color: var(--gray-400);
  font-size: 0.75rem;
}

.news-card h3 {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.news-excerpt {
  color: var(--gray-400);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.team-card {
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid #1e3a5f;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}

.team-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.team-flag {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 12px;
}

.team-name {
  color: var(--white);
  font-weight: 700;
  text-align: center;
  font-size: 1rem;
}

.team-conf {
  color: var(--gray-400);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 4px;
}

.team-record {
  color: var(--orange);
  font-weight: 700;
  text-align: center;
  font-size: 0.85rem;
  margin-top: 6px;
}

/* Player Grid */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.player-card {
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  text-decoration: none;
  display: block;
  border: 1px solid #1e3a5f;
  transition: border-color 0.2s, transform 0.2s;
}

.player-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.player-emoji {
  font-size: 3rem;
  margin-bottom: 10px;
}

.player-name {
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.player-team {
  color: var(--orange);
  font-size: 0.8rem;
  margin-top: 4px;
}

.player-pos {
  color: var(--gray-400);
  font-size: 0.75rem;
  margin-top: 2px;
}

/* Coach Grid */
.coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.coach-card {
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid #1e3a5f;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}

.coach-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.coach-emoji {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-align: center;
}

.coach-name {
  color: var(--white);
  font-weight: 700;
  text-align: center;
  font-size: 1rem;
}

.coach-team {
  color: var(--orange);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 4px;
}

.coach-record {
  color: var(--gray-400);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 6px;
}

/* Schedule Table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th {
  background: var(--navy-light);
  color: var(--gray-300);
  padding: 10px 16px;
  text-align: left;
  font-size: 0.85rem;
}

.schedule-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #1e3a5f;
  color: var(--white);
  font-size: 0.9rem;
}

.schedule-table tr:hover td {
  background: var(--navy-card);
}

.status-badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-live {
  background: rgba(16,185,129,0.2);
  color: #10b981;
}

.status-upcoming {
  background: rgba(251,191,36,0.2);
  color: #fbbf24;
}

.status-finished {
  background: rgba(100,116,139,0.2);
  color: var(--gray-400);
}

/* Detail Pages */
.detail-hero {
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  padding: 40px 0;
  border-bottom: 1px solid #1e3a5f;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.info-card {
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid #1e3a5f;
}

.info-card h2 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #1e3a5f;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.info-value {
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: right;
  max-width: 60%;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  padding: 12px 0;
}

.breadcrumb a {
  color: var(--gray-400);
  text-decoration: none;
}

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

.breadcrumb-sep {
  color: var(--gray-600);
}

/* Page Hero */
.page-hero {
  background: var(--navy-light);
  border-bottom: 1px solid #1e3a5f;
  padding: 32px 0;
}

.page-hero h1 {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 900;
}

.page-hero p {
  color: var(--gray-400);
  margin-top: 8px;
}

/* Article */
.article-body {
  line-height: 1.85;
  color: var(--gray-300);
}

.article-body h2 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 24px 0 12px;
}

.article-body p {
  margin-bottom: 16px;
}

/* SEO Block */
.seo-block {
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 32px;
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.8;
}

.seo-block a {
  color: var(--orange);
  text-decoration: none;
}

.seo-block a:hover {
  text-decoration: underline;
}

/* Disclaimer */
.disclaimer {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: #fca5a5;
  font-size: 0.875rem;
  margin: 16px 0;
}

/* Footer */
.footer {
  background: #060e1a;
  border-top: 1px solid #1e3a5f;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-brand h3 {
  color: var(--white);
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--gray-500);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--gray-300);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

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

.footer-col li {
  margin-bottom: 6px;
}

.footer-col li a {
  color: var(--gray-500);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid #1e3a5f;
  margin-top: 32px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-disclaimer {
  color: var(--gray-600);
  font-size: 0.75rem;
  max-width: 600px;
  line-height: 1.6;
}

.footer-copy {
  color: var(--gray-600);
  font-size: 0.75rem;
}

/* Jingcai Disclaimer */
.jingcai-disclaimer {
  background: rgba(239,68,68,0.1);
  border: 2px solid rgba(239,68,68,0.4);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 20px 0;
  color: #fca5a5;
  font-size: 0.9rem;
}

.jingcai-disclaimer h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* Keyword Cloud */
.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
}

.keyword-tag {
  background: var(--navy-card);
  color: var(--gray-300);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid #1e3a5f;
  transition: border-color 0.2s, color 0.2s;
}

.keyword-tag:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.keyword-tag.hot {
  border-color: rgba(249,115,22,0.4);
  color: var(--orange);
}

/* Rankings */
.rankings-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.rankings-table th {
  background: var(--navy-light);
  color: var(--gray-300);
  padding: 10px 16px;
  text-align: left;
  font-size: 0.85rem;
}

.rankings-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #1e3a5f;
  color: var(--white);
  font-size: 0.9rem;
}

.rankings-table tr:hover td {
  background: var(--navy-card);
}

.rank-num {
  font-weight: 900;
  color: var(--orange);
  font-size: 1.1rem;
}

/* Draft */
.draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.draft-card {
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid #1e3a5f;
}

.draft-pick {
  color: var(--gold);
  font-weight: 900;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.draft-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.draft-info {
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.draft-desc {
  color: var(--gray-300);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Live */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.live-card {
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid #1e3a5f;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}

.live-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.live-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.live-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.live-desc {
  color: var(--gray-400);
  font-size: 0.85rem;
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  background: var(--navy-light);
  color: var(--gray-300);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  text-decoration: none;
  border: 1px solid #1e3a5f;
}

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

/* Article nav */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}

.article-nav a {
  background: var(--navy-card);
  border: 1px solid #1e3a5f;
  border-radius: var(--radius);
  padding: 12px 16px;
  text-decoration: none;
  color: var(--gray-300);
  font-size: 0.875rem;
  flex: 1;
  transition: border-color 0.2s, color 0.2s;
}

.article-nav a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Filter buttons */
.filter-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-btn {
  background: var(--navy-card);
  color: var(--gray-300);
  border: 1px solid #1e3a5f;
  padding: 6px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(249,115,22,0.15);
  color: var(--orange);
  border-color: var(--orange);
}

/* Jingcai analysis */
.analysis-section {
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid #1e3a5f;
  margin-bottom: 20px;
}

.analysis-section h3 {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analysis-section p {
  color: var(--gray-300);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Baike */
.baike-section {
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid #1e3a5f;
  margin-bottom: 20px;
}

.baike-section h2 {
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.baike-section p,
.baike-section li {
  color: var(--gray-300);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.baike-section ul {
  padding-left: 20px;
}

/* Team Hero */
.team-hero {
  padding: 40px 0;
  border-bottom: 1px solid #1e3a5f;
}

.team-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.team-hero-emoji {
  font-size: 5rem;
  flex-shrink: 0;
}

.team-hero-info h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
}

.team-hero-info .en-name {
  color: var(--gray-400);
  font-size: 1rem;
  margin-top: 4px;
}

.team-hero-info .record-badge {
  display: inline-block;
  background: rgba(249,115,22,0.2);
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 10px;
}

/* Player Hero */
.player-hero {
  padding: 40px 0;
  border-bottom: 1px solid #1e3a5f;
}

.player-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.player-hero-emoji {
  font-size: 5rem;
  flex-shrink: 0;
}

.player-hero-info h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
}

.player-hero-info .en-name {
  color: var(--gray-400);
  font-size: 1rem;
  margin-top: 4px;
}

.player-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pos-badge {
  background: rgba(249,115,22,0.2);
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 3px 10px;
  border-radius: var(--radius);
  font-size: 0.8rem;
}

.team-badge {
  background: rgba(251,191,36,0.15);
  color: var(--gold);
  border: 1px solid rgba(251,191,36,0.4);
  padding: 3px 10px;
  border-radius: var(--radius);
  font-size: 0.8rem;
}

/* Match info */
.match-info-card {
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid #1e3a5f;
  margin-bottom: 24px;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  margin: 16px 0;
}

.match-team-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.match-vs {
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 900;
}

.match-details {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .team-hero-inner,
  .player-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .article-nav {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-nav-open .main-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 16px;
  border-bottom: 1px solid #1e3a5f;
  z-index: 99;
}
