/* ============================================
   手账厨房风 · 主题层（预览用）
   确认效果后并入 style.css，此文件不改动网站默认外观
   ============================================ */
:root {
  --orange: #f59e0b;        /* 南瓜橙 */
  --orange-dark: #d97706;
  --tomato: #e05d3d;        /* 番茄红 */
  --tomato-dark: #b5432a;
  --tomato-soft: #fce8e0;
  --shadow: 0 3px 14px rgba(107, 78, 40, .09), 0 1px 3px rgba(107, 78, 40, .06);
  --font-hand: "LXGW WenKai", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 方格桌布纹理（约 3% 透明度，若有似无） */
body {
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(0deg, rgba(122, 100, 70, .03) 0, rgba(122, 100, 70, .03) 1px, transparent 1px, transparent 26px),
    repeating-linear-gradient(90deg, rgba(122, 100, 70, .03) 0, rgba(122, 100, 70, .03) 1px, transparent 1px, transparent 26px);
}

/* 标题带一点手写温度 */
h1, h2, h3, h4, .logo, .r-name, .di-name, .d-name, .flow-name,
.fridge-main b, .rec-top b, .stat b, .ci-text b {
  font-family: var(--font-hand);
  letter-spacing: .3px;
}

/* 纸质便签卡片：暖棕色调阴影 + 微暖描边 */
.card { box-shadow: var(--shadow); border-color: #f0e7d8; }
.modal { box-shadow: 0 14px 38px rgba(80, 58, 30, .2); }

/* 番茄红点缀：徽章 / 标签 hover */
.badge.undone { background: var(--tomato-soft); color: var(--tomato-dark); }
.badge.ord { background: var(--tomato-soft); color: var(--tomato-dark); }
.chip:hover { border-color: var(--tomato); color: var(--tomato-dark); }
.tag.pick:hover { border-color: var(--tomato); color: var(--tomato-dark); }

/* 按钮 hover 轻微上浮 2px + 阴影加深 */
.btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(107, 78, 40, .18); }
.btn:not(:disabled):active { transform: translateY(0); box-shadow: none; }
.iconbtn:hover { transform: translateY(-1px); }
.chip { transition: .15s; }
.chip:hover { transform: translateY(-1px); }

/* 橙色系元素同步南瓜橙 */
.avatar { background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.basket-fab { box-shadow: 0 8px 20px rgba(245, 158, 11, .4); }
.tabbar .fab { box-shadow: 0 6px 16px rgba(245, 158, 11, .45); }

/* ============================================
   ② 首页顶部：今日厨房欢迎区 + CSS 炖锅蒸汽
   ============================================ */
.hero-kitchen { padding: 22px 26px; }
.hk-hello { font-size: 14px; }
.hk-title {
  font-family: var(--font-hand);
  font-size: 30px; line-height: 1.25; letter-spacing: 1px; margin: 3px 0 7px;
}
.hk-sub {
  font-family: var(--font-hand);
  font-size: 15.5px; color: #8a7a63; letter-spacing: .5px;
}
.hk-sub::before { content: '—— '; opacity: .55; }

/* ============================================
   CSS 手绘炖锅 · 精修版
   构图、尺寸、层级、元素数量全部不变，仅提升质感：
   · 配色收敛为「哑光瓷 + 砂金黄铜 + 苔绿点缀」低饱和暖调
   · 光影统一为左上方单光源（受光面 / 核心暗部 / 环境遮蔽 / 接触阴影）
   · 材质区分：锅身哑光瓷、锅盖砂金黄铜、双耳同瓷、提钮哑光漆
   · 线条：用极淡的内描边替代硬轮廓，保持柔和边界
   ============================================ */
.hk-pot {
  /* 哑光瓷（锅身 / 双耳） */
  --pot-ivory: #fffdf8;
  --pot-cream: #f8f1e2;
  --pot-clay:  #ecdcbe;
  --pot-deep:  #e4d2b0;
  --pot-ao:    rgba(146, 116, 74, .16);   /* 环境遮蔽 */
  --pot-ink:   rgba(120, 90, 52, .26);    /* 柔和轮廓 */
  /* 砂金黄铜（锅盖 / 提钮底座） */
  --brass-hi:  #eed9ab;
  --brass:     #d8b97c;
  --brass-lo:  #b28f52;
  --brass-dk:  #9a7a41;
  /* 苔绿（提钮点缀，由原来的 #34d399/#16a34a 降饱和而来） */
  --knob-hi:   #55956d;
  --knob:      #356b4b;
  --knob-lo:   #20452f;
  --cast:      rgba(107, 78, 40, .22);    /* 暖调投影 */

  position: relative; width: 175px; height: 168px; flex-shrink: 0; margin-left: 10px;
}
/* 氛围光：锅体后方一层极淡暖光，让插画从底色里"浮"起来 */
.hk-pot::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 196px; height: 156px;
  margin: -84px 0 0 -98px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 236, 200, .55), rgba(255, 236, 200, 0) 74%);
}

/* 蒸汽：暖灰羽化（浅色背景上"暖白"几乎没有对比度，必须靠一点暖灰才可见），
   节奏放慢、边缘更柔。z-index 提到盖/身之上——原先未设层级，一直被压在锅体后面 */
