/* ==========================================================================
   牛耕部落 · 有秋系列家庭常备米 H5 v2
   画册 / 编辑部气质 · 纯静态零外链 · 375px 基准 / 桌面居中 520px
   ========================================================================== */

:root {
  /* Core Palette */
  --paper: #fffaeb;
  --paper-warm: #f5edd4;
  --paper-card: #fcf5df;
  --ink: #352c20;
  --ink-muted: #5d4f3c;
  --olive: #41482a;
  --olive-deep: #343a21;
  --brown: #3a2a17;
  --brown-deep: #2c2011;
  --gold: #735320;
  --gold-light: #ebc982;
  --paper-muted: #e6d8b9;
  --vermilion: #8c3d28;
  --line-light: rgba(53, 44, 32, 0.16);
  --line-dark: rgba(255, 250, 235, 0.20);
  --focus: #c77b28;

  /* 5 Rice Swatch Colors (verified >= 4.5:1 text contrast) */
  --rice-grain: #8a5718;
  --rice-fiber: #41482a;
  --rice-porridge: #7a4c2a;
  --rice-white: #f2e7cb;
  --rice-red: #7c3424;
  --active-rice: #8a5718;

  /* Typography */
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout & Spacing */
  --col-max: 520px;
  --gutter: 20px;
  --screen-py: 52px;
  --header-h: 52px;
  --radius-sm: 4px;
  --radius-md: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 62px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 104px;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--paper) 0, var(--paper) 200px, var(--brown) 200px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, p, figure, figcaption, dl, dd, ol, ul {
  margin: 0;
}

ol, ul {
  padding: 0;
  list-style: none;
}

button, select {
  font: inherit;
  color: inherit;
}

button, a, select {
  touch-action: manipulation;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Sticky Top Header + Live Chapter Indicator + Progress Track
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: rgba(255, 250, 235, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}

.header-inner {
  width: 100%;
  max-width: var(--col-max);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.brand-svg {
  width: 96px;
  height: 26px;
  display: block;
  flex-shrink: 0;
}

.brand-tag {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  border-left: 1px solid var(--line-light);
  padding-left: 10px;
  line-height: 1.2;
}

.toc-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid rgba(53, 44, 32, 0.25);
  border-radius: 999px;
  background: var(--paper-warm);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.toc-pill:hover {
  background: #ede1bf;
  border-color: var(--ink);
}

.nav-progress-nums {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
}

.nav-progress-nums span {
  color: var(--ink-muted);
  font-weight: 400;
}

.toc-label {
  font-weight: 600;
  padding-left: 6px;
  border-left: 1px solid var(--line-light);
}

.toc-bars {
  display: inline-block;
  width: 12px;
  height: 8px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  position: relative;
}

.toc-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -0.75px;
  height: 1.5px;
  background: var(--ink);
}

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(53, 44, 32, 0.08);
  pointer-events: none;
}

.read-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--olive);
  transform-origin: left center;
  transform: scaleX(0);
}

/* ==========================================================================
   Section Themes & Shared Editorial Spine (Full-width color + 520px column)
   ========================================================================== */
.screen {
  position: relative;
  width: 100%;
  isolation: isolate;
  scroll-margin-top: 60px;
}

.theme-paper {
  background: var(--paper);
  color: var(--ink);
}

.theme-olive {
  background: var(--olive);
  color: var(--paper);
}

.theme-brown {
  background: var(--brown);
  color: var(--paper);
}

.theme-photo {
  background: #1c241d;
  color: var(--paper);
}

.theme-photo-dark {
  background: #1e1a15;
  color: var(--paper);
}

.wrap {
  width: 100%;
  max-width: var(--col-max);
  margin: 0 auto;
  padding: var(--screen-py) var(--gutter);
}

/* Chapter Mark: 01 ——— 题记 */
.chapter-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.ch-num {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}

.ch-rule {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  flex-shrink: 0;
}

.ch-cat {
  color: var(--ink-muted);
  font-weight: 500;
}

