/* ------------------------------------------------------------------
   今天吃什么 · 一周食帖
   styles.css — 纸本食堂 / 菜单册的视觉系统
   ------------------------------------------------------------------ */

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

:root {
  --paper: #E8DDC9;
  --sheet: #F7F1E4;
  --sheet-2: #FCF8EF;
  --ink: #241E18;
  --ink-2: #4E453B;
  --ink-3: #8C7E6D;
  --seal: #AE3A2C;
  --olive: #5B6A4C;
  --gold: #B08434;
  --rule: rgba(36, 30, 24, .15);
  --rule-2: rgba(36, 30, 24, .34);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --num: Georgia, "Times New Roman", "Songti SC", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 80% at 12% 0%, #FBF4E6 0%, rgba(251, 244, 230, 0) 58%),
    radial-gradient(90% 70% at 92% 100%, #DDCDB2 0%, rgba(221, 205, 178, 0) 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.55'/></svg>");
}

::selection { background: var(--seal); color: var(--sheet); }

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--sheet);
  overflow: hidden;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, .5),
    inset -1px 0 0 rgba(54, 40, 24, .07),
    0 1px 0 rgba(54, 40, 24, .1),
    0 40px 90px -40px rgba(60, 45, 25, .55);
}

.app::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: .28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.5'/></svg>");
}

/* 桌面端的旁注 */
.rail {
  display: none;
  position: fixed;
  left: calc(50% - 316px);
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: center;
  gap: 22px;
  color: rgba(36, 30, 24, .34);
  z-index: 2;
  user-select: none;
}
.rail-text {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .6em;
  padding-left: .6em;
}
.rail-rule { width: 1px; height: 90px; background: rgba(36, 30, 24, .18); }
.rail-seal {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(174, 58, 44, .55);
  color: rgba(174, 58, 44, .75);
  font-family: var(--serif);
  font-size: 12px;
  display: grid;
  place-items: center;
}
@media (min-width: 1000px) {
  .rail { display: flex; }
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(252, 248, 239, .9), rgba(247, 241, 228, 0));
}
.seal-mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--seal);
  color: var(--sheet-2);
  font-family: var(--serif);
  font-size: 14px;
  display: grid;
  place-items: center;
  transform: rotate(-5deg);
  box-shadow:
    inset 0 0 0 2px rgba(247, 241, 228, .22),
    0 2px 4px rgba(60, 30, 20, .18);
}
.brand { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-cn { font-family: var(--serif); font-size: 15px; letter-spacing: .18em; }
.brand-en {
  font-family: var(--num);
  font-size: 8px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.top-date {
  margin-left: auto;
  display: flex;
  gap: 7px;
  font-family: var(--num);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .1em;
}
.top-date span:last-child { color: var(--ink-2); }

/* ---------------- 通用文字 ---------------- */
.eyebrow {
  margin: 0 0 20px;
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--seal);
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: .04em;
}
.lead {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--rule-2);
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-2);
}
.intro { padding: 32px 24px 26px; }

/* ---------------- 动效 ---------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 100%); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes stampPress {
  0% { transform: scale(1.18) rotate(-9deg); opacity: .55; }
  35% { transform: scale(1) rotate(-3deg); opacity: 1; }
  70% { transform: scale(1) rotate(-3deg); opacity: 1; }
  100% { transform: scale(1.04) rotate(-3deg); opacity: .82; }
}
@keyframes dayFill {
  0%, 18% { background: var(--rule-2); }
  46%, 100% { background: var(--seal); }
}
.animate-in { animation: rise .72s var(--ease) both; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }

/* ---------------- 偏好向导 ---------------- */
.wizard { padding: 0 24px 150px; }
.wizard-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0 16px;
  border-top: 1px solid var(--rule);
}
.wizard-dots { display: flex; gap: 6px; align-items: center; }
.wdot {
  width: 20px;
  height: 3px;
  background: var(--rule-2);
  transition: .45s var(--ease);
}
.wdot.is-done { background: var(--ink); }
.wdot.is-now { width: 34px; background: var(--seal); }
.wizard-count {
  margin-left: auto;
  font-family: var(--num);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--ink-3);
}
.step-head { display: flex; gap: 14px; margin: 16px 0 24px; }
.step-no {
  font-family: var(--num);
  font-size: 34px;
  line-height: .95;
  color: rgba(36, 30, 24, .22);
}
.step-title {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .05em;
}
.step-hint { margin: 0; font-size: 12px; line-height: 1.7; color: var(--ink-3); }

