/* style.css — 农产饮品原料作物大全 · 首页布局
   基线：03-ui/home-ui-desktop.png（1024×1536 → 归一 1440×2160）
   分区预算（设计 px，量自稿，见 03-ui/compare-log.md）：
     header      0–92     92
     hero       92–485   393
     M2 分类    485–870  385
     M3 部位    870–1080 210
     M4 工序   1080–1250 170
     M5 原料   1250–1480 230
     M6 四步   1480–1633 153
     M7|M8     1633–1770 137
     M9|M10    1770–1970 200
     footer    1970–2160 190 */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-4);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--invert);
  padding: 10px 16px; z-index: 99;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.eyebrow {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-1);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

/* ─────────────────────────  M0 site-header   (0–92)  */
.site-header { background: var(--bg); }
.header-inner {
  display: grid;
  grid-template-columns: 400px 1fr;
  align-items: start;
  column-gap: 40px;
  padding-top: 17px;
  min-height: 92px;
}
.brand { display: flex; align-items: flex-start; gap: 9px; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); flex: none; margin-top: 1px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--serif); font-size: var(--fs-7); font-weight: 600;
  color: var(--ink); letter-spacing: .01em; line-height: 1.45;
}
.brand-sub { font-size: var(--fs-1); letter-spacing: .16em; color: var(--muted); }

.nav-toggle {
  display: none;
  width: 32px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 24px;
  row-gap: 3px;
  justify-content: flex-start;
  padding-top: 1px;
}
.site-nav > a,
.site-nav .nav-item > a {
  display: inline-block;
  font-size: var(--fs-4);
  color: var(--ink);
  line-height: 1.55;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  white-space: nowrap;
}
.site-nav > a:hover,
.site-nav .nav-item > a:hover { border-bottom-color: var(--accent); color: var(--accent-2); }

.nav-item { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 150px;
  max-height: 360px;
  overflow-y: auto;
  margin-top: 4px;
  padding: 8px 0;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: 0 8px 20px rgba(46, 71, 35, .12);
}
.dropdown-menu a {
  display: block;
  padding: 4px 14px;
  font-size: var(--fs-2);
  color: var(--text-soft);
  line-height: 1.5;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--accent-soft); color: var(--accent-2); }
.nav-item.dropdown:hover > .dropdown-menu { display: block; }

.nav-toggle { display: none !important; }

/* ─────────────────────────  M1 hero   (92–485, 393)  */
.hero { background: var(--bg); }
.hero-inner {
  display: grid;
  grid-template-columns: 700px 1fr;
  max-width: 1440px;
  margin: 0 auto;
  height: 393px;
  padding-left: var(--gut);
}
.hero-copy { padding: 30px 30px 0 0; display: flex; flex-direction: column; height: 100%; }
.hero-copy .eyebrow { color: var(--accent-2); font-size: 11px; }
.hero h1 {
  margin-top: 18px;
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -.015em;
  max-width: 600px;
}
.lede {
  margin-top: 26px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-soft);
  max-width: 700px;
}
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 13px; height: 7px; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-2); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  column-gap: 30px;
  margin-top: auto;
  padding-bottom: 26px;
}
.hero-stats dt { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; line-height: 1.5; white-space: nowrap; }
.stat-num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
  line-height: 1;
  margin-right: 4px;
  vertical-align: -1px;
}
.hero-figure { margin: 0; overflow: hidden; }
.hero-figure img { width: 100%; height: 393px; object-fit: cover; object-position: 50% 46%; }

/* ─────────────────────────  通用分区零件  */
.section-split {
  display: grid;
  grid-template-columns: var(--label-col) 1fr;
  column-gap: var(--label-gap);
  align-items: start;
}
.section-head h2 { font-size: var(--fs-9); letter-spacing: -.005em; max-width: 9.5em; }
.section-head .eyebrow { margin-bottom: 7px; }
.section-lead {
  margin-top: 9px;
  font-size: var(--fs-3);
  line-height: 1.8;
  color: var(--muted);
}

