/* =========================================================
   小雪 · 节气养生笺
   Design tokens / layout / components
   ========================================================= */

/* ---------- 字体（本地子集，无外链） ---------- */
@font-face {
  font-family: 'XiaoxueSong';
  src: url('../assets/fonts/noto-serif.woff2') format('woff2-variations'),
       url('../assets/fonts/noto-serif.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'XiaoxueBrush';
  src: url('../assets/fonts/ma-shan-zheng.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c2734;
  --ink-2: #41505f;
  --ink-3: #7b8894;
  --paper: #f8f6f1;
  --paper-2: #eef3f7;
  --card: #ffffff;
  --line: rgba(28, 39, 52, .11);
  --gold: #a98a5c;
  --gold-soft: rgba(169, 138, 92, .38);
  --cinnabar: #a83a33;
  --cinnabar-2: #c14a41;
  --night: #101c2c;

  --serif: 'XiaoxueSong', 'Songti SC', 'STSong', 'SimSun', 'Source Han Serif SC', 'Noto Serif CJK SC', serif;
  --brush: 'XiaoxueBrush', 'XiaoxueSong', 'Songti SC', 'STKaiti', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  --pad: 26px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
  margin: 0;
  background: #0b1420;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .02em;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 560px) {
  body {
    background:
      radial-gradient(120% 80% at 50% 0%, #1b2f45 0%, #0b1420 60%);
    padding: 0;
  }
}

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

.stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
  min-height: 100vh;
}
@media (min-width: 560px) {
  .stage { box-shadow: 0 0 80px rgba(0, 0, 0, .55); }
}

/* 纸纹 */
.grain {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: normal;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}

/* 顶部进度 */
.progress {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 2px;
  z-index: 50;
  background: rgba(255, 255, 255, .08);
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--cinnabar));
  transition: width .18s linear;
}