.tag-group { margin-bottom: 20px; }
.tag-group-name {
  position: relative;
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tag-group-name::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: .22s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--sheet-2);
}
.chip.is-on .chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sheet-2);
  opacity: .8;
}
.chip--allergy.is-on { background: var(--seal); border-color: var(--seal); }
.chip--none {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  border-style: dashed;
  color: var(--ink-3);
  font-size: 12px;
}
.chip--none.is-on { color: var(--ink); border-color: var(--ink); border-style: solid; }
.none-row { margin-bottom: 10px; }

.wizard-actions {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100%);
  display: flex;
  gap: 10px;
  padding: 14px 24px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(247, 241, 228, .82), var(--sheet) 55%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  z-index: 30;
}

/* ---------------- 按钮 ---------------- */
.btn {
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: .16em;
  padding: 14px 20px;
  cursor: pointer;
  transition: .24s var(--ease);
}
.btn:active { transform: scale(.985); }
.btn--primary { flex: 1; background: var(--ink); color: var(--sheet-2); }
.btn--primary:hover { background: #100d0a; }
.btn--primary:disabled { opacity: .3; cursor: not-allowed; }
.btn--primary:disabled:hover { background: var(--ink); }
.btn--ghost { min-width: 96px; border-color: var(--rule-2); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------------- 待生成 ---------------- */
.taste-card {
  position: relative;
  margin: 0 24px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.taste-label {
  position: absolute;
  top: -8px;
  right: 0;
  padding-left: 10px;
  background: var(--sheet);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--ink-3);
}
.taste-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 7px 0;
}
.taste-key {
  flex: none;
  width: 30px;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--ink-3);
}
.taste-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chip {
  padding: 3px 8px;
  border: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.mini-chip.is-like { border-color: rgba(91, 106, 76, .45); color: var(--olive); }
.mini-chip.is-avoid { border-color: rgba(176, 132, 52, .45); color: #8A6420; }
.mini-chip.is-allergy { background: var(--seal); border-color: var(--seal); color: var(--sheet-2); }
.taste-empty { font-size: 11px; color: rgba(36, 30, 24, .3); letter-spacing: .1em; }

.gen-area { padding: 36px 24px 64px; }
.gen-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 18px;
  border: 0;
  background: var(--ink);
  color: var(--sheet-2);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 20px 38px -22px rgba(36, 30, 24, .85);
  transition: .3s var(--ease);
}
.gen-btn::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(247, 241, 228, .16);
  pointer-events: none;
}
.gen-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: skewX(-18deg);
  transition: left .7s var(--ease);
}
.gen-btn:hover::after { left: 120%; }
.gen-btn:active { transform: translateY(1px); }
.gen-seal {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--seal);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  box-shadow: inset 0 0 0 2px rgba(247, 241, 228, .18);
}
.gen-copy { display: flex; flex-direction: column; gap: 5px; }
.gen-title { font-family: var(--serif); font-size: 20px; letter-spacing: .16em; }
.gen-sub { font-size: 9.5px; letter-spacing: .24em; color: rgba(247, 241, 228, .55); }
.gen-arrow {
  margin-left: auto;
  font-family: var(--num);
  font-size: 20px;
  transition: transform .3s var(--ease);
}
.gen-btn:hover .gen-arrow { transform: translateX(5px); }
.fineprint {
  margin: 16px 0 0;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: .1em;
  color: var(--ink-3);
  text-align: center;
}

