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

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

:root {
  --primary: #ff6f00;
  --primary-dark: #e65100;
  --secondary: #ffab40;
  --secondary-light: #ffd180;
  --bg: #fff8e1;
  --bg-card: #ffffff;
  --text: #4e342e;
  --text-light: #795548;
  --text-muted: #a1887f;
  --border: #ffe0b2;
  --shadow: 0 8px 24px rgba(255, 111, 0, 0.12);
  --shadow-hover: 0 12px 36px rgba(255, 111, 0, 0.25);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

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

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

/* ========== Header ========== */
.site-header {
  background: #fff;
  border-bottom: 4px solid var(--primary);
  box-shadow: 0 4px 20px rgba(255, 111, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid var(--secondary);
  border-radius: 50%;
  top: -4px;
  right: -4px;
}

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

.main-nav a {
  display: block;
  padding: 10px 20px;
  border-radius: 100px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.main-nav a.active::before {
  content: '😊';
  margin-right: 4px;
}

.menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hero::before {
  content: '🍜';
  position: absolute;
  font-size: 280px;
  opacity: 0.12;
  top: -40px;
  right: -30px;
  transform: rotate(-15deg);
}

.hero::after {
  content: '🎭';
  position: absolute;
  font-size: 180px;
  opacity: 0.1;
  bottom: -20px;
  left: -20px;
  transform: rotate(10deg);
}

.hero h1 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 3.2rem;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  margin-left: 12px;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

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

.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}

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

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

.section-tag {
  display: inline-block;
  background: var(--secondary-light);
  color: var(--primary-dark);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 2.4rem;
  color: var(--text);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
}

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

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  position: relative;
  border: 2px solid transparent;
}

.card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary-light);
}

.card-img {
  position: relative;
  padding-top: 133%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
}

.card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.card-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  z-index: 2;
}

.card-featured .card-badge {
  background: linear-gradient(135deg, #ff1744, #f50057);
}

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

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

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

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

.card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Category Grid ========== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.category-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: var(--secondary-light);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.category-card:hover::before {
  opacity: 0.5;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
  position: relative;
  z-index: 1;
}

.category-title {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 1.3rem;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.category-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* ========== Filter Bar ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  align-items: center;
}

.filter-label {
  font-weight: 700;
  color: var(--text);
  margin-right: 8px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== Ranking ========== */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.ranking-item:nth-child(-n+3) {
  background: linear-gradient(135deg, #fff3e0 0%, #fff 50%);
  border-left: 5px solid var(--primary);
}

.ranking-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--primary);
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 900;
}

.ranking-item:nth-child(1) .ranking-number {
  background: linear-gradient(135deg, #ff6f00, #ffab40);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(255, 111, 0, 0.4);
}

.ranking-item:nth-child(2) .ranking-number {
  background: linear-gradient(135deg, #ffab40, #ffd180);
  color: #fff;
}

.ranking-item:nth-child(3) .ranking-number {
  background: linear-gradient(135deg, #ffd180, #ffe0b2);
  color: var(--text);
}

.ranking-info {
  flex: 1;
}

.ranking-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.ranking-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ranking-score {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 1.4rem;
  color: var(--primary);
}

.ranking-score small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Noto Sans SC', sans-serif;
}

/* ========== About Page ========== */
.story-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.story-section h2 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.story-section p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.team-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.team-card:hover {
  background: var(--secondary-light);
  transform: translateY(-4px);
}

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

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

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

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

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
}

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

.contact-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.contact-info {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 12px;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: 40px;
}

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

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

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

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

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-col p {
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 12px;
}

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

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

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s ease;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 24px;
  margin-top: 40px;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ========== Page Banner ========== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  margin: 32px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '🎬';
  position: absolute;
  font-size: 200px;
  opacity: 0.12;
  top: -30px;
  left: -20px;
}

.page-banner h1 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 2.8rem;
  margin-bottom: 12px;
}

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

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.breadcrumb a {
  color: #fff;
}

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

/* ========== Decorative Knot ========== */
.knot-decoration {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  opacity: 0.25;
  pointer-events: none;
}

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

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 2.6rem;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  color: var(--text-light);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* ========== Update Frequency ========== */
.update-freq {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary-light);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.update-freq::before {
  content: '🔄';
}

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

  .hero {
    padding: 40px 24px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .page-banner h1 {
    font-size: 2rem;
  }
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-top: 3px solid var(--primary);
  }

  .main-nav.open {
    display: block;
  }

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

  .main-nav a {
    padding: 12px 18px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .card-body {
    padding: 14px 16px;
  }

  .card-title {
    font-size: 0.95rem;
  }

  .story-section {
    padding: 36px 24px;
  }

  .contact-form {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 24px;
  }

  .site-footer {
    padding-top: 40px;
  }

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

  .page-banner h1 {
    font-size: 1.6rem;
  }

  .ranking-item {
    padding: 14px 16px;
    gap: 14px;
  }

  .ranking-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

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

  .logo {
    font-size: 1.4rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .btn-outline {
    margin-left: 0;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========== Utility ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ========== Scroll Animations ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

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

/* ========== Pulse Animation ========== */
.pulse {
  animation: pulse 2s infinite;
}

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

/* ========== Laugh Bubble ========== */
.laugh-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(255, 111, 0, 0.4);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.3s ease;
}

.laugh-bubble:hover {
  transform: scale(1.15) rotate(10deg);
}

@media (max-width: 768px) {
  .laugh-bubble {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    bottom: 20px;
    right: 20px;
  }
}