/* ─────────────────────────  M2 分类   (485–870, 385)  */
.section-cat { padding-top: 30px; padding-bottom: 39px; }
.cat-head {
  display: grid;
  grid-template-columns: var(--label-col) 1fr;
  column-gap: var(--label-gap);
  align-items: end;
}
.cat-head h2 { font-size: var(--fs-9); letter-spacing: -.005em; }
.cat-head .eyebrow { margin-bottom: 7px; }
.cat-head-lead { font-size: var(--fs-3); line-height: 1.8; color: var(--muted); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 25px;
  row-gap: 31px;
  margin-top: 22px;
}
.cat-card {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-content: start;
  column-gap: 4px;
  padding: 14px 17px 15px;
  border: 1px solid var(--bg-line);
  border-radius: var(--r);
  background: var(--bg-card);
  min-height: 107px;
  transition: border-color .18s ease, background .18s ease;
}
.cat-card-line { background: transparent; border-style: dashed; }
.cat-card:hover { border-color: var(--accent); background: #fffdf7; }
.cat-num {
  font-family: var(--serif); font-size: var(--fs-1); color: var(--accent);
  letter-spacing: .06em; line-height: 1.75;
}
.cat-name {
  font-family: var(--serif); font-size: var(--fs-6); font-weight: 600; color: var(--ink);
  line-height: 1.55;
}
.cat-meta {
  grid-column: 2;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.cat-tag { color: var(--accent-2); letter-spacing: .05em; }
.cat-desc { font-size: 11px; color: var(--muted); }

/* ─────────────────────────  M3 部位   (870–1080, 210)  */
.section-atlas { padding-top: 40px; padding-bottom: 17px; }
.section-atlas .section-head h2 { max-width: 7.5em; }
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2px;
}
.atlas-item { padding: 0 20px; border-left: 1px solid var(--line); }
.atlas-item:first-child { padding-left: 0; border-left: 0; }
.atlas-item:last-child { padding-right: 0; }
.atlas-num {
  display: block;
  font-family: var(--serif); font-size: var(--fs-1); color: var(--accent);
  letter-spacing: .08em; margin-bottom: 5px;
}
.atlas-item h3 { font-size: var(--fs-5); }
.atlas-owner { margin-top: 3px; font-size: var(--fs-1); color: var(--accent-2); letter-spacing: .03em; }
.atlas-desc { margin-top: 9px; font-size: var(--fs-3); line-height: 1.78; color: var(--muted); }

/* ─────────────────────────  M4 工序   (1080–1250, 170)  */
.section-chain { padding-top: 12px; }
.section-chain .section-head h2 { max-width: 8em; }
.chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 22px;
  margin-top: 4px;
}
.chain-step { position: relative; padding-top: 13px; }
.chain-step::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px;
  background: var(--line-2);
}
.chain-num { font-family: var(--serif); font-size: var(--fs-1); color: var(--accent); letter-spacing: .08em; }
.chain-step h3 { font-size: var(--fs-5); margin-top: 5px; }
.chain-step p { margin-top: 7px; font-size: var(--fs-3); line-height: 1.75; color: var(--muted); }

/* ─────────────────────────  M5 原料   (1250–1480, 230)  */
.section-feat { padding-top: 17px; }
.feat-head {
  display: grid;
  grid-template-columns: var(--label-col) 1fr;
  column-gap: var(--label-gap);
  align-items: end;
}
.feat-head .eyebrow { grid-column: 1 / -1; margin-bottom: 4px; }
.feat-head h2 { font-size: var(--fs-8); grid-column: 1; }
.feat-head .section-lead { margin-top: 0; grid-column: 2; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 35px;
  margin-top: 14px;
}
.feat-card { display: flex; flex-direction: column; }
.feat-card .thumb {
  aspect-ratio: 193 / 86;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
}
.feat-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.feat-card h3 { font-size: var(--fs-4); margin-top: 6px; }
.feat-card p { margin-top: 2px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.feat-tag { margin-top: 4px; font-size: 10px; color: var(--accent-2); letter-spacing: .05em; }

/* ─────────────────────────  M6 四步   (1480–1633, 153)  */
.section-steps { padding-top: 22px; }
.section-steps .section-head h2 { max-width: 7.5em; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 22px;
  margin-top: 2px;
}
.steps-item { border-left: 1px solid var(--line); padding-left: 16px; }
.steps-item:first-child { border-left: 0; padding-left: 0; }
.steps-num { font-family: var(--serif); font-size: var(--fs-1); color: var(--accent); letter-spacing: .08em; }
.steps-item h3 { font-size: var(--fs-5); margin-top: 4px; }
.steps-item p { margin-top: 5px; font-size: 12px; line-height: 1.65; color: var(--muted); }

/* ─────────────────────────  M7 | M8   (1633–1770, 137)  */
.band {
  background: var(--bg-soft);
  padding: 4px 0 4px;
}
.band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}
.band-col h2 { font-size: 15px; margin-top: 2px; max-width: 18em; letter-spacing: 0; line-height: 1.25; }
.band-col .eyebrow { font-size: 10px; line-height: 1.2; }
.band-col-2 { border-left: 1px solid var(--line-2); padding-left: 40px; }
.note-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 15px; margin-top: 5px; align-items: start; }
.note-item h3 { font-size: 11px; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-weight: 600; color: var(--ink); line-height: 1.3; }
.note-item p { margin-top: 2px; font-size: 10px; line-height: 1.38; color: var(--muted); }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; column-gap: 22px; row-gap: 4px; margin-top: 5px; }
.fact-item h3 { font-size: 11px; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-weight: 600; color: var(--ink); line-height: 1.3; }
.fact-item p { margin-top: 2px; font-size: 10px; line-height: 1.36; color: var(--muted); }