.theme-olive .ch-num,
.theme-brown .ch-num,
.theme-photo .ch-num,
.theme-photo-dark .ch-num {
  color: var(--gold-light);
}

.theme-olive .ch-cat,
.theme-brown .ch-cat,
.theme-photo .ch-cat,
.theme-photo-dark .ch-cat {
  color: var(--paper-muted);
}

/* Headings & Body Copy */
.sec-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 7.6vw, 35px);
  line-height: 1.28;
  letter-spacing: 0.02em;
}

.sec-lead {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.theme-olive .sec-lead,
.theme-brown .sec-lead {
  color: var(--paper-muted);
}

.fine-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.theme-olive .fine-note,
.theme-brown .fine-note {
  color: var(--paper-muted);
}

.fig-cap {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.theme-brown .fig-cap,
.theme-olive .fig-cap {
  color: var(--paper-muted);
}

/* Scroll Reveal (Progressive, safe) */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-ready .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  background: var(--olive);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--olive);
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background: var(--olive-deep);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-outline:hover {
  background: rgba(115, 83, 32, 0.1);
}

/* ==========================================================================
   01 首屏：梯田等高线 + 大字宋体标题 + 静物 + 事实刻度
   ========================================================================== */
.hero-screen {
  overflow: hidden;
  border-bottom: 1px solid var(--line-light);
}

.hero-contours {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--col-max);
  height: 360px;
  pointer-events: none;
  z-index: 0;
}

.hero-wrap {
  position: relative;
  z-index: 1;
  padding-top: 20px;
  padding-bottom: 24px;
}

.hero-origin {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 6px;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-title-row h1 {
  font-family: var(--serif);
  font-weight: 800;
  /* 48px at 375px viewport, scales cleanly within 44-56px */
  font-size: clamp(44px, 12.8vw, 54px);
  line-height: 1.12;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.hero-seal {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.15;
  color: var(--vermilion);
  border: 1px solid var(--vermilion);
  padding: 7px 4px;
  border-radius: 2px;
}

.hero-claim {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--olive);
  letter-spacing: 0.04em;
}

.hero-desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.hero-actions {
  margin-top: 16px;
}

.hero-figure {
  margin-top: 14px;
  padding: 6px 8px 4px;
  background: radial-gradient(ellipse at 50% 62%, #f4e6be 0%, transparent 72%);
}

.hero-figure img {
  width: 100%;
  max-width: 288px;
  height: auto;
  aspect-ratio: 762 / 727;
  object-fit: contain;
  margin: 0 auto;
}

.hero-facts {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.hero-facts div {
  padding: 13px 6px;
  text-align: center;
}

.hero-facts div + div {
  border-left: 1px solid var(--line-light);
}

.hero-facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero-facts small {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  margin-left: 2px;
  color: var(--gold);
}

.hero-facts span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* ==========================================================================
   02 米粒与工艺：碾磨层级剖面图 + 术语注记 + 双粒实拍
   ========================================================================== */
.diagram-box {
  margin-top: 24px;
  padding: 14px;
  background: var(--brown-deep);
  border: 1px solid rgba(235, 201, 130, 0.28);
  border-radius: var(--radius-md);
}

.diagram-cap {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.milling-svg {
  width: 100%;
  height: auto;
  display: block;
}

.milling-notes {
  margin-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.milling-notes div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: baseline;
}

.milling-notes dt {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
}

.milling-notes dd {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--paper-muted);
}

.grain-diptych {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  align-items: end;
}

.grain-diptych img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(235, 201, 130, 0.25);
}

.grain-diptych img + img {
  aspect-ratio: 4 / 5;
}

.grain-diptych figcaption {
  grid-column: 1 / -1;
}

/* ==========================================================================
   03 认识牛耕部落：编者按引言 + 通栏纪实摄影
   ========================================================================== */
.editorial-quote {
  margin-top: 20px;
  padding: 4px 0 4px 14px;
  border-left: 2.5px solid var(--olive);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink);
}

.bleed-strip {
  margin: 24px calc(var(--gutter) * -1) 0;
}

.bleed-strip img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.bleed-strip figcaption {
  padding: 8px var(--gutter) 0;
}

.body-para {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ==========================================================================
   04 & 14 全出血情绪摄影 + 深色遮罩叠字
   ========================================================================== */
.photo-stage {
  position: relative;
  width: 100%;
  max-width: var(--col-max);
  min-height: 470px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.photo-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(20, 29, 21, 0.68) 0%,
    rgba(20, 29, 21, 0.16) 36%,
    rgba(20, 29, 21, 0.56) 62%,
    rgba(18, 25, 18, 0.94) 100%
  );
}

.photo-scrim-trace {
  background: linear-gradient(
    180deg,
    rgba(24, 20, 15, 0.72) 0%,
    rgba(24, 20, 15, 0.14) 36%,
    rgba(24, 20, 15, 0.72) 60%,
    rgba(22, 18, 13, 0.96) 100%
  );
}

.photo-top,
.photo-bottom {
  position: relative;
  z-index: 2;
  padding: 36px var(--gutter);
}

.photo-top {
  padding-bottom: 0;
}

.photo-bottom {
  padding-top: 48px;
}

.photo-bottom .sec-title {
  color: var(--paper);
}

.photo-bottom p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #f4ebd3;
}

