:root {
  --primary: #2e7d32;
  --primary-light: #66bb6a;
  --primary-dark: #1b5e20;
  --bg-light: #e8f5e9;
  --text-dark: #1b5e20;
  --white: #ffffff;
  --gray-50: #f9faf9;
  --gray-100: #f0f2f0;
  --gray-200: #e0e4e0;
  --gray-400: #9e9e9e;
  --gray-600: #616161;
  --gray-800: #212121;
  --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: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4, h5 {
  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: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary);
}

.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.6rem;
  font-weight: 700;
  color: var(--primary);
}

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

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

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--primary);
}

.banner {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 0 100px;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

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

.banner h1 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.banner p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 32px;
  line-height: 1.8;
}

.banner-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.section {
  padding: 72px 0;
}

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

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--gray-600);
  font-size: 1.05rem;
}

.section-title .accent {
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  margin: 16px auto 0;
  border-radius: 2px;
}

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

.video-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

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

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

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

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

.video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  font-size: 1.4rem;
  color: var(--primary);
}

.video-card:hover .video-play {
  opacity: 1;
}

.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.video-info {
  padding: 20px;
}

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

.video-info p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray-400);
}

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

.category-section {
  background: var(--white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

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

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

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

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.ranking-list {
  max-width: 900px;
  margin: 0 auto;
}

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

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

.ranking-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

.ranking-item:nth-child(2) .ranking-number {
  background: linear-gradient(135deg, #bdbdbd, #9e9e9e);
  color: var(--white);
}

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

.ranking-thumb {
  width: 80px;
  height: 48px;
  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 h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

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

.ranking-stats {
  text-align: right;
  flex-shrink: 0;
}

.ranking-stats .score {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.ranking-stats .views {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.content-page {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.content-page h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.content-page h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
}

.content-page p {
  color: var(--gray-800);
  margin-bottom: 16px;
  line-height: 1.9;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.info-card {
  background: var(--bg-light);
  padding: 28px;
  border-radius: var(--radius-md);
  text-align: center;
}

.info-card .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.info-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0;
}

.contact-form {
  max-width: 600px;
  margin: 32px auto;
}

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

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

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

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

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

.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 64px 0 0;
  margin-top: 72px;
}

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

.footer-col h4 {
  font-family: 'ZCOOL XiaoWei', serif;
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

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

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  font-weight: 500;
}

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

.breadcrumb {
  background: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  color: var(--gray-600);
}

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

.breadcrumb .separator {
  margin: 0 8px;
  color: var(--gray-400);
}

.breadcrumb .current {
  color: var(--text-dark);
  font-weight: 600;
}

.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

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

.list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.list-item {
  display: flex;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

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

.list-item-thumb {
  width: 200px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.list-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.list-item-info h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.list-item-info p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-item-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

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

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 16px 24px;
  }

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

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

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

  .banner {
    padding: 56px 0 72px;
  }

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

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

  .section {
    padding: 48px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .list-item {
    flex-direction: column;
  }

  .list-item-thumb {
    width: 100%;
    height: 200px;
  }

  .ranking-item {
    flex-wrap: wrap;
  }

  .ranking-stats {
    width: 100%;
    text-align: left;
    margin-top: 10px;
    padding-left: 60px;
  }

  .content-page {
    padding: 28px 20px;
  }

  .footer-grid {
    gap: 32px;
  }
}

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

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

  .btn-primary,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}