:root {
  --primary: #2D5A3D;
  --primary-light: #4A8C60;
  --primary-dark: #1a3d28;
  --bg: #F5F0E8;
  --accent: #D4A853;
  --text: #2C2C2C;
  --text-light: #6B6B6B;
  --data-blue: #3A6EA8;
  --warm-orange: #E07B39;
  --success: #52B788;
  --border: #E0D8CC;
  --white: #FFFFFF;
  --nav-h: 72px;
  --max-w: 1200px;
  --max-w-lg: 1400px;
}

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

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'Noto Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
  font-weight: 700;
  line-height: 1.3;
}

.en-title {
  font-family: 'Playfair Display', Georgia, serif;
}

.en-body {
  font-family: 'Inter', 'DM Sans', sans-serif;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }
button { font-family: inherit; cursor: pointer; border: none; }

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

.section { padding: 80px 0; }
.section-dark { background: var(--primary-dark); color: var(--white); }
.section-bg { background: var(--bg); }
.section-white { background: var(--white); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; color: var(--primary); margin-bottom: 12px; }
.section-header .en-sub { font-family: 'Playfair Display', serif; font-size: .95rem; color: var(--text-light); letter-spacing: .05em; }
.section-header p { color: var(--text-light); max-width: 640px; margin: 0 auto; font-size: .95rem; }
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header p { color: rgba(255,255,255,.7); }

/* ===== NAV ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}

.navbar.scrolled {
  background: rgba(245, 240, 232, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
}

.navbar .container {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Noto Serif SC', serif; font-weight: 700; font-size: 1.15rem;
  color: var(--primary);
}

.nav-logo img { height: 36px; width: auto; }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--text);
  padding: 6px 0; position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--primary); color: var(--white) !important;
  padding: 8px 20px; border-radius: 6px; font-size: .85rem; font-weight: 600;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--primary-light); color: var(--white) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none;
  padding: 8px; border: none; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  transition: transform .3s, opacity .3s;
}

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(245, 240, 232, .98); backdrop-filter: blur(16px);
  z-index: 999; padding: 24px;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a {
  display: block; padding: 14px 16px; font-size: 1.05rem; color: var(--text);
  border-radius: 8px; font-weight: 500;
}
.mobile-menu a:hover, .mobile-menu a.active { background: var(--primary); color: var(--white); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px; font-size: .95rem; font-weight: 600;
  transition: all .25s ease; text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(45,90,61,.25); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #c49a48; color: var(--white); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--primary); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--bg); color: var(--primary); }

/* ===== HERO ===== */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--bg) 60%, #e8e3d9 100%);
  padding-top: var(--nav-h);
}
.hero .container { display: grid; grid-template-columns: 55% 45%; gap: 40px; align-items: center; }
.hero-text h1 { font-size: 3rem; color: var(--primary); margin-bottom: 16px; }
.hero-text .subtitle { font-size: 1.15rem; color: var(--text-light); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { position: relative; }
.hero-image img { border-radius: 16px; box-shadow: 0 20px 60px rgba(45,90,61,.15); }

/* ===== TRUST BAR ===== */
.trust-bar { background: var(--primary-dark); padding: 48px 0; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; color: var(--white);
}
.trust-item .number {
  font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700;
  color: var(--accent); display: block;
}
.trust-item .label { font-size: .85rem; opacity: .8; margin-top: 4px; }

/* ===== CARDS ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: 12px; padding: 32px 28px;
  border: 1px solid var(--border); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 8px; }
.card p { font-size: .9rem; color: var(--text-light); }

/* ===== INGREDIENT WALL ===== */
.ingredient-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ingredient-card {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1;
  cursor: pointer;
}
.ingredient-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ingredient-card:hover img { transform: scale(1.05); }
.ingredient-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,61,40,.9) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
  transition: background .3s;
}
.ingredient-card:hover .ingredient-overlay { background: rgba(26,61,40,.85); justify-content: center; text-align: center; }
.ingredient-overlay h3.ingredient-name { color: var(--white); font-size: 1rem; margin-bottom: 4px; font-weight: 700; }
.ingredient-overlay p { color: rgba(255,255,255,.8); font-size: .85rem; }
.ingredient-detail { opacity: 0; max-height: 0; overflow: hidden; transition: opacity .3s, max-height .3s; color: rgba(255,255,255,.7); font-size: .8rem; margin-top: 8px; }
.ingredient-card:hover .ingredient-detail { opacity: 1; max-height: 100px; }