.photo-loc {
  display: inline-block;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 250, 235, 0.28);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

/* ==========================================================================
   05 稻鱼鸭共生：生态三角图解 + 纵幅插页
   ========================================================================== */
.eco-panel {
  margin-top: 22px;
  padding: 16px 14px;
  background: var(--paper-warm);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
}

.eco-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 14px;
  display: block;
}

.eco-list {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line-light);
  padding-top: 14px;
}

.eco-list div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.eco-list b {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--olive);
  background: var(--paper);
  color: var(--olive);
  font-family: var(--serif);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eco-list span {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  padding-top: 4px;
}

.portrait-plate {
  margin-top: 22px;
}

.portrait-plate img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 55%;
}

/* ==========================================================================
   06 一季好米的农时：四季竖排画廊（墨绿反白）
   ========================================================================== */
.season-reel {
  margin-top: 26px;
  display: grid;
  gap: 28px;
}

.season-item {
  border-top: 1px solid var(--line-dark);
  padding-top: 16px;
}

.season-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.season-head time {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.08em;
}

.season-head h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--paper);
}

.season-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.season-item p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--paper-muted);
}

/* ==========================================================================
   07 品牌认证：档案双页证书簿
   ========================================================================== */
.cert-folios {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cert-folio {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 12px;
  background: var(--paper-card);
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--olive);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cert-folio:hover {
  border-color: var(--gold);
  background: var(--paper-warm);
}

.cert-folio img {
  width: 100%;
  aspect-ratio: 955 / 1350;
  object-fit: cover;
  border: 1px solid var(--line-light);
}

.cert-folio b {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}

.cert-folio em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
}

.cert-folio small {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.cert-folio u {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--olive);
  text-underline-offset: 4px;
}

/* ==========================================================================
   08 五重质控：纵向时间轴 + 序号节点
   ========================================================================== */
.qc-timeline {
  margin-top: 26px;
  position: relative;
  padding-left: 44px;
}

.qc-timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  bottom: 24px;
  width: 1.5px;
  background: rgba(235, 201, 130, 0.36);
}

.qc-step {
  position: relative;
  padding-bottom: 22px;
}

.qc-step:last-child {
  padding-bottom: 0;
}

.qc-node {
  position: absolute;
  left: -44px;
  top: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--olive-deep);
  border: 1.5px solid var(--gold-light);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qc-body {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
}

.qc-step:last-child .qc-body {
  border-bottom: 0;
  padding-bottom: 0;
}

.qc-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qc-body h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
}

.qc-icon {
  width: 20px;
  height: 20px;
  color: var(--gold-light);
  opacity: 0.85;
  flex-shrink: 0;
}

.qc-body p {
  margin-top: 5px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--paper-muted);
}