/* =========================================================
   封面
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  max-height: 920px;
  overflow: hidden;
  background: #0b1622;
}
.hero-bg {
  position: absolute;
  inset: -36px;
  background: url("../assets/img/hero-bg.jpg") center / cover no-repeat, #10202f;
  transform: scale(1.06);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(130% 80% at 50% 4%, rgba(9, 20, 33, .10), rgba(9, 20, 33, .34) 52%, rgba(9, 20, 33, .72) 100%),
    linear-gradient(180deg, rgba(7, 16, 27, .66) 0%, rgba(7, 16, 27, .18) 26%, rgba(7, 16, 27, .38) 58%, rgba(7, 16, 27, .88) 100%);
}
.hero-inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: calc(env(safe-area-inset-top, 0px) + 26px) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 26px);
}
.hero-inner > * { flex-shrink: 0; }

.hero-film {
  margin: 24px 0 0;
  padding: 0;
  animation: filmIn 1.15s cubic-bezier(.2, .8, .25, 1) .12s both;
}
@keyframes filmIn {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.film-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 240, 250, .22);
  background: #0a1420;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .45);
}
.film-wrap::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(226, 240, 250, .10);
  pointer-events: none;
  z-index: 3;
}
.film-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a1420;
}
.film-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: linear-gradient(180deg, rgba(8, 16, 26, .02) 42%, rgba(8, 16, 26, .46) 100%);
  color: #fff;
  transition: opacity .45s ease, visibility .45s;
}
.film-cover.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.film-cover.is-loading { pointer-events: none; }
.film-cover.is-loading .film-play i { opacity: 0; }
.film-cover.is-loading .film-play::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .18);
  border-top-color: #fff;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.film-play {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .66);
  background: rgba(10, 20, 32, .32);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
}
.film-play::before {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  animation: playPulse 2.8s ease-out infinite;
}
@keyframes playPulse {
  0% { transform: scale(.86); opacity: .75; }
  100% { transform: scale(1.24); opacity: 0; }
}
.film-play i {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #f6fbfe;
}
.film-cover-tip {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 5px 11px;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: rgba(240, 248, 253, .9);
  background: rgba(8, 16, 26, .52);
  border: 1px solid rgba(226, 240, 250, .16);
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.film-buffering {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(8, 16, 26, .72);
  border: 1px solid rgba(226, 240, 250, .16);
  border-radius: 20px;
  color: #eaf4fb;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .08em;
  backdrop-filter: blur(4px);
}
.film-buffering[hidden] { display: none; }
.film-buffering i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}

.film-cap {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .16em;
  color: rgba(214, 231, 243, .62);
}
.film-cap i {
  width: 16px;
  height: 1px;
  background: rgba(214, 231, 243, .28);
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}
.seal-line {
  display: inline-block;
  padding: 7px 9px;
  border: 1px solid rgba(226, 240, 250, .34);
  color: #e4eef7;
  font-size: 10px;
  letter-spacing: .26em;
  line-height: 1;
  text-indent: .26em;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(2px);
}
.hero-year {
  display: none;
}

.hero-main {
  margin-top: 30px;
}
.hero-title {
  margin: 0;
  font-family: var(--brush);
  font-weight: 400;
  font-size: clamp(74px, 23vw, 112px);
  line-height: .92;
  letter-spacing: .04em;
  color: #f6fbfe;
  text-shadow: 0 8px 34px rgba(3, 12, 22, .55);
  display: flex;
}
.t-char {
  display: inline-block;
  animation: charRise 1.3s cubic-bezier(.2, .8, .25, 1) both;
}
.t-char:nth-child(2) { animation-delay: .14s; margin-left: .02em; transform: translateY(.06em); }
@keyframes charRise {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to { opacity: 1; filter: blur(0); }
}

.hero-sub {
  margin: 12px 0 0;
  font-size: 13px;
  letter-spacing: .38em;
  text-indent: .4em;
  color: rgba(233, 243, 251, .84);
  animation: fadeUp 1s .5s both;
}
.hero-sub .dot { color: var(--gold); margin: 0 .2em; }
.hero-verse {
  margin: 20px 0 0;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(219, 234, 245, .46);
  animation: fadeUp 1s .72s both;
}

.hero-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}
/* 「小雪」下方：农历 + 公历日期统一成一行 */
.hero-date {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: rgba(224, 238, 249, .66);
  animation: fadeUp 1s .46s both;
}
.hero-date .hd-lunar {
  letter-spacing: .16em;
  color: rgba(236, 245, 252, .88);
}
.hero-date .hd-sep {
  width: 1px;
  height: 11px;
  background: rgba(219, 234, 245, .28);
}
.hero-date .hd-dot {
  color: var(--gold);
  margin: 0 .45em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px 11px 22px;
  border: 1px solid rgba(230, 243, 252, .45);
  background: rgba(255, 255, 255, .07);
  color: #f0f8fe;
  font-size: 12px;
  letter-spacing: .3em;
  text-indent: .3em;
  backdrop-filter: blur(3px);
  animation: fadeUp 1s .9s both, ctaGlow 3.4s 2s ease-in-out infinite;
}
.hero-cta:active { transform: scale(.97); }
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 248, 254, 0); }
  50% { box-shadow: 0 0 24px 0 rgba(240, 248, 254, .16); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  transition: opacity .7s ease;
}

/* =========================================================
   章节通用
   ========================================================= */
.scroll-body {
  position: relative;
  z-index: 3;
  background: var(--paper);
}

.chapter {
  position: relative;
  padding: 72px var(--pad) 66px;
  background: var(--paper);
}
.chapter-alt { background: var(--paper-2); }

.chapter + .chapter { border-top: 1px solid rgba(28, 39, 52, .05); }

.chapter-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.chapter-num {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  color: var(--cinnabar);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
  background: rgba(255, 255, 255, .55);
}
.chapter-title {
  margin: 0;
  font-size: 25px;
  clip-path: inset(-12% 0 108% 0);
  transition: clip-path 1.05s cubic-bezier(.22, .9, .24, 1) .06s;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
  color: var(--ink);
}
.chapter-en {
  margin: 7px 0 0;
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: .26em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.chapter-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-soft), rgba(169, 138, 92, 0));
  margin-left: 4px;
}

[data-reveal].is-in .chapter-title { clip-path: inset(-12% 0 -12% 0); }

.lead {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--ink-2);
}
.lead-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -12px 0 22px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--cinnabar);
  opacity: .82;
}
.lead-hint::before {
  content: '';
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.body-text {
  margin: 22px 0 0;
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--ink-2);
}
.section-note {
  margin: 30px 0 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-note::before, .section-note::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.source {
  margin: 22px 0 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--ink-3);
  opacity: .8;
}