/* ===== COMPARISON TABLE ===== */
.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.comparison-table th {
  background: var(--primary); color: var(--white); padding: 14px 16px;
  text-align: left; font-weight: 600; font-size: .9rem;
}
.comparison-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .9rem;
}
.comparison-table tr:hover td { background: #f9f7f3; }
.comparison-table .highlight-col { background: rgba(74,140,96,.06); font-weight: 600; color: var(--primary); }

/* ===== FAQ ACCORDION ===== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; text-align: left; padding: 20px 0;
  font-size: 1rem; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.faq-question::after {
  content: '+'; font-size: 1.5rem; color: var(--primary); transition: transform .3s;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer-inner { padding: 0 0 20px; font-size: .9rem; color: var(--text-light); line-height: 1.8; }

/* ===== NUTRITION TABLE ===== */
.nutrition-table { width: 100%; max-width: 420px; border-collapse: collapse; }
.nutrition-table caption {
  text-align: left; font-weight: 700; font-size: 1.05rem; padding-bottom: 12px;
  border-bottom: 3px solid var(--text); margin-bottom: 8px;
}
.nutrition-table td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.nutrition-table .indent { padding-left: 20px; color: var(--text-light); }
.nutrition-table .bold { font-weight: 600; }

/* ===== CONTACT FORM ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--text); }
.form-group .required { color: var(--warm-orange); }
.form-input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-size: .95rem; font-family: inherit; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  outline: none; border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(74,140,96,.2);
}
.form-input::placeholder { color: #aaa; }
textarea.form-input { min-height: 120px; resize: vertical; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.checkbox-group { display: flex; align-items: flex-start; gap: 8px; }
.checkbox-group input[type="checkbox"] { margin-top: 4px; accent-color: var(--primary); }
.checkbox-group label { font-weight: 400; font-size: .85rem; color: var(--text-light); }

.form-submit { width: 100%; padding: 14px; font-size: 1rem; }
.form-success {
  display: none; text-align: center; padding: 40px; background: #f0faf3;
  border-radius: 12px; border: 1px solid var(--success);
}
.form-success.show { display: block; }
.form-success .check { font-size: 3rem; margin-bottom: 12px; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item::before {
  content: ''; position: absolute; left: -29px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--bg);
}
.timeline-item .year { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.timeline-item p { font-size: .9rem; color: var(--text-light); margin-top: 4px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,.7);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: .9rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .85rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem;
}

/* ===== PAGE HERO (subpages) ===== */
.page-hero {
  padding: 120px 0 60px; background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white); text-align: center;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.page-hero p { font-size: 1rem; opacity: .85; max-width: 600px; margin: 0 auto; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 600;
}
.badge-green { background: #e8f5ec; color: var(--primary); }
.badge-amber { background: #fef3e2; color: #b8860b; }
.badge-blue { background: #e8f0fa; color: var(--data-blue); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* ===== CONTACT GRID ===== */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-actions { justify-content: center; }
  .hero-image { max-width: 480px; margin: 0 auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .ingredient-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 767px) {
  :root { --nav-h: 60px; }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 1.6rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-text .subtitle { font-size: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .ingredient-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item .number { font-size: 2rem; }
  .footer { padding: 40px 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-bottom: 24px; }
  .footer-brand { grid-column: 1 / -1; text-align: center; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 4px; }
  .footer-brand h3 { font-size: 1rem; margin-bottom: 6px; }
  .footer-brand .en-title { margin-bottom: 4px !important; }
  .footer-brand p { font-size: .8rem; }
  .footer-col h4 { font-size: .82rem; margin-bottom: 10px; }
  .footer-col li { margin-bottom: 5px; }
  .footer-col a { font-size: .8rem; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; font-size: .75rem; padding-top: 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero { padding: 90px 0 40px; }
  .page-hero h1 { font-size: 1.7rem; }
  .btn { padding: 10px 20px; font-size: .9rem; }
}

@media (min-width: 1536px) {
  .container-lg { max-width: var(--max-w-lg); }
}