/* ==========================================================================
   09 配送与售后：细线名录 + 服务热线
   ========================================================================== */
.service-ledger {
  margin-top: 22px;
  border-top: 1px solid var(--ink);
}

.service-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: baseline;
}

.service-row h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--vermilion);
}

.service-row p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.hotline-bar {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 18px;
  background: var(--paper-warm);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.hotline-bar:hover {
  background: #ede1bf;
}

.hotline-bar span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.hotline-bar strong {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   10 五款常备米：可交互横向色带 + 舞台展台
   ========================================================================== */
.ribbon-hint {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--paper-muted);
  margin-bottom: 8px;
}

.rice-ribbon {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.rice-ribbon::-webkit-scrollbar {
  height: 4px;
}

.rice-ribbon::-webkit-scrollbar-thumb {
  background: rgba(235, 201, 130, 0.35);
  border-radius: 2px;
}

.swatch-btn {
  flex: 0 0 148px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  min-height: 112px;
  padding: 12px 12px 13px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.swatch-btn[data-id="grain"] {
  background: var(--rice-grain);
  color: var(--paper);
}

.swatch-btn[data-id="fiber"] {
  background: var(--rice-fiber);
  color: var(--paper);
}

.swatch-btn[data-id="porridge"] {
  background: var(--rice-porridge);
  color: var(--paper);
}

.swatch-btn[data-id="white"] {
  background: var(--rice-white);
  color: var(--ink);
}

.swatch-btn[data-id="red"] {
  background: var(--rice-red);
  color: var(--paper);
}

.swatch-btn[aria-pressed="true"] {
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.swatch-btn[data-id="white"][aria-pressed="true"] {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--gold-light);
}

.swatch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.88;
}

.swatch-status {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(255, 250, 235, 0.22);
  display: none;
}

.swatch-btn[data-id="white"] .swatch-status {
  background: rgba(53, 44, 32, 0.12);
}

.swatch-btn[aria-pressed="true"] .swatch-status {
  display: inline-block;
}

.swatch-name {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.swatch-line {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.92;
}

/* Active Product Stage */
.rice-stage {
  margin-top: 14px;
  background: var(--brown-deep);
  border: 1px solid rgba(235, 201, 130, 0.28);
  border-left: 4px solid var(--active-rice);
  border-radius: var(--radius-md);
  padding: 20px 18px;
}

.stage-kind {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}

.stage-name {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--paper);
}

.stage-tagline {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--gold-light);
}

.stage-about {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--paper-muted);
}

.stage-ingredients {
  margin-top: 12px;
  font-size: 13px;
  color: var(--paper);
  padding: 8px 10px;
  background: rgba(255, 250, 235, 0.06);
  border-radius: var(--radius-sm);
}

.stage-pack {
  margin-top: 18px;
  padding: 14px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  text-align: center;
}

.stage-pack img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 750 / 447;
  object-fit: contain;
  margin: 0 auto;
}

.stage-pack img[hidden] {
  display: none;
}

.stage-pack figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}

.stage-cta {
  margin-top: 16px;
  width: 100%;
  color: var(--gold-light);
  border-color: rgba(235, 201, 130, 0.55);
}

.stage-cta:hover {
  background: rgba(235, 201, 130, 0.12);
}

/* ==========================================================================
   11 / 12 / 13 Shared Synced Picker Header
   ========================================================================== */
.pair-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pick {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-muted);
}

.theme-olive .pick {
  color: var(--paper-muted);
}

.pick-select-wrap {
  position: relative;
  display: inline-block;
}

.pick-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}

.pick select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  padding: 7px 34px 7px 12px;
  background: var(--paper-warm);
  color: var(--ink);
  border: 1px solid rgba(53, 44, 32, 0.32);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.theme-olive .pick select {
  background: var(--olive-deep);
  color: var(--paper);
  border-color: rgba(255, 250, 235, 0.35);
}

/* ==========================================================================
   11 食用方法：锅具水位刻度图示 + 三步法
   ========================================================================== */