/* 引文 */
.quote {
  margin: 26px 0;
  padding: 22px 6px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.quote p {
  margin: 0;
  font-size: 15.5px;
  line-height: 2.15;
  letter-spacing: .05em;
  color: var(--ink);
}
.quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ink-3);
}

/* 诗句小卡 */
.verse-card {
  margin-top: 26px;
  padding: 18px 18px 18px 20px;
  background: rgba(255, 255, 255, .72);
  border-left: 2px solid var(--cinnabar);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.verse-card p {
  margin: 0;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.verse-card span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-3);
}

/* =========================================================
   手风琴
   ========================================================= */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 21px 2px;
  background: none;
  border: 0;
  text-align: left;
}
.acc-num {
  color: var(--cinnabar);
  font-size: 14px;
  line-height: 1;
  flex: none;
}
.acc-title {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--ink);
}
.acc-icon {
  margin-left: auto;
  width: 11px;
  height: 11px;
  position: relative;
  flex: none;
}
.acc-icon::before, .acc-icon::after {
  content: '';
  position: absolute;
  background: var(--ink-3);
  transition: transform .35s ease, opacity .35s ease;
}
.acc-icon::before { left: 0; top: 5px; width: 11px; height: 1px; }
.acc-icon::after { left: 5px; top: 0; width: 1px; height: 11px; }
.acc-item.is-open .acc-icon::after { transform: scaleY(0); opacity: 0; }
.acc-item.is-open .acc-title { color: var(--cinnabar); }

.acc-body {
  height: 0;
  overflow: hidden;
  transition: height .42s cubic-bezier(.3, .8, .3, 1);
}
.acc-inner { padding: 0 2px 22px 26px; }
.acc-inner p {
  margin: 0;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-2);
}
.acc-tip {
  margin-top: 10px !important;
  font-size: 11.5px !important;
  color: var(--cinnabar) !important;
  letter-spacing: .02em;
  opacity: .9;
}

/* =========================================================
   打卡
   ========================================================= */
.check-panel {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(28, 39, 52, .07);
  border-radius: 4px;
  padding: 18px 18px 6px;
  box-shadow: 0 12px 34px rgba(28, 48, 68, .06);
  overflow: hidden;
}
.check-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.ring {
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
}
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2.4; }
.ring-bg { stroke: rgba(28, 39, 52, .09); }
.ring-fg {
  stroke: var(--cinnabar);
  transition: stroke-dashoffset .5s cubic-bezier(.3, .8, .3, 1), opacity .3s;
  stroke-linecap: round;
  stroke-dasharray: 119.4;
  stroke-dashoffset: 119.4;
  transition: stroke-dashoffset .5s cubic-bezier(.3, .8, .3, 1);
}
.ring-txt {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--ink-2);
}
.check-title { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.check-sub {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.check-reset {
  margin-left: auto;
  flex: none;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 20px;
}
.check-reset:active { background: rgba(28, 39, 52, .04); }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { border-bottom: 1px dashed var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 15px 0;
  background: none;
  border: 0;
  text-align: left;
}
.tick {
  flex: none;
  margin-top: 3px;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(28, 39, 52, .22);
  border-radius: 50%;
  position: relative;
  transition: background .25s, border-color .25s, transform .25s;
}
.tick::after {
  content: '';
  position: absolute;
  left: 6px; top: 6px;
  width: 5px; height: 8px;
  border: solid #fff;
  border-width: 0 1.4px 1.4px 0;
  transform: rotate(42deg) scale(.4);
  opacity: 0;
  transition: opacity .2s, transform .25s;
}
.check-item.is-done .tick {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  transform: scale(1.04);
}
.check-item.is-done .tick::after { opacity: 1; transform: rotate(42deg) scale(1); }
.check-body b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--ink);
  line-height: 1.6;
  transition: color .25s;
}
.check-body em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.72;
  color: var(--ink-3);
  transition: opacity .25s;
}
.check-item.is-done .check-body b { color: var(--ink-3); }
.check-item.is-done .check-body em { opacity: .55; }