.hk-pot .steam {
  position: absolute; bottom: 98px; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%,
    rgba(255, 253, 248, .8),
    rgba(198, 174, 140, .36) 52%,
    rgba(180, 152, 114, 0) 78%);
  filter: blur(4px); opacity: 0; z-index: 4;
  animation: hk-steam 3.6s cubic-bezier(.4, 0, .5, 1) infinite;
}
.hk-pot .steam.s1 { left: 58px; }
.hk-pot .steam.s2 { left: 84px; width: 30px; height: 30px; bottom: 102px; animation-delay: 1.2s; }
.hk-pot .steam.s3 { left: 106px; width: 22px; height: 22px; animation-delay: 2.4s; }
@keyframes hk-steam {
  0%   { transform: translateY(10px) scale(.6); opacity: 0; }
  20%  { opacity: .8; }
  60%  { opacity: .45; }
  100% { transform: translateY(-58px) scale(1.5); opacity: 0; }
}

/* 提钮：哑光漆球 + 顶部高光点 + 与盖面衔接的黄铜底座 */
.hk-pot .pot-knob {
  position: absolute; left: 50%; top: 38px; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 38% 30%, #4e8a64, var(--knob) 62%, var(--knob-lo) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 1px 2px rgba(32, 69, 47, .34),
    0 3px 6px rgba(107, 78, 40, .16);
}
.hk-pot .pot-knob::before {            /* 底座：轻交代提钮"坐"在盖面上，不喧宾夺主 */
  content: ''; position: absolute; left: 50%; top: 12px; width: 18px; height: 5px; margin-left: -9px;
  border-radius: 50%; z-index: -1;
  background: linear-gradient(180deg, var(--brass-lo), var(--brass-dk));
  box-shadow: 0 1px 2px rgba(120, 88, 40, .24);
}
.hk-pot .pot-knob::after {             /* 高光点：收敛为哑光漆的柔光 */
  content: ''; position: absolute; left: 4px; top: 3px; width: 4px; height: 3px;
  border-radius: 50%; background: rgba(255, 255, 255, .34); filter: blur(.7px);
}

/* 锅盖：砂金黄铜。横向金属明暗 + 盖沿厚度暗带 + 斜向高光带 */
.hk-pot .pot-lid {
  position: absolute; left: 50%; top: 48px; width: 138px; height: 30px; margin-left: -69px;
  border-radius: 50%; z-index: 2;
  background:
    radial-gradient(120% 160% at 30% 8%, rgba(255, 251, 236, .8), rgba(255, 251, 236, 0) 48%),
    linear-gradient(180deg, var(--brass-hi) 0%, var(--brass) 48%, var(--brass-lo) 78%, var(--brass-dk) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 253, 244, .8),
    inset 0 -3px 4px rgba(122, 92, 44, .30),
    0 3px 6px rgba(107, 78, 40, .20);
}
.hk-pot .pot-lid::before {             /* 盖沿暗带：把"薄片"变成"有厚度的盖" */
  content: ''; position: absolute; left: 7px; right: 7px; bottom: 2px; height: 9px;
  border-radius: 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(122, 92, 44, 0), rgba(122, 92, 44, .26));
}
.hk-pot .pot-lid::after {              /* 斜向高光带：金属反光 */
  content: ''; position: absolute; left: 24px; top: 4px; width: 50px; height: 8px;
  border-radius: 50%; pointer-events: none; filter: blur(1px);
  background: radial-gradient(closest-side, rgba(255, 254, 246, .92), rgba(255, 254, 246, 0));
}

/* 锅身：哑光瓷。多层内阴影分别交代左侧受光、右侧暗部、底部环境遮蔽；
   末层 1px 内描边替代硬轮廓，边界柔和但有形 */
.hk-pot .pot-body {
  position: absolute; left: 50%; top: 66px; width: 128px; height: 82px; margin-left: -64px;
  border-radius: 14px 14px 62px 62px / 12px 12px 58px 58px; z-index: 1;
  background: linear-gradient(180deg, var(--pot-ivory) 0%, var(--pot-cream) 42%, var(--pot-clay) 82%, var(--pot-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 8px 0 14px rgba(255, 255, 255, .5),
    inset -12px -8px 20px var(--pot-ao),
    inset 0 -12px 18px var(--pot-ao),
    inset 0 0 0 1px var(--pot-ink),
    0 12px 20px -6px var(--cast),
    0 3px 6px rgba(107, 78, 40, .10);
}
/* 双耳：与锅身同瓷质，带内阴影与顶部高光（原来是两块纯色方块） */
.hk-pot .pot-body::before,
.hk-pot .pot-body::after {
  content: ''; position: absolute; top: 13px; width: 15px; height: 27px;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--pot-cream), #e6d5b5 58%, #d6c09a);
}
.hk-pot .pot-body::before {
  left: -11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset -2px 0 3px var(--pot-ao), 0 2px 3px rgba(107, 78, 40, .14);
}
.hk-pot .pot-body::after {
  right: -11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 2px 0 3px var(--pot-ao), 0 2px 3px rgba(107, 78, 40, .14);
}

/* 落地接触阴影：紧贴的暗芯 + 朝背光侧偏移的柔和投影 */
.hk-pot .pot-base {
  position: absolute; left: 50%; top: 146px; width: 120px; height: 14px; margin-left: -60px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 44%, rgba(107, 78, 40, .26), rgba(107, 78, 40, .09) 56%, rgba(107, 78, 40, 0) 80%);
}
.hk-pot .pot-base::after {
  content: ''; position: absolute; left: 14px; top: 1px; width: 112px; height: 12px;
  border-radius: 50%; filter: blur(3px);
  background: radial-gradient(50% 50% at 50% 50%, rgba(107, 78, 40, .13), rgba(107, 78, 40, 0) 76%);
}