.pot-panel {
  padding: 14px;
  background: var(--paper-warm);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
}

.pot-panel-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

#pot-diagram {
  width: 100%;
  height: auto;
  display: block;
}

.recipe-steps {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.recipe-steps article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 10px;
  padding: 14px;
  background: var(--paper-card);
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--active-rice);
}

.recipe-steps i {
  grid-row: span 2;
  font-family: var(--serif);
  font-style: normal;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.recipe-steps h3 {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

.recipe-steps p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ==========================================================================
   12 产品信息：墨绿活页规格单
   ========================================================================== */
.spec-folio {
  border-top: 1px solid rgba(255, 250, 235, 0.35);
  border-bottom: 1px solid rgba(255, 250, 235, 0.35);
  background: rgba(255, 250, 235, 0.04);
  padding: 4px 14px;
}

.spec-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-dark);
}

.spec-list div:last-child {
  border-bottom: 0;
}

.spec-list dt {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-light);
}

.spec-list dd {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
}

/* ==========================================================================
   13 营养成分：横向 NRV 条形图 + 五款对比 + 标准表格
   ========================================================================== */
.nrv-chart {
  padding: 16px 14px;
  background: var(--paper-warm);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
}

.nrv-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.nrv-chart-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.nrv-scale-note {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.nrv-bars {
  display: grid;
  gap: 12px;
}

.nrv-bar-row {
  display: grid;
  gap: 5px;
}

.nrv-bar-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13.5px;
}