.check-done {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  padding: 18px 2px 14px;
  border-top: 1px dashed var(--line);
}
.check-done[hidden] { display: none; }
.check-done p {
  margin: 0;
  font-family: var(--sans);
  font-size: 10.5px;
  line-height: 1.85;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.stamp-done {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 58px;
  height: 58px;
  border: 2px solid var(--cinnabar);
  border-radius: 3px;
  color: var(--cinnabar);
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: .1em;
  opacity: 0;
  transform: scale(1.6) rotate(-14deg);
  pointer-events: none;
  transition: opacity .3s, transform .5s cubic-bezier(.2, 1.6, .4, 1);
  background: rgba(255, 255, 255, .55);
}
.stamp-done::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(168, 58, 51, .5);
  border-radius: 2px;
}
.stamp-done.is-show {
  opacity: .92;
  transform: scale(1) rotate(-12deg);
}

/* =========================================================
   食养
   ========================================================= */
.food-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.food-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 16px 14px;
  background: var(--card);
  border: 1px solid rgba(28, 39, 52, .07);
  border-radius: 3px;
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
  text-align: left;
}
.food-card:active { transform: scale(.985); }
.food-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-soft);
  border-radius: 2px;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .5);
  transition: color .3s, border-color .3s, background .3s;
}
.food-name {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .06em;
}
.food-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 9px;
  color: var(--ink-3);
  line-height: 1;
}
.food-card.is-active {
  border-color: rgba(168, 58, 51, .45);
  background: #fffaf8;
  box-shadow: 0 10px 26px rgba(168, 58, 51, .09);
}
.food-card.is-active .food-ico { color: var(--cinnabar); }
.food-card.is-active .food-tag {
  border-color: rgba(168, 58, 51, .4);
  color: var(--cinnabar);
}

.food-detail {
  margin-top: 16px;
  padding: 20px 20px 18px;
  background: var(--card);
  border-left: 2px solid var(--cinnabar);
  box-shadow: 0 10px 30px rgba(28, 48, 68, .05);
  transition: opacity .3s, transform .3s;
}
.food-detail.is-swap { opacity: 0; transform: translateY(6px); }
.fd-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.fd-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .1em;
}
.fd-nature {
  margin: 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--gold);
}
.fd-text {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-2);
}
.fd-how {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-2);
}
.fd-how span {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  background: rgba(168, 58, 51, .08);
  color: var(--cinnabar);
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: .08em;
  border-radius: 2px;
  vertical-align: 1px;
}

/* =========================================================
   小雪笺
   ========================================================= */
.wish-wrap { display: grid; gap: 22px; }
.field { display: block; position: relative; margin-bottom: 16px; }
.field-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--ink-3);
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  resize: none;
  -webkit-appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: #b6bfc6; }
.field input:focus, .field textarea:focus {
  border-color: rgba(168, 58, 51, .55);
  box-shadow: 0 0 0 3px rgba(168, 58, 51, .06);
}
.field-count {
  position: absolute;
  right: 10px;
  bottom: 9px;
  font-family: var(--sans);
  font-size: 9.5px;
  color: #b6bfc6;
}
.field-count i { font-style: normal; }

