@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

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

:root {
  --primary: #ff1744;
  --secondary: #ffab00;
  --bg: #fff8e1;
  --text: #263238;
  --white: #ffffff;
  --gray: #eceff1;
  --dark-bg: #263238;
  --shadow: 0 8px 30px rgba(255, 23, 68, 0.15);
  --radius: 16px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-family: 'ZCOOL KuaiLe', cursive; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary) 0%, #d50000 100%);
  box-shadow: 0 4px 20px rgba(255, 23, 68, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav-logo .emoji { font-size: 32px; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-menu a {
  color: var(--white);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  transition: var(--transition);
  font-size: 15px;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '🍉🍉🍉🍉🍉';
  position: absolute;
  font-size: 100px;
  opacity: 0.15;
  top: -20px;
  left: -20px;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '🏆🎯🎊';
  position: absolute;
  font-size: 80px;
  opacity: 0.15;
  bottom: -20px;
  right: -20px;
  animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-badge {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero h1 {
  font-size: 56px;
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  color: var(--primary);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Section Styles */
section { padding: 70px 0; }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 40px;
  color: var(--text);
  margin-bottom: 12px;
}

.section-header .line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 0 auto;
  border-radius: 2px;
}

.section-header p {
  color: #546e7a;
  margin-top: 16px;
  font-size: 16px;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(255, 23, 68, 0.2);
  border-color: var(--secondary);
}

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

.card-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tag-live { background: #ffebee; color: var(--primary); }
.tag-upcoming { background: #fff3e0; color: #ff6d00; }
.tag-finished { background: #eceff1; color: #546e7a; }
.tag-hot { background: #fff8e1; color: var(--secondary); }

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  color: #607d8b;
  font-size: 15px;
  margin-bottom: 16px;
}

.card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #78909c;
  flex-wrap: wrap;
}

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

/* Feature Cards (Home) */
.feature-card {
  text-align: center;
  padding: 36px 24px;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
  color: var(--white);
}

/* Topic Cards */
.topic-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.topic-card:hover {
  transform: translateX(8px);
  border-left: 4px solid var(--primary);
}

.topic-rank {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}

.topic-info { flex: 1; }
.topic-info h4 { font-size: 18px; margin-bottom: 6px; }
.topic-stats { display: flex; gap: 16px; font-size: 13px; color: #78909c; }

.topic-heat {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* Schedule */
.schedule-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.schedule-tab {
  padding: 12px 28px;
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 14px;
}

.schedule-tab.active,
.schedule-tab:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.schedule-list { display: flex; flex-direction: column; gap: 16px; }

.schedule-item {
  display: flex;
  align-items: center;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  gap: 20px;
  flex-wrap: wrap;
}

.schedule-time {
  min-width: 120px;
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
  font-family: 'ZCOOL KuaiLe', cursive;
}

.schedule-info { flex: 1; min-width: 200px; }
.schedule-info h4 { font-size: 18px; margin-bottom: 6px; }
.schedule-info p { font-size: 14px; color: #78909c; }

/* Ranking */
.ranking-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.ranking-tab {
  padding: 12px 32px;
  background: var(--white);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 15px;
  color: #78909c;
}

.ranking-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}

.ranking-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ranking-header,
.ranking-row {
  display: grid;
  grid-template-columns: 80px 1fr 120px 120px;
  padding: 18px 24px;
  align-items: center;
  gap: 16px;
}

.ranking-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-weight: 700;
}

.ranking-row {
  border-bottom: 1px solid #f5f5f5;
  transition: var(--transition);
}

.ranking-row:last-child { border-bottom: none; }
.ranking-row:hover { background: #fafafa; }

.rank-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  background: #eceff1;
  color: #546e7a;
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #ffb300); color: var(--white); }
.rank-2 { background: linear-gradient(135deg, #bdbdbd, #9e9e9e); color: var(--white); }
.rank-3 { background: linear-gradient(135deg, #ff8a65, #ff5722); color: var(--white); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text h2 { font-size: 36px; margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; color: #546e7a; font-size: 16px; }

.value-list { list-style: none; margin-top: 20px; }
.value-list li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.value-list li::before {
  content: '🍉';
  font-size: 20px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-card:hover { transform: translateY(-10px); }

.contact-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  color: var(--white);
}

.contact-card h3 { font-size: 22px; margin-bottom: 12px; }
.contact-card p { color: #607d8b; margin-bottom: 16px; }

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 60px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand h3 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-brand p { color: #b0bec5; font-size: 14px; margin-bottom: 20px; }

.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--secondary);
  font-family: 'Noto Sans SC', sans-serif;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: #b0bec5;
  font-size: 14px;
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
  color: #78909c;
  font-size: 13px;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #78909c;
}
.breadcrumb ol li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: #e0e0e0;
}
.breadcrumb ol li a { color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 20px;
    gap: 8px;
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }

  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .hero { padding: 60px 0; }

  section { padding: 50px 0; }
  .section-header h2 { font-size: 28px; }

  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .ranking-header,
  .ranking-row {
    grid-template-columns: 60px 1fr 80px 80px;
    font-size: 13px;
    padding: 14px 16px;
  }
  .schedule-item { flex-direction: column; align-items: flex-start; }
}

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

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.5s infinite;
}

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