.nrv-bar-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.nrv-bar-meta span {
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.nrv-bar-meta em {
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
  margin-left: 8px;
}

.nrv-track {
  position: relative;
  height: 12px;
  background: rgba(53, 44, 32, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.nrv-track-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    90deg,
    transparent calc(33.33% - 1px),
    rgba(53, 44, 32, 0.12) calc(33.33% - 1px),
    rgba(53, 44, 32, 0.12) 33.33%,
    transparent 33.33%,
    transparent calc(66.66% - 1px),
    rgba(53, 44, 32, 0.12) calc(66.66% - 1px),
    rgba(53, 44, 32, 0.12) 66.66%,
    transparent 66.66%
  );
  pointer-events: none;
}

.nrv-fill {
  position: relative;
  height: 100%;
  background: var(--active-rice);
  border-radius: 2px;
  transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Five-rice comparison panel */
.compare-box {
  margin-top: 18px;
  padding: 16px 14px;
  background: var(--paper-card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
}

.compare-head {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.compare-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.compare-tab {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid rgba(53, 44, 32, 0.24);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--paper);
}

.compare-tab[aria-pressed="true"] {
  background: var(--olive);
  color: var(--paper);
  border-color: var(--olive);
}

.compare-list {
  display: grid;
  gap: 8px;
}

.compare-row {
  display: grid;
  grid-template-columns: 88px 1fr 78px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-align: left;
  width: 100%;
}

.compare-row.is-active {
  background: var(--paper-warm);
  border-color: var(--gold);
}

.compare-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.compare-track {
  height: 9px;
  background: rgba(53, 44, 32, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.compare-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.35s ease;
}

.compare-val {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Standard Nutrition Table */
.nutri-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

.nutri-table th,
.nutri-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--line-light);
  text-align: left;
}

.nutri-table thead th {
  background: var(--olive);
  color: var(--paper);
  font-weight: 600;
  font-size: 13px;
}

.nutri-table td:nth-child(n+2),
.nutri-table th:nth-child(n+2) {
  text-align: right;
}

.nutri-table tbody th {
  font-weight: 600;
  color: var(--ink);
}

.nutri-table tbody tr:nth-child(even) {
  background: var(--paper-warm);
}

/* ==========================================================================
   14 关于溯源：全出血晨雾农人 + 三步流程图
   ========================================================================== */
.trace-flow-box {
  margin-top: 22px;
  padding: 16px 12px 14px;
  background: rgba(20, 17, 13, 0.72);
  border: 1px solid rgba(235, 201, 130, 0.32);
  border-radius: var(--radius-md);
}

.trace-flow-svg {
  width: 100%;
  height: auto;
  display: block;
}

.trace-flow-steps {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.trace-flow-steps li {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--paper);
  font-weight: 600;
}

.trace-flow-steps span {
  display: block;
  font-family: var(--serif);
  font-size: 11px;
  color: var(--gold-light);
  margin-bottom: 2px;
}

/* ==========================================================================
   15 产地故事二维码：二维码占位卡片
   ========================================================================== */
.qr-card {
  margin-top: 16px;
  padding: 20px 14px;
  background: var(--paper-card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
}

.qr-frame {
  position: relative;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(53, 44, 32, 0.22);
  border-radius: var(--radius-sm);
  text-align: center;
}

.qr-frame::before,
.qr-frame::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--gold);
  border-style: solid;
}

.qr-frame::before {
  top: -3px;
  left: -3px;
  border-width: 2px 0 0 2px;
}

.qr-frame::after {
  bottom: -3px;
  right: -3px;
  border-width: 0 2px 2px 0;
}

.qr-svg {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto;
}

.qr-placeholder-tag {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.qr-copy h2 {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.qr-copy p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.qr-copy .btn-outline {
  margin-top: 12px;
  color: var(--olive);
  border-color: var(--olive);
  min-height: 40px;
  padding: 6px 14px;
  font-size: 13px;
}

/* ==========================================================================
   16 品牌寄语：封底
   ========================================================================== */
.closing-wrap {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 92px;
}

.closing-wrap .chapter-mark {
  justify-content: center;
}

.closing-logo {
  display: inline-block;
  margin: 10px auto 0;
}

.closing-logo .brand-svg {
  width: 142px;
  height: 39px;
}

.closing-line {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(20px, 5.4vw, 24px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--paper);
}

.closing-line span {
  display: inline-block;
}

.closing-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: var(--paper-muted);
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.back-top-btn {
  margin-top: 18px;
  color: var(--gold-light);
  border-color: rgba(235, 201, 130, 0.45);
}

/* ==========================================================================
   Floating Bottom CTA (Appears after Screen 01)
   ========================================================================== */
.float-cta-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

body.show-float-cta .float-cta-wrap {
  opacity: 1;
  transform: translateY(0);
}

body.modal-open .float-cta-wrap {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.float-cta {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 24px;
  background: var(--brown);
  color: var(--paper);
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.float-cta:hover {
  background: var(--olive);
}

/* ==========================================================================
   Accessible Custom Modal Drawer (TOC + Certificate + Traceability Guide)
   Works in all browsers & WeChat WebView without native <dialog> quirks
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  transform: translateZ(0);
  background: rgba(26, 20, 13, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  max-height: 86dvh;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-light);
  background: var(--paper);
}

.modal-head h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper-warm);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 14px 16px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.toc-list {
  display: grid;
  gap: 2px;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-light);
  font-size: 14.5px;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.toc-link:hover {
  background: var(--paper-warm);
}

.toc-link.is-current {
  background: var(--paper-warm);
  font-weight: 700;
}

.toc-num {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  width: 24px;
  flex-shrink: 0;
}

.cert-full {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-light);
}

.trace-modal-copy {
  display: grid;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}

.trace-domain-box {
  padding: 10px 12px;
  background: var(--paper-warm);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--olive);
  word-break: break-all;
}

/* ==========================================================================
   Desktop Side-Wing Refinement (>= 521px)
   ========================================================================== */
@media (min-width: 521px) {
  .photo-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    box-shadow: inset 18px 0 24px -10px rgba(20, 26, 20, 0.85),
                inset -18px 0 24px -10px rgba(20, 26, 20, 0.85);
  }
}

/* ==========================================================================
   Reduced Motion Respect
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .nrv-fill,
  .compare-fill,
  .float-cta-wrap,
  .swatch-btn,
  .toc-pill,
  .btn-primary,
  .btn-outline {
    transition: none !important;
  }
}
