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

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

:root {
  --primary: #d32f2f;
  --primary-dark: #b71c1c;
  --primary-light: #ff6659;
  --accent: #ffd54f;
  --accent-dark: #ffb300;
  --bg: #fffde7;
  --bg-warm: #fff8e1;
  --text: #212121;
  --text-light: #616161;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(211, 47, 47, 0.12);
  --shadow-hover: 0 8px 30px rgba(211, 47, 47, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', sans-serif;
  color: var(--primary);
  line-height: 1.3;
}

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

a:hover {
  color: var(--primary-dark);
}

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

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

/* ========== Header ========== */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 2px 20px rgba(211, 47, 47, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 24px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 213, 79, 0.5);
  animation: trophyGlow 2s ease-in-out infinite;
}

@keyframes trophyGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 213, 79, 0.5); }
  50% { box-shadow: 0 0 25px rgba(255, 213, 79, 0.9); }
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text small {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 2px;
}

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

.main-nav a {
  color: var(--white);
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
}

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

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

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

/* ========== Daily Check-in Bar ========== */
.daily-bar {
  background: var(--accent);
  color: var(--primary-dark);
  text-align: center;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
}

.daily-bar .countdown {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 2px 12px;
  border-radius: 20px;
  margin-left: 10px;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* ========== Hero Banner ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #8b0000 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 213, 79, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 6px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.countdown-box {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 30px 0;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 213, 79, 0.5);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 100px;
  text-align: center;
}

.countdown-item .num {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 36px;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.countdown-item .label {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(255, 213, 79, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 213, 79, 0.6);
  color: var(--primary-dark);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ========== Section Title ========== */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  margin-top: 20px;
  font-size: 16px;
}

/* ========== Tournament Cards ========== */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tournament-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(211, 47, 47, 0.08);
  position: relative;
}

.tournament-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.tournament-card .card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}

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

.tournament-card:hover .card-img img {
  transform: scale(1.08);
}

.tournament-card .card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.tournament-card .card-badge.live {
  background: #4caf50;
  animation: pulse 1.5s ease-in-out infinite;
}

.tournament-card .card-badge.upcoming {
  background: var(--accent-dark);
}

.tournament-card .card-body {
  padding: 20px;
}

.tournament-card .card-title {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.tournament-card .card-meta {
  display: flex;
  gap: 16px;
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

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

.tournament-card .card-desc {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.tournament-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #fce4ec;
}

.prize-pool {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  color: var(--primary);
  font-size: 18px;
}

.prize-pool small {
  font-size: 12px;
  color: var(--text-light);
  font-family: 'Noto Sans SC', sans-serif;
}

/* ========== Filter Tabs ========== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 24px;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 14px;
}

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

/* ========== Quick Entry ========== */
.quick-entry {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  text-align: center;
  margin: 40px 0;
}

.quick-entry h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.quick-entry p {
  opacity: 0.95;
  margin-bottom: 25px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.quick-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 24px 16px;
  transition: var(--transition);
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.quick-item .icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}

.quick-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.quick-item small {
  opacity: 0.8;
  font-size: 13px;
}

/* ========== Calendar / Schedule ========== */
.schedule-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.schedule-day {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.schedule-day:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.schedule-day.today {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-color: var(--accent);
}

.schedule-day .day-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.schedule-day .day-date {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 24px;
  margin-bottom: 8px;
}

.schedule-day .day-count {
  font-size: 12px;
  opacity: 0.8;
}

/* ========== Results Table ========== */
.results-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-collapse: collapse;
}

.results-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.results-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.results-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #fce4ec;
  font-size: 14px;
}

.results-table tbody tr:hover {
  background: #fff8e1;
}

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

.score {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
}

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

.status-tag.finished {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-tag.live {
  background: #ffebee;
  color: #c62828;
  animation: pulse 1.5s ease-in-out infinite;
}

.status-tag.upcoming {
  background: #fff3e0;
  color: #e65100;
}

/* ========== About Section ========== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.about-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.about-card .icon-big {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.about-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-box {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-num {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 42px;
  color: var(--primary);
  line-height: 1;
}

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

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

.contact-info h3 {
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #fce4ec;
}

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

.contact-item .ci-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-light);
  font-size: 14px;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #fce4ec;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

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

/* ========== Footer ========== */
.site-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #212121 100%);
  color: var(--white);
  padding: 60px 0 0;
  margin-top: 60px;
}

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

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

.footer-col p {
  color: #bdbdbd;
  font-size: 14px;
  line-height: 1.8;
}

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

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

.footer-col a {
  color: #bdbdbd;
  font-size: 14px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

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

/* ========== Page Banner ========== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 213, 79, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.page-banner h1 {
  color: var(--white);
  font-size: 42px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-banner p {
  font-size: 18px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

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

.breadcrumb span {
  color: rgba(255, 255, 255, 0.6);
}

/* ========== Responsive ========== */
@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 20px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .countdown-box {
    gap: 10px;
  }

  .countdown-item {
    min-width: 70px;
    padding: 10px 14px;
  }

  .countdown-item .num {
    font-size: 24px;
  }

  .countdown-item .label {
    font-size: 11px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .page-banner {
    padding: 36px 0;
  }

  .page-banner h1 {
    font-size: 28px;
  }

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

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

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

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

  .results-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .results-table th,
  .results-table td {
    padding: 10px 14px;
    font-size: 13px;
  }

  .quick-entry {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .schedule-week {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .countdown-box {
    flex-wrap: wrap;
  }
}