@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: #ff5722;
  --primary-dark: #e64a19;
  --secondary: #4527a0;
  --secondary-light: #5e35b2;
  --bg-light: #fff3e0;
  --bg-white: #ffffff;
  --text-dark: #263238;
  --text-gray: #546e7a;
  --border: #ffe0b2;
  --shadow: 0 4px 20px rgba(255, 87, 34, 0.12);
  --shadow-hover: 0 8px 30px rgba(255, 87, 34, 0.2);
  --radius: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 24px;
}

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

.logo-text {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 12px;
  opacity: 0.9;
  font-weight: normal;
  display: block;
}

/* ========== Navigation ========== */
.nav {
  display: flex;
  gap: 5px;
  list-style: none;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  white-space: nowrap;
}

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

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

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

.banner::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: float 20s linear infinite;
}

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

.banner-content {
  position: relative;
  z-index: 1;
}

.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;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.banner-emoji {
  font-size: 60px;
  display: block;
  margin-bottom: 15px;
  animation: bounce 2s infinite;
}

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

.banner-btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 14px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.banner-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.section-title h2 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '🍉';
  margin-left: 10px;
}

.section-title p {
  color: var(--text-gray);
  font-size: 16px;
}

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

.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 20px;
}

.card-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}

.card-tag.secondary {
  background: var(--secondary);
}

.card-tag.hot {
  background: #e53935;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-dark);
  line-height: 1.4;
}

.card p {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-gray);
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.card-meta .views {
  color: var(--primary);
  font-weight: 500;
}

/* ========== Hot List (Gossip) ========== */
.hot-list {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
}

.hot-list-item {
  display: flex;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px dashed var(--border);
  gap: 15px;
}

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

.hot-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.hot-list-item:nth-child(2) .hot-rank { background: #fb8c00; }
.hot-list-item:nth-child(3) .hot-rank { background: #fdd835; color: #333; }
.hot-list-item:nth-child(n+4) .hot-rank { background: #b0bec5; }

.hot-content {
  flex: 1;
}

.hot-content h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.hot-content p {
  font-size: 14px;
  color: var(--text-gray);
}

.hot-heat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 500;
  font-size: 13px;
}

/* ========== Topic List ========== */
.topic-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.topic-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 15px;
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}

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

.topic-card:nth-child(even) {
  border-left-color: var(--secondary);
}

.topic-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.topic-info h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.topic-info p {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.topic-stats {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: var(--text-gray);
}

.topic-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

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

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

/* ========== Community Feed ========== */
.community-feed {
  max-width: 800px;
  margin: 0 auto;
}

.feed-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feed-item:hover {
  box-shadow: var(--shadow-hover);
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
}

.feed-user {
  flex: 1;
}

.feed-user h4 {
  font-size: 15px;
  color: var(--text-dark);
}

.feed-user span {
  font-size: 12px;
  color: var(--text-gray);
}

.feed-content {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.feed-actions {
  display: flex;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.feed-actions button {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.feed-actions button:hover {
  color: var(--primary);
}

.post-entry {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  border: 2px dashed var(--primary);
}

.post-entry textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 15px;
}

.post-entry textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.post-entry-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-entry-actions select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

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

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

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

.btn-secondary:hover {
  background: var(--secondary-light);
}

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

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

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

.about-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

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

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

.team-section {
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius);
  padding: 50px 25px;
  text-align: center;
}

.team-section h2 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 32px;
  margin-bottom: 30px;
}

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

.team-member {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 25px;
  backdrop-filter: blur(10px);
}

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

.team-member h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.team-member span {
  font-size: 14px;
  opacity: 0.8;
}

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

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

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

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.contact-card p {
  color: var(--text-gray);
  font-size: 15px;
  margin-bottom: 15px;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
}

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

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

.rules-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
}

.rules-box h3 {
  margin-bottom: 12px;
  color: var(--text-dark);
}

.rules-box ol {
  padding-left: 20px;
  color: var(--text-gray);
}

.rules-box li {
  margin-bottom: 8px;
  line-height: 1.6;
}

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

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

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--primary);
}

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

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

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

.footer-col ul a {
  color: #b0bec5;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

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

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

.social-links 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: 18px;
  transition: var(--transition);
}

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

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

/* ========== Event Card Variants ========== */
.event-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}

.event-status.live {
  background: #ffebee;
  color: #c62828;
}

.event-status.upcoming {
  background: #e3f2fd;
  color: #1565c0;
}

.event-status.ended {
  background: #eceff1;
  color: #546e7a;
}

.event-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 10px;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary);
    flex-direction: column;
    padding: 15px;
    gap: 10px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    display: block;
    padding: 12px 15px;
  }

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

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

  .section {
    padding: 35px 0;
  }

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

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

  .topic-list {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 600px) {
  .banner {
    padding: 40px 0;
  }

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

  .logo-text {
    font-size: 18px;
  }

  .logo-sub {
    display: none;
  }

  .header-inner {
    padding: 12px 15px;
  }

  .container {
    padding: 0 15px;
  }
}