:root {
  --bg-body: #f7faf7;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f7f2;
  --forest-900: #081c15;
  --forest-800: #1b4332;
  --forest-700: #2d6a4f;
  --emerald-600: #40916c;
  --leaf-500: #52b788;
  --mint-400: #74c69d;
  --mint-100: #d8f3dc;
  --mint-50: #eafaf1;
  --amber-soft: #fef3c7;
  --amber-text: #92400e;
  --text-main: #1f2937;
  --text-body: #374151;
  --text-muted: #6b7280;
  --border-subtle: #e5e7eb;
  --border-green: #c7eed8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 10px 25px rgba(27, 67, 50, 0.12);
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
  background-color: var(--bg-body);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  background-image: radial-gradient(#d8f3dc 1px, transparent 1px);
  background-size: 32px 32px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* 顶部健康公告条 */
.top-health-banner {
  background: var(--forest-800);
  color: #f0fdf4;
  font-size: 0.8rem;
  padding: 8px 0;
  letter-spacing: 0.02em;
}
.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.banner-badge {
  background: var(--leaf-500);
  color: var(--forest-900);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
}

/* 主导航 Header */
.main-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 8px 0;
  gap: 16px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--forest-700), var(--leaf-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(45, 106, 79, 0.25);
  flex-shrink: 0;
}
.brand-text h1 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.brand-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--emerald-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--forest-700);
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--forest-700);
  border-radius: 2px;
}

.btn-green-cta {
  background: var(--forest-700);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(45, 106, 79, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-green-cta:hover {
  background: var(--forest-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.4);
}

/* Hero Section */
.hero-section {
  padding: 36px 0 24px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 28px;
}
.hero-feature-card {
  background: #ffffff;
  border: 1px solid var(--border-green);
  border-radius: 16px;
  padding: 34px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: linear-gradient(to bottom, rgba(234, 250, 241, 0.45), rgba(255, 255, 255, 0.98));
}
.hero-feature-card > * {
  position: relative;
  z-index: 2;
}
.hero-feature-card::before {
  content: "🌿";
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 6rem;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
  align-self: flex-start;
}
.pill-green { background: var(--mint-100); color: var(--forest-800); border: 1px solid var(--mint-400); }
.pill-amber { background: var(--amber-soft); color: var(--amber-text); border: 1px solid #fcd34d; }
.pill-emerald { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.hero-feature-card h2 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.25;
  color: var(--forest-900);
  margin-bottom: 14px;
}
.hero-feature-card p {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 22px;
}
.read-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--forest-700);
}
.read-guide-link:hover {
  color: var(--forest-900);
  text-decoration: underline;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-card {
  background: #ffffff;
  border: 1px solid var(--border-green);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.side-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--leaf-500);
  transform: translateY(-2px);
}
.side-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--forest-900);
  margin: 6px 0 8px;
}
.side-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 分区标题 */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 50px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--mint-100);
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--forest-900);
}
.section-head a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--forest-700);
}

/* 3列卡片网格 */
.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.health-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}
.health-card:hover {
  border-color: var(--leaf-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.health-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--forest-900);
  margin: 10px 0 12px;
  line-height: 1.35;
}
.health-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* 交互式小工具：Macro & Clean Caloric Calculator */
.calculator-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 2px solid var(--mint-400);
  border-radius: 16px;
  padding: 34px;
  margin: 55px 0;
  box-shadow: var(--shadow-md);
}
.calc-header {
  margin-bottom: 24px;
  text-align: center;
}
.calc-header h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--forest-900);
  margin-bottom: 6px;
}
.calc-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--forest-800);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-field select, .form-field input {
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1.5px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
}
.form-field select:focus, .form-field input:focus {
  border-color: var(--forest-700);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.calc-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-green);
  box-shadow: var(--shadow-sm);
}
.display-item {
  text-align: center;
}
.display-item span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.display-item strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--forest-800);
  font-family: var(--font-mono);
}

/* 邮件订阅 Clean Living Newsletter */
.newsletter-banner {
  background: var(--forest-800);
  color: #fff;
  border-radius: 16px;
  padding: 44px 30px;
  text-align: center;
  margin: 55px 0;
  background-image: radial-gradient(rgba(82, 183, 136, 0.2) 1px, transparent 1px);
  background-size: 20px 20px;
}
.newsletter-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  margin-bottom: 10px;
}
.newsletter-banner p {
  color: var(--mint-100);
  font-size: 0.98rem;
  max-width: 580px;
  margin: 0 auto 24px;
}
.nl-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.nl-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  outline: none;
}
.nl-btn {
  background: var(--leaf-500);
  color: var(--forest-900);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nl-btn:hover {
  background: #fff;
}

/* 文章详情页 */
.article-wrap {
  max-width: 820px;
  margin: 40px auto 70px;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-green);
  box-shadow: var(--shadow-sm);
}
.article-wrap h1 {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  color: var(--forest-900);
  line-height: 1.25;
  margin: 14px 0 16px;
}
.article-lead-text {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}
.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--forest-800);
  margin: 36px 0 16px;
  padding-left: 10px;
  border-left: 4px solid var(--leaf-500);
}
.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: var(--forest-900);
  margin: 24px 0 12px;
}
.article-content p {
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 0 0 24px 28px;
}
.article-content li {
  margin-bottom: 8px;
}
.nutrition-facts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  border: 1px solid var(--border-green);
  background: #fafdfa;
}
.nutrition-facts-table th, .nutrition-facts-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-green);
  text-align: left;
}
.nutrition-facts-table th {
  background: var(--mint-100);
  color: var(--forest-900);
  font-weight: 700;
}

/* 页脚 */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-green);
  padding: 55px 0 30px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 45px;
}
.footer-brand p {
  margin: 14px 0;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--forest-900);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 9px;
}
.footer-col a:hover {
  color: var(--forest-700);
}
.footer-bar {
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .health-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-form-grid { grid-template-columns: 1fr; }
  .calc-display { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { gap: 14px; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
}
@media (max-width: 768px) {
  .health-grid { grid-template-columns: 1fr; }
  .calc-display { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .article-wrap { padding: 24px 18px; }
  .article-wrap h1 { font-size: 1.85rem; }
}
