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

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

:root {
  --primary: #ff6d00;
  --primary-light: #ff9e40;
  --primary-dark: #e65100;
  --secondary: #c62828;
  --secondary-light: #e53935;
  --bg: #fffde7;
  --bg-card: #ffffff;
  --bg-warm: #fff8e1;
  --text: #263238;
  --text-light: #546e7a;
  --text-muted: #90a4ae;
  --border: #ffecb3;
  --shadow: 0 4px 20px rgba(255, 109, 0, 0.12);
  --shadow-hover: 0 8px 30px rgba(255, 109, 0, 0.22);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

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

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

.logo {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 28px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 32px;
}

.logo span {
  color: var(--bg);
}

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

.main-nav a {
  color: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
}

/* ========== Banner ========== */
.banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '🍉';
  position: absolute;
  font-size: 200px;
  opacity: 0.1;
  top: -30px;
  left: -20px;
  transform: rotate(-20deg);
}

.banner::after {
  content: '🔥';
  position: absolute;
  font-size: 180px;
  opacity: 0.1;
  bottom: -20px;
  right: -20px;
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.banner h1 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 48px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.banner p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 25px;
}

.banner-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

.badge-live {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(5px);
}

.badge-hot {
  background: #fff;
  color: var(--secondary);
}

.badge-new {
  background: #ffeb3b;
  color: var(--text);
}

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

/* ========== Live Status Bar ========== */
.live-bar {
  background: var(--secondary);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 14px;
  flex-wrap: wrap;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #4caf50;
  border-radius: 50%;
  animation: blink 1.2s infinite;
}

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

.live-content {
  display: flex;
  gap: 20px;
  align-items: center;
}

.live-content .live-item {
  white-space: nowrap;
}

/* ========== Section ========== */
.section {
  padding: 50px 20px;
}

.section-title {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 32px;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .emoji {
  font-size: 36px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 35px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin-bottom: 20px;
}

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

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
}

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

.card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #ffe0b2, #ffccbc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

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

.card-excerpt {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

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

.card-meta .views {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-weight: 500;
}

/* Hot badge on card */
.card-hot {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--secondary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

/* ========== Today's Melon (吃瓜) Section ========== */
.melon-section {
  background: var(--bg-warm);
}

.melon-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.melon-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.melon-item:hover {
  border-left-color: var(--secondary);
  transform: translateX(4px);
}

.melon-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.tag-urgent {
  background: var(--secondary);
  color: #fff;
}

.tag-warning {
  background: #ff9800;
  color: #fff;
}

.tag-info {
  background: var(--primary);
  color: #fff;
}

.tag-new {
  background: #4caf50;
  color: #fff;
}

.melon-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.melon-item p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 10px;
}

.melon-time {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== Category Nav ========== */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 30px;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ========== Ranking List ========== */
.ranking-list {
  list-style: none;
  counter-reset: ranking;
}

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

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

.ranking-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-warm);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.ranking-item:nth-child(1) .ranking-num {
  background: linear-gradient(135deg, #ff6d00, #c62828);
  color: #fff;
}

.ranking-item:nth-child(2) .ranking-num {
  background: linear-gradient(135deg, #ff9e40, #ff6d00);
  color: #fff;
}

.ranking-item:nth-child(3) .ranking-num {
  background: linear-gradient(135deg, #ffb74d, #ff9e40);
  color: #fff;
}

.ranking-content {
  flex: 1;
}

.ranking-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ranking-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 15px;
}

.ranking-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.trend-up {
  background: #ffebee;
  color: var(--secondary);
}

.trend-down {
  background: #e8f5e9;
  color: #2e7d32;
}

.trend-flat {
  background: #eceff1;
  color: #546e7a;
}

/* ========== Exclusive Magazine ========== */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.magazine-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  border: 1px solid var(--border);
}

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

.magazine-image {
  height: 220px;
  background: linear-gradient(135deg, #ffab91, #ff8a65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
}

.magazine-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--secondary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.magazine-body {
  padding: 25px;
}

.magazine-title {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.magazine-excerpt {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.magazine-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.read-more:hover {
  color: var(--secondary);
}

/* ========== Categories Grid ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

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

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

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

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

.category-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.category-name {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text);
}

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

.category-count {
  display: inline-block;
  background: var(--bg-warm);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ========== About Page ========== */
.about-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.about-hero h1 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 42px;
  margin-bottom: 15px;
}

.about-hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.about-section h2 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.team-member {
  text-align: center;
  padding: 20px;
  background: var(--bg-warm);
  border-radius: var(--radius);
}

.team-avatar {
  font-size: 60px;
  margin-bottom: 10px;
}

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

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

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

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

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

.contact-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.contact-card h3 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 22px;
  margin-bottom: 15px;
}

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

.contact-highlight {
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

.disclaimer {
  background: var(--bg-warm);
  border-left: 4px solid var(--secondary);
  padding: 25px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 30px;
}

.disclaimer h3 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--secondary);
}

.disclaimer p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 10px;
}

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

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
}

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

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

.footer-col a {
  color: #b0bec5;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.footer-logo {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 24px;
  color: #fff;
  margin-bottom: 15px;
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: var(--primary-light);
}

/* ========== Page Header (inner pages) ========== */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.page-header h1 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 38px;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.9;
  font-size: 16px;
}

.breadcrumb {
  background: var(--bg-warm);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-light);
}

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

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .banner h1 {
    font-size: 36px;
  }

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

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

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

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

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

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

  .header-inner {
    flex-wrap: wrap;
  }

  .banner {
    padding: 40px 20px;
  }

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

  .card-grid,
  .melon-list,
  .magazine-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .live-bar {
    font-size: 12px;
  }

  .live-content {
    gap: 10px;
  }

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

  .about-section {
    padding: 25px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 22px;
  }

  .section {
    padding: 30px 15px;
  }

  .card-image {
    height: 170px;
  }

  .ranking-item {
    padding: 12px 15px;
  }

  .ranking-title {
    font-size: 14px;
  }

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

  .badge {
    font-size: 12px;
    padding: 6px 12px;
  }
}