/* ============================================
   随机推荐卡 → 今日抽签（胶带贴纸）
   ============================================ */
.roulette-card { position: relative; }
.tape {
  position: absolute; top: -12px; right: 34px; width: 98px; height: 25px; z-index: 3;
  background: linear-gradient(100deg, rgba(255, 210, 130, .5), rgba(255, 228, 170, .34) 48%, rgba(255, 210, 130, .48));
  transform: rotate(4deg);
  box-shadow: 0 1px 3px rgba(107, 78, 40, .14);
  clip-path: polygon(2.5% 8%, 97% 0, 100% 90%, 97.5% 100%, 2% 94%, 0 12%);
}
.draw-sub {
  font-family: var(--font-hand);
  text-align: center; color: #a3927a; font-size: 14px; letter-spacing: 1.5px;
  margin: -2px 0 0;
}

/* ============================================
   ③ 菜谱卡片 → 拍立得照片墙
   ============================================ */
.dish.polaroid {
  position: relative; padding: 10px 10px 9px; border-radius: 6px; border: 0;
  box-shadow: 0 4px 12px rgba(80, 58, 30, .16), 0 1px 3px rgba(80, 58, 30, .1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.dish.polaroid:nth-child(3n+1) { transform: rotate(-1.5deg); }
.dish.polaroid:nth-child(3n+2) { transform: rotate(1deg); }
.dish.polaroid:nth-child(3n)   { transform: rotate(.5deg); }
.dish.polaroid:hover { transform: rotate(0deg) scale(1.03); box-shadow: 0 10px 24px rgba(80, 58, 30, .22); z-index: 2; }
.pol-photo {
  display: flex; align-items: center; justify-content: center;
  height: 108px; border-radius: 3px;
}
.pol-photo .d-emoji { font-size: 52px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .12)); }
.dish.polaroid:nth-child(4n+1) .pol-photo { background: linear-gradient(160deg, #fdf3dd, #f6e7c8); }
.dish.polaroid:nth-child(4n+2) .pol-photo { background: linear-gradient(160deg, #eef7e8, #dcedd4); }
.dish.polaroid:nth-child(4n+3) .pol-photo { background: linear-gradient(160deg, #fdece4, #f9ddce); }
.dish.polaroid:nth-child(4n+4) .pol-photo { background: linear-gradient(160deg, #fdf7e0, #f3e9c6); }
.pol-caption { text-align: center; padding: 8px 2px 2px; }
.pol-name { font-family: var(--font-hand); font-size: 16.5px; display: block; }
.pol-meta { font-family: var(--font-hand); font-size: 12px; color: #b3a48c; display: block; margin-top: 1px; }

/* "已做 n 次" → 红色印章 */
.stamp {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  width: 47px; height: 47px; border-radius: 50%;
  border: 2.5px solid rgba(224, 93, 61, .7);
  box-shadow: inset 0 0 0 1.5px rgba(224, 93, 61, .28);
  background: rgba(255, 255, 255, .28);
  color: rgba(200, 70, 40, .85);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; line-height: 1.1;
  transform: rotate(12deg);
  pointer-events: none; text-align: center;
}
.stamp b { font-size: 12.5px; letter-spacing: 1px; }

/* ============================================
   ④ 做饭记录 → 手账时间线
   ============================================ */
.tl { position: relative; padding-left: 26px; }
.tl::before {
  content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px;
  border-left: 2px dashed #dccdb2;
}
.tl-item { position: relative; display: flex; gap: 14px; padding: 10px 0; }
.tl-item::before {
  content: ''; position: absolute; left: -22px; top: 24px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px #e6f2e6;
}
.tl-photo {
  flex-shrink: 0; width: 84px; height: 76px; padding: 5px;
  background: #fff; border-radius: 4px;
  box-shadow: 0 3px 9px rgba(80, 58, 30, .18);
  transform: rotate(-2.2deg);
  display: flex; align-items: center; justify-content: center;
}
.tl-item:nth-child(2n) .tl-photo { transform: rotate(1.8deg); }
.tl-photo i {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: linear-gradient(160deg, #fdf3dd, #f6e7c8); border-radius: 2px;
  font-style: normal; font-size: 30px;
}
.tl-body { flex: 1; min-width: 0; }
.tl-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tl-name { font-family: var(--font-hand); font-size: 16.5px; }
.tl-date { font-family: var(--font-hand); color: #a3927a; font-size: 13px; }
.tl-stars { display: block; font-size: 13.5px; letter-spacing: 2px; margin-top: 2px; }
.tl-note {
  position: relative; margin-top: 7px; background: #fdf6d8; color: #7a6a45;
  font-family: var(--font-hand); font-size: 13.5px;
  padding: 8px 12px 8px 15px;
  clip-path: polygon(13px 0, 100% 0, 100% 100%, 0 100%, 0 13px);
  box-shadow: 1px 2px 4px rgba(107, 78, 40, .12);
}
.tl-note::before {
  content: ''; position: absolute; left: 0; top: 0; width: 13px; height: 13px;
  background: linear-gradient(135deg, transparent 49%, #e3d193 51%);
}
/* 空状态：纯 CSS 煎蛋（与炖锅同色板、同光向：哑光蛋白 + 暖调蛋黄） */
.egg { position: relative; width: 84px; height: 68px; margin: 0 auto 10px; }
.egg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 32% 22%, #ffffff, #fbf6ec 62%, #f1e8d8 100%);
  border-radius: 58% 42% 55% 45% / 55% 60% 40% 45%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset -6px -6px 12px rgba(146, 116, 74, .10),
    0 5px 12px -2px rgba(107, 78, 40, .18),
    0 1px 3px rgba(107, 78, 40, .10);
}
.egg::after {
  content: ''; position: absolute; left: 30px; top: 20px; width: 30px; height: 28px;
  background: radial-gradient(circle at 36% 30%, #f7d98a, #e8b455 58%, #d69a3c 100%);
  border-radius: 50% 46% 52% 48% / 52% 48% 55% 45%;
  box-shadow: inset 0 1px 0 rgba(255, 250, 230, .7), 0 2px 4px rgba(150, 100, 30, .28);
}

/* ============================================
   ⑤ 买菜篮 → 冰箱贴购物单
   ============================================ */
.fridge-door {
  background: linear-gradient(165deg, #f2f5f8, #dde5ee);
  border-radius: 16px; padding: 26px 20px 22px;
}
.fridge-paper {
  position: relative; background: #fffefb; border-radius: 6px;
  box-shadow: 0 4px 14px rgba(60, 70, 90, .16);
  padding: 26px 20px 18px; max-width: 520px; margin: 0 auto;
  transform: rotate(-.6deg);
}
.magnet {
  position: absolute; width: 18px; height: 18px; border-radius: 50%; z-index: 2;
  box-shadow: 0 3px 5px rgba(60, 70, 90, .3), inset -2px -3px 4px rgba(0, 0, 0, .18);
}
.magnet::after {
  content: ''; position: absolute; left: 3px; top: 2px; width: 7px; height: 5px;
  background: rgba(255, 255, 255, .75); border-radius: 50%;
  transform: rotate(-20deg); filter: blur(1px);
}
.magnet.m1 { left: 14px; top: 14px; background: radial-gradient(circle at 35% 30%, #f87171, #dc2626); }
.magnet.m2 { right: 14px; top: 14px; background: radial-gradient(circle at 35% 30%, #4ade80, #16a34a); }
.magnet.m3 { left: 14px; bottom: 14px; background: radial-gradient(circle at 35% 30%, #fbbf24, #d97706); }
.magnet.m4 { right: 14px; bottom: 14px; background: radial-gradient(circle at 35% 30%, #60a5fa, #2563eb); }
.fridge-list-title { font-family: var(--font-hand); text-align: center; font-size: 17.5px; color: #5a6b7d; }
.fridge-tip { font-family: var(--font-hand); text-align: center; color: #93a3b3; font-size: 13px; margin: 2px 0 10px; }
.buy-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 6px;
  border-bottom: 1.5px dashed #eef2f6; font-size: 14.5px; color: #45525f;
}
.buy-item .bi-dot { width: 8px; height: 8px; border-radius: 50%; background: #d97706; flex-shrink: 0; }
.buy-item b { flex: 1; font-weight: 600; }
.buy-item .bi-cat { font-size: 12px; color: #9aa8b5; }
.buy-item.done { color: #b6c2cd; }
.buy-item.done b { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(224, 93, 61, .6); }
.buy-item.done .bi-dot { background: #c3cfd9; }
.buy-cta {
  display: block; margin: 18px auto 2px; border: 0; cursor: pointer;
  background: radial-gradient(circle at 35% 28%, #f87171, #dc2626 72%);
  color: #fff; font-weight: 700; font-size: 14.5px; padding: 13px 28px;
  border-radius: 50% 46% 48% 52% / 48% 52% 46% 54%;
  box-shadow: 0 5px 12px rgba(220, 38, 38, .35), inset -2px -4px 6px rgba(0, 0, 0, .18), inset 2px 3px 5px rgba(255, 255, 255, .35);
  font-family: var(--font-hand); transition: .15s;
}
.buy-cta:hover { transform: translateY(-2px) rotate(-2deg); }

/* ============================================
   ⑥ 细节点缀
   ============================================ */
/* 锅铲加载 */
.spatula-demo { display: flex; align-items: center; gap: 12px; color: #8a7a63; font-size: 14px; font-family: var(--font-hand); }
.spatula { position: relative; width: 34px; height: 36px; animation: spatula-spin 1.1s ease-in-out infinite; }
.spatula::before {
  content: ''; position: absolute; left: 15px; top: 12px; width: 5px; height: 21px;
  border-radius: 3px; background: #b08350;
}
.spatula::after {
  content: ''; position: absolute; left: 9px; top: 0; width: 17px; height: 14px;
  background: linear-gradient(180deg, #9aa0aa, #5d626b);
  border-radius: 4px 4px 7px 7px;
}
@keyframes spatula-spin { to { transform: rotate(360deg); } }
/* 冒热气的碗 logo：hover 摇摆 */
.logo-bowl { display: inline-block; }
.logo:hover .logo-bowl { animation: bowl-sway .55s ease-in-out; }
@keyframes bowl-sway {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-13deg); }
  60% { transform: rotate(11deg); }
  82% { transform: rotate(-5deg); }
}
/* 购物篮角标：暖橙脉冲（真实站点用同一个 .fab-badge 类） */
.fab-badge {
  background: var(--orange);
  animation: badge-pulse 1.6s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, .5); }
  50% { transform: scale(1.14); box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); }
}
.pv-static-fab { position: relative; right: auto; bottom: auto; }
/* 页脚 */
.site-footer {
  text-align: center; padding: 28px 0 8px; color: #b3a48c;
  font-size: 13px; font-family: var(--font-hand); letter-spacing: 2px;
}

/* ============================================
   落地补充：入口按钮 / 全屏容器 / 小部件
   ============================================ */
.scroll-lock { overflow: hidden; }
.cb-entry {
  display: flex; align-items: center; gap: 14px; width: 100%;
  text-align: left; cursor: pointer;
}
.cb-entry-emoji { font-size: 34px; }
.cb-entry-text { display: flex; flex-direction: column; gap: 2px; }
.cb-entry-text b { font-family: var(--font-hand); font-size: 18px; letter-spacing: 1px; }
/* 全屏容器层级：需高于顶栏(50)/底栏(90)/购物篮钮(60)，但必须低于 .overlay(100)，
   否则从全屏页里打开的弹窗（如「编辑封面」）会被整页盖住、点不动。 */
.cb-full {
  position: fixed; inset: 0; z-index: 95; overflow-y: auto;
  background: radial-gradient(120% 90% at 50% 0%, #f8f0e0, #efe2ca);
}
.ck-full {
  position: fixed; inset: 0; z-index: 95; overflow-y: auto;
  background: var(--bg); padding: 16px 14px 60px;
}
.ck-modal { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ck-top { display: flex; align-items: center; gap: 12px; }
.ck-top h2 { font-family: var(--font-hand); font-size: 22px; letter-spacing: 1px; }
.spatula.small { width: 26px; height: 26px; display: inline-block; vertical-align: middle; margin-right: 2px; }
.spatula.small::before { left: 11px; top: 9px; width: 4px; height: 16px; }
.spatula.small::after { left: 7px; top: 0; width: 13px; height: 11px; }
.modal-foot .buy-cta { margin: 0 auto; }
.ck-x { cursor: pointer; opacity: .6; margin-left: 2px; }

/* 手账时间线：记录操作按钮组与照片缩略图（落地时补齐，缺失会导致缩略图溢出、按钮挤作一团） */
.tl-item { cursor: pointer; }
.tl-ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tl-photo i img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }

/* ============================================
   首页 · 今日推荐 + 今日抽签 合并区块
   桌面并排（推荐占主列）、窄屏自动堆叠；抽签卡做紧凑处理
   ============================================ */
.today-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.today-row > .daily-card { flex: 2 1 380px; min-width: 0; }
.today-row > .roulette-card { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }

/* 抽签卡：紧凑版，内容在剩余空间内垂直居中 */
.roulette-card { padding: 14px 16px 16px; }
.roulette-card .card-head { margin-bottom: 4px; }
.roulette-card .card-head h2 { font-size: 15px; }
.roulette-card .switch { font-size: 12px; }
.roulette-card .draw-sub { font-size: 12px; letter-spacing: 1px; margin: 0 0 2px; }
.roulette-card .roulette { flex: 1; padding: 6px 0 8px; min-height: 84px; }
.roulette-card .r-emoji { font-size: 34px; }
.roulette-card .r-name { font-size: 18px; margin-top: 3px; letter-spacing: .5px; }
.roulette-card .r-cat { margin-top: 4px; font-size: 12.5px; gap: 6px; }
.roulette-card .r-cat .badge { font-size: 11px; padding: 1px 7px; }
.roulette-card .r-actions { gap: 7px; }
.roulette-card .r-actions .btn { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.roulette-card .tape { width: 70px; height: 19px; top: -9px; right: 24px; }

/* 并排时推荐卡收窄：收紧栅格与按钮，让三个操作按钮排成一行 */
@media (min-width: 761px) {
  .today-row .daily-grid { gap: 8px; }
  .today-row .daily-item { padding: 12px 8px 10px; }
  .today-row .daily-item .d-actions { gap: 5px; }
  .today-row .daily-item .d-actions .btn-xs { padding: 3px 7px; font-size: 12px; }
}

@media (max-width: 760px) {
  .today-row { gap: 12px; }
  .today-row > .daily-card,
  .today-row > .roulette-card { flex: 1 1 100%; }
  .roulette-card .roulette { min-height: 76px; }
  .roulette-card .r-name { font-size: 17px; }
}

/* ============================================
   首页 · 冰箱里还剩什么
   ============================================ */
.fridge-home .card-head { margin-bottom: 10px; }
.fridge-home .card-head h2 { font-size: 16px; }
.fridge-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fridge-chips .fc {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: #f2f7fb; border: 1px solid #dbe5ef; border-radius: 999px;
  padding: 5px 13px; font-size: 13.5px; line-height: 1.5; color: #45525f;
  font-family: inherit; cursor: pointer; transition: .15s;
}
.fridge-chips .fc:hover { transform: translateY(-1px); border-color: var(--orange); color: var(--orange-dark); }
.fridge-chips .fc b { font-family: var(--font-hand); font-weight: 600; }
.fridge-chips .fc em { font-style: normal; font-size: 12px; color: #7f8fa0; }
.fridge-chips .fc.used { background: #f6f2ec; border-color: #e7ded1; color: #a39a8d; }
.fridge-chips .fc.used em { color: var(--tomato-dark); }
.fridge-chips .fc.more { background: #fff; border-style: dashed; border-color: #d9cbb2; color: var(--primary-dark); }
.fridge-home-empty { font-size: 13px; margin: 0; }

/* ============================================
   冰箱页 · CSS 3D 冰箱（精修版）
   箱体：背 / 左 / 右 / 顶 / 底 五面围出内腔；前框收边 + 底部支脚
   门：左铰链可旋转；外板含铭牌与黄铜把手（带上下底座），内板含门封条 / 三层门搁架 / 蛋格
   内部：内灯 + 温控旋钮 + 侧壁导轨 + 四层搁板；每样食材为三面立方体，正面直接标名称与剩余量
   光向：左上前方。外箱暖白哑光（呼应炖锅），内腔冷调（模拟冰箱内灯）
   ============================================ */
.fridge-scene {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 34px 12px 34px;
  border: 1px solid #e2e8ee; border-radius: var(--radius);
  background:
    radial-gradient(120% 74% at 50% 4%, rgba(255, 255, 255, .92), rgba(238, 243, 247, 0) 58%),
    linear-gradient(172deg, #eef3f7 0%, #e2eaf0 58%, #d5dfe8 100%);
  perspective: 1500px; perspective-origin: 50% 42%;
  overflow: hidden;
}
/* 地面 + 踢脚线：让冰箱"站在"一个空间里，而不是浮在渐变上 */
.fridge-scene::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 108px; pointer-events: none;
  background: linear-gradient(180deg, rgba(198, 213, 225, 0), rgba(190, 207, 220, .78) 34%, rgba(172, 192, 208, .95));
  border-top: 1px solid rgba(255, 255, 255, .55);
}
.fridge-3d {
  --fw: 350px; --fh: 540px; --fd: 146px; --bz: 14px; --fs: 1;
  position: relative; z-index: 1; width: var(--fw); height: var(--fh);
  transform-style: preserve-3d;
  transform: scale(var(--fs)) rotateY(-13deg) rotateX(3deg);
}
/* 地面投影 */
.fridge-3d::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -34px; height: 42px;
  border-radius: 50%; transform: translateZ(-84px); filter: blur(6px);
  background: radial-gradient(50% 100% at 50% 0%, rgba(64, 86, 108, .38), rgba(64, 86, 108, 0) 74%);
}

/* ---- 箱体五面 ---- */
.fridge-3d .fw { position: absolute; left: 0; top: 0; }
.fridge-3d .fw.back {
  width: var(--fw); height: var(--fh);
  transform: translateZ(calc(-1 * var(--fd)));
  background:
    radial-gradient(88% 38% at 50% -8%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 62%),
    radial-gradient(120% 32% at 50% 102%, rgba(122, 152, 178, .32), rgba(122, 152, 178, 0) 72%),
    linear-gradient(165deg, #f8fbfd 0%, #e8f0f5 52%, #d8e2ea 100%);
  box-shadow:
    inset 0 0 0 1px rgba(150, 172, 188, .22),
    inset 0 46px 64px -34px rgba(188, 220, 242, .95);
}
/* 内灯：顶部灯带 + 冷光晕 */
.fridge-3d .fr-light {
  position: absolute; left: 22%; right: 22%; top: calc(var(--bz) + 5px); height: 7px; border-radius: 4px;
  background: linear-gradient(180deg, #ffffff, #dff0ff);
  box-shadow: 0 0 16px 6px rgba(202, 229, 248, .85), 0 2px 4px rgba(120, 150, 175, .3);
}
/* 温控旋钮 */
.fridge-3d .fr-dial {
  position: absolute; right: calc(var(--bz) + 16px); top: calc(var(--bz) + 26px);
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ffffff, #dfe8ef 62%, #c2cfda 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 3px rgba(96, 120, 140, .35);
}
.fridge-3d .fr-dial::after {
  content: ''; position: absolute; left: 50%; top: 3px; width: 2px; height: 8px; margin-left: -1px;
  border-radius: 1px; background: #7d8f9e;
}
/* 侧壁导轨（对应每层搁板） */
.fridge-3d .fr-groove {
  position: absolute; left: 0; right: 0; height: 3px; top: 24%;
  background: linear-gradient(180deg, rgba(150, 172, 188, .4), rgba(255, 255, 255, .55));
}
.fridge-3d .fr-groove.g2 { top: 49%; }
.fridge-3d .fr-groove.g3 { top: 74%; }
.fridge-3d .fw.left {
  width: var(--fd); height: var(--fh);
  transform-origin: left center; transform: rotateY(90deg);
  background: linear-gradient(90deg, #ccd8e1, #e2eaf0 68%, #eef3f7);
}
.fridge-3d .fw.right {
  left: calc(var(--fw) - var(--fd));
  width: var(--fd); height: var(--fh);
  transform-origin: right center; transform: rotateY(-90deg);
  background: linear-gradient(270deg, #c4d2dc, #dee8ef 68%, #ecf2f6);
}
.fridge-3d .fw.top {
  width: var(--fw); height: var(--fd);
  transform-origin: center top; transform: rotateX(-90deg);
  background: linear-gradient(180deg, #f4f9fc 0%, #e6eef4 46%, #d5dfe8 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .92), inset 0 -2px 6px rgba(120, 148, 170, .22);
}
.fridge-3d .fw.bottom {
  top: var(--fh);
  width: var(--fw); height: var(--fd);
  transform-origin: center bottom; transform: rotateX(90deg);
  background: linear-gradient(0deg, #d2dde5, #e6eef3);
}

/* ---- 机身前框（收边）+ 支脚 ---- */
.fridge-bezel {
  position: absolute; left: 0; top: 0; width: var(--fw); height: var(--fh);
  border: var(--bz) solid #f4efe6; border-radius: 18px; box-sizing: border-box;
  background: transparent; pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .9),
    0 0 0 1px rgba(178, 168, 150, .28),
    0 18px 34px -14px rgba(70, 62, 48, .3);
}
.fridge-foot {
  position: absolute; bottom: -15px; width: 22px; height: 17px; border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #70757f, #494e57);
  box-shadow: 0 2px 4px rgba(60, 55, 45, .3);
}
.fridge-foot.f1 { left: calc(var(--bz) + 16px); }
.fridge-foot.f2 { right: calc(var(--bz) + 16px); }

/* ---- 内部陈列面板（4 层 + 保鲜抽屉） ---- */
.fridge-3d .fridge-inner {
  position: absolute; left: 0; top: 0; width: var(--fw); height: var(--fh);
  transform: translateZ(-58px); transform-style: preserve-3d;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px 16px 24px; box-sizing: border-box;
}
.fridge-row { position: relative; height: 88px; }
/* 层间阴影：搁板挡住顶光，在其下方投一道柔影，撑出内腔纵深 */
.fridge-row::before {
  content: ''; position: absolute; left: 6px; right: 6px; top: -6px; height: 20px; border-radius: 4px;
  background: linear-gradient(180deg, rgba(104, 134, 158, .20), rgba(104, 134, 158, 0));
}
.shelf-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px; border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(206, 220, 231, .85) 45%, rgba(156, 181, 200, .95));
  box-shadow: 0 3px 6px rgba(86, 112, 134, .26), inset 0 1px 0 rgba(255, 255, 255, .95);
}
/* 搁板前挡边，交代玻璃板的厚度 */
.shelf-line::after {
  content: ''; position: absolute; left: 4px; right: 4px; top: -3px; height: 4px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(214, 226, 236, .6));
}
.shelf-things {
  position: absolute; left: 0; right: 0; bottom: 9px;
  display: flex; align-items: flex-end; gap: 10px; padding: 0 2px;
  transform-style: preserve-3d;
}
/* 底部保鲜抽屉：半透明果菜盒 */
.fridge-crisper { position: relative; height: 74px; }
.cr-body {
  position: absolute; inset: 0; border-radius: 9px;
  background: linear-gradient(180deg, rgba(228, 240, 246, .82), rgba(196, 216, 230, .88));
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, .9),
    inset 0 -3px 8px rgba(110, 140, 165, .3),
    0 3px 7px rgba(86, 112, 134, .24);
  border: 1px solid rgba(150, 178, 198, .55);
}
.cr-handle {
  position: absolute; left: 50%; top: 10px; width: 84px; height: 9px; margin-left: -42px; border-radius: 5px;
  background: linear-gradient(180deg, #ffffff, #d3e0ea);
  box-shadow: 0 1px 2px rgba(96, 120, 140, .3), inset 0 -1px 0 rgba(150, 178, 198, .4);
}
.cr-label {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-size: 11.5px; letter-spacing: 1px; color: #6f8798;
}
.fridge-empty-note {
  position: absolute; left: 0; right: 0; top: 44%; margin: 0; padding: 0 24px;
  text-align: center; font-size: 13px; color: #7f8fa0;
}

/* ---- 食材：三面立方体，正面直接标名称与剩余量（打开即可读，不用逐个点开） ---- */
.thing {
  position: relative; width: 62px; height: 78px; flex: 0 0 auto;
  border: 0; background: none; padding: 0; cursor: pointer;
  transform-style: preserve-3d; transition: transform .18s ease;
}
.thing:hover { transform: translateY(-4px); }
.thing.active { transform: translateY(-6px); }
.thing.used { opacity: .58; filter: saturate(.4); }
.thing > span { position: absolute; left: 50%; top: 50%; }
.th-front {
  position: relative;
  width: 62px; height: 78px; border-radius: var(--th-radius, 16px);
  transform: translate(-50%, -50%) translateZ(21px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .14) 100%),
    var(--th-front);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .62),
    inset 2px 0 4px rgba(255, 255, 255, .26),
    inset 0 -5px 10px rgba(0, 0, 0, .15);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 7px 4px 6px; box-sizing: border-box;
}
/* 斜向反光：让容器表面像有光泽的包装 */
.th-front::after {
  content: ''; position: absolute; left: 5px; top: 6px; width: 16px; height: 46px; border-radius: 8px;
  transform: rotate(14deg); pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  opacity: .5;
}
/* 瓶罐 / 纸盒的盖子 */
.th-lid {
  position: absolute; left: 4px; right: 4px; top: 3px; height: 8px; border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(0, 0, 0, .14));
  box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
  opacity: var(--th-lid, 0);
}
.th-front .th-emoji {
  font-size: 23px; font-style: normal; line-height: 1; position: relative; z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .22));
}
.th-front b {
  font-size: 11px; font-weight: 600; line-height: 1.2; color: #3a332a;
  background: rgba(255, 255, 255, .9); border-radius: 4px; padding: 0 5px;
  max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  position: relative; z-index: 1;
}
.th-front em {
  font-style: normal; font-size: 10px; line-height: 1.3; color: #6b6153;
  background: rgba(255, 255, 255, .74); border-radius: 4px; padding: 0 5px;
  position: relative; z-index: 1;
}
.th-side {
  width: 42px; height: 78px; border-radius: 5px;
  transform: translate(-50%, -50%) translateX(31px) rotateY(90deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(0, 0, 0, .16)), var(--th-side);
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .2);
}
.th-top {
  width: 62px; height: 42px; border-radius: 6px;
  transform: translate(-50%, -50%) translateY(-39px) rotateX(90deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .05)), var(--th-top);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42);
}
.thing > span.th-base {
  top: auto; bottom: -5px; width: 66px; height: 12px; margin-left: -33px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(84, 108, 130, .34), rgba(84, 108, 130, 0) 74%);
}

/* ---- 冰箱门（左铰链，含厚度） ---- */
.fridge-door {
  position: absolute; left: var(--bz); top: var(--bz);
  width: calc(var(--fw) - var(--bz) * 2); height: calc(var(--fh) - var(--bz) * 2);
  transform-origin: left center; transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform .95s cubic-bezier(.26, .04, .24, 1);
  cursor: pointer;
}
.fridge-3d.is-open .fridge-door { transform: rotateY(-100deg); }
.fd-face { position: absolute; inset: 0; border-radius: 13px; backface-visibility: hidden; }
.fd-out {
  transform: translateZ(9px);
  background: linear-gradient(158deg, #fffdf9 0%, #f8f3eb 40%, #eee7db 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -3px 8px rgba(120, 106, 86, .12),
    0 12px 26px -10px rgba(70, 62, 48, .28),
    0 3px 8px rgba(70, 62, 48, .1);
}
/* 门板材质：左侧柔光 + 极淡竖向拉丝纹理，避免大片纯色显得廉价 */
.fd-out::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(104deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .055) 0 1px, rgba(148, 136, 116, .045) 1px 2px);
}
/* 门的厚度边（开门时露出） */
.fd-edge {
  position: absolute; top: 0; bottom: 0; right: -9px; width: 18px;
  transform-origin: center center; transform: rotateY(90deg);
  background: linear-gradient(90deg, #ece5d9, #f7f2ea);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.fd-in {
  transform: rotateY(180deg) translateZ(9px);
  background: linear-gradient(158deg, #f4f8fb, #e5ecf2);
  box-shadow: inset 0 0 0 1px rgba(150, 172, 188, .3);
}
/* 门封条：内板四周一圈胶条，交代密封结构 */
.fd-seal {
  position: absolute; inset: 7px; border-radius: 9px; pointer-events: none;
  border: 3px solid rgba(126, 140, 152, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 0 0 1px rgba(255, 255, 255, .5);
}
.fd-rack {
  position: absolute; left: 16px; right: 16px; height: 12px; border-radius: 5px;
  background: linear-gradient(180deg, #f4f8fb, #cdd9e2 58%, #b2c2cf);
  box-shadow: 0 2px 5px rgba(96, 120, 140, .3), inset 0 1px 0 rgba(255, 255, 255, .95);
}
/* 搁架前挡边 */
.fd-rack::after {
  content: ''; position: absolute; left: 2px; right: 2px; top: -4px; height: 5px; border-radius: 4px;
  background: linear-gradient(180deg, #ffffff, #dbe6ee);
  box-shadow: 0 1px 2px rgba(96, 120, 140, .18);
}
.fd-rack { top: 104px; }
.fd-rack.r2 { top: 232px; }
.fd-rack.r3 { top: 360px; }
/* 门内底部蛋格 */
.fd-bin {
  position: absolute; left: 16px; right: 16px; bottom: 22px; height: 62px; border-radius: 8px;
  background: linear-gradient(180deg, #eef3f7, #d0dce5);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, .95), inset 0 -3px 7px rgba(120, 145, 165, .32), 0 1px 3px rgba(96, 120, 140, .22);
}
/* 蛋格凹槽 */
.fd-bin::after {
  content: ''; position: absolute; left: 10px; right: 10px; top: 22px; height: 26px;
  background-image: radial-gradient(ellipse 11px 13px at 12px 13px, rgba(120, 148, 170, .30) 60%, rgba(120, 148, 170, 0) 72%);
  background-size: 30px 26px; background-repeat: repeat-x;
  border-radius: 6px;
}
.fd-plate {
  position: absolute; left: 22px; top: 22px; padding: 5px 12px;
  border: 1px solid rgba(186, 172, 146, .55); border-radius: 7px;
  font-family: var(--font-hand); font-size: 13px; letter-spacing: 3px; color: #b3a48c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
/* 把手：竖杆 + 上下底座 */
.fd-handle {
  position: absolute; right: 16px; top: 50%; width: 12px; height: 118px; margin-top: -59px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eed9ab, #d2b377 38%, #b2914f 68%, #dcc494);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 6px rgba(90, 70, 40, .34);
}
.fd-handle .hm {
  position: absolute; left: 50%; width: 20px; height: 9px; margin-left: -10px; border-radius: 4px;
  background: linear-gradient(180deg, #d9c193, #b08e4e);
  box-shadow: 0 1px 2px rgba(90, 70, 40, .3);
}
.fd-handle .hm.t { top: -6px; }
.fd-handle .hm.b { bottom: -6px; }
.fd-tip {
  position: absolute; left: 0; right: 0; bottom: 34px; text-align: center;
  font-family: var(--font-hand); font-size: 13.5px; color: #a89b86; letter-spacing: 2px;
}

/* ---- 说明与选中面板 ---- */
.fridge-cap { position: relative; z-index: 2; font-size: 13px; margin: 0; color: #5f7386; }
.fridge-panel .card-head h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.fridge-panel .fp-emoji { font-size: 22px; }
.fridge-panel .fridge-qty { display: flex; align-items: center; gap: 8px; margin: 0; }

@media (max-width: 480px) {
  .fridge-3d { --fs: .8; }
  .fridge-scene { padding: 22px 16px 20px; }
}

/* 手机端：炖锅缩放避免挤压 hero 文案 */
@media (max-width: 760px) {
  .hero-kitchen { padding: 18px 16px; }
  .hk-pot { transform: scale(.68); transform-origin: top right; margin: -8px -14px 0 0; }
  .cb-entry-emoji { font-size: 28px; }
}