/* ---------------- 首屏下一顿 ---------------- */
.hero { padding: 24px 22px 28px; border-bottom: 1px solid var(--rule); }
.frame {
  position: relative;
  padding: 9px;
  background: var(--sheet-2);
  border: 1px solid var(--rule);
  transform: rotate(-.55deg);
  box-shadow: 0 16px 34px -22px rgba(70, 50, 30, .65);
}
.frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.96) contrast(1.02) brightness(1.01);
  animation: fadeIn .9s var(--ease) both;
}
.frame-tag {
  position: absolute;
  top: -10px;
  left: 16px;
  padding: 5px 11px;
  background: var(--seal);
  color: var(--sheet-2);
  font-size: 10px;
  letter-spacing: .28em;
  box-shadow: 0 4px 10px -4px rgba(80, 20, 10, .5);
}
.hero-copy { padding: 24px 2px 0; }
.kicker {
  margin: 0 0 11px;
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--ink-3);
}
.hero-dish {
  margin: 0;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .05em;
}
.hero-side {
  margin: 13px 0 0;
  font-size: 12.5px;
  letter-spacing: .07em;
  color: var(--ink-2);
  line-height: 1.7;
}
.link-more {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 22px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--rule-2);
  background: none;
  color: var(--ink-2);
  font-size: 11px;
  letter-spacing: .22em;
  cursor: pointer;
  transition: .25s;
}
.link-more:hover { color: var(--seal); border-color: var(--seal); }
.link-arrow { font-family: var(--num); font-size: 12px; }

/* ---------------- 本周菜单 ---------------- */
.week { padding-top: 28px; }
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px 16px;
}
.section-no {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--rule-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 10px;
  color: var(--seal);
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .18em;
}
.section-range {
  margin-left: auto;
  font-family: var(--num);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-3);
}

.days { border-top: 1px solid var(--ink); }
.day { border-bottom: 1px solid var(--rule); }
.day.is-past { opacity: .5; }
.day-head {
  width: 100%;
  display: grid;
  grid-template-columns: 46px 46px 1fr 16px;
  gap: 8px;
  align-items: center;
  padding: 13px 22px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.day-idx { font-family: var(--num); font-size: 24px; line-height: 1; letter-spacing: -.02em; }
.day-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.day-name { font-size: 11px; letter-spacing: .16em; color: var(--ink-2); }
.day-name em {
  margin-left: 7px;
  padding: 1px 3px;
  border: 1px solid currentColor;
  font-style: normal;
  font-size: 8px;
  letter-spacing: .1em;
  color: var(--seal);
  vertical-align: 1px;
}
.day-date { font-family: var(--num); font-size: 9px; letter-spacing: .12em; color: var(--ink-3); }
.day-note {
  min-width: 0;
  max-width: none;
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-plus { position: relative; width: 13px; height: 13px; }
.day-plus::before,
.day-plus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--ink-2);
  transition: transform .4s var(--ease);
}
.day-plus::after { transform: rotate(90deg); }
.day.is-open .day-plus::after { transform: rotate(0deg); }

.day-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .48s var(--ease);
}
.day-body > .day-inner { overflow: hidden; min-height: 0; }
.day.is-open .day-body { grid-template-rows: 1fr; }
.day-inner { padding: 0 22px 12px; }
.meal {
  display: grid;
  grid-template-columns: 36px 44px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px dashed var(--rule);
}
.meal:first-child { border-top: 0; }
.meal-key {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--ink);
}
.meal-time {
  padding-top: 3px;
  font-family: var(--num);
  font-size: 9px;
  letter-spacing: .06em;
  color: rgba(36, 30, 24, .35);
}
.meal-dishes {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dish {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-2);
  transition: .2s;
}
.dish + .dish::before {
  content: "·";
  margin-right: 1px;
  color: rgba(36, 30, 24, .28);
}
.dish-flav { font-size: 9.5px; letter-spacing: .06em; color: rgba(36, 30, 24, .3); }
.dish-new {
  padding: 0 2px;
  border: 1px solid var(--seal);
  border-radius: 2px;
  font-size: 8px;
  line-height: 1.5;
  color: var(--seal);
}
.pick-ring { display: none; }

/* 选择模式 */
.is-selecting .dish {
  margin: 0 -6px;
  padding: 5px 7px;
  border: 1px solid transparent;
  cursor: pointer;
}
.is-selecting .dish:hover { background: rgba(36, 30, 24, .04); border-color: var(--rule); }
.is-selecting .dish + .dish::before { display: none; }
.is-selecting .dish .pick-ring {
  display: block;
  margin-left: 3px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--rule-2);
  border-radius: 50%;
  transition: .2s var(--ease);
}
.is-selecting .dish.is-picked { color: var(--seal); }
.is-selecting .dish.is-picked .pick-ring {
  background: var(--seal);
  border-color: var(--seal);
  transform: scale(1.06);
}
.is-selecting .dish.is-picked .pick-ring::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--sheet-2);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}
.is-selecting .dish.is-picked .dish-flav { color: rgba(174, 58, 44, .55); }
.is-selecting .week { padding-bottom: 120px; }

