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

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

:root {
  --primary: #ff6d00;
  --primary-dark: #e65100;
  --primary-light: #ffab40;
  --secondary: #4caf50;
  --secondary-dark: #388e3c;
  --bg: #fffde7;
  --bg-alt: #fff9c4;
  --text: #263238;
  --text-light: #546e7a;
  --white: #ffffff;
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --shadow: 0 4px 20px rgba(255, 109, 0, 0.15);
  --shadow-hover: 0 8px 30px rgba(255, 109, 0, 0.25);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'ZCOOL KuaiLe', cursive;
  color: var(--text);
  line-height: 1.3;
}

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

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

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

/* ========== Header & Navigation ========== */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(255, 109, 0, 0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

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

.logo-icon {
  font-size: 2rem;
  animation: trophy-bounce 2s ease-in-out infinite;
}

@keyframes trophy-bounce {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

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

.nav-link {
  color: var(--white);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

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

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: bg-move 20s linear infinite;
}

@keyframes bg-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: 'ZCOOL KuaiLe', cursive;
}

.hero-stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Noto Sans SC', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

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

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

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

.btn-dark:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-green {
  background: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-green:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
}

/* ========== Section Common ========== */
.section {
  padding: 70px 0;
}

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

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--text);
}

.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== Cards ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

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

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text);
}

.card-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.card-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

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

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

.card-tag.hot {
  background: #ffebee;
  color: #c62828;
}

.card-tag.new {
  background: #e8f5e9;
  color: #2e7d32;
}

.card-tag.live {
  background: #fff3e0;
  color: #e65100;
  animation: pulse-tag 1.5s ease-in-out infinite;
}

@keyframes pulse-tag {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ========== Countdown Timer ========== */
.timer {
  display: inline-flex;
  gap: 8px;
  background: var(--bg-alt);
  padding: 12px 20px;
  border-radius: 12px;
  margin: 15px 0;
  font-family: 'ZCOOL KuaiLe', cursive;
}

.timer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.timer-num {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 900;
  line-height: 1;
}

.timer-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

.timer-sep {
  font-size: 1.5rem;
  color: var(--primary);
  animation: blink 1s step-end infinite;
  align-self: flex-start;
  padding-top: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ========== Prize / Ranking Cards ========== */
.prize-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

.prize-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-light);
}

.prize-img {
  width: 100%;
  max-width: 200px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.prize-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.prize-points {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 1.2rem;
  color: var(--white);
  margin-right: 15px;
  flex-shrink: 0;
}

.rank-1 { background: var(--gold); }
.rank-2 { background: var(--silver); }
.rank-3 { background: var(--bronze); }
.rank-default { background: #b0bec5; }

.rank-item {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.rank-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.rank-info {
  flex: 1;
}

.rank-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.rank-score {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.rank-trend {
  font-size: 1.2rem;
}

.trend-up { color: var(--secondary); }
.trend-down { color: #e53935; }
.trend-same { color: #78909c; }

/* ========== Tab Switcher ========== */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 30px;
  border-radius: 30px;
  border: 2px solid var(--primary-light);
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.95rem;
}

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

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== Challenge Track ========== */
.challenge-track {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, var(--bg-alt), var(--bg));
  border-radius: var(--radius);
}

.track-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.track-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 1.8rem;
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 109, 0, 0.4);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.track-node.locked .track-circle {
  background: #b0bec5;
  box-shadow: none;
}

.track-node.completed .track-circle {
  background: var(--secondary);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.track-node.current .track-circle {
  background: var(--primary);
  animation: pulse-node 1.5s ease-in-out infinite;
}

@keyframes pulse-node {
  0%, 100% { box-shadow: 0 4px 15px rgba(255, 109, 0, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(255, 109, 0, 0.8); }
}

.track-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.track-reward {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

.track-connector {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* ========== Forms ========== */
.form-group {
  margin-bottom: 20px;
}

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Noto Sans SC', sans-serif;
  transition: var(--transition);
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 109, 0, 0.15);
}

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

/* ========== About / Content ========== */
.content-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.content-block h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.content-block p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.team-member {
  text-align: center;
  padding: 25px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.team-role {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.team-desc {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ========== Info Boxes ========== */
.info-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
}

.info-box.green {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.info-box h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.info-box p {
  opacity: 0.95;
}

/* ========== Quick Entry ========== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.quick-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.quick-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.quick-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.quick-item:hover::after {
  transform: scaleX(1);
}

.quick-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.quick-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.quick-desc {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ========== Footer ========== */
.footer {
  background: var(--text);
  color: #cfd8dc;
  padding: 60px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  font-family: 'ZCOOL KuaiLe', cursive;
}

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

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

.footer-col a {
  color: #b0bec5;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-desc {
  margin-bottom: 15px;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  border-top: 1px solid #37474f;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #78909c;
}

/* ========== Animation Classes ========== */
.fade-in {
  animation: fadeIn 0.6s ease;
}

.slide-up {
  animation: fadeInUp 0.6s ease;
}

.bounce-in {
  animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.float {
  animation: float 3s ease-in-out infinite;
}

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

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

.page-banner::before {
  content: '🏆';
  position: absolute;
  font-size: 15rem;
  opacity: 0.1;
  top: -30px;
  right: -50px;
}

.page-banner h1 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 15px;
}

.page-banner p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .hero-stats { gap: 20px; }
  .section-title { font-size: 2rem; }
  .challenge-track { flex-direction: column; }
  .track-connector { width: 4px; height: 40px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 20px;
    gap: 5px;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  .nav-list.open {
    transform: translateY(0);
  }
  .nav-link {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
  }
  .hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-stat-num { font-size: 1.8rem; }
  .section { padding: 50px 0; }
  .section-title { font-size: 1.7rem; }
  .page-banner h1 { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .content-block { padding: 25px; }
  .btn { padding: 12px 25px; font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 15px; }
  .hero { padding: 50px 0 70px; }
  .hero h1 { font-size: 1.8rem; }
  .logo { font-size: 1.3rem; }
  .hero-stats { flex-direction: column; gap: 15px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
}