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

:root {
  --bg-primary: #0a1628;
  --bg-secondary: #0f1f3a;
  --bg-card: #132744;
  --bg-card-hover: #1a3358;
  --accent-blue: #00d4ff;
  --accent-orange: #ff6b35;
  --text-primary: #ffffff;
  --text-secondary: #a0b4c8;
  --border-color: #1e3a5f;
  --live-red: #ff3b5c;
  --win-green: #00e676;
  --shadow-blue: 0 0 30px rgba(0, 212, 255, 0.3);
  --shadow-orange: 0 0 20px rgba(255, 107, 53, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

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

/* ========== Header ========== */
.site-header {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 28px;
  color: var(--text-primary);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-blue);
}

.logo span {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #0099cc);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
  color: var(--bg-primary);
}

.btn-orange {
  background: linear-gradient(135deg, var(--accent-orange), #ff4500);
  color: white;
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

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

/* ========== Navigation ========== */
.main-nav {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.nav-list li a {
  display: block;
  padding: 14px 24px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-list li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-blue);
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

/* ========== Main Content ========== */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

.section {
  margin-bottom: 50px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 26px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-orange));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ========== Live Badge ========== */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--live-red);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  animation: pulse 1.5s infinite;
}

.live-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: blink 1s infinite;
}

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.status-live {
  background: var(--live-red);
  color: white;
}

.status-upcoming {
  background: var(--accent-orange);
  color: white;
}

.status-finished {
  background: var(--bg-card-hover);
  color: var(--text-secondary);
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
}

.hero-content {
  position: relative;
  padding: 60px 40px;
  z-index: 2;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  opacity: 0.25;
  object-fit: cover;
}

.hero h1 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 42px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--text-primary), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 500px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========== Grid Layouts ========== */
.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);
}

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

/* ========== Card ========== */
.card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.15);
}

.card-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-image .live-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
}

.card-image .view-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-meta {
  display: flex;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 10px;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========== Dashboard Stats ========== */
.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.stat-value {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 36px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 6px;
}

.stat-trend {
  font-size: 12px;
  margin-top: 8px;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
}

.stat-trend.up {
  background: rgba(0, 230, 118, 0.15);
  color: var(--win-green);
}

.stat-trend.down {
  background: rgba(255, 59, 92, 0.15);
  color: var(--live-red);
}

/* ========== Filter Tabs ========== */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* ========== Schedule Table ========== */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.schedule-table th,
.schedule-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.schedule-table th {
  background: var(--bg-secondary);
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.team-vs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.team-logo.a {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.team-logo.b {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
}

.vs-text {
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 12px;
}

/* ========== Ranking ========== */
.ranking-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.ranking-item {
  display: grid;
  grid-template-columns: 60px 1fr 120px 120px 80px;
  gap: 20px;
  padding: 16px 20px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item:hover {
  background: var(--bg-card-hover);
}

.ranking-item.header {
  background: var(--bg-secondary);
  color: var(--accent-blue);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.rank-num {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 24px;
  text-align: center;
}

.rank-num.top1 { color: #ffd700; }
.rank-num.top2 { color: #c0c0c0; }
.rank-num.top3 { color: #cd7f32; }

.team-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-logo-lg {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  color: white;
}

.team-name {
  font-size: 16px;
  font-weight: 600;
}

.team-tag {
  font-size: 12px;
  color: var(--text-secondary);
}

.win-rate-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.win-rate-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  border-radius: 4px;
  transition: width 1s ease;
}

.win-rate-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ========== About Page ========== */
.content-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
}

.content-section h2 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--accent-blue);
}

.content-section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.8;
}

.content-section ul {
  list-style: none;
  padding: 0;
}

.content-section ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-section ul li::before {
  content: '▸';
  color: var(--accent-orange);
  font-size: 18px;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-blue);
}

.timeline-year {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 22px;
  color: var(--accent-orange);
  margin-bottom: 6px;
}

.timeline-desc {
  color: var(--text-secondary);
}

/* ========== Contact Page ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.contact-info-card h3 {
  color: var(--accent-blue);
  margin-bottom: 12px;
  font-size: 18px;
}

.contact-info-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 2px solid var(--border-color);
  margin-top: 60px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 20px 30px;
}

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

.footer-col h4 {
  font-family: 'ZCOOL KuaiLe', cursive;
  color: var(--accent-blue);
  font-size: 18px;
  margin-bottom: 18px;
}

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

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

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.footer-col p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  transition: all 0.3s ease;
  font-size: 16px;
}

.social-link:hover {
  background: var(--accent-blue);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* ========== Live Room Grid ========== */
.live-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.live-room {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.live-room:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.live-room-thumb {
  position: relative;
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.live-room-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-room-info {
  padding: 14px;
}

.live-room-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-room-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .live-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .grid-3, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .ranking-item {
    grid-template-columns: 40px 1fr 80px;
    gap: 12px;
  }
  .ranking-item .hide-mobile { display: none; }

  .hero-content { padding: 40px 30px; }
  .hero h1 { font-size: 32px; }
  .hero-image { display: none; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

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

  .nav-list li a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-list li a.active::after {
    display: none;
  }

  .grid-4,
  .grid-3,
  .grid-6 { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: 1fr; }

  .hero-content { padding: 30px 20px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; }

  .section-title { font-size: 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .ranking-item {
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 12px 14px;
  }
  .ranking-item .hide-mobile,
  .ranking-item .hide-tablet { display: none; }

  .schedule-table { font-size: 12px; }
  .schedule-table th,
  .schedule-table td { padding: 10px 8px; }

  .content-section { padding: 24px 20px; }

  .header-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .logo { font-size: 22px; }
  .logo-icon { width: 36px; height: 36px; font-size: 18px; }
}

@media (max-width: 480px) {
  .header-top { flex-wrap: wrap; gap: 10px; }
  .header-actions { width: 100%; justify-content: flex-end; }

  .btn { padding: 8px 18px; font-size: 13px; }

  .live-room-thumb { height: 120px; }
  .card-image { height: 150px; }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* ========== Selection ========== */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: white;
}