.select-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 22px 14px;
  padding: 11px 13px;
  border-left: 2px solid var(--seal);
  background: rgba(174, 58, 44, .06);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--ink-2);
}
.select-banner button {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--seal);
  font-size: 11px;
  letter-spacing: .14em;
  cursor: pointer;
}

/* ---------------- 口味回执 ---------------- */
.feedback { margin-top: 6px; padding: 32px 22px 6px; border-top: 1px solid var(--rule); }
.feedback .section-head { padding: 0 0 14px; }
.feedback-q {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .06em;
}
.feedback-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fb {
  padding: 15px 4px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  cursor: pointer;
  transition: .24s var(--ease);
}
.fb:hover { border-color: var(--ink); color: var(--ink); }
.fb.is-chosen { background: var(--ink); border-color: var(--ink); color: var(--sheet-2); }
.fb--neg { color: var(--seal); border-color: rgba(174, 58, 44, .38); }
.fb--neg:hover { background: var(--seal); border-color: var(--seal); color: var(--sheet-2); }
.fb--neg.is-chosen { background: var(--seal); border-color: var(--seal); color: var(--sheet-2); }

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 22px 34px;
  font-size: 9.5px;
  letter-spacing: .24em;
  color: var(--ink-3);
}
.foot-seal {
  width: 20px;
  height: 20px;
  border: 1px solid var(--rule-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 9px;
  color: var(--seal);
  letter-spacing: 0;
}

/* ---------------- 底部操作 ---------------- */
.action-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 50;
  width: min(430px, 100%);
  padding: 13px 22px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ink);
  background: rgba(247, 241, 228, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -24px 44px -26px rgba(50, 35, 20, .5);
  animation: slideUp .38s var(--ease) both;
}
.sheet-count { margin-bottom: 10px; font-size: 11px; letter-spacing: .2em; color: var(--ink-3); }
.sheet-count b { font-family: var(--num); font-size: 13px; color: var(--ink); letter-spacing: 0; }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .btn { flex: 1; padding: 13px 6px; font-size: 12.5px; }

/* ---------------- 生成中 ---------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--sheet);
  animation: fadeIn .3s both;
}
.loader::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .3;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.5'/></svg>");
}
.loader-seal {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--seal);
  color: var(--sheet-2);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 30px;
  box-shadow: inset 0 0 0 4px rgba(247, 241, 228, .18);
  animation: stampPress 1.5s var(--ease) infinite;
}
.loader-text {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2;
  letter-spacing: .12em;
  text-align: center;
}
.loader-text span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--ink-3);
}
.loader-days { display: flex; gap: 9px; z-index: 2; }
.loader-days span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rule-2);
  animation: dayFill 1.6s ease-in-out infinite both;
}

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(30, 24, 18, .44);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn .24s both;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 336px;
  padding: 32px 26px 24px;
  background: var(--sheet);
  border: 1px solid rgba(36, 30, 24, .2);
  box-shadow: 0 44px 80px -34px rgba(0, 0, 0, .7);
  text-align: center;
  animation: pop .4s var(--ease) both;
}
.modal::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(36, 30, 24, .08);
  pointer-events: none;
}
.modal-seal {
  position: absolute;
  top: -19px;
  left: 50%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--seal);
  color: var(--sheet-2);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 15px;
  transform: translateX(-50%) rotate(-7deg);
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .55);
}
.modal-title {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .06em;
}
.modal-text { margin: 0 0 24px; font-size: 12px; line-height: 1.8; color: var(--ink-3); }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; padding: 13px 8px; }

/* ---------------- 提示 ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 80;
  max-width: 82vw;
  padding: 11px 18px;
  background: var(--ink);
  color: var(--sheet-2);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 小屏 / 动效偏好 ---------------- */
@media (max-width: 380px) {
  .display { font-size: 34px; }
  .hero-dish { font-size: 34px; }
  .day-note { display: none; }
  .meal { grid-template-columns: 32px 38px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