.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(135deg, #b3443b, #96322c);
  color: #fff;
  font-size: 14px;
  letter-spacing: .22em;
  text-indent: .22em;
  text-align: center;
  box-shadow: 0 12px 26px rgba(150, 50, 44, .26);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn-primary:active { transform: scale(.985); box-shadow: 0 6px 16px rgba(150, 50, 44, .22); }
.btn-ghost {
  display: block;
  padding: 13px 20px;
  border: 1px solid rgba(28, 39, 52, .18);
  background: #fff;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--ink-2);
}

.wish-preview { display: flex; justify-content: center; }
.wp-paper {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  padding: 20px 20px 18px;
  background: linear-gradient(180deg, #fdfcf7 0%, #f7f4ea 100%);
  border: 1px solid rgba(169, 138, 92, .34);
  box-shadow: 0 18px 40px rgba(28, 48, 68, .1), inset 0 0 0 1px rgba(255, 255, 255, .7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wp-paper::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(169, 138, 92, .18);
  pointer-events: none;
  z-index: 2;
}
.wp-seal {
  position: absolute;
  top: 16px; right: 15px;
  z-index: 3;
  writing-mode: vertical-rl;
  padding: 7px 3px;
  border: 1.5px solid var(--cinnabar);
  color: var(--cinnabar);
  font-size: 10px;
  letter-spacing: .16em;
  line-height: 1.1;
  border-radius: 1px;
  background: rgba(255, 255, 255, .35);
}
.wp-scene {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  z-index: 0;
  opacity: .95;
}
.wp-scene svg { width: 100%; height: 100%; }
.wp-scene::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(247, 244, 234, 0), #f9f7ef);
}
.wp-body {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding-top: 34%;
}
.wp-small {
  margin: 0;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .16em;
  color: #9a8a72;
}
.wp-title {
  margin: 4px 0 0;
  font-family: var(--brush);
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: .08em;
  color: #22303d;
}
.wp-wish {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: .02em;
  color: #3b4753;
  min-height: 1.9em;
  max-width: 88%;
  word-break: break-word;
}
.wp-sign {
  margin: 10px 0 0;
  text-align: right;
  font-size: 10px;
  color: #7d6a52;
  letter-spacing: .04em;
}
.wp-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 10px;
}
.wp-date {
  margin: 0;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .18em;
  color: #ad9c84;
}
.wp-stamp {
  flex: none;
  width: 46px;
  height: 46px;
  object-fit: contain;
  opacity: .94;
  z-index: 3;
}

/* =========================================================
   尾声
   ========================================================= */
.ending {
  position: relative;
  padding: 76px var(--pad) calc(env(safe-area-inset-bottom, 0px) + 42px);
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(96, 132, 163, .35), transparent 65%),
    linear-gradient(180deg, #16273a 0%, #101c2c 55%, #0b1420 100%);
  color: #dfeaf4;
  text-align: center;
  overflow: hidden;
}
.ending::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169, 138, 92, .5), transparent);
}
.ending-inner { position: relative; z-index: 2; }
.big-seal {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 82px;
  height: 82px;
  border: 1px solid #8d302a;
  border-radius: 2px;
  color: #fdf3f1;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: .1em;
  background: #a83a33;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
  transform: rotate(-3deg);
}
.big-seal::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(253, 243, 241, .26);
  border-radius: 1px;
}
.end-verse {
  margin: 30px 0 0;
  font-size: 17px;
  letter-spacing: .1em;
  color: #e8f1f8;
}
.end-verse-from {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .12em;
  color: rgba(214, 230, 242, .5);
}
.share-tip {
  margin: 34px auto 0;
  max-width: 290px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(214, 232, 245, .18);
  border-radius: 3px;
  background: rgba(255, 255, 255, .04);
}
.share-tip p {
  margin: 0;
  font-family: var(--sans);
  font-size: 10.5px;
  line-height: 1.6;
  color: rgba(219, 234, 245, .72);
  text-align: left;
}
.share-ico { flex: none; color: rgba(219, 234, 245, .6); display: flex; }
.end-org {
  margin: 38px 0 0;
  font-size: 12.5px;
  letter-spacing: .18em;
  color: rgba(226, 240, 250, .82);
}
.end-note {
  margin: 10px 0 0;
  font-family: var(--sans);
  font-size: 9.5px;
  line-height: 1.9;
  letter-spacing: .02em;
  color: rgba(206, 224, 238, .38);
}
.end-year {
  margin: 22px 0 0;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .34em;
  color: rgba(206, 224, 238, .3);
}

