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

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

:root {
  --primary: #388e3c;
  --primary-dark: #1b5e20;
  --primary-light: #81c784;
  --bg-light: #f1f8e9;
  --bg-white: #ffffff;
  --text-dark: #1b5e20;
  --text-gray: #558b2f;
  --text-muted: #8bc34a;
  --border-color: #c8e6c9;
  --shadow-sm: 0 2px 8px rgba(27, 94, 32, 0.08);
  --shadow-md: 0 4px 16px rgba(27, 94, 32, 0.12);
  --shadow-lg: 0 8px 32px rgba(27, 94, 32, 0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'ZCOOL XiaoWei', 'Noto Sans SC', serif;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.3;
}

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

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

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

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

/* ========== Header & Navigation ========== */
.site-header {
  background: var(--bg-white);
  border-bottom: 2px solid var(--primary-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

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

.main-nav a {
  display: block;
  padding: 8px 18px;
  color: var(--text-dark);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: white;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== Hero/Banner ========== */
.hero-banner {
  position: relative;
  height: 480px;
  overflow: hidden;
  border-radius: 0;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(27, 94, 32, 0.85) 0%,
    rgba(27, 94, 32, 0.4) 50%,
    rgba(27, 94, 32, 0.1) 100%
  );
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 600px;
  color: white;
  padding: 0 20px;
}

.hero-content h1 {
  color: white;
  font-size: 2.8rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 24px;
  opacity: 0.95;
  line-height: 1.8;
}

.hero-btn {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
  background: white;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

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

.section-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 28px;
  background: var(--primary);
  border-radius: 3px;
}

.section-subtitle {
  color: var(--text-gray);
  margin-bottom: 36px;
  font-size: 1rem;
  padding-left: 18px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.view-all {
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-all:hover {
  gap: 8px;
}

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

.poster-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

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

.poster-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-light);
}

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

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

.poster-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.poster-play {
  position: absolute;
  inset: 0;
  background: rgba(27, 94, 32, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.poster-card:hover .poster-play {
  background: rgba(27, 94, 32, 0.3);
}

.play-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.poster-card:hover .play-icon {
  opacity: 1;
  transform: scale(1);
}

.play-icon::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--primary-dark);
  margin-left: 4px;
}

.poster-info {
  padding: 16px;
}

.poster-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

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

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

.category-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.category-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
}

.category-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* ========== Filter/Sort ========== */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.filter-btn {
  padding: 6px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

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

/* ========== Video Player ========== */
.video-player {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 32px 0;
}

.video-player video,
.video-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b5e20, #388e3c);
  color: white;
  gap: 16px;
}

.video-placeholder .play-icon-lg {
  width: 96px;
  height: 96px;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.video-placeholder:hover .play-icon-lg {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.video-placeholder .play-icon-lg::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent white;
  margin-left: 6px;
}

.video-placeholder p {
  font-size: 1.1rem;
  opacity: 0.9;
}

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

.ranking-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.ranking-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--bg-light);
  color: var(--primary-dark);
}

.ranking-item:nth-child(1) .ranking-num {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: white;
}

.ranking-item:nth-child(2) .ranking-num {
  background: linear-gradient(135deg, #b0bec5, #78909c);
  color: white;
}

.ranking-item:nth-child(3) .ranking-num {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  color: white;
}

.ranking-thumb {
  width: 100px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info {
  flex: 1;
  min-width: 0;
}

.ranking-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.ranking-info p {
  color: var(--text-gray);
  font-size: 0.85rem;
}

.ranking-score {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

.about-hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.about-hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card p {
  color: var(--text-gray);
  line-height: 1.8;
}

/* ========== Contact Page ========== */
.contact-form {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.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 textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.15);
}

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

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 36px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
}

.contact-info {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bg-light);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-family: 'Noto Sans SC', sans-serif;
}

.footer-col p {
  line-height: 1.8;
  font-size: 0.9rem;
}

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

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

.footer-col a {
  color: #c8e6c9;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: white;
  padding-left: 4px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.3rem;
  color: white;
}

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

/* ========== Breadcrumb ========== */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--text-gray);
}

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

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

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

.page-banner h1 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-banner p {
  font-size: 1.05rem;
  opacity: 0.95;
}

/* ========== Stats ========== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  font-family: 'ZCOOL XiaoWei', serif;
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .three-col {
    grid-template-columns: 1fr 1fr;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    box-shadow: var(--shadow-md);
    padding: 20px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .main-nav.open {
    transform: translateY(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  .main-nav a {
    padding: 12px 18px;
  }
  .hero-banner {
    height: 360px;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .section {
    padding: 40px 0;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .three-col {
    grid-template-columns: 1fr;
  }
  .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
  .ranking-item {
    flex-wrap: wrap;
    gap: 12px;
  }
  .ranking-thumb {
    width: 80px;
    height: 50px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .footer-brand {
    justify-content: center;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .page-banner {
    padding: 40px 0;
  }
  .page-banner h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .poster-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .logo {
    font-size: 1.2rem;
  }
}

/* ========== 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; }