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

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

:root {
  --primary: #2e7d32;
  --primary-light: #66bb6a;
  --bg-light: #e8f5e9;
  --text-dark: #1b5e20;
  --white: #ffffff;
  --gray-50: #f9f9f9;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-600: #757575;
  --gray-800: #424242;
  --shadow: 0 4px 20px rgba(27, 94, 32, 0.12);
  --shadow-hover: 0 8px 30px rgba(27, 94, 32, 0.2);
  --radius: 12px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

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

.main-nav a {
  display: block;
  padding: 10px 18px;
  border-radius: 8px;
  color: var(--gray-800);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--primary);
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1b5e20 100%);
  color: var(--white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero p {
  font-size: 20px;
  opacity: 0.95;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--bg-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

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

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

.btn-large {
  padding: 18px 48px;
  font-size: 18px;
}

/* Desktop Preview */
.desktop-preview {
  margin: 60px auto 0;
  max-width: 960px;
  position: relative;
  z-index: 1;
}

.desktop-frame {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.2);
}

.desktop-titlebar {
  background: var(--gray-200);
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.desktop-titlebar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.desktop-titlebar .dot-red { background: #ff5f56; }
.desktop-titlebar .dot-yellow { background: #ffbd2e; }
.desktop-titlebar .dot-green { background: #27c93f; }

.desktop-titlebar .title {
  margin-left: 16px;
  font-size: 13px;
  color: var(--gray-600);
}

.desktop-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 400px;
}

.desktop-sidebar {
  background: var(--gray-50);
  padding: 20px 12px;
  border-right: 1px solid var(--gray-200);
}

.desktop-sidebar .nav-item {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-800);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-sidebar .nav-item.active {
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 600;
}

.desktop-main {
  padding: 24px;
}

.desktop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.desktop-video-card {
  background: var(--gray-100);
  border-radius: 10px;
  aspect-ratio: 9/16;
  position: relative;
  overflow: hidden;
}

.desktop-video-card .thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: rgba(255,255,255,0.8);
}

.desktop-video-card .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  font-size: 48px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.desktop-video-card .duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 36px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: 16px;
  margin-bottom: 50px;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--gray-100);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin-bottom: 20px;
}

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

.feature-card p {
  color: var(--gray-600);
  font-size: 15px;
}

/* Video Cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

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

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

.video-thumb {
  position: relative;
  aspect-ratio: 9/16;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.6);
}

.video-thumb .duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 13px;
}

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

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

.video-info {
  padding: 14px 16px;
}

.video-title {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
  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: 13px;
  color: var(--gray-600);
}

.video-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

/* Download Section */
.download-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1b5e20 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.download-hero h1 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 44px;
  margin-bottom: 20px;
}

.download-hero p {
  font-size: 20px;
  opacity: 0.95;
  margin-bottom: 40px;
}

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

.download-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.download-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.download-card .os-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.download-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.download-card .version {
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 24px;
}

.download-card .btn {
  width: 100%;
  justify-content: center;
}

.download-card.windows .btn {
  background: linear-gradient(135deg, #0078d4, #005a9e);
  color: white;
}

.download-card.mac .btn {
  background: var(--text-dark);
  color: white;
}

.system-requirements {
  margin-top: 60px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.system-requirements h2 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--text-dark);
}

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

.req-item {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 10px;
}

.req-item .label {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.req-item .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Ranking */
.ranking-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.ranking-tab {
  padding: 10px 28px;
  border-radius: 24px;
  background: var(--white);
  color: var(--gray-800);
  font-weight: 500;
  cursor: pointer;
  border: 2px solid var(--gray-200);
  transition: all 0.3s;
}

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

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

.ranking-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

.ranking-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.ranking-item:nth-child(1) .ranking-number { background: #ff4444; }
.ranking-item:nth-child(2) .ranking-number { background: #ff7744; }
.ranking-item:nth-child(3) .ranking-number { background: #ffaa44; }
.ranking-item:nth-child(n+4) .ranking-number { background: var(--primary-light); }

.ranking-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(255,255,255,0.6);
}

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

.ranking-info h4 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info .meta {
  font-size: 13px;
  color: var(--gray-600);
  display: flex;
  gap: 12px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  color: rgba(255,255,255,0.6);
}

.about-content h2 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 16px;
}

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

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

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

.team-card h4 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 12px;
}

.team-card p {
  color: var(--gray-600);
  font-size: 14px;
}

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

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

.contact-card .contact-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin: 0 auto 20px;
}

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

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

.contact-card .contact-detail {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: 40px;
}

.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: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  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 {
  resize: vertical;
  min-height: 120px;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1b5e20 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 36px;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: #1b5e20;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

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

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

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

.social-links {
  display: flex;
  gap: 12px;
}

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

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

.footer-column h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: white;
  font-weight: 600;
}

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

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

.footer-column ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--primary-light);
}

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

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

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

  .desktop-content {
    grid-template-columns: 1fr;
  }

  .desktop-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow);
  }

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

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 60px 0 80px;
  }

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

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

  .section {
    padding: 60px 0;
  }

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

  .desktop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .download-cards {
    margin-top: -30px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

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

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

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