/* ============================================================
   知食 FoodWise — 设计系统
   主色：深林绿 / 青柠 / 暖沙；字体：宋体标题 + 无衬线正文
   ============================================================ */

:root {
  --bg:        #FBFAF5;
  --bg-alt:    #F4F2E9;
  --surface:   #FFFFFF;
  --ink:       #12241C;
  --ink-2:     #45564D;
  --ink-3:     #7A8A81;
  --green-900: #0D3427;
  --green-800: #114534;
  --green-700: #17624A;
  --green-600: #1F7C5C;
  --green-500: #2E9E6B;
  --green-100: #E4F2E8;
  --lime:      #CFE9A0;
  --amber:     #E0A03C;
  --amber-100: #FBEFD8;
  --berry:     #C4536A;
  --line:      rgba(18, 36, 28, 0.09);
  --line-2:    rgba(18, 36, 28, 0.14);
  --shadow-sm: 0 1px 2px rgba(18,36,28,.05), 0 2px 8px rgba(18,36,28,.04);
  --shadow-md: 0 4px 12px rgba(18,36,28,.06), 0 12px 32px rgba(18,36,28,.06);
  --shadow-lg: 0 8px 24px rgba(18,36,28,.08), 0 24px 64px rgba(18,36,28,.10);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --max: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 纸张质感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(207,233,160,.30), transparent 42%),
    radial-gradient(circle at 88% 2%, rgba(224,160,60,.14), transparent 38%),
    radial-gradient(circle at 70% 92%, rgba(46,158,107,.10), transparent 45%);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}

::selection { background: var(--lime); color: var(--green-900); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ---------- 阅读进度条 ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--green-500), var(--lime));
  z-index: 200; transition: width .1s linear;
}

/* ============================ 导航 ============================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,245,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  height: 68px; display: flex; align-items: center; gap: 36px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .02em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--green-700), var(--green-500) 60%, var(--lime));
  display: grid; place-items: center; color: #fff; font-size: 15px;
  box-shadow: 0 3px 10px rgba(23,98,74,.28);
}
.logo small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .22em; color: var(--ink-3); font-weight: 500; text-transform: uppercase; line-height: 1; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; color: var(--ink-2); font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--green-700); background: rgba(46,158,107,.08); }
.nav-links a.active { color: var(--green-800); background: var(--green-100); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 20px; height: 1.8px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: .3s; }

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  transition: transform .18s var(--ease), box-shadow .25s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-800); color: #fff;
  box-shadow: 0 2px 4px rgba(17,69,52,.18), 0 8px 20px rgba(17,69,52,.18);
}
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(17,69,52,.2), 0 14px 30px rgba(17,69,52,.24); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: var(--green-500); color: var(--green-700); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* ============================ 通用段落 ============================ */
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-600); font-weight: 700; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--green-500); }

.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 16.5px; margin: 0; }

.lead { font-size: 17.5px; color: var(--ink-2); line-height: 1.85; }

/* ============================ Hero ============================ */
.hero { padding: 72px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2); font-weight: 500;
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero-badge b { color: var(--green-700); font-weight: 700; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px rgba(46,158,107,.16); }

.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal; color: var(--green-700);
  position: relative; z-index: 0; white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .3em;
  background: linear-gradient(90deg, var(--lime), rgba(207,233,160,.35));
  z-index: -1; border-radius: 2px;
}
.hero p.sub { font-size: 17.5px; color: var(--ink-2); max-width: 500px; margin: 0 0 34px; line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-stats { display: flex; gap: 34px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats .n { font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--green-800); line-height: 1.2; }
.hero-stats .l { font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em; }

/* Hero 视觉 */
.hero-visual { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.hero-visual .ring {
  position: absolute; inset: 6%; border-radius: 50%;
  border: 1px dashed rgba(46,158,107,.28);
  animation: spin 90s linear infinite;
}
.hero-visual .ring2 { inset: -4%; border-style: solid; border-color: rgba(46,158,107,.10); animation-direction: reverse; animation-duration: 140s; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip-float {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  border-radius: 14px; padding: 9px 14px; box-shadow: var(--shadow-md);
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
.chip-float span { color: var(--ink-3); font-weight: 500; font-size: 11.5px; display: block; line-height: 1.3; }
.chip-float .ic { font-size: 17px; }
.chip-a { top: 6%; right: -2%; animation-delay: 0s; }
.chip-b { bottom: 12%; left: -6%; animation-delay: 1.6s; }
.chip-c { bottom: -2%; right: 8%; animation-delay: 3.1s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ============================ 卡片通用 ============================ */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(46,158,107,.22); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ============================ 营养素卡 ============================ */
.nutri-card { position: relative; overflow: hidden; }
.nutri-card .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 18px;
}
.nutri-card h3 { font-size: 19px; margin-bottom: 8px; }
.nutri-card .role { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 12px; }
.nutri-card p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 16px; line-height: 1.75; }
.nutri-card .src {
  font-size: 12.5px; color: var(--green-700); background: var(--green-100);
  padding: 8px 12px; border-radius: 10px; line-height: 1.6;
}
.nutri-card .src b { font-weight: 700; }

/* ============================ 餐盘 ============================ */
.plate-section { background: linear-gradient(180deg, transparent, var(--bg-alt) 18%, var(--bg-alt) 82%, transparent); }
.plate-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.plate-figure { position: relative; }
.plate-figure svg { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(18,36,28,.10)); }
.plate-legend { display: flex; flex-direction: column; gap: 2px; }
.plate-item {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: center;
  padding: 15px 16px; border-radius: 14px; cursor: pointer;
  transition: background .22s, transform .22s;
  border: 1px solid transparent;
}
.plate-item:hover, .plate-item.on { background: rgba(255,255,255,.9); border-color: var(--line); transform: translateX(4px); }
.plate-item .sw { width: 12px; height: 12px; border-radius: 4px; }
.plate-item .nm { font-weight: 600; font-size: 15px; }
.plate-item .ds { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; margin-top: 2px; }
.plate-item .pc { font-family: var(--serif); font-size: 17px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ============================ 食物卡 ============================ */
.food-card { cursor: pointer; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.food-top {
  position: relative; padding: 22px 22px 16px;
  background: radial-gradient(circle at 76% 18%, var(--fc, #E4F2E8) 0%, rgba(255,255,255,0) 62%);
}
.food-emoji { font-size: 40px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(18,36,28,.14)); }
.food-kcal {
  position: absolute; top: 20px; right: 20px; text-align: right;
}
.food-kcal b { font-family: var(--serif); font-size: 22px; color: var(--ink); display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.food-kcal span { font-size: 10.5px; color: var(--ink-3); letter-spacing: .06em; }
.food-body { padding: 4px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.food-name { font-family: var(--serif); font-size: 17.5px; font-weight: 600; }
.food-cat { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.macro-bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; margin: 14px 0 10px; background: var(--bg-alt); }
.macro-bar i { display: block; height: 100%; }
.macro-legend { display: flex; gap: 12px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.macro-legend b { color: var(--ink-2); font-weight: 600; }
.food-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.tag { font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); font-weight: 500; }

/* ============================ 食物库工具条 ============================ */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 22px; }
.search-box {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 11px 18px; transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(46,158,107,.10); }
.search-box input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 14.5px; color: var(--ink); }
.search-box input::placeholder { color: var(--ink-3); }
.search-box svg { color: var(--ink-3); flex: none; }

.select-wrap { position: relative; }
select.sortsel {
  appearance: none; -webkit-appearance: none;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 11px 38px 11px 18px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
  transition: border-color .2s;
}
select.sortsel:hover { border-color: var(--green-500); }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 6px; height: 6px;
  border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.pill {
  border: 1px solid var(--line-2); background: rgba(255,255,255,.6);
  border-radius: 999px; padding: 7px 15px; font-size: 13.5px; color: var(--ink-2);
  font-weight: 500; transition: .2s var(--ease); display: flex; align-items: center; gap: 7px;
}
.pill:hover { border-color: var(--green-500); color: var(--green-700); }
.pill.on { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.pill .cnt { font-size: 11px; opacity: .6; }

/* ============================ 详情抽屉 ============================ */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(13,52,39,.28);
  backdrop-filter: blur(3px); opacity: 0; pointer-events: none;
  transition: opacity .3s; z-index: 150;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  background: var(--bg); z-index: 151; overflow-y: auto;
  transform: translateX(100%); transition: transform .42s var(--ease);
  box-shadow: -20px 0 60px rgba(18,36,28,.16);
  padding: 32px 32px 60px;
}
.drawer.open { transform: none; }
.drawer-close {
  position: sticky; top: 0; margin-left: auto; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--surface); font-size: 17px; color: var(--ink-2); z-index: 2;
}
.drawer-close:hover { background: var(--green-100); color: var(--green-700); }
.drawer-emoji { font-size: 54px; margin-bottom: 12px; }
.drawer h2 { font-size: 28px; margin-bottom: 6px; }
.drawer .sub { color: var(--ink-3); font-size: 13.5px; margin-bottom: 24px; }
.nutri-table { width: 100%; border-collapse: collapse; margin: 6px 0 24px; }
.nutri-table td { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.nutri-table td:first-child { color: var(--ink-2); }
.nutri-table td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.nutri-table tr:last-child td { border-bottom: 0; }
.drawer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 26px 0 8px; font-family: var(--sans); font-weight: 700; }
.drawer p { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; margin: 0 0 12px; }
.tipbox {
  background: var(--amber-100); border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0; padding: 14px 16px; font-size: 14px; color: #6B4A16; line-height: 1.75;
}
.kv-bars { margin: 18px 0 8px; display: grid; gap: 12px; }
.kv { display: grid; grid-template-columns: 46px 1fr 52px; gap: 10px; align-items: center; font-size: 12.5px; }
.kv .track { height: 7px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.kv .track i { display: block; height: 100%; border-radius: 4px; transition: width .5s var(--ease); }
.kv .val { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ============================ 计算器 ============================ */
.calc-grid { display: grid; grid-template-columns: 420px 1fr; gap: 28px; align-items: start; }
.calc-panel { position: sticky; top: 92px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 8px; text-transform: uppercase; }
.field .row { display: flex; gap: 10px; }
.seg { display: flex; background: var(--bg-alt); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button {
  flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 9px;
  font-size: 13.5px; color: var(--ink-2); font-weight: 500; transition: .2s;
}
.seg button.on { background: var(--surface); color: var(--green-800); font-weight: 700; box-shadow: var(--shadow-sm); }

.inp {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.inp:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(46,158,107,.10); }

.slider-row { display: grid; grid-template-columns: 1fr 64px; gap: 14px; align-items: center; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: var(--bg-alt); border-radius: 3px; outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--green-600); cursor: grab;
  box-shadow: 0 2px 6px rgba(18,36,28,.18); transition: transform .15s;
}
input[type=range]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.1); }
input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--green-600); cursor: grab;
}
.slider-val {
  text-align: center; font-family: var(--serif); font-size: 16px; font-weight: 600;
  background: var(--bg-alt); border-radius: 9px; padding: 6px 0; font-variant-numeric: tabular-nums;
}

.result-hero {
  background: linear-gradient(135deg, var(--green-900), var(--green-700) 62%, var(--green-600));
  border-radius: var(--r-lg); padding: 30px 32px; color: #fff; position: relative; overflow: hidden;
}
.result-hero::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -60px; top: -100px; background: radial-gradient(circle, rgba(207,233,160,.28), transparent 68%);
}
.result-hero .lbl { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .72; font-weight: 600; }
.result-hero .big { font-family: var(--serif); font-size: 56px; line-height: 1.1; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.result-hero .big small { font-size: 18px; opacity: .8; font-family: var(--sans); margin-left: 4px; }
.result-hero .desc { font-size: 14px; opacity: .85; max-width: 380px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stat-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.stat-box .l { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 4px; }
.stat-box .v { font-family: var(--serif); font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-box .v small { font-size: 12px; color: var(--ink-3); font-family: var(--sans); margin-left: 2px; }
.stat-box .s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.macro-donut-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
.macro-list { display: grid; gap: 14px; }
.macro-item .t { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 5px; }
.macro-item .t b { font-variant-numeric: tabular-nums; }
.macro-item .track { height: 8px; border-radius: 5px; background: var(--bg-alt); overflow: hidden; }
.macro-item .track i { display: block; height: 100%; border-radius: 5px; transition: width .55s var(--ease); }
.macro-item .sub { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

.equiv { display: grid; gap: 10px; }
.equiv-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.equiv-row .e { font-size: 24px; flex: none; }
.equiv-row .tx { flex: 1; font-size: 13.5px; }
.equiv-row .tx b { font-size: 15px; font-family: var(--serif); }
.equiv-row .tx span { display: block; color: var(--ink-3); font-size: 12px; }

/* ============================ 误区 ============================ */
.myth-list { display: grid; gap: 12px; }
.myth {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: box-shadow .3s, border-color .3s;
}
.myth.open { border-color: rgba(46,158,107,.3); box-shadow: var(--shadow-md); }
.myth-q {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px;
  cursor: pointer; user-select: none;
}
.myth-q .badge {
  flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 9px; border-radius: 5px; background: #FBEAEA; color: #B23A3A; margin-top: 3px;
}
.myth-q .qt { flex: 1; font-size: 16px; font-weight: 600; font-family: var(--serif); }
.myth-q .arw { flex: none; width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink-3); transition: transform .3s; font-size: 12px; }
.myth.open .myth-q .arw { transform: rotate(180deg); }
.myth-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease); }
.myth.open .myth-a { grid-template-rows: 1fr; }
.myth-a > div { overflow: hidden; }
.myth-a .inner { padding: 0 22px 22px 22px; margin-left: 0; }
.myth-a .truth {
  font-size: 14.8px; color: var(--ink); line-height: 1.85; padding: 16px 18px;
  background: var(--green-100); border-radius: 12px;
}
.myth-a .truth b { color: var(--green-800); }
.myth-a .basis { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; padding-left: 2px; }

/* ============================ 指南 / 表格 ============================ */
.guide-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.guide-table th {
  text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; padding: 0 14px 12px; border-bottom: 1px solid var(--line-2);
}
.guide-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table td:first-child { font-weight: 600; white-space: nowrap; }
.guide-table .sub { color: var(--ink-3); font-size: 13px; }
.guide-table .num { font-family: var(--serif); font-size: 16px; color: var(--green-800); font-variant-numeric: tabular-nums; }

.step-list { counter-reset: s; display: grid; gap: 0; }
.step { position: relative; padding: 0 0 30px 52px; counter-increment: s; }
.step::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--green-700); font-family: var(--serif);
}
.step::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 6px; width: 1px; background: var(--line-2); }
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h4 { font-size: 16.5px; margin-bottom: 6px; font-family: var(--serif); }
.step p { margin: 0; font-size: 14.3px; color: var(--ink-2); line-height: 1.8; }

