@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: #ff3d00;
  --secondary: #ffc400;
  --bg: #fffde7;
  --text: #3e2723;
  --card: #ffffff;
  --accent: #ff6e40;
  --dark: #bf360c;
  --border: #ffe082;
  --shadow: 0 4px 20px rgba(255, 61, 0, 0.15);
  --shadow-hover: 0 8px 30px rgba(255, 61, 0, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

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

a:hover {
  color: var(--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(--accent) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(255, 61, 0, 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: 2rem;
  color: var(--secondary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 2.2rem;
}

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

.main-nav a {
  color: #fff;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--secondary);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Banner */
.banner {
  background: linear-gradient(135deg, #fff3e0 0%, var(--bg) 100%);
  padding: 60px 20px;
  text-align: center;
  border-bottom: 4px solid var(--secondary);
}

.banner h1 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  text-shadow: 3px 3px 0 var(--secondary);
}

.banner h1 .emoji {
  display: inline-block;
  animation: bounce 2s infinite;
}

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

.banner p {
  font-size: 1.3rem;
  color: var(--text);
  opacity: 0.85;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 50px 20px 40px;
  text-align: center;
}

.page-header h1 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

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

.section-title {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 2.2rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 10px;
}

.section-title .emoji {
  margin: 0 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text);
  opacity: 0.65;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

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

.card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
  border: 2px solid transparent;
  position: relative;
}

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

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

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

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

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}

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

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

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s;
}

.card:hover .card-title {
  color: var(--primary);
}

.card-excerpt {
  color: var(--text);
  opacity: 0.75;
  font-size: 0.92rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.55;
}

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

.card-meta .views::before {
  content: '👁 ';
}

/* List Style */
.list-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  list-style: none;
}

.list-item {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border-left: 5px solid var(--secondary);
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.list-item:hover {
  border-left-color: var(--primary);
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}

.list-rank {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 2rem;
  color: var(--primary);
  min-width: 45px;
  text-align: center;
}

.list-item:nth-child(1) .list-rank { color: #d32f2f; }
.list-item:nth-child(2) .list-rank { color: #f57c00; }
.list-item:nth-child(3) .list-rank { color: #fbc02d; }

.list-content h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.list-content p {
  font-size: 0.88rem;
  color: var(--text);
  opacity: 0.65;
}

.trend {
  display: inline-block;
  margin-left: 5px;
  font-size: 0.9rem;
}

.trend.up { color: #e53935; }
.trend.down { color: #43a047; }
.trend.flat { color: #9e9e9e; }

/* Hot Ranking */
.hot-rank {
  max-width: 800px;
  margin: 0 auto;
}

.hot-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--card);
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
}

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

.hot-rank-num {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 1.6rem;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
  color: #9e9e9e;
}

.hot-item:nth-child(1) .hot-rank-num { color: #d32f2f; font-size: 2rem; }
.hot-item:nth-child(2) .hot-rank-num { color: #f57c00; font-size: 1.9rem; }
.hot-item:nth-child(3) .hot-rank-num { color: #fbc02d; font-size: 1.8rem; }

.hot-title {
  flex: 1;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
}

.hot-heat {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

.hot-heat::after {
  content: ' 🔥';
}

/* Category Nav */
.category-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.category-item {
  background: var(--card);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.35s;
  cursor: pointer;
  border-bottom: 4px solid transparent;
}

.category-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--primary);
}

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

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

.category-desc {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.6;
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Funny / Joke Cards */
.joke-card {
  background: var(--card);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
  position: relative;
  transition: all 0.3s;
}

.joke-card:hover {
  box-shadow: var(--shadow-hover);
}

.joke-num {
  position: absolute;
  top: -15px;
  left: 25px;
  background: var(--primary);
  color: #fff;
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 1.5rem;
  padding: 5px 18px;
  border-radius: 20px;
}

.joke-emoji {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

.joke-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.joke-content {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.joke-img {
  border-radius: 10px;
  margin-top: 15px;
}

/* Life Cards */
.life-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.35s;
}

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

.life-img {
  height: 220px;
  overflow: hidden;
}

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

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

.life-body {
  padding: 25px;
}

.life-tag {
  display: inline-block;
  background: var(--secondary);
  color: var(--dark);
  padding: 3px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

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

.life-excerpt {
  color: var(--text);
  opacity: 0.75;
  font-size: 0.95rem;
  line-height: 1.7;
}

.life-date {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.5;
}

/* About Page */
.about-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.about-intro p {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text);
  opacity: 0.85;
}

.about-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 20px;
}

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

.team-card {
  background: var(--card);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

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

.team-name {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 5px;
}

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

.team-desc {
  font-size: 0.88rem;
  color: var(--text);
  opacity: 0.7;
  line-height: 1.6;
}

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

.contact-card {
  background: var(--card);
  border-radius: 16px;
  padding: 35px 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  text-align: center;
}

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

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

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

.contact-card p {
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 15px;
  line-height: 1.7;
}

.contact-card .contact-email {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-form {
  max-width: 600px;
  margin: 40px auto 0;
  background: var(--card);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

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

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

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

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

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

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 14px 35px;
  border: none;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 61, 0, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 61, 0, 0.45);
  color: #fff;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #ffa726);
  box-shadow: 0 4px 15px rgba(255, 196, 0, 0.3);
}

.btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(255, 196, 0, 0.45);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px 18px;
  background: var(--card);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.pagination a:hover,
.pagination .active {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: 60px;
}

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

.footer-col h4 {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--secondary);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-col p {
  opacity: 0.8;
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

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

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

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  transition: all 0.3s;
}

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

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

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

.social-links a: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.15);
  text-align: center;
  font-size: 0.88rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .banner h1 {
    font-size: 2.5rem;
  }
  .banner p {
    font-size: 1.05rem;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 15px;
    gap: 8px;
  }
  .main-nav.open {
    display: flex;
  }
  .header-inner {
    position: relative;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .list-view {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-form {
    padding: 25px;
  }
  .joke-card {
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  .banner {
    padding: 40px 20px;
  }
  .banner h1 {
    font-size: 2rem;
  }
  .logo {
    font-size: 1.5rem;
  }
  .logo-icon {
    font-size: 1.7rem;
  }
  .section {
    padding: 35px 0;
  }
  .hot-item {
    padding: 12px 15px;
  }
  .hot-title {
    font-size: 0.95rem;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.badge-new {
  background: #4caf50;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-left: 8px;
}

.badge-hot {
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-left: 8px;
}