:root {
  --primary: #2d8a4e;
  --primary-dark: #1a5c32;
  --primary-light: #4caf70;
  --accent: #c41e3a;
  --accent-light: #e8334f;
  --gold: #d4a017;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #ffffff;
  --bg-light: #f5f9f6;
  --bg-section: #eef5f0;
  --border: #e0e8e2;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --font: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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 */
.header {
  background: var(--bg);
  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: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
}

.logo-text h1 {
  font-size: 18px;
  color: var(--primary-dark);
  line-height: 1.3;
}

.logo-text span {
  font-size: 12px;
  color: var(--text-light);
}

.nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 92, 52, 0.85), rgba(45, 138, 78, 0.6));
  display: flex;
  align-items: center;
}

.hero-content {
  color: white;
  max-width: 600px;
}

.hero-content h2 {
  font-size: 42px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.hero-dot.active {
  background: white;
  width: 28px;
  border-radius: 5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-light);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
  color: white;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 16px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.card-body p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: white;
}

.feature-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.feature-item p {
  font-size: 13px;
  color: var(--text-light);
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h3 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 15px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: var(--bg-section);
  border-radius: var(--radius);
}

.stat-item .number {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
}

.stat-item .label {
  font-size: 13px;
  color: var(--text-light);
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.about-gallery img {
  border-radius: var(--radius);
  height: 160px;
  object-fit: cover;
  width: 100%;
}

.about-gallery img:first-child {
  grid-column: 1 / -1;
  height: 220px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45, 138, 78, 0);
  transition: var(--transition);
}

.gallery-item:hover::after {
  background: rgba(45, 138, 78, 0.2);
}

/* Product Detail */
.product-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 48px 0;
}

.product-hero-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
}

.product-hero-img {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.product-hero-img img {
  border-radius: var(--radius);
}

.product-hero-info h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.product-hero-info .pinyin {
  font-size: 14px;
  opacity: 0.7;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.product-hero-info .slogan {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.product-features {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.feature-tag {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.product-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  opacity: 0.85;
}

.product-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trace-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-size: 13px;
}

/* Ingredients */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.ingredient-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ingredient-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.ingredient-card h4 {
  padding: 12px;
  font-size: 15px;
  color: var(--primary-dark);
}

.ingredient-card p {
  padding: 0 12px 12px;
  font-size: 12px;
  color: var(--text-light);
}

/* Nutrition Table */
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.nutrition-table th,
.nutrition-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.nutrition-table th {
  background: var(--primary);
  color: white;
  font-weight: 500;
}

.nutrition-table tr:last-child td {
  border-bottom: none;
}

.nutrition-table tr:nth-child(even) {
  background: var(--bg-light);
}

/* News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow-lg);
}

.news-item-img {
  height: 200px;
  overflow: hidden;
}

.news-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-item:hover .news-item-img img {
  transform: scale(1.05);
}

.news-item-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.news-item-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.news-item-body h3 a {
  color: inherit;
}

.news-item-body h3 a:hover {
  color: var(--primary);
}

.news-item-body p {
  color: var(--text-light);
  font-size: 14px;
  flex: 1;
}

.news-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* News Detail */
.news-detail {
  max-width: 800px;
  margin: 0 auto;
}

.news-detail-header {
  margin-bottom: 32px;
}

.news-detail-header h1 {
  font-size: 32px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.news-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.news-detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
}

.news-detail-content p {
  margin-bottom: 16px;
}

/* Trace Section */
.trace-section {
  background: linear-gradient(135deg, var(--bg-section), var(--bg-light));
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.trace-section h3 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.trace-section p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.qr-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.qr-item {
  background: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.qr-item img {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
}

.qr-item h4 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.qr-item p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer p,
.footer li {
  font-size: 14px;
  line-height: 2;
}

.footer ul {
  list-style: none;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  margin: 0;
  line-height: 1.8;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 48px 0;
  text-align: center;
}

.page-banner h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.page-banner p {
  opacity: 0.85;
  font-size: 16px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius);
}

/* Loading */
.loading {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-features {
    justify-content: center;
  }

  .product-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    gap: 0;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    height: 400px;
  }

  .hero-content h2 {
    font-size: 28px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item-img {
    height: 180px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}