/* ============================ 引用 / 页脚 ============================ */
.quote {
  border-left: 2px solid var(--green-500); padding: 4px 0 4px 24px;
  font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--ink);
  max-width: 640px;
}
.quote small { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }

.cta-band {
  background: var(--green-900); color: #fff; border-radius: var(--r-xl);
  padding: 56px 56px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -100px; bottom: -220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(207,233,160,.20), transparent 70%);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.72); margin: 0; font-size: 15.5px; max-width: 460px; }
.cta-band .btn-primary { background: var(--lime); color: var(--green-900); }
.cta-band .btn-primary:hover { background: #DBF0B4; }

.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer h5 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; font-weight: 700; }
.footer a { display: block; font-size: 14px; color: var(--ink-2); padding: 4px 0; transition: color .2s; }
.footer a:hover { color: var(--green-700); }
.footer p { font-size: 13.5px; color: var(--ink-3); line-height: 1.8; margin: 12px 0 0; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3);
}

/* ============================ 动态 ============================ */
.reveal { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.reveal.in { opacity: 1; translate: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }

/* ============================ 响应式 ============================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .plate-layout { grid-template-columns: 1fr; gap: 32px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-panel { position: static; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 32px; }
  .macro-donut-wrap { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
  .macro-list { width: 100%; }
}

@media (max-width: 720px) {
  .wrap, .nav-inner { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav-inner { height: 60px; gap: 0; }
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 18px;
    gap: 2px; display: none; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 14px; border-radius: 10px; }
  .nav-toggle { display: block; }
  .hero { padding: 40px 0 20px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stats .n { font-size: 22px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .drawer { padding: 24px 22px 50px; }
  .result-hero { padding: 24px; }
  .result-hero .big { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .chip-float { display: none; }
  .hero-visual { max-width: 340px; }
  .section-head { margin-bottom: 32px; }
  .plate-item { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================ Hero 营养标签卡 ============================ */
.label-card {
  position: relative; z-index: 2; width: 80%;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 24px 24px 20px; box-shadow: var(--shadow-lg);
  transform: rotate(-2.2deg); transition: transform .5s var(--ease);
}
.label-card:hover { transform: rotate(0deg) translateY(-4px); }
.label-card .hd {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid var(--ink); padding-bottom: 9px; margin-bottom: 4px;
}
.label-card .hd b { font-family: var(--serif); font-size: 18px; }
.label-card .hd span { font-size: 10px; color: var(--ink-3); letter-spacing: .12em; }
.lrow {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
}
.lrow b { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.lrow i { font-style: normal; font-size: 10.5px; color: var(--ink-3); margin-left: 5px; }
.lbar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; margin-top: 16px; }
.lbar i { display: grid; place-items: center; font-size: 9.5px; color: #fff; font-weight: 700; letter-spacing: .03em; }
.label-foot { font-size: 10px; color: var(--ink-3); margin-top: 10px; letter-spacing: .02em; }
