/* ===== 基础变量与重置 ===== */
:root {
  --bg: #fff8f3;
  --card: #ffffff;
  --primary: #ff6b4a;
  --primary-dark: #e8543a;
  --text: #2f2a26;
  --muted: #8a817a;
  --line: #f0e6dd;
  --shadow: 0 10px 30px rgba(255, 107, 74, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ===== 导航栏 ===== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 243, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 16px;
}
.logo { font-size: 20px; font-weight: 800; white-space: nowrap; }
.nav-links { display: flex; gap: 18px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-weight: 600; padding: 4px 2px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.search-box { margin-left: auto; position: relative; }
.search-box input {
  width: 220px; max-width: 46vw; padding: 9px 14px 9px 36px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,74,.15); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: .6; }

/* ===== 英雄区 ===== */
.hero {
  background: radial-gradient(120% 120% at 50% 0%, #ffe3d3 0%, #fff8f3 60%);
  padding: 70px 20px 56px; text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); font-weight: 900; letter-spacing: 1px; }
.hero-sub { color: var(--muted); margin: 12px 0 26px; font-size: 17px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff9166);
  color: #fff; font-weight: 700; font-size: 16px; padding: 13px 26px;
  border-radius: 999px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255,107,74,.28); }
.btn-ghost {
  background: #fff; color: var(--primary); font-weight: 700; font-size: 15px; padding: 13px 22px;
  border-radius: 999px; border: 1px solid var(--line); transition: background .2s;
}
.btn-ghost:hover { background: #fff1ea; }

.random-result { margin-top: 28px; }
.random-card {
  display: inline-flex; align-items: center; gap: 16px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 22px; box-shadow: var(--shadow); animation: pop .35s ease;
}
.random-card .emoji { font-size: 42px; }
.random-card .rc-name { font-weight: 800; font-size: 18px; }
.random-card .rc-meta { color: var(--muted); font-size: 13px; }
.random-card .rc-go { margin-left: 6px; color: var(--primary); font-weight: 700; font-size: 14px; }
.random-card .card-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.random-card span { font-size: 42px; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

/* ===== 一键搭配一餐 ===== */
.mealkit-wrap { margin-top: 26px; text-align: left; }
.mealkit-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.mealkit-title { font-weight: 800; font-size: 16px; }
.mealkit-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); max-width: 780px; margin: 0 auto; }
.mealkit-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .2s; animation: pop .35s ease;
}
.mealkit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mk-banner { position: relative; height: 130px; }
.mk-banner .card-img { width: 100%; height: 130px; object-fit: cover; display: block; }
.mk-banner .emoji, .mk-banner span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.mk-role {
  position: absolute; top: 8px; left: 8px; color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.mk-main { background: #ff6b4a; }
.mk-veg { background: #2e9e5b; }
.mk-soup { background: #2b7de9; }
.mk-body { padding: 10px 14px 12px; }
.mk-title { font-weight: 800; font-size: 15px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-meta { color: var(--muted); font-size: 12px; }
@media (max-width: 640px) { .mealkit-grid { grid-template-columns: 1fr; } }

/* ===== 容器 ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 40px 20px 60px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: 24px; font-weight: 800; }
.count-badge { color: var(--muted); font-size: 14px; background: #fff; border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
.heart { font-size: 18px; }

/* ===== 分类标签 ===== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--muted); font-size: 14px; font-weight: 600; transition: all .18s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== 复合条件筛选 ===== */
.filter-bar {
  display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap;
  margin: -8px 0 22px; padding: 10px 14px;
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
}
.filter-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: #f7f7f8; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; cursor: pointer; transition: all .18s; user-select: none;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-chip input { accent-color: var(--primary); margin: 0; cursor: pointer; }
.filter-reset {
  margin-left: auto; font-size: 13px; font-weight: 700; color: var(--primary);
  cursor: pointer; text-decoration: underline;
}
.filter-reset:hover { opacity: .8; }

/* ===== 菜谱网格 ===== */
.recipe-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.recipe-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .2s; position: relative;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-banner {
  height: 120px; display: flex; align-items: center; justify-content: center; font-size: 52px; position: relative;
}
.fav-btn {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); font-size: 16px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.1); transition: transform .15s; z-index: 2;
}
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.is-fav { background: var(--primary); }
.card-body { padding: 14px 16px 18px; }
.card-title { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.card-meta { color: var(--muted); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.card-tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; color: var(--primary); background: #fff1ea; padding: 2px 8px; border-radius: 999px; }
.diff-简单 { color: #2e9e5b; } .diff-中等 { color: #e0962e; } .diff-困难 { color: #d44; }

.empty-tip { text-align: center; color: var(--muted); padding: 40px 0; }

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(40,30,25,.5); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; background: #fff; border-radius: 22px; width: min(640px, 100%);
  max-height: 88vh; overflow: auto; box-shadow: 0 30px 70px rgba(0,0,0,.3); animation: pop .3s ease;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); font-size: 16px; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.modal-tools { position: absolute; top: 14px; right: 56px; z-index: 3; }
.modal-banner { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.modal-body { padding: 22px 26px 30px; }
.modal-body h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.modal-sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.modal-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.modal-info { display: flex; gap: 18px; flex-wrap: wrap; padding: 14px 16px; background: #fff8f3; border-radius: 14px; margin-bottom: 20px; }
.modal-info div { font-size: 14px; }
.modal-info b { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.serving-ctrl { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.serving-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--primary); font-size: 15px; font-weight: 800; line-height: 1;
  cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; justify-content: center;
}
.serving-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.serving-num { min-width: 22px; text-align: center; font-weight: 800; font-size: 15px; color: var(--primary); }
.serving-tip { color: var(--muted); font-size: 12px; }
.serving-note { font-size: 12px; font-weight: 600; color: #d9881a; }
.nutrition-row { display: flex; gap: 10px; flex-wrap: wrap; }
.nutrition-row span { flex: 1; min-width: 110px; background: #faf4ef; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.nutrition-row b { font-size: 17px; color: #2f2a26; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.related-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: transform .18s, box-shadow .2s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.related-card .card-img { width: 100%; height: 90px; object-fit: cover; display: block; }
.related-card > span { display: flex; align-items: center; justify-content: center; height: 90px; font-size: 38px; }
.rc-title { font-size: 13.5px; font-weight: 700; padding: 8px 10px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-sub { font-size: 12px; color: var(--muted); padding: 0 10px 9px; }
.related-empty { color: var(--muted); font-size: 13px; padding: 10px 0; }

/* ===== 烹饪计时器 ===== */
.step-text { display: inline; }
.timer-btn {
  display: inline-block; margin-left: 10px; padding: 4px 12px; font-size: 12px; font-weight: 700;
  color: var(--primary); background: #fff4ef; border: 1px solid var(--primary); border-radius: 999px;
  cursor: pointer; transition: all .15s; vertical-align: middle;
}
.timer-btn:hover { background: var(--primary); color: #fff; }
.timer-box { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.timer-time { font-weight: 800; font-size: 15px; color: var(--primary); font-variant-numeric: tabular-nums; min-width: 52px; }
.timer-bar { flex: 1; height: 6px; border-radius: 999px; background: #f0e4dc; overflow: hidden; cursor: pointer; }
.timer-bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width 1s linear; }
.timer-cancel {
  border: none; background: #f1ece8; color: #8a817a; width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; cursor: pointer; line-height: 1;
}
.timer-cancel:hover { background: #ffd9d0; color: #d23b2a; }
.step-item.timer-done .step-text { color: #1f9d57; text-decoration: line-through; }
.step-item.timer-done .timer-time { color: #1f9d57; animation: timer-done-pulse 1s ease infinite; }
@keyframes timer-done-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.modal-section-title { font-weight: 800; font-size: 16px; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.ingredient-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.ingredient-list li { display: flex; justify-content: space-between; padding: 8px 12px; background: #faf4ef; border-radius: 10px; font-size: 14px; }
.ingredient-list li span:last-child { color: var(--muted); }
.step-list { list-style: none; counter-reset: step; }
.step-list li { position: relative; padding: 10px 0 10px 42px; border-bottom: 1px dashed var(--line); font-size: 15px; }
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 8px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.tips-box { margin-top: 18px; background: #fff8e8; border-left: 4px solid #ffb347; padding: 12px 16px; border-radius: 10px; font-size: 14px; color: #7a5a2a; }
.modal-fav-btn {
  margin-top: 22px; width: 100%; padding: 13px; border-radius: 12px; font-weight: 700; font-size: 15px;
  background: #fff1ea; color: var(--primary); border: 1px solid #ffd6c8; transition: background .2s;
}
.modal-fav-btn.is-fav { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 页脚 ===== */
.footer { text-align: center; padding: 30px 20px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .search-box input { width: 140px; }
  .ingredient-list { grid-template-columns: 1fr; }
}

/* ===== 卡片图片 ===== */
.card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-banner { overflow: hidden; }
.card-banner span { font-size: 52px; }

/* ===== 食材反查 ===== */
.hint { color: var(--muted); margin-bottom: 16px; font-size: 14px; }
.hint-inline { font-size: 13px; margin-left: 6px; color: var(--muted); }
.hint-inline.ok { color: #1f9d57; }
.hint-inline.err { color: #d23b2a; }
.reverse-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mini-input { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; outline: none; min-width: 180px; }
.mini-input:focus { border-color: var(--primary); }
.check-inline { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.ingredient-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; max-height: 220px; overflow: auto; padding: 4px; }
.ing-chip { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 13px; transition: all .15s; }
.ing-chip:hover { border-color: var(--primary); color: var(--primary); }
.ing-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.match-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 4px 0 8px; }
.match-badge.ok { background: #e6f7ee; color: #1f9d57; }
.match-badge.near { background: #fff4e0; color: #d9881a; }

/* ===== 周菜单 ===== */
.week-table { overflow-x: auto; margin-bottom: 20px; }
.week-grid { width: 100%; border-collapse: collapse; min-width: 620px; }
.week-grid th, .week-grid td { border: 1px solid var(--line); padding: 10px; text-align: center; }
.week-grid thead th { background: #fff1ea; color: var(--primary); font-weight: 700; }
.day-th { background: #faf4ef; font-weight: 700; white-space: nowrap; }
.meal-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.meal-picker { position: relative; min-width: 170px; }
.meal-search {
  width: 100%; padding: 7px 30px 7px 8px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; background: #fff; outline: none;
}
.meal-search:focus { border-color: var(--primary); }
.meal-clear {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 18px; height: 18px; line-height: 16px; font-size: 11px; color: var(--muted);
  background: #f0e6dd; border-radius: 50%; text-align: center; padding: 0;
}
.meal-clear:hover { color: var(--primary); }
.meal-drop {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
  max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.14); text-align: left;
}
.meal-opt {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  width: 100%; padding: 8px 12px; font-size: 13px; color: var(--text); background: #fff;
  border-bottom: 1px solid #faf4ef; text-align: left;
}
.meal-opt:hover { background: #fff1ea; color: var(--primary); }
.meal-opt em { font-style: normal; font-size: 11px; color: var(--muted); flex-shrink: 0; }
.meal-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meal-empty { padding: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.meal-note { padding: 8px 12px; font-size: 12px; color: var(--muted); background: #fff8f3; border-top: 1px solid var(--line); }

/* ===== 分批加载 ===== */
.load-more { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 26px 0 6px; }
.load-more-text { font-size: 13px; color: var(--muted); }
.week-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 24px; }
.shop-list { display: flex; flex-direction: column; gap: 12px; }
.shop-zone { border: 1px dashed var(--line); border-radius: 14px; padding: 10px 12px 12px; background: #fff; }
.shop-zone-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; color: var(--accent, #e8590c); margin-bottom: 10px; }
.shop-zone-count { font-size: 12px; color: var(--muted); font-weight: 400; }
.shop-zone ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.shop-zone li { display: flex; justify-content: space-between; align-items: center; background: #faf4ef; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.shop-empty { grid-column: 1 / -1; justify-content: center; color: var(--muted); background: transparent; border-style: dashed; padding: 18px; text-align: center; }
.shop-count { font-size: 12px; color: var(--muted); }

/* 烹饪攻略合集 */
.tip-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.tip-group summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 16px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  user-select: none;
  background: linear-gradient(135deg, #fff7f2, #fdeee6);
  transition: background .2s;
}
.tip-group summary::-webkit-details-marker { display: none; }
.tip-group summary::after {
  content: '▾';
  margin-left: auto;
  color: var(--primary);
  transition: transform .2s;
}
.tip-group[open] summary::after { transform: rotate(180deg); }
.tip-group summary:hover { background: #ffead9; }
.tip-ggroup-icon { font-size: 18px; }
.tip-count { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.tip-zone {
  padding: 8px 14px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.tip-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: #faf4ef;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13.5px;
  line-height: 1.55;
}
.tip-text { color: #444; }
.tip-src {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 11.5px;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.tip-src:hover { text-decoration: underline; }
.tip-zone .tip-more {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 4px;
}

/* 周菜单总耗时 / 营养汇总 */
.week-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 18px 0 6px;
}
.week-summary .sum-item {
  background: linear-gradient(135deg, #fff7f2, #fdeee6);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.week-summary .sum-kcal { background: linear-gradient(135deg, #fff0e8, #ffe0cf); }
.week-summary .sum-meals { background: linear-gradient(135deg, #eef6ff, #e3efff); }
.week-summary .sum-num { font-size: 24px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.week-summary .sum-kcal .sum-num { color: #e8552d; }
.week-summary .sum-meals .sum-num { color: #2b7de9; }
.week-summary .sum-label { font-size: 12px; color: var(--muted); }
.summary-note { font-size: 12px; color: var(--muted); margin: 2px 0 4px; }


/* ===== 分享行 ===== */
.share-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ===== 打印友好版 ===== */
@media print {
  body { background: #fff !important; }
  header.navbar, .hero, footer, .btn, .search-box, .nav-links,
  .section-head .btn, .week-actions, .share-row, .modal-tools,
  .reverse-controls, .filter-bar, #recipeMoreBtn, #reverseMoreBtn,
  .meal-picker, .random-result, .mealkit-wrap { display: none !important; }
  main.container { max-width: 100% !important; padding: 0 !important; }
  .recipe-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .recipe-card { break-inside: avoid; page-break-inside: avoid; }
  .modal { position: static !important; display: block !important; }
  .modal-mask { display: none !important; }
  .modal-card { width: 100% !important; max-height: none !important; border-radius: 0 !important; box-shadow: none !important; animation: none !important; }
  .modal-banner { height: auto !important; }
  .modal-body { padding: 16px 4px !important; }
}