/* =========================================================
   弹层 / 提示
   ========================================================= */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.sheet[hidden] { display: none; }
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 26, .82);
  backdrop-filter: blur(4px);
}
.sheet-body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: sheetIn .4s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes sheetIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.sheet-img-wrap {
  background: #fff;
  padding: 8px;
  border-radius: 3px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.sheet-img-wrap img {
  width: 100%;
  display: block;
  border-radius: 2px;
}
.sheet-longtip {
  margin: 8px 0 2px;
  text-align: center;
  font-family: var(--sans);
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
.sheet-actions {
  display: flex;
  gap: 10px;
}
.sheet-actions .btn-ghost { flex: 1; }
.sheet-actions .btn-primary { flex: 1.4; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 14px);
  z-index: 200;
  max-width: 78%;
  padding: 10px 18px;
  background: rgba(14, 26, 40, .92);
  color: #eef6fc;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.6;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s, transform .28s;
  text-align: center;
  backdrop-filter: blur(6px);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   入场动画
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .85s cubic-bezier(.2, .7, .3, 1), transform .85s cubic-bezier(.2, .7, .3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* 小屏微调 */
@media (max-width: 360px) {
  :root { --pad: 20px; }
  .chapter-title { font-size: 22px; }
  .food-grid { gap: 10px; }
  .wp-paper { padding: 16px; }
  .hero-title { font-size: 64px; }
  .hero-film { margin-top: 18px; }
  .hero-cta { padding: 10px 15px 10px 17px; font-size: 11px; letter-spacing: .22em; }
  .hero-date { gap: 5px 9px; font-size: 11px; letter-spacing: .06em; }
}

/* ---------- 家庭医生提醒（封面 · 视频上方） ---------- */
.doctor-note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(140, 190, 155, .26);
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(58, 105, 78, .34), rgba(28, 62, 45, .16) 62%, rgba(16, 28, 44, .04));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 10px 26px rgba(5, 14, 24, .26);
  overflow: hidden;
  animation: fadeUp 1s .34s both;
}
.doctor-note::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(150, 200, 165, .85), rgba(80, 138, 102, .35));
}
.dn-seal {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #6f9f7d, #35604a 72%);
  color: #f1f7f1;
  font-family: var(--brush);
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}
.dn-body { flex: 1; min-width: 0; }
.dn-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #eaf3ea;
}
.dn-desc {
  margin: 2px 0 0;
  font-family: var(--sans);
  font-size: 10.5px;
  line-height: 1.6;
  color: rgba(214, 232, 216, .64);
}
.dn-mark {
  flex: none;
  padding: 3px 2px;
  border: 1px solid rgba(214, 148, 138, .42);
  border-radius: 3px;
  color: rgba(232, 178, 170, .9);
  font-family: var(--brush);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}

/* 提示条放回正文浅色纸面时，加 --paper 修饰即可 */
.doctor-note--paper {
  margin: 0;
  padding: 15px var(--pad) 16px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(28, 39, 52, .06);
  background: linear-gradient(100deg, #ecf4ed 0%, #f4f8f2 56%, #f8f6f1 100%);
  box-shadow: none;
  animation: none;
}
.doctor-note--paper::before {
  width: 3px;
  background: linear-gradient(180deg, #6f9a78, #2f5a45);
}
.doctor-note--paper .dn-seal {
  width: 36px;
  height: 36px;
  font-size: 19px;
  background: radial-gradient(circle at 34% 28%, #5b8a6b, #2f5a45 72%);
  box-shadow: 0 6px 14px rgba(47, 90, 69, .24);
}
.doctor-note--paper .dn-title { font-size: 14.5px; letter-spacing: .1em; color: #2f5a45; }
.doctor-note--paper .dn-desc { font-size: 11.5px; line-height: 1.65; color: rgba(47, 90, 69, .7); }
.doctor-note--paper .dn-mark { font-size: 10.5px; color: var(--cinnabar); border-color: rgba(168, 58, 51, .5); }

@media (max-width: 360px) {
  .doctor-note { padding: 9px 10px; gap: 9px; }
  .dn-desc { font-size: 10px; }
}

/* 矮屏（如 320x568 / 横屏手机）压缩封面纵向空间，避免内容挤压 */
@media (max-height: 640px) {
  .hero-inner { padding-top: 16px; padding-bottom: 16px; }
  .seal-line { padding: 5px 7px; font-size: 9px; letter-spacing: .2em; text-indent: .2em; }
  .doctor-note { margin-top: 10px; padding: 8px 10px; gap: 9px; }
  .dn-seal { width: 26px; height: 26px; font-size: 14px; }
  .dn-desc { font-size: 10px; }
  .hero-film { margin-top: 15px; }
  .hero-main { margin-top: 16px; }
  .hero-title { font-size: 56px; }
  .hero-date { margin-top: 10px; font-size: 11.5px; gap: 5px 9px; }
  .hero-sub { margin-top: 9px; font-size: 11px; letter-spacing: .3em; text-indent: .3em; }
  .hero-verse { margin-top: 10px; font-size: 10px; }
  .hero-cta { padding: 9px 16px 9px 18px; font-size: 11px; }
}
