:root {
  /* 毕通科技设计系统（知识库 site.css 提取） */
  --c-bg: #fff;
  --c-fg: #111;
  --c-ac: #d96400;
  --c-su: #f7f8fa;
  --c-mu: #6b7280;
  --c-bo: #d9dee7;
  --primary: #d96400;
  --primary-dark: #c25500;
  --primary-soft: #fdf1e6;
  --bg: #ffffff;
  --card: #ffffff;
  --surface: #f7f8fa;
  --text: #111111;
  --muted: #6b7280;
  --border: #d9dee7;
  --green: #16a34a;
  --red: #dc2626;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.05);
  --radius: 8px;
}

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

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.hidden { display: none !important; }

/* 盲盒 */
.blindbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
  text-align: center;
}
.blindbox-btn {
  border: none;
  background: linear-gradient(145deg, var(--primary) 0%, #ff8a3d 100%);
  color: #fff;
  border-radius: 28px;
  padding: 42px 46px;
  box-shadow: 0 12px 30px rgba(217, 100, 0, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.blindbox-btn:active { transform: scale(0.96); box-shadow: 0 6px 16px rgba(217, 100, 0, 0.25); }
.blindbox-emoji { font-size: 52px; line-height: 1; }
.blindbox-text { font-size: 19px; font-weight: 600; letter-spacing: 1px; }
.blindbox-sub { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* 今日定制入口 */
.today-menu-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  cursor: pointer;
  border: 1px dashed var(--primary);
}
.menu-ico { font-size: 22px; }
.today-menu-main { flex: 1; min-width: 0; }
.today-menu-card .name { font-size: 14px; font-weight: 600; color: var(--primary-dark); }
.today-menu-card .desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.today-menu-card .right { color: var(--muted); font-size: 13px; }
.menu-focus { border: 2px solid var(--primary); }

/* 一页三餐 */
.meal-summary-card { margin-bottom: 10px; }
.meal-card { margin-bottom: 12px; }
.meal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.meal-title { font-size: 16px; font-weight: 700; }
.meal-items { padding: 2px 0; }
.meal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface);
}
.meal-item:last-child { border-bottom: none; }
.meal-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: 0 0 auto;
}
.meal-badge.meat { background: #fee2e2; }
.meal-badge.veg { background: #dcfce7; }
.meal-badge.soup { background: #e0f2fe; }
.meal-badge.noodle { background: #ffedd5; }
.meal-badge.rice { background: #ede9fe; }
.meal-badge.dimsum { background: #ccfbf1; }
.meal-badge.staple { background: #fef3c7; }
.meal-badge.dessert { background: #fce7f3; }
.meal-badge.drink { background: #e0f2fe; }
.meal-badge.cold { background: #f1f5f9; }
.meal-badge.dish { background: #ffedd5; }
.meal-thumb {
  width: 60px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--surface);
}
.meal-item-main { flex: 1; min-width: 0; cursor: pointer; }
.meal-item-name { font-size: 14px; font-weight: 600; }
.meal-item-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.meal-reason-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: none;
  background: var(--surface);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
}
.fav-btn {
  border: none;
  background: transparent;
  font-size: 16px;
  color: #cbd5e1;
  cursor: pointer;
  padding: 4px 6px;
}
.fav-btn.on { color: #ef4444; }
.meal-decision {
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.meal-decision-label { font-size: 12px; color: var(--muted); margin-right: 4px; }

/* 我的 */
.mine-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
.mine-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.mine-card:active { background: var(--surface); }
.mine-ico { font-size: 26px; }
.mine-name { font-size: 15px; font-weight: 600; }
.mine-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.back-btn { margin-bottom: 8px; }

/* 口味树 */
.taste-group { border-bottom: 1px solid var(--border); padding: 8px 0; }
.taste-parent {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.taste-parent.selected { color: var(--primary-dark); }
.taste-caret { color: var(--muted); font-size: 12px; width: 14px; }
.taste-parent-name { flex: 1; }
.chip-mini {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--muted);
}
.chip-mini.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
.taste-children {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-left: 22px;
}
#add-list { max-height: 46vh; overflow-y: auto; }

/* 顶栏 */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px calc(10px + env(safe-area-inset-top));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.app-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.term-badge {
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  letter-spacing: 0.5px;
}

.app-main { padding: 12px 14px 24px; }

/* 餐次切换 */
.meal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.meal-tabs button {
  flex: 1;
  padding: 9px 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.meal-tabs button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* 人数选择 */
.party-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.party-label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.party-chips {
  display: flex;
  gap: 8px;
  flex: 1;
}

.party-chips button {
  flex: 1;
  padding: 7px 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.party-chips button.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
}

/* 卡片 */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-meta {
  font-size: 13px;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 48px 20px;
}

.empty-state .big {
  font-size: 40px;
  margin-bottom: 8px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); color: #fff; flex: 1; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); flex: 1; }
.btn-green { background: var(--green); color: #fff; flex: 1; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.action-row { display: flex; gap: 8px; margin-top: 12px; }

/* 三路决策 */
.decision-row { display: flex; gap: 8px; margin-top: 8px; }

.decision-btn {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

.decision-btn .ico { display: block; font-size: 22px; margin-bottom: 4px; }
.decision-btn.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

.decision-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}

.decision-hint .suggest { color: var(--primary-dark); font-weight: 600; }

/* 菜谱条目 */
.recipe-card { padding: 0; overflow: hidden; }
.recipe-card-img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
  background: var(--surface);
}
.recipe-card-body { padding: 12px 14px 14px; }
.season-reason {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  color: #15803d;
  background: #dcfce7;
  border-radius: 999px;
  padding: 3px 10px;
}
.recipe-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.recipe-item:last-child { border-bottom: none; }

.recipe-thumb {
  width: 56px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--surface);
}
.recipe-item-main { min-width: 0; }
.recipe-item .name { font-size: 15px; font-weight: 600; }
.recipe-item .desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.recipe-item .right { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }

.modal-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--surface);
}

/* 加菜 */
.add-dish-card { padding: 8px; }
.add-tip { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.add-kind { margin-bottom: 14px; }
.add-kind-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.add-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
}
.add-check {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.add-check input { flex: 0 0 auto; }
.add-text { display: flex; flex-direction: column; min-width: 0; }
.add-name {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.add-meta { font-size: 11px; color: var(--muted); white-space: nowrap; }
.add-qty { width: 62px; padding: 6px 8px; }
.add-empty { font-size: 12px; color: var(--muted); padding: 6px 0; }
.add-submit { width: 100%; margin-top: 8px; }

/* 人数选择 */
#party-custom {
  border: 1px dashed var(--primary);
  color: var(--primary-dark);
}

.main-badge {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: 6px;
  padding: 1px 6px;
  margin-right: 6px;
}

.status-badge {
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 10px;
}

.status-draft { background: #fef3c7; color: #b45309; }
.status-confirmed { background: #dcfce7; color: #166534; }
.status-skipped { background: #f5f5f4; color: #78716c; }

.decision-badge {
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 10px;
  background: #e0f2fe;
  color: #0369a1;
}

.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  background: #eef1f5;
  border-radius: 999px;
  padding: 2px 9px;
  margin: 2px 4px 2px 0;
}

/* 反馈 */
.feedback-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.stars { display: flex; gap: 6px; margin: 6px 0; }
.stars .star { font-size: 24px; color: #d6d3d1; cursor: pointer; }
.stars .star.on { color: #f59e0b; }

.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.reason-chips button {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.reason-chips button.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }

/* 详情弹层 */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 10px 10px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  animation: slide-up 0.18s ease;
}

@keyframes slide-up {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: #f5f5f4;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
}

.modal-card h2 { font-size: 18px; margin: 4px 0 6px; padding-right: 36px; }
.modal-card h3 {
  font-size: 14px;
  color: var(--primary-dark);
  margin: 14px 0 6px;
}
.ingredient-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
.ingredient-row .alt { color: var(--muted); font-size: 12px; }
.modal-card ol { padding-left: 20px; font-size: 14px; }
.modal-card ol li { margin-bottom: 6px; }

.copy-box {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  max-height: 300px;
  overflow-y: auto;
}

.copy-box pre {
  font-family: inherit;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.copy-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* 设置 */
.setting-group { margin-bottom: 14px; }
.setting-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
.text-input, .num-input, .select-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: var(--card);
  color: var(--text);
}
.add-input { display: flex; gap: 6px; margin-top: 6px; }
.add-input .text-input { flex: 1; }

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 0px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  display: flex;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 8px 12px 8px;
  z-index: 30;
}

.bottom-nav button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0 4px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.bottom-nav button.active { color: var(--primary); font-weight: 700; }

/* Feather 线性图标（对齐毕通科技：24 viewBox / stroke=currentColor） */
.icon { display: inline-block; vertical-align: middle; }
.nav-icon { width: 22px; height: 22px; }
.back-icon { width: 14px; height: 14px; margin-right: 2px; }
.btn-icon { width: 16px; height: 16px; margin-right: 4px; }
.chip-icon { width: 14px; height: 14px; margin-right: 4px; }
.h2-icon { width: 20px; height: 20px; margin-right: 6px; color: var(--primary); }
.blindbox-emoji .icon { width: 56px; height: 56px; }
.mine-ico .icon { width: 26px; height: 26px; color: var(--primary); }
.fav-btn .icon { width: 18px; height: 18px; }
.fav-btn.on .icon { fill: #ef4444; color: #ef4444; }
.ico .icon { width: 20px; height: 20px; }
.empty-state .big .icon { width: 34px; height: 34px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 60;
  max-width: 86vw;
  text-align: center;
}

.search-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 15px;
  background: #fff;
  margin-bottom: 10px;
}

/* 菜谱库 */
.cuisine-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.cuisine-chips .chip {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13px;
}
.cuisine-chips .chip-count {
  font-size: 11px;
  color: var(--muted);
  margin-left: 3px;
}
.cuisine-chips .chip.on .chip-count { color: var(--primary); }
.recipe-summary {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.load-more {
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border-radius: 10px;
}

/* 菜单编辑 */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 10px 0;
}
.cal-cell {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 8px 2px;
  font-size: 11px;
  text-align: center;
  cursor: pointer;
  position: relative;
}
.cal-cell.on {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}
.cal-dot {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.menu-day-detail { margin-top: 4px; }
.menu-dish {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface);
}
.menu-dish:last-child { border-bottom: none; }
.menu-day { border-bottom: 1px solid var(--border); padding: 10px 0; }
.day-label { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.menu-meal { margin-bottom: 8px; }
.meal-label {
  font-size: 12px;
  color: var(--muted);
  display: inline-block;
  width: 34px;
}
.menu-meal-slots { display: flex; gap: 6px; }
.menu-meal-slots .menu-day-input { flex: 1; padding: 7px 9px; font-size: 13px; }
.menu-day-input {
  flex: 1;
}

/* 冰箱 */
.fridge-add {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.fridge-add-row { display: flex; gap: 6px; }
.fridge-add-row .fridge-qty { flex: 1; min-width: 0; padding: 8px 10px; font-size: 14px; }
.fridge-add-row .fridge-unit { flex: 1; min-width: 0; padding: 8px 10px; font-size: 14px; }
.fridge-add-row .btn { flex: 0 0 auto; padding: 8px 12px; font-size: 14px; }

/* 食材下拉选择器 */
.ing-select { position: relative; width: 100%; min-width: 0; }
.ing-select .text-input { padding-right: 34px; }
.ing-select-arrow {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 8px;
  cursor: pointer;
}
.ing-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 50;
  overflow: hidden;
}
.ing-dropdown-search { border: none; border-bottom: 1px solid var(--border); border-radius: 0; }
.ing-dropdown-list { max-height: 240px; overflow-y: auto; }
.ing-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.ing-option:active { background: var(--surface); }
.ing-name { font-weight: 500; }
.ing-cat { font-size: 11px; color: var(--muted); }
.ing-empty { padding: 12px; font-size: 13px; color: var(--muted); text-align: center; }

.fridge-add .text-input { width: 100%; padding: 8px 34px 8px 10px; font-size: 14px; }

.fridge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
}

.fridge-item:last-child { border-bottom: none; }
.fridge-item .name { font-size: 15px; font-weight: 600; }
.fridge-item .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fridge-item .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* 购物清单单行条目 */
.shop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border);
}
.shop-item:last-child { border-bottom: none; }
.shop-item .shop-name { font-size: 14px; font-weight: 500; }
.shop-item .shop-amount { font-size: 12px; color: var(--muted); }
.shop-item .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* 定制菜单 */
.menu-create { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.menu-create .text-input { flex: 2; min-width: 120px; padding: 8px 10px; font-size: 14px; }
.menu-create .select-input { flex: 1; min-width: 100px; padding: 8px 10px; font-size: 14px; }
.menu-create .btn { padding: 8px 12px; font-size: 14px; }

.menu-day-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}

.menu-day-row:last-child { border-bottom: none; }
.menu-day-row .day-label { width: 52px; color: var(--muted); flex-shrink: 0; }
.menu-day-row select { flex: 1; min-width: 0; }

.app-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.app-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
}

.conn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}

.conn-row:last-child { border-bottom: none; }
.conn-row .conn-name { width: 64px; flex-shrink: 0; font-weight: 600; }
.conn-row input[type="text"] { flex: 1; min-width: 0; padding: 6px 8px; font-size: 12px; border: 1px solid var(--border); border-radius: 6px; }
.conn-row label { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- 定制日历 ---------- */
.cal-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-month-label { flex: 1; text-align: center; font-weight: 600; white-space: nowrap; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-cell {
  position: relative; min-height: 40px; border-radius: 8px; background: var(--card-bg, #fff);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; flex-direction: column;
}
.cal-cell:hover { border-color: var(--primary, #e8695a); }
.cal-today { border-color: var(--primary, #e8695a); font-weight: 700; }
.cal-empty { border: none; background: transparent; cursor: default; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 3px; }
.dot-past { background: #aaa; }
.dot-today { background: #2e9e5b; }
.dot-future { background: #e0533d; }
.menu-custom-range { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.menu-custom-range label { font-size: 12px; color: var(--muted); }
#menu-day-detail .meal-block { margin-top: 8px; }
#menu-day-detail .tag { margin-bottom: 4px; }

/* ---------- 登录页 / 用户 ---------- */
.login-view { min-height: 100vh; display: flex; flex-direction: column; padding: 0; }
.login-card { width: 100%; max-width: 340px; text-align: center; }
.login-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.user-area { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.user-name { font-size: 13px; color: var(--muted); }

/* 毕通科技导航（对齐员工登录页） */
.bt-nav {
  position: sticky; top: 0; z-index: 50;
  width: 100vw; margin-left: calc(50% - 50vw);
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.bt-nav-inner { max-width: 1152px; margin: 0 auto; padding: 0 16px; }
.bt-nav-bar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.bt-logo { display: flex; align-items: center; }
.bt-logo img { height: 36px; width: auto; display: block; }
.bt-links { display: flex; align-items: center; gap: 4px; }
.bt-links a {
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: #4b5563; text-decoration: none; white-space: nowrap;
}
.bt-links a:hover { background: #f3f4f6; color: #1f2937; }
.bt-links a.active { background: var(--primary-soft); color: var(--primary); }
.bt-toggle {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none; background: none; border-radius: 8px;
  color: var(--text); cursor: pointer;
}
.bt-toggle:hover { background: #f3f4f6; }
.bt-mobile { display: none; padding-bottom: 12px; border-top: 1px solid var(--border); }
.bt-mobile a { display: block; padding: 10px 8px; font-size: 14px; font-weight: 500; color: #4b5563; text-decoration: none; }
.bt-mobile a:hover { color: var(--primary); }
.bt-mobile a.active { color: var(--primary); }
@media (max-width: 768px) {
  .bt-links { display: none; }
  .bt-toggle { display: flex; }
  .bt-mobile.open { display: block; }
}
.login-body { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; padding: 0 20px; }