/* ─────────────────────────  M9 | M10   (1770–1970, 200)  */
.band-2 { padding-top: 12px; padding-bottom: 4px; }
.faq { margin-top: 5px; }
.faq details { border-bottom: 1px solid var(--line-2); padding: 6px 0; }
.faq summary {
  cursor: pointer; font-size: 12px; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; gap: 12px; line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 14px; line-height: 1.2; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 4px; font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.scope-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 15px; margin-top: 5px; align-items: start; }
.scope-item h3 { font-size: 11px; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-weight: 600; color: var(--ink); line-height: 1.4; }
.scope-item p { margin-top: 2px; font-size: 10.5px; line-height: 1.45; color: var(--muted); }
.scope-note { margin-top: 10px; font-size: 10px; color: var(--muted-2); line-height: 1.55; }

/* ─────────────────────────  M9/M10 之后留白 → footer 起点 1970  */
.site-footer {
  background: var(--footer);
  color: var(--invert-soft);
  padding: 12px 0 10px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  column-gap: 34px;
  row-gap: 18px;
}
.footer-col { flex: 1 1 180px; min-width: 170px; }
.footer-brand { flex: 1 1 240px; }
.footer-disclaimer { flex: 1.4 1 260px; }
.footer-name { font-family: var(--serif); font-size: var(--fs-4); color: var(--invert); letter-spacing: .01em; }
.footer-sub { font-size: 10px; letter-spacing: .14em; color: var(--invert-soft); margin-top: 1px; }
.footer-tag { margin-top: 6px; font-size: 10px; line-height: 1.38; color: var(--invert-soft); max-width: 21em; }
.footer-head { font-size: 10px; letter-spacing: .16em; color: var(--invert); margin-bottom: 4px; }
.footer-col ul { display: grid; row-gap: 0; }
.footer-col li { line-height: 1.36; }
.footer-col li a { font-size: 10px; color: var(--invert-soft); line-height: 1.36; }
.footer-col li a:hover { color: #fff; }
.footer-disclaimer p { font-size: 10px; line-height: 1.42; }
.footer-copy { margin-top: 7px; font-size: 10px; color: #a9bb9a; }
.footer-icp { margin-top: 3px; font-size: 10px; }
.footer-icp a { color: var(--invert-soft); }
.footer-icp a:hover { color: #fff; }

/* ─────────────────────────  响应式  */
@media (max-width: 1250px) {
  :root { --label-col: 280px; --label-gap: 26px; }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 38px; }
  .header-inner { grid-template-columns: 330px 1fr; column-gap: 24px; }
  .site-nav { column-gap: 16px; }
  .feat-grid { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .feat-card .thumb { aspect-ratio: 16 / 10; }
}

@media (max-width: 1000px) {
  .header-inner { grid-template-columns: 1fr; height: auto; padding-bottom: 10px; row-gap: 8px; }
  .site-nav {
    grid-column: 1 / -1;
    display: flex;
    margin-top: 4px; padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .dropdown-menu { position: static; max-height: 260px; box-shadow: none; margin-top: 2px; }
  .hero-inner { grid-template-columns: 1fr; height: auto; padding-right: var(--gut); }
  .hero-copy { padding: 20px 0 0; }
  .hero-figure { margin-top: 18px; }
  .hero-figure img { height: auto; aspect-ratio: 16 / 10; }
  .hero-stats { margin-top: 20px; padding: 0; column-gap: 24px; row-gap: 10px; }
  .section-split, .cat-head, .feat-head { grid-template-columns: 1fr; row-gap: 12px; }
  .cat-head { align-items: start; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .atlas-grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; margin-top: 14px; }
  .atlas-item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .atlas-item:nth-child(even) { padding-right: 0; }
  .chain, .steps { grid-template-columns: repeat(2, 1fr); row-gap: 22px; margin-top: 12px; }
  .steps-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .band { padding: 26px 0 28px; }
  .band-grid { grid-template-columns: 1fr; row-gap: 26px; }
  .band-col-2 { border-left: 0; padding-left: 0; padding-top: 22px; border-top: 1px solid var(--line-2); }
  .footer-inner { row-gap: 22px; }
  .footer-col { flex: 1 1 45%; }
  .footer-disclaimer { flex: 1 1 100%; }
}

@media (max-width: 680px) {
  :root { --fs-10: 30px; --fs-9: 20px; --fs-7: 16px; --gut: 20px; }
  .cat-grid, .atlas-grid, .chain, .steps, .note-list, .facts-grid, .scope-list, .feat-grid { grid-template-columns: 1fr; }
  .atlas-item, .steps-item { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .atlas-item:first-child, .steps-item:first-child { border-top: 0; padding-top: 0; }
  .chain-step { padding-top: 14px; }
  .cat-card { min-height: 0; }
  .hero-stats { column-gap: 18px; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .footer-inner { row-gap: 20px; }
  .footer-col, .footer-brand, .footer-disclaimer { flex: 1 1 100%; min-width: 0; }
}
