/* ============================================================
   教职工供餐服务平台 - 原型样式
   蓝白配色 / 卡片式布局 / 大按钮
   ============================================================ */
:root {
  --primary: #1a6fd4;
  --primary-deep: #0f4fa8;
  --primary-light: #e8f2ff;
  --primary-lighter: #f4f9ff;
  --bg: #f2f6fb;
  --card: #ffffff;
  --text: #1f2d3d;
  --text-sub: #66788c;
  --text-light: #9aa9ba;
  --line: #e5edf7;
  --orange: #f59e0b;
  --orange-deep: #c96a1b;
  --orange-bg: #fff7e8;
  --red: #e34d4d;
  --red-bg: #ffeded;
  --green: #1fa463;
  --green-deep: #137348;
  --green-bg: #eafaf2;
  --gray: #9aa9ba;
  --gray-bg: #f0f3f7;
  --shadow: 0 6px 20px rgba(26, 111, 212, 0.08);
  --shadow-lg: 0 12px 36px rgba(15, 79, 168, 0.16);
  --radius: 14px;
  --radius-sm: 10px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; max-width: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--primary); text-decoration: none; }

/* 通用工具 */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.center { display: flex; align-items: center; justify-content: center; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.orange { background: var(--orange-bg); color: var(--orange); }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.gray { background: var(--gray-bg); color: var(--gray); }
.badge.blue { background: var(--primary-light); color: var(--primary); }
/* 菜品标签徽章（效果二）：emoji + 文字胶囊，9种背景 + 无背景 */
.tag-chip { display:inline-flex; align-items:center; gap:3px; font-size:10px; font-weight:700; padding:2px 6px; border-radius:6px; margin-right:5px; vertical-align:middle; line-height:1.4; white-space:nowrap; }
.tag-chip .tc-emo { font-size:11px; }
.tag-chip.bg-gold { background:#FFF2B8; color:#8B6914; }
.tag-chip.bg-orange { background:#FFE0D6; color:#C24A10; }
.tag-chip.bg-green { background:#E4F3E8; color:#2E7D46; }
.tag-chip.bg-blue { background:#E3F0FF; color:#1D4ED8; }
.tag-chip.bg-gray { background:#ECF0F1; color:#2C3E50; }
.tag-chip.bg-purple { background:#EFE8FB; color:#6B3FA0; }
.tag-chip.bg-rose { background:#FFE4EC; color:#B02A5B; }
.tag-chip.bg-cyan { background:#DFF5F5; color:#147D7D; }
.tag-chip.bg-brown { background:#F0E4D6; color:#7A5A2E; }
.tag-chip.bg-none { background:transparent; padding-left:0; padding-right:0; }
/* 前台菜谱标签（原型效果二）：emoji 裸图标 + 文字胶囊背景，emoji 不进胶囊 */
.tag-combo { display:inline-flex; align-items:center; gap:3px; flex:none; vertical-align:middle; margin-right:5px; white-space:nowrap; }
.tag-combo .emo { font-size:13px; line-height:1; }
.tag-combo .txt { font-size:10px; font-weight:700; padding:2px 6px; border-radius:6px; line-height:1.4; }
.tag-combo .txt.bg-gold { background:#FFF2B8; color:#8B6914; }
.tag-combo .txt.bg-orange { background:#FFE0D6; color:#C24A10; }
.tag-combo .txt.bg-green { background:#E4F3E8; color:#2E7D46; }
.tag-combo .txt.bg-blue { background:#E3F0FF; color:#1D4ED8; }
.tag-combo .txt.bg-gray { background:#ECF0F1; color:#2C3E50; }
.tag-combo .txt.bg-purple { background:#EFE8FB; color:#6B3FA0; }
.tag-combo .txt.bg-rose { background:#FFE4EC; color:#B02A5B; }
.tag-combo .txt.bg-cyan { background:#DFF5F5; color:#147D7D; }
.tag-combo .txt.bg-brown { background:#F0E4D6; color:#7A5A2E; }
.tag-combo .txt.bg-none { background:transparent; padding-left:0; padding-right:0; }
/* 文案管理：可视化定位编辑 */
.tv-bar { display:flex; gap:8px; margin-bottom:14px; }
.tv-layout { display:grid; grid-template-columns:150px 1fr 300px; gap:14px; align-items:start; }
@media(max-width:1100px){ .tv-layout{ grid-template-columns:1fr; } }
.tv-pages button { display:block; width:100%; text-align:left; border:0; background:#faf6f3; color:var(--ink); padding:9px 11px; border-radius:8px; margin-bottom:5px; cursor:pointer; font-size:13px; font-weight:600; }
.tv-pages button.on { background:var(--primary); color:#fff; }
.tv-pages button small { float:right; opacity:.7; font-weight:400; }
.tv-stage { display:flex; justify-content:center; background:#eef1f5; border-radius:12px; padding:16px; }
.tv-phone { width:290px; background:#fff8f3; border:2px solid #e7ddd3; border-radius:24px; overflow:hidden; box-shadow:0 8px 24px rgba(30,50,80,.12); }
.tv-hdr { background:linear-gradient(135deg,var(--primary),var(--primary-deep)); color:#fff; padding:14px; font-size:14px; font-weight:700; }
.tv-hdr .tv-back { font-size:18px; margin-bottom:4px; }
.tv-body { padding:12px; color:var(--ink); }
.tv-guide { background:#fff; border-radius:10px; padding:11px; margin-bottom:10px; }
.tv-guide b { font-size:13px; } .tv-guide p { font-size:11px; color:var(--text-sub); margin-top:5px; line-height:1.6; }
.tv-deadline { font-size:11px; color:var(--text-sub); margin-top:8px; }
.tv-card { background:#fff; border-radius:10px; padding:11px; }
.tv-card-title { font-size:13px; font-weight:700; margin-bottom:8px; }
.tv-dish { display:flex; justify-content:space-between; font-size:12px; padding:8px; background:#fff8f3; border-radius:8px; margin-bottom:6px; }
.tv-dish-tip, .tv-inline { font-size:11px; color:var(--text-sub); margin-top:8px; }
.tv-cat { font-size:13px; font-weight:700; margin:10px 0 6px; }
.tv-quote { background:#fff; border-radius:10px; padding:12px; font-size:12px; color:var(--text-sub); margin-bottom:10px; }
.tv-invite { font-size:12px; padding:6px 0; border-bottom:1px solid var(--line); }
.tv-login { text-align:center; padding:24px 14px; } .tv-login h2 { font-size:16px; } .tv-login p { font-size:12px; color:var(--text-sub); margin-top:6px; }
.tv-fields input { display:block; width:100%; border:1px solid var(--line); border-radius:8px; padding:8px; margin-top:8px; font-size:12px; }
.tv-btn { background:var(--primary); color:#fff; border-radius:8px; padding:10px; margin-top:12px; font-size:13px; font-weight:700; }
.tv-tip { font-size:11px; color:var(--text-sub); margin-top:14px; }
.tv-ok { width:48px; height:48px; border-radius:50%; background:#e4f3e8; color:#2e7d46; font-size:28px; line-height:48px; margin:0 auto 12px; }
.tv-slot { position:relative; border:2px dashed transparent; border-radius:6px; padding:1px 3px; margin:-1px -3px; cursor:pointer; display:inline; }
.tv-slot:hover { border-color:#ffc9a9; background:#fff6ef; }
.tv-slot.active { border-color:var(--primary); background:#fff0e6; }
.tv-slot .tv-pin { display:none; position:absolute; top:-9px; right:-6px; background:var(--primary); color:#fff; font-size:9px; font-style:normal; font-weight:700; padding:1px 5px; border-radius:7px; white-space:nowrap; z-index:2; }
.tv-slot:hover .tv-pin, .tv-slot.active .tv-pin { display:block; }
.tv-editor { background:#fff; border-radius:12px; padding:14px; border:1px solid var(--line); }
.tv-editor h4 { font-size:13px; margin-bottom:10px; }
.tv-curkey { font-family:monospace; font-size:12px; color:var(--primary-deep); background:#fff1e8; padding:5px 8px; border-radius:6px; margin-bottom:10px; }
.tv-editor label { display:block; font-size:12px; font-weight:700; margin-bottom:5px; }
.tv-editor textarea { width:100%; border:1px solid var(--line); border-radius:8px; padding:9px; font-size:13px; font-family:inherit; resize:vertical; }
.tv-ops { margin-top:10px; }
.tv-keys .tv-kv { display:flex; justify-content:space-between; font-size:11px; padding:6px; border-radius:6px; cursor:pointer; }
.tv-keys .tv-kv:hover { background:#faf4ef; }
.tv-keys .tv-kv.on { background:#fff0e6; color:var(--primary-deep); font-weight:700; }
.tv-keys code { font-size:11px; color:var(--primary-deep); }
.muted { color: var(--text-sub); }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.price { color: var(--orange); font-weight: 700; }
.price-free { color: var(--green); font-weight: 700; }
.section-title { font-size: 16px; font-weight: 700; margin: 18px 2px 10px; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }

/* 大按钮（按钮色板：主/次/禁用/按下 + 对应文字色） */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 8px; font-weight: 600;
  background: var(--btn-primary, var(--primary)); color: var(--txt-on-primary, #fff);
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(.96); }
.btn:active { background: var(--btn-pressed, var(--primary-deep)); transform: scale(.98); }
.btn.lg { padding: 14px 22px; font-size: 16px; border-radius: 12px; width: 100%; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--btn-secondary, var(--primary-light)); color: var(--txt-on-secondary, var(--primary)); }
.btn.line { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn.gray { background: var(--btn-disabled, var(--gray-bg)); color: var(--txt-on-disabled, var(--gray)); }
.btn.orange { background: var(--orange); color: #fff; }
.btn.danger { background: var(--red); color: #fff; }
.del-confirm { text-align: center; padding: 6px 0 10px; }
.del-confirm .del-icon { width: 46px; height: 46px; border-radius: 50%; background: #FDECEA; color: var(--red); font-size: 26px; font-weight: 800; line-height: 46px; margin: 0 auto 12px; }
.del-confirm p { margin: 6px 0; font-size: 14px; }
.del-confirm-btn { padding: 9px 22px; font-size: 14px; }
.btn.sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.btn[disabled], .btn.disabled { background: var(--btn-disabled, #d7e0ec) !important; color: var(--txt-on-disabled, #97a6b8) !important; cursor: not-allowed; opacity: 1; }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-sub); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.form-row { display: flex; gap: 12px; }
.form-row > .field { flex: 1; }

/* ============================================================
   移动端
   ============================================================ */
.mobile-app {
  max-width: 430px; margin: 0 auto; min-height: 100vh;
  background: var(--bg); position: relative;
  box-shadow: 0 0 40px rgba(15, 79, 168, .1);
  padding-bottom: 72px;
}
.mobile-page { display: none; min-height: 100vh; }
.mobile-page.active { display: block; }
.mobile-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff; padding: 24px 18px 22px; border-radius: 0 0 22px 22px;
}
.mobile-header h1 { margin: 0; font-size: 22px; font-weight: 700; }
.mobile-header p { margin: 6px 0 0; opacity: .9; font-size: 13px; }
/* 本周菜单头部：早餐淡橙、午餐浅蓝 */
body[data-app="mobile"] .mobile-header.menu-hero.breakfast { background: linear-gradient(135deg, #f7b26b, #e68a3c); }
body[data-app="mobile"] .mobile-header.menu-hero.lunch { background: linear-gradient(135deg, #7fb2e8, #4a86c5); }
.mobile-body { padding: 16px; }

/* 底部导航 */
.mobile-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 64px; background: #fff;
  display: flex; z-index: 50; box-shadow: 0 -4px 18px rgba(15,79,168,.08);
  border-top: 1px solid var(--line);
}
.mobile-tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; color: var(--text-light); font-size: 11px;
}
.mobile-tabbar .tab.active { color: var(--primary); font-weight: 700; }
.mobile-tabbar .tab .ico { font-size: 21px; line-height: 1; }

/* 登录：与订货主站一致的品牌 logo + 厨师形象 */
.login-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(circle at 50% 8%, #fff 0, transparent 42%),
              linear-gradient(160deg, var(--primary-light), var(--bg) 55%, #fff);
}
.login-hero { padding: 40px 24px 18px; text-align: center; }
.brand-mascot-wrap {
  width: 132px; height: 132px; margin: 0 auto 14px; padding: 6px;
  border-radius: 50%; background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 14px 34px rgba(196, 112, 78, .16), inset 0 0 0 4px rgba(255,255,255,.55);
}
.brand-mascot { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.brand-title { font-size: 20px; font-weight: 800; letter-spacing: .5px; margin: 0 0 6px; color: var(--text); line-height: 1.4; }
.login-hero p { margin: 0; color: var(--text-sub); font-size: 13px; }
.login-card {
  background: #fff; margin: 0 20px; padding: 22px 20px; border-radius: 22px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.login-card-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 18px; }
.lch-mark { width: 4px; height: 15px; border-radius: 3px; background: var(--primary); }
.lch-sub { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-light); }
.login-tip { text-align: center; color: var(--text-light); font-size: 12px; margin-top: 18px; line-height: 1.7; }

/* 首页反馈卡 */
.feedback-card {
  background: #fff; border-radius: var(--radius); padding: 16px;
  margin-bottom: 14px; box-shadow: var(--shadow); border-left: 5px solid var(--primary);
  position: relative;
}
.feedback-card.orange { border-left-color: var(--orange); }
.feedback-card.gray { border-left-color: var(--gray); }
.feedback-card .fc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.feedback-card .fc-meal { font-size: 17px; font-weight: 700; }
.feedback-card .fc-date { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.feedback-card .fc-deadline { font-size: 12px; color: var(--orange); margin-top: 8px; font-weight: 600; }
.feedback-card .fc-deadline.dead { color: var(--gray); }
.feedback-card .fc-action { margin-top: 12px; }
.feedback-card .fc-summary { font-size: 12px; color: var(--text-sub); margin-top: 8px; }

/* 快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-card {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: var(--card); border-radius: 18px; padding: 14px;
  min-height: 106px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .12s ease, opacity .12s ease;
}
.quick-card::after {
  content: ""; position: absolute; right: 0; bottom: -26px;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--primary-light); opacity: .55;
}
.quick-card > * { position: relative; z-index: 1; }
.qc-art { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 9px; }
.qc-label { font-size: 14px; font-weight: 700; }
.qc-hint { font-size: 11px; color: var(--text-sub); margin-top: 3px; }
.qc-menu .qc-art { background: #fff0e8; color: #ef6a4c; }
.qc-review .qc-art { background: #fff5df; color: #e89a26; }
.qc-order .qc-art { background: #e9f7ef; color: #3f9e73; }
.qc-news .qc-art { background: #eef1ff; color: #6b7dd8; }
.quick-card:active { transform: scale(.98); opacity: .85; }

/* 明日报餐卡 · SVG 插画背景与个性化按钮 */
.feedback-card.meal-lunch, .feedback-card.meal-breakfast {
  background-color: var(--card); background-size: cover; background-position: right center;
  min-height: 152px; padding-bottom: 12px;
}
.feedback-card.meal-lunch { background-image: url('bg-lunch.svg'); border-left-color: #4aa8b8; }
.feedback-card.meal-breakfast { background-image: url('bg-breakfast.svg'); border-left-color: #e8bb4e; }
.feedback-card.meal-lunch.gray, .feedback-card.meal-breakfast.gray { border-left-color: var(--gray); }
.feedback-card.meal-lunch .fc-meal, .feedback-card.meal-breakfast .fc-meal,
.feedback-card.meal-lunch .fc-date, .feedback-card.meal-breakfast .fc-date { text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.meal-hint { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; margin: 10px 0 4px; }
.meal-breakfast .meal-hint { color: #a9862a; }
.meal-lunch .meal-hint { color: #2f8b96; }
.hint-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.fc-action { display: flex; justify-content: flex-end; margin-top: 9px; }
.meal-cta {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px;
  border-radius: 22px; font-size: 13px; font-weight: 700; color: #fff;
  box-shadow: 0 5px 14px rgba(74, 168, 184, .24);
  transition: transform .12s ease, box-shadow .12s ease;
}
.meal-cta:active { transform: translateY(1px) scale(.97); }
.meal-breakfast .meal-cta { background: linear-gradient(135deg, #f2cf6a, #e0a93c); box-shadow: 0 5px 14px rgba(224, 169, 60, .25); }
.meal-lunch .meal-cta { background: linear-gradient(135deg, #5cbcc4, #2f8b96); box-shadow: 0 5px 14px rgba(47, 139, 150, .25); }
.meal-cta .cta-ico { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; }
.meal-cta .cta-ico svg { width: 14px; height: 14px; }
.meal-cta .cta-arrow { font-size: 16px; opacity: .85; }
.meal-cta.cta-done { background: var(--green-bg); color: var(--green); box-shadow: none; }
.meal-cta.cta-done .cta-ico { background: rgba(63,158,115,.15); }
.meal-cta.cta-dead, .meal-cta.cta-none { background: var(--gray-bg); color: var(--gray); box-shadow: none; }
.meal-cta.cta-dead .cta-ico, .meal-cta.cta-none .cta-ico { background: rgba(154,169,186,.16); }
.ann-pin { display: inline-flex; width: 15px; height: 15px; margin-right: 4px; vertical-align: -3px; }
.ann-pin svg { width: 15px; height: 15px; }
.list-item.pinned { background: #f5f7fb; }

/* 公告 / 列表项 */
.list-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-item { display: flex; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line); gap: 10px; }
.list-item:last-child { border-bottom: none; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .li-sub { font-size: 12px; color: var(--text-light); margin-top: 3px; }
.list-item .li-arrow { color: var(--text-light); }

/* 反馈页 */
.fb-head { background: #fff; padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
.fb-head .row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.fb-head .row:last-child { margin-bottom: 0; }
.fb-head .k { color: var(--text-sub); }
.fb-head .deadline-big { color: var(--orange); font-weight: 700; }
.choice-row { display: flex; gap: 12px; margin-bottom: 16px; }
.choice-card {
  flex: 1; background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center; font-size: 16px; font-weight: 700;
}
.choice-card.selected { border-color: var(--primary); background: var(--primary-lighter); color: var(--primary); }
.choice-card.selected.no { border-color: var(--red); background: var(--red-bg); color: var(--red); }
.cat-block { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.cat-block h4 { margin: 0 0 10px; font-size: 14px; color: var(--primary-deep); display: flex; align-items: center; gap: 8px; }
.cat-block h4::before { content: ""; width: 4px; height: 15px; background: var(--primary); border-radius: 2px; }
.dish-opt {
  display: flex; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--line); gap: 10px;
}
.dish-opt:last-child { border-bottom: none; }
.dish-opt .chk {
  width: 22px; height: 22px; border: 2px solid #c9d6e6; border-radius: 6px; flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px;
}
.dish-opt.checked .chk { background: var(--primary); border-color: var(--primary); }
.dish-opt .dname { flex: 1; }
.dish-opt .dprice { font-size: 13px; }

/* 菜单页 */
/* 前台菜单：早餐淡橙、午餐浅蓝，配色与图标统一 */
.meal-switch { display: flex; background: #fff; border-radius: 12px; padding: 4px; margin-bottom: 12px; box-shadow: var(--shadow); }
.meal-switch .ms { flex: 1; text-align: center; padding: 10px 0; border-radius: 9px; font-weight: 600; color: var(--text-sub); display: flex; align-items: center; justify-content: center; gap: 6px; }
.ms-ico { font-size: 17px; line-height: 1; }
.meal-switch .ms.active { background: var(--primary-lighter); color: var(--primary-deep); box-shadow: inset 0 0 0 1px var(--primary); }
.meal-switch.breakfast .ms.active { background: #fff1df; color: #d2772a; box-shadow: inset 0 0 0 1px #f0a85a; }
.meal-switch.lunch .ms.active { background: #e8f2fc; color: #3f74ac; box-shadow: inset 0 0 0 1px #7fb2e8; }
/* 日期：两行紧凑 chip，横向滚动，不再臃肿 */
.day-switch { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 4px; -webkit-overflow-scrolling: touch; }
.day-switch::-webkit-scrollbar { height: 0; }
.day-switch .ds { flex: 0 0 auto; min-width: 50px; text-align: center; padding: 6px 9px; border-radius: 9px; background: #fff; color: var(--text-sub); box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.25; }
.day-switch .ds b { font-size: 12px; font-weight: 600; }
.day-switch .ds small { font-size: 11px; opacity: .75; }
.day-switch.breakfast .ds.active { background: #fff1df; color: #d2772a; box-shadow: inset 0 0 0 1px #f0a85a; }
.day-switch.lunch .ds.active { background: #e8f2fc; color: #3f74ac; box-shadow: inset 0 0 0 1px #7fb2e8; }
.menu-cat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.menu-cat h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.menu-cat h4 .ic { font-size: 16px; line-height: 1; }
/* 分类标题按类别区分色：早餐暖色系、午餐冷色系，各类不同 */
.breakfast .menu-cat.cat-0 h4 { color: #c2410c; }
.breakfast .menu-cat.cat-1 h4 { color: #d97706; }
.breakfast .menu-cat.cat-2 h4 { color: #65a30d; }
.breakfast .menu-cat.cat-3 h4 { color: #b45309; }
.breakfast .menu-cat.cat-4 h4 { color: #a16207; }
.breakfast .menu-cat.cat-5 h4 { color: #ca8a04; }
.breakfast .menu-cat.cat-6 h4 { color: #db2777; }
.breakfast .menu-cat.cat-7 h4 { color: #e11d48; }
.breakfast .menu-cat.cat-8 h4 { color: #9333ea; }
.breakfast .menu-cat.cat-9 h4 { color: #0891b2; }
.breakfast .menu-cat.cat-10 h4 { color: #4d7c0f; }
.breakfast .menu-cat.cat-11 h4 { color: #be123c; }
.lunch .menu-cat.cat-0 h4 { color: #1d4ed8; }
.lunch .menu-cat.cat-1 h4 { color: #2563eb; }
.lunch .menu-cat.cat-2 h4 { color: #0f766e; }
.lunch .menu-cat.cat-3 h4 { color: #0369a1; }
.lunch .menu-cat.cat-4 h4 { color: #4338ca; }
.lunch .menu-cat.cat-5 h4 { color: #6d28d9; }
.lunch .menu-cat.cat-6 h4 { color: #7c3aed; }
.lunch .menu-cat.cat-7 h4 { color: #be185d; }
.lunch .menu-cat.cat-8 h4 { color: #0e7490; }
.lunch .menu-cat.cat-9 h4 { color: #4f46e5; }
.lunch .menu-cat.cat-10 h4 { color: #7e22ce; }
.lunch .menu-cat.cat-11 h4 { color: #9d174d; }
.menu-dish { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed var(--line); }
.menu-dish:last-child { border-bottom: none; }
.md-name { color: var(--text); font-size: 14px; min-width: 0; }
/* 价格弱化：无背景框，普通价灰色小字、免费深绿加粗，早餐午餐统一（对齐原型） */
.md-price { flex: none; }
.md-price .price, .md-price .price-free { white-space: nowrap; }
.md-price .price { color: var(--text-sub); font-size: 12px; font-weight: 400; }
.md-price .price-free { color: #3C5E38; font-size: 12px; font-weight: 700; }
/* 菜单内容区继承餐次配色：给 #menu-content 容器加餐次类即可统一 */
#menu-content.breakfast { color: var(--orange-deep, #c96a1b); }
#menu-content.lunch { color: var(--primary-deep); }

/* 详情页 */
.detail-hero { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; padding: 24px 18px; border-radius: 0 0 20px 20px; }
.detail-body { padding: 16px; }
.article { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); line-height: 1.8; }

/* 成功页 */
.success-wrap { text-align: center; padding: 70px 24px; }
.success-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 44px; margin: 0 auto 20px; }
.success-wrap h2 { margin: 0 0 8px; }
.success-wrap p { color: var(--text-sub); margin-bottom: 28px; }

/* 演示状态切换条 */
.demo-bar { background: #fff8e6; border: 1px dashed var(--orange); border-radius: 10px; padding: 10px; margin-bottom: 14px; font-size: 12px; }
.demo-restore {
  position: fixed; top: 12px; right: calc(50% - 215px); z-index: 60;
  padding: 6px 11px; border-radius: 16px; background: rgba(255,255,255,.92);
  color: var(--orange); font-size: 11px; font-weight: 700; box-shadow: var(--shadow);
  border: 1px solid var(--orange);
}
.demo-bar .demo-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.demo-chip { padding: 4px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--text-sub); }
.demo-chip.active { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 700; }

/* ---------- 移动端主题：固定主形象色板的明亮通透版 ---------- */
body[data-app="mobile"] {
  --primary: #F0A05A;
  --primary-deep: #D97E32;
  --primary-light: #FFF2E2;
  --primary-lighter: #FFFAF3;
  --bg: #FFFCF5;
  --card: #FFFFFF;
  --text: #3D2A1E;
  --text-sub: #6F5847;
  --text-light: #9C8574;
  --line: #F0E2D0;
  --orange: #F0A05A;
  --orange-deep: #C97A34;
  --orange-bg: #FFF3E4;
  --red: #E86A5A;
  --red-bg: #FDEEEA;
  --green: #7CC576;
  --green-deep: #4E9E4A;
  --green-bg: #EDF8E9;
  --gray-bg: #F5EDE0;
  --shadow: 0 8px 24px rgba(217,126,50,.10);
  --shadow-lg: 0 16px 40px rgba(217,126,50,.16);
}
/* 后台「是否用餐总开关」关闭：隐藏前台全部用餐相关区域，数据与后台功能不受影响 */
body.dining-off #home-page > #h10-open-banner,
body.dining-off #home-page .today-meal,
body.dining-off #home-page .quick-nav [data-go="menu-page"],
body.dining-off #home-page .home-foot,
body.dining-off #myfeedback-page [data-rtab="baocan"],
body.dining-off .mobile-tabbar .tab[data-tab="dining"] { display:none !important; }
body[data-app="mobile"] .login-wrap { background: radial-gradient(circle at 50% 8%, #FFFFFF 0, transparent 42%), linear-gradient(160deg, #FFE9CC, #FFFCF5 55%, #FFFFFF); }
body[data-app="mobile"] .mobile-header,
body[data-app="mobile"] .detail-hero { background: linear-gradient(135deg, #F7B871 0%, #F0A05A 55%, #D97E32 100%); }
.mobile-header { overflow: hidden; }
.mobile-header::before, .mobile-header::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.11); }
.mobile-header::before { right: 0; top: -44px; width: 140px; height: 140px; }
.mobile-header::after { right: 52px; bottom: -52px; width: 88px; height: 88px; background: rgba(255,255,255,.08); }
.mobile-header > :not(.mh-back), .detail-hero > :not(.mh-back) { position: relative; z-index: 1; }
.theme-tag { display: inline-block; margin-top: 10px; padding: 4px 11px; border-radius: 20px; background: rgba(255,255,255,.2); font-size: 11px; letter-spacing: .5px; }
.mobile-body .section-title::before {
  content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 4px;
  background: var(--primary); margin-right: 8px; vertical-align: -1px;
}

.guide-card { display: flex; gap: 12px; background: var(--card); border: 1px dashed var(--line); border-radius: 16px; padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.guide-icon { width: 42px; height: 42px; border-radius: 14px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.guide-title { font-weight: 700; font-size: 14px; }
.guide-sub { font-size: 12px; color: var(--text-sub); margin-top: 4px; line-height: 1.65; }
/* 我的：资料卡 + 分组菜单列表 */
.m-profile .m-profile-top { display: flex; align-items: center; gap: 14px; }
.m-profile .m-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex: none; }
.m-profile .m-profile-name { font-size: 18px; font-weight: 700; }
.m-profile .m-info-row { display: flex; justify-content: space-between; margin-top: 10px; }
.m-profile .m-info-row:first-of-type { margin-top: 0; }
.m-group { margin-top: 16px; }
.m-group-title { font-size: 12px; font-weight: 700; color: var(--text-sub); margin: 0 2px 8px; }
.m-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.m-list-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; text-align: left; position: relative; }
.m-list-item + .m-list-item::before { content: ""; position: absolute; left: 62px; right: 14px; top: 0; height: 1px; background: var(--line); }
.m-list-item:active { opacity: .7; }
.mli-ico { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.mli-orange { background: #fff5df; color: #e89a26; }
.mli-blue { background: var(--primary-light); color: var(--primary); }
.mli-green { background: #e9f7ef; color: #3f9e73; }
.mli-red { background: #fff0e8; color: #ef6a4c; }
.mli-purple { background: #eef1ff; color: #6b7dd8; }
.mli-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mli-main b { font-size: 14px; font-weight: 700; }
.mli-main small { font-size: 11px; color: var(--text-sub); margin-top: 2px; }
.mli-arrow { color: var(--text-light); font-size: 18px; flex: none; }

.record-tabs { display: flex; gap: 4px; background: var(--card); border-radius: 12px; padding: 4px; margin-bottom: 12px; box-shadow: var(--shadow); }
.record-tabs .rt { flex: 1; padding: 9px 0; border-radius: 8px; font-weight: 700; color: var(--text-sub); }
.record-tabs .rt.active { background: var(--primary); color: #fff; }
.rate-block { background: var(--card); border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.rate-title { font-weight: 700; margin-bottom: 12px; }
.star-row { display: flex; gap: 8px; }
.star-row .star { width: 44px; height: 44px; border-radius: 12px; background: var(--gray-bg); display: flex; align-items: center; justify-content: center; color: #d8c6b9; font-size: 22px; }
.star-row .star.on { background: var(--orange-bg); color: var(--orange); }
.rate-label { font-size: 12px; color: var(--text-sub); margin-top: 8px; }
.dim-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dim-row .dim-name { width: 64px; flex: none; font-size: 13px; color: var(--text-sub); }
.dim-row .dim-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.dim-opt, .tag-opt { padding: 6px 12px; border-radius: 14px; background: var(--bg); color: var(--text-sub); font-size: 12px; }
.dim-opt.on { background: var(--primary); color: #fff; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.image-picker { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.image-picker .img-add { width: 58px; height: 58px; border: 1px dashed var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--primary); cursor: pointer; }
.img-preview { display: flex; gap: 8px; flex-wrap: wrap; }
.img-thumb { position: relative; }
.img-thumb img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; }
.img-thumb i { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; background: var(--orange); color: #fff; border-radius: 50%; font-style: normal; font-size: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.anon-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-sub); }
.dining-item .di-images { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.dining-item .di-images img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.hidden { display: none !important; }
.tag-opt.on { background: var(--primary-light); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
#df-note { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; resize: vertical; outline: none; }
#df-note:focus { border-color: var(--primary); }
.dining-item { background: var(--card); border-radius: 16px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.dining-item .di-top { display: flex; justify-content: space-between; align-items: center; }
.dining-item .di-stars { color: var(--orange); letter-spacing: 2px; }
.dining-item .di-note { font-size: 13px; margin-top: 8px; line-height: 1.6; }
.dining-item .di-reply { font-size: 13px; margin-top: 10px; line-height: 1.6; background: var(--green-bg); border-left: 3px solid var(--green); padding: 8px 10px; border-radius: 6px; color: var(--text); }
.dining-item .di-reply .reply-badge { display: inline-block; font-size: 11px; color: #fff; background: var(--green); border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.dining-item .di-reply .reply-time { font-size: 11px; color: var(--text-sub); opacity: .8; margin-left: 4px; }
.dining-item .di-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.quick-mood { background: linear-gradient(120deg, #fff4e3, #fffaf2); border-radius: 16px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.qm-title { font-size: 12px; color: var(--text-sub); margin-bottom: 10px; }
.qm-row { display: flex; gap: 10px; }
.qm-btn { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); transition: transform .12s ease; }
.qm-btn:active { transform: scale(.97); }
.qm-btn .qm-ico { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 5px; }
.qm-btn.good .qm-ico { background: var(--green-bg); color: var(--green); }
.qm-btn.bad .qm-ico { background: var(--orange-bg); color: var(--orange); }
.qm-btn .qm-label { font-weight: 700; font-size: 14px; }
.qm-btn .qm-sub { font-size: 11px; color: var(--text-sub); }

/* ---------- 参与引导：符号与互动氛围 ---------- */
@keyframes glyphPop { 0% { transform: scale(.6); opacity: .2; } 65% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
@keyframes tipIn { from { transform: translateY(7px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.22); } }
@keyframes spinOnce { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.mobile-body .section-title::before { content: "✦"; background: none; color: var(--primary); width: auto; height: auto; border-radius: 0; font-size: 13px; }
.mobile-body .section-title.food::before { content: "🍚"; }
.mobile-body .section-title.grid::before { content: "✿"; }
.mobile-body .section-title.news::before { content: "◈"; }
.mobile-body .section-title.ask::before { content: "🥢"; }

.invite-card { background: linear-gradient(120deg, #fffdf8, #fff2e6); }
.symbol-icon { font-size: 22px; }
.invite-shuffle {
  margin-top: 9px; padding: 5px 11px; border-radius: 14px;
  background: var(--primary-light); color: var(--primary); font-size: 11px; font-weight: 700;
}
.invite-shuffle:active { transform: rotate(-8deg) scale(.96); }
.social-strip {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border-radius: 14px; padding: 10px 12px; margin: -4px 0 14px;
  box-shadow: var(--shadow); font-size: 12px; color: var(--text-sub);
}
.avatar-stack { display: flex; flex: none; }
.avatar-stack span {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); border: 2px solid #fff; margin-left: -7px;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
}
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack span svg { width: 15px; height: 15px; }
.avatar-stack span:nth-child(2) { background: #fff3d8; color: #e89a26; }
.avatar-stack span:nth-child(3) { background: #e9f7ef; color: #3f9e73; }
.avatar-stack span:nth-child(4) { background: #eef1ff; color: #6b7dd8; }
.social-strip b { color: var(--primary); font-size: 14px; }
.social-strip .sparkle { color: var(--orange); font-size: 15px; animation: twinkle 1.8s infinite; }

.prompt-box {
  display: flex; align-items: center; gap: 10px; background: var(--primary-lighter);
  border: 1px dashed var(--line); border-radius: 14px; padding: 11px 13px; margin-bottom: 12px;
  animation: tipIn .3s ease;
}
.prompt-box.mood-no { background: var(--green-bg); border-color: var(--green); }
.prompt-box.mood-yes { background: var(--orange-bg); border-color: var(--orange); }
.prompt-glyph { font-size: 20px; flex: none; }
.prompt-text { font-size: 13px; font-weight: 600; }
.prompt-text .em { color: var(--primary); font-weight: 800; }

.choice-card { position: relative; }
.choice-sticker {
  display: none; position: absolute; top: -9px; right: -8px;
  background: var(--primary); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px; transform: rotate(8deg);
}
.choice-card.selected .choice-sticker { display: block; animation: glyphPop .35s ease; }
.choice-card.selected.no .choice-sticker { background: var(--gray); }
.star.on { animation: glyphPop .3s ease; }
.glyph-pop { animation: glyphPop .4s ease; }
.spin-once { animation: spinOnce .5s ease; }
.success-spark { color: var(--orange); letter-spacing: 6px; font-size: 15px; animation: twinkle 2s infinite; margin-bottom: 8px; }

/* ---------- 移动端友好交互增强 ---------- */
html { scroll-behavior: smooth; }
.mobile-header.has-back h1, .mobile-header.has-back p,
.detail-hero.has-back h2, .detail-hero.has-back p { padding-left: 44px; }
.detail-hero { position: relative; }
.mobile-header.sticky { position: sticky; top: 0; z-index: 22; }
.mh-back {
  position: absolute; left: 10px; top: 20px; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,.18); color: #fff;
  font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.mh-back:active { background: rgba(255,255,255,.34); transform: scale(.94); }

.choice-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; min-height: 98px; }
.choice-card .ci {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.choice-card.selected .ci { background: var(--primary); color: #fff; }
.choice-card.selected.no .ci { background: var(--red); color: #fff; }
.choice-card .ct { font-size: 16px; font-weight: 700; }
.choice-card .cs { font-size: 11px; color: var(--text-light); font-weight: 400; }
.choice-card.selected .cs { color: var(--primary); }
.choice-card.selected.no .cs { color: var(--red); }

.cat-jump {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 4px;
  position: sticky; top: 104px; z-index: 20; background: var(--bg); scrollbar-width: none;
}
.cat-jump::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; padding: 7px 13px; border-radius: 18px; background: #fff;
  color: var(--text-sub); font-size: 12px; font-weight: 600; box-shadow: var(--shadow);
}
.cat-chip.active { background: var(--primary); color: #fff; }
.cat-block { scroll-margin-top: 160px; }

.fb-subbar {
  position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; background: #fff; padding: 10px 14px;
  display: flex; align-items: center; gap: 12px; z-index: 45;
  box-shadow: 0 -6px 18px rgba(15,79,168,.12); border-top: 1px solid var(--line);
}
.fb-subbar .sb-info { flex: 1; min-width: 0; }
.fb-subbar .sb-count { font-weight: 700; font-size: 14px; }
.fb-subbar .sb-total { font-size: 12px; color: var(--orange); margin-top: 2px; }
.fb-subbar .btn { min-width: 130px; flex: none; }
.mobile-app.with-subbar { padding-bottom: 140px; }

.tap-link { padding: 6px 10px; margin: -6px -10px; font-size: 12px; color: var(--primary); float: right; }
.mobile-tabbar .tab { position: relative; }
.nav-badge {
  position: absolute; top: 5px; right: calc(50% - 24px); min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 10px; line-height: 17px; text-align: center; font-weight: 700;
}
.filter-chips { display: flex; gap: 8px; margin-bottom: 12px; }
.filter-chips .chip {
  padding: 7px 15px; border-radius: 18px; background: #fff;
  color: var(--text-sub); font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
}
.filter-chips .chip.active { background: var(--primary); color: #fff; }
.list-item:active, .quick-card:active, .dish-opt:active, .choice-card:active { opacity: .7; }

/* ============================================================
   PC 管理端
   ============================================================ */
.pc-app { display: flex; min-height: 100vh; background: var(--bg); }
.pc-sidebar {
  width: 224px; flex: none; background: linear-gradient(180deg, #0f4fa8, #0a3a80);
  color: #cfe0f5; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.pc-sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px; font-size: 16px; color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.12); }
.pc-sidebar .brand .b-logo { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.pc-nav { padding: 10px 0; flex: 1; }
.pc-nav-group { padding: 14px 18px 6px; font-size: 11px; letter-spacing: 1px; color: rgba(255,255,255,.45); }
.pc-nav .nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px;
  color: #cfe0f5; font-size: 14px; border-left: 3px solid transparent;
}
.pc-nav .nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.pc-nav .nav-item.active { background: rgba(255,255,255,.14); color: #fff; border-left-color: #7db4ff; font-weight: 700; }
.pc-nav .nav-item .ni-ico { width: 20px; text-align: center; }
.pc-sidebar .side-foot { padding: 14px 18px; font-size: 12px; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.12); }

.pc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-topbar {
  height: 62px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px;
  position: sticky; top: 0; z-index: 30;
}
.pc-topbar .tb-title { font-size: 17px; font-weight: 700; }
.pc-topbar .tb-right { display: flex; align-items: center; gap: 16px; }
.pc-topbar .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.pc-content { padding: 22px 26px 40px; flex: 1; }
.pc-page { display: none; }
.pc-page.active { display: block; animation: fadein .18s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px);} to {opacity:1; transform:none;} }

/* 卡片 / 指标 */
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.panel h3 { margin: 0 0 16px; font-size: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h3 { margin: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-top: 4px solid var(--primary); }
.metric-card.orange { border-top-color: var(--orange); }
.metric-card.green { border-top-color: var(--green); }
.metric-card.red { border-top-color: var(--red); }
.metric-card .mc-label { color: var(--text-sub); font-size: 13px; }
.metric-card .mc-value { font-size: 30px; font-weight: 800; margin: 6px 0 2px; }
.metric-card .mc-sub { font-size: 12px; color: var(--text-light); }

/* 待办 */
.todo-list { display: flex; flex-direction: column; gap: 10px; }
.todo-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--primary-lighter); position: relative; margin-right: 6px; }
.todo-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
.todo-item.orange { background: var(--orange-bg); }
.todo-item.orange .dot { background: var(--orange); }
.todo-item.gray { background: var(--gray-bg); }
.todo-item.gray .dot { background: var(--gray); }
.todo-corner { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 7px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th { background: var(--primary-lighter); color: var(--primary-deep); font-weight: 700; font-size: 13px; }
.data-table tr:hover td { background: #fafcff; }
.data-table tr.tagged-row > td { background: #fffdf3; }
.data-table tr.tagged-row:hover > td { background: #fff9e3; }
.data-table .ops button { margin-right: 6px; }
.switch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 14px; }
.switch-grid label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-sub); }
.eval-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.eval-tabs { display: flex; gap: 6px; }
.eval-img-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.eval-img-item { text-align: center; }
.eval-img-item img { width: 100%; max-height: 320px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: var(--gray-bg); }
.eval-img-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 0 2px; }
.eval-img-bar .btn { text-decoration: none; }
.reply-time { font-size: 11px; color: var(--gray); margin-left: 8px; font-weight: 400; }

/* 筛选栏 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.filter-bar .field { margin: 0; min-width: 140px; }
.filter-bar .btn { margin-bottom: 1px; }

/* 排行 */
.rank-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rank-num { width: 22px; height: 22px; border-radius: 6px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.rank-num.top { background: var(--orange); color: #fff; }
.rank-bar-wrap { flex: 1; }
.rank-bar-wrap .rb-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.rank-bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.rank-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #6aa6ef); border-radius: 4px; }

/* 两栏 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(15,40,75,.45); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-head .close { font-size: 22px; color: var(--text-light); line-height: 1; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
.import-result { margin-top: 16px; padding: 12px; border-radius: 8px; background: var(--green-bg); color: var(--green); font-size: 13px; }
.import-result .fail { color: var(--red); margin-top: 8px; }

/* 日期/时间标签 */
.time-tag { display: inline-block; background: var(--orange-bg); color: var(--orange); padding: 3px 10px; border-radius: 6px; font-weight: 700; font-size: 13px; }
.kpi-inline { display: flex; gap: 18px; flex-wrap: wrap; }
.kpi-inline .ki { font-size: 13px; }
.kpi-inline .ki b { font-size: 18px; display: block; }

/* 日历 */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.calendar .cal-head { text-align: center; font-size: 12px; color: var(--text-sub); padding: 6px 0; }
.calendar .cal-day { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 4px; text-align: center; font-size: 13px; }
.calendar .cal-day.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.calendar .cal-day.off { background: var(--gray-bg); color: var(--gray); }

/* 登录 PC */
.pc-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e8f2ff, #d9e9ff); }
.pc-login .pl-card { background: #fff; width: 400px; padding: 38px; border-radius: 20px; box-shadow: var(--shadow-lg); }
.pc-login .pl-logo { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 18px; }
.pc-login h1 { margin: 0 0 4px; font-size: 22px; }
.pc-login .pl-sub { color: var(--text-sub); margin: 0 0 26px; font-size: 13px; }

/* toast */
.toast { position: fixed; left: 50%; top: 24px; transform: translateX(-50%) translateY(-80px); background: #1f2d3d; color: #fff; padding: 11px 22px; border-radius: 10px; z-index: 200; opacity: 0; transition: .25s; box-shadow: var(--shadow-lg); font-size: 14px; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============================================================
   午餐两段式：下周计划 / 次日确认
   ============================================================ */
.mobile-body .section-title.plan::before { content: "◈"; }

.feedback-card.plan-card { background: linear-gradient(120deg, #fffdf8, #f1f5ff); border-left-color: #6b7dd8; }
.feedback-card.plan-card.dim { background: var(--gray-bg); border-left-color: var(--gray); }
.plan-card .meal-hint { color: #5a6bb5; }
.plan-card.bf { background: linear-gradient(120deg, #fffdf8, #fff7e4); border-left-color: #e8a13a; }
.plan-card.bf .meal-hint { color: #a8781a; }
.plan-card.bf .plan-cta { background: linear-gradient(135deg, #f8c94a, #f09a2e); box-shadow: 0 5px 14px rgba(240, 154, 46, .25); }
.wp-meal-switch { display: flex; gap: 8px; margin-bottom: 12px; }
.wp-ms { flex: 1; padding: 10px 0; border-radius: 12px; background: #fff; box-shadow: var(--shadow); font-weight: 700; color: var(--text-sub); }
.wp-ms.active { background: var(--primary); color: #fff; }
.plan-cta { background: linear-gradient(135deg, #8b9ce6, #5568c5); box-shadow: 0 5px 14px rgba(85, 104, 197, .25); }
.plan-cta .cta-ico { background: rgba(255,255,255,.22); }
.confirm-cta { background: linear-gradient(135deg, #e8603f, #b9331f); box-shadow: 0 5px 14px rgba(185, 51, 31, .28); }
.confirm-card .fc-meal, .confirm-card .fc-date { text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.merged-confirm { border-top: 1px dashed rgba(0,0,0,.1); margin-top: 12px; padding-top: 10px; }
.mc-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-sub); font-weight: 600; }
.mc-line .badge { margin-left: auto; }
.mc-detail { display: block; margin: 8px auto 0; font-size: 12px; color: var(--primary); font-weight: 700; }
.cf-inline { display: flex; gap: 8px; margin-top: 10px; }
.cf-inline button { flex: 1; padding: 9px 0; border-radius: 11px; background: rgba(255,255,255,.94); color: var(--text); font-size: 13px; font-weight: 700; box-shadow: 0 2px 7px rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.04); }
.cf-inline button:active { transform: scale(.96); }

.wp-day-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.wp-day-chips::-webkit-scrollbar { display: none; }
.wp-day { flex: none; min-width: 58px; padding: 8px 6px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); text-align: center; font-size: 13px; font-weight: 700; color: var(--text-sub); display: flex; flex-direction: column; gap: 2px; position: relative; }
.wp-day small { font-size: 10px; font-weight: 400; color: var(--text-light); }
.wp-day.active { background: var(--primary); color: #fff; }
.wp-day.active small { color: rgba(255,255,255,.82); }
.wp-day.done::after { content: "✓"; position: absolute; top: 2px; right: 5px; color: var(--green); font-size: 11px; }
.wp-day.active.done::after { color: #fff; }
/* 三态：未填灰 / 已报绿 / 不来灰 */
.wp-day.filled:not(.active) { border: 1px solid var(--green); background: var(--green-bg); color: var(--green); }
.wp-day.filled:not(.active) small { color: var(--green); }
.wp-day.notcome:not(.active) { border: 1px solid var(--line); background: #f4f2f0; color: var(--text-light); }
.wp-day.notcome:not(.active) small { color: var(--text-light); }
/* 用餐安排：跨周分组标题 + 逐日状态徽章 + 未开放禁用 */
.wp-week-head { flex: none; align-self: center; font-size: 11px; font-weight: 700; color: var(--text-sub); background: var(--bg); border-radius: 10px; padding: 4px 8px; white-space: nowrap; }
.wp-day em { font-style: normal; font-size: 9px; font-weight: 600; line-height: 1.2; margin-top: 2px; opacity: .85; }
.wp-day.filled:not(.active) em { color: var(--green); }
.wp-day.active em { color: rgba(255,255,255,.9); }
.wp-day.disabled { opacity: .5; background: #f7f5f3; color: var(--text-light); box-shadow: none; border: 1px dashed var(--line); }
.wp-day.disabled em { color: var(--text-light); }
.wp-unfilled { background: #FFF8EE; border: 1px dashed #f0c9a9; border-radius: 8px; padding: 8px 10px; font-size: 12px; color: #8b6a4f; margin: 4px 0 10px; line-height: 1.6; }
.wp-eatbtns { display: flex; align-items: center; gap: 6px; }
.wp-eatbtns .wb { padding: 4px 10px; border-radius: 8px; font-size: 12px; background: #f4f2f0; color: var(--text-sub); }
.wp-eatbtns .wb.hall.on { background: var(--green-bg); color: var(--green); font-weight: 800; }
.wp-eatbtns .wb.pack.on { background: var(--primary-light); color: var(--primary); font-weight: 800; }
.wp-eatbtns .wb-packminus { width: 24px; height: 24px; border-radius: 7px; background: #f4f2f0; color: var(--text-sub); font-size: 14px; }
.wp-notcome { background: #f4f2f0; border-radius: 10px; padding: 18px 14px; text-align: center; color: var(--text-sub); font-size: 13px; line-height: 1.8; }
.wp-step3-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
/* 备货看板斤数分列表格 */
.board-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 660px; }
.board-table th, .board-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.board-table th { color: var(--text-sub); font-weight: 600; font-size: 11px; background: var(--primary-lighter); }
.board-table .num { font-variant-numeric: tabular-nums; font-weight: 700; text-align: center; }
.board-table .wish-jin, .board-table .hall-jin, .board-table .pack-jin { color: #B9701F; background: #FFF8EE; }
.board-table .need-jin { color: #fff; background: var(--primary); }
.board-table .need-jin.over { background: var(--red); }
.board-table .ref-jin { color: var(--text-light); background: #f6f4f2; }
/* 菜单预约报餐 CTA */
.menu-book-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 6px; padding: 13px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: var(--shadow); }
.menu-tip { background: #FFF8EE; border: 1px dashed #f0c9a9; border-radius: 9px; padding: 12px; text-align: center; font-size: 12px; color: #8b6a4f; margin: 16px 0 6px; }
.wp-notpushed { background: #FFF8EE; border: 1px dashed #f0c9a9; border-radius: 9px; padding: 16px 12px; text-align: center; font-size: 13px; color: #8b6a4f; line-height: 1.8; }
.wp-notpushed .tiny { display: block; margin-top: 4px; }
.wp-panel { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 12px; }
.wp-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.wp-panel-head h4 { margin: 0 0 2px; font-size: 15px; }
.wp-status { display: flex; gap: 3px; background: var(--bg); padding: 3px; border-radius: 10px; flex: none; }
.wp-st { padding: 5px 8px; border-radius: 7px; font-size: 12px; color: var(--text-sub); }
.wp-st.active { background: var(--primary); color: #fff; font-weight: 700; }
.wp-panel .cat-block { box-shadow: none; padding: 0; margin: 0 0 12px; }
.wp-dish { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.wp-dish:last-child { border-bottom: none; }
.wp-dish .dname { flex: 1; font-weight: 600; }
.wp-step { display: flex; align-items: center; gap: 8px; }
.wp-step button { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-light); color: var(--primary); font-size: 16px; line-height: 1; }
.wp-step span { min-width: 16px; text-align: center; font-weight: 800; }
.cf-pack { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-sub); background: var(--orange-bg); padding: 10px; border-radius: 10px; }
.cf-pack input { accent-color: var(--primary); }
.pack-explain { background: var(--orange-bg); color: #a8781a; border-radius: 12px; padding: 12px; font-size: 12px; margin-bottom: 14px; }
.open-banner { border-radius: 12px; padding: 12px 14px; font-size: 12px; margin-bottom: 14px; line-height: 1.6; }
.open-banner.on { background: var(--green-bg); color: var(--green); }
.open-banner.off { background: var(--orange-bg); color: #a8781a; }
.confirm-row { gap: 8px; }
.confirm-row .choice-card { padding: 12px 4px; min-height: 88px; }
.confirm-row .choice-card .ci { width: 32px; height: 32px; font-size: 17px; }
.confirm-row .choice-card .ct { font-size: 14px; }
.confirm-row .choice-card .cs { font-size: 10px; }
.cf-qty-box { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin: 12px 0; }
.cf-qty-title { font-weight: 700; margin-bottom: 10px; }
.cf-stepper { display: flex; align-items: center; gap: 12px; }
.cf-stepper button { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-light); color: var(--primary); font-size: 18px; }
.cf-stepper span#cf-qty-val { min-width: 26px; text-align: center; font-weight: 800; font-size: 18px; }
/* 复核改量：当日菜谱列表（已报可改量，未报灰显） */
.cf-menu-wrap { background: var(--card); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); margin: 10px 14px; }
.cf-menu-tip { font-size: 11px; color: var(--text-sub); margin-bottom: 8px; line-height: 1.5; }
.cf-menu-list { display: flex; flex-direction: column; gap: 6px; }
.fc-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 9px; padding: 7px 10px; font-size: 12px; background: var(--primary-light); color: var(--text); }
.fc-menu-item.muted { background: #f4f2f0; color: var(--text-light); opacity: .75; }
.cf-item-name { flex: 1; min-width: 0; }
.cf-item-qty, .fc-item-no { font-weight: 700; color: var(--primary-deep); }
.fc-item-no { color: var(--text-light); font-weight: 400; font-size: 11px; }
.cf-item-step { display: inline-flex; align-items: center; gap: 6px; }
.cf-item-step button { width: 24px; height: 24px; border-radius: 7px; background: #fff; color: var(--primary-deep); font-size: 15px; line-height: 1; }
.cf-item-step b { min-width: 18px; text-align: center; font-weight: 800; }
.cf-qty-hint { font-size: 11px; color: var(--text-sub); line-height: 1.6; margin-bottom: 10px; }

/* ============================================================
   PC 午餐周计划：以日历为选择单位
   ============================================================ */
.wp-meal-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.wp-tab { padding: 8px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--text-sub); }
.wp-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.wp-step-hint { background: var(--primary-lighter); color: var(--primary-deep); border-radius: 8px; padding: 9px 12px; font-size: 13px; margin-bottom: 14px; font-weight: 600; }
.wp-layout { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
@media (max-width: 980px) { .wp-layout { grid-template-columns: 1fr; } }
.wp-cal-box, .wp-edit-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.wp-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wp-box-head h4 { margin: 0; font-size: 14px; }
.wp-cal-month { text-align: center; font-size: 12px; color: var(--text-sub); margin-bottom: 8px; font-weight: 600; }
.wp-calendar { gap: 6px; }
.wp-calendar .cal-day { padding: 12px 2px; cursor: pointer; position: relative; font-size: 15px; font-weight: 700; transition: transform .12s ease, box-shadow .15s ease, background .15s ease; }
.wp-calendar .cal-day:not(.empty):hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(15,79,168,.16); }
.wp-calendar .cal-day:not(.empty):active { transform: scale(.93); }
.wp-calendar .cal-day.on { background: #fff; color: var(--primary); border-color: var(--primary); }
.wp-calendar .cal-day.on .tiny { color: var(--primary); }
.wp-calendar .cal-day.off { cursor: not-allowed; opacity: .6; }
.wp-cal-actions { display: flex; gap: 8px; margin-top: 12px; }
.wp-cal-note { margin-top: 12px; padding: 10px; background: var(--primary-lighter); border-radius: 8px; font-size: 12px; color: var(--text-sub); line-height: 1.7; }
.wp-cal-note .tap-link { float: none; display: inline-block; padding: 0; margin: 0; }
.wp-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.wp-day-panel { box-shadow: none; border: 1px solid var(--line); }

/* ============================================================
   PC 供餐日历：独立模块，按年、月设定
   ============================================================ */
.cal-notice { background: var(--primary-lighter); color: var(--primary-deep); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.supply-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.supply-cal .sc-head { text-align: center; font-size: 12px; color: var(--text-sub); font-weight: 600; padding: 6px 0; }
.supply-cal .sc-cell { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 4px; text-align: center; cursor: pointer; transition: transform .1s ease; }
.supply-cal .sc-cell:not(.empty):active { transform: scale(.96); }
.supply-cal .sc-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.supply-cal .sc-cell.on { background: var(--primary-lighter); border-color: var(--primary); }
.supply-cal .sc-cell.off { background: var(--gray-bg); }
.supply-cal .sc-day { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.supply-cal .sc-btn { width: 100%; padding: 3px 0; border-radius: 10px; font-size: 11px; font-weight: 600; }
.supply-cal .sc-btn.on { background: var(--primary); color: #fff; }
.supply-cal .sc-btn.off { background: #fff; color: var(--gray); border: 1px solid var(--line); }
.cal-foot { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* 反馈管理：备餐汇总 / 反馈明细 */
.fb-view-tabs { display: flex; gap: 4px; background: var(--bg); padding: 3px; border-radius: 10px; }
.fb-tab { padding: 6px 14px; border-radius: 8px; font-size: 13px; color: var(--text-sub); }
.fb-tab.active { background: var(--primary); color: #fff; font-weight: 700; }
.fb-caliber { background: var(--primary-lighter); color: var(--primary-deep); border-radius: 8px; padding: 8px 12px; font-size: 12px; margin-bottom: 12px; }

/* 供餐日历：统计与菜谱锁定 */
.cal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.cal-stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.cal-stat .cs-label { font-size: 13px; font-weight: 700; color: var(--text-sub); }
.cal-stat .cs-label .tiny { font-weight: 400; color: var(--text-light); }
.cal-stat .cs-value { font-size: 26px; font-weight: 800; color: var(--primary); margin: 4px 0 2px; }
.cal-stat .cs-value small { font-size: 12px; font-weight: 600; color: var(--text-sub); }
.cal-stat .cs-sub { font-size: 12px; color: var(--text-light); }
.supply-cal .sc-cell.locked { background: var(--green-bg); border-color: var(--green); }
.supply-cal .sc-btn.locked { background: var(--green); color: #fff; border-color: var(--green); cursor: not-allowed; }
.sc-menu-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-left: 3px; vertical-align: middle; }

/* 周计划选择日历：月度视图与已做状态（早餐/午餐统一）
   st-on 供餐 · st-selected 已选 · st-pushed 已推送
   st-recipe 有菜谱(青绿) · st-recipe-pushed 有菜谱已推送(深青绿)
   橙点=已有报餐/实际人数数据，与菜谱状态相互独立、可叠加
   青绿色系仅用于周计划日历，不影响全局 --green */
.wp-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wp-cal-nav b { font-size: 13px; }
.wp-calendar .cal-day.empty { background: transparent; border-color: transparent; cursor: default; }
.wp-calendar .cal-day.st-on { background: #fff; color: var(--primary); border-color: var(--primary); }
.wp-calendar .cal-day.st-on .tiny { color: var(--primary); }
.wp-calendar .cal-day.st-selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.wp-calendar .cal-day.st-selected .tiny { color: rgba(255,255,255,.95); }
.wp-calendar .cal-day.st-pushed { background: #e6f6f4; color: #0d9488; border-color: #5ec3b6; }
.wp-calendar .cal-day.st-pushed .tiny { color: #0d9488; }
.wp-calendar .cal-day.st-recipe { background: #14b8a6; color: #fff; border-color: #14b8a6; }
.wp-calendar .cal-day.st-recipe-pushed { background: #0d9488; color: #fff; border-color: #0d9488; }
.wp-calendar .cal-day.st-recipe .tiny,
.wp-calendar .cal-day.st-recipe-pushed .tiny { color: rgba(255,255,255,.95); }
/* 选中态：仅在有底色状态上加外圈描边，不改变背景色，保证规则统一 */
.wp-calendar .cal-day.st-recipe.is-selected,
.wp-calendar .cal-day.st-recipe-pushed.is-selected { outline: 2px solid var(--primary-deep); outline-offset: 1px; }
.wp-data-dot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 1px rgba(255,255,255,.8); }
.badge.wp-badge-pushed { background: #e6f6f4; color: #0d9488; }

/* ============================================================
   辣度标签（5格小辣椒）
   ============================================================ */
.chili-box { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; }
.chili { display: inline-block; font-size: 15px; line-height: 1; filter: grayscale(1) opacity(.28); }
.chili.on { filter: none; }
.chili-txt { font-size: 11px; color: var(--text-sub); margin-left: 5px; white-space: nowrap; }
/* 午餐菜单辣度文字：浅红色提示，保留辣椒图标 */
.lunch .md-name .chili-txt { color: #e8735a; font-weight: 600; }
.mobile-app .chili { font-size: 13px; }
.mobile-app .chili-txt { font-size: 10px; }

/* 反馈管理：近一周天 Tab */
.fb-day-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.fb-day-label { font-size: 12px; color: var(--text-sub); font-weight: 700; margin-right: 4px; }
.fb-day { position: relative; padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--text-sub); }
.fb-day:hover { border-color: var(--primary); color: var(--primary); }
.fb-day.has-data { border-color: #9ecbf5; background: #f4faff; color: var(--primary-deep); font-weight: 600; }
.fb-day.no-data { border-style: dashed; opacity: .6; color: var(--text-sub); }
.fb-day.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; opacity: 1; }
.btn.chip.is-today.ghost { border-color: var(--primary); color: var(--primary); font-weight: 700; }

/* 全局统一分页条（列表统一每页20条） */
.pager-mount { margin-top: 10px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 2px; }
.pager-info { font-size: 12px; color: var(--text-sub); }
.pager-btns { display: flex; align-items: center; gap: 4px; }
.pg-btn { min-width: 30px; height: 28px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--text-sub); font-size: 12px; }
.pg-btn:hover:not(:disabled):not(.active) { border-color: var(--primary); color: var(--primary); }
.pg-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pg-btn:disabled { opacity: .45; cursor: not-allowed; }
.pg-gap { color: var(--text-sub); padding: 0 2px; }
.fb-day-badge { display: inline-block; margin-left: 6px; min-width: 17px; text-align: center; background: var(--green); color: #fff; border-radius: 9px; padding: 0 5px; font-size: 11px; font-weight: 700; }
.fb-day.active .fb-day-badge { background: rgba(255,255,255,.28); color: #fff; }
.fb-day-legend { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-sub); margin-right: 8px; }
.fb-day-legend .lg-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-left: 6px; }
.fb-day-legend .lg-dot.has { background: #16a34a; }
.fb-day-legend .lg-dot.none { background: #cbd5e1; border: 1px dashed #94a3b8; }

/* 内部带量字段区块 */
.field-set { background: var(--primary-lighter); border: 1px dashed var(--primary); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.field-set-title { font-size: 13px; font-weight: 700; color: var(--primary-deep); margin-bottom: 10px; }
.field-inline { display: flex; align-items: center; gap: 8px; }
.field-inline input { flex: 1; }
.inline-unit { font-size: 13px; color: var(--text-sub); font-weight: 700; min-width: 18px; }

/* 工作台：要货总量看板 */
.supply-trend { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.supply-trend .st-label { font-size: 13px; font-weight: 700; color: var(--text-sub); margin-bottom: 12px; }
.st-bars { display: flex; gap: 10px; align-items: flex-end; height: 110px; }
.st-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.st-col .st-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.st-col .st-bar { width: 60%; max-width: 46px; background: linear-gradient(180deg, #6aa6ef, var(--primary)); border-radius: 6px 6px 0 0; min-height: 4px; }
.st-col .st-bar.cur { background: linear-gradient(180deg, #4fd39a, var(--green)); }
.st-col > span { font-size: 11px; color: var(--text-light); margin-top: 6px; white-space: nowrap; }
.alert-list { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.alert-list .al-title { font-size: 13px; font-weight: 700; color: var(--text-sub); margin-bottom: 10px; }
.alert-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; background: var(--primary-lighter); }
.alert-item:last-child { margin-bottom: 0; }
.alert-item .al-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; }
.alert-item.orange { background: var(--orange-bg); }
.alert-item.orange .al-dot { background: var(--orange); }
.alert-item.red { background: var(--red-bg); }
.alert-item.red .al-dot { background: var(--red); }
.alert-item.green { background: var(--green-bg); }
.alert-item.green .al-dot { background: var(--green); }
.alert-item .al-desc { color: var(--text-sub); font-size: 12px; }

/* 登录：账号自动识别说明 */
.login-hint-inline { font-size: 12px; color: var(--primary); background: var(--primary-lighter); border-radius: 8px; padding: 9px 12px; margin: -4px 0 16px; }

/* 反馈管理：早餐/午餐分区 */
.meal-section { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.meal-section:last-child { margin-bottom: 0; }
.meal-section-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--primary-lighter); }
.meal-section.bf .meal-section-head { background: #fff8ea; }
.meal-section.ln .meal-section-head { background: #fff0e8; }
.meal-section-head .ms-ico { font-size: 16px; }
.meal-section.bf .meal-section-head .ms-ico { color: var(--orange); }
.meal-section.ln .meal-section-head .ms-ico { color: var(--primary-deep); }
.meal-section-head b { font-size: 14px; color: var(--text); }
.meal-section-head .muted { margin-left: auto; }

/* 工作台：今日要货明细 */
.board-today-detail { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.btd-title { font-size: 13px; font-weight: 700; color: var(--text-sub); margin-bottom: 12px; }
.btd-meal { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; }
.btd-tag { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.btd-tag.bf { background: var(--orange-bg); color: var(--orange); }
.btd-tag.ln { background: var(--primary-light); color: var(--primary); }

/* 实际人数录入 */
.actual-tip { background: var(--primary-lighter); color: var(--primary-deep); border-radius: 8px; padding: 9px 12px; font-size: 12px; margin-bottom: 14px; }
.meal-pill { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.meal-pill.bf { background: var(--orange-bg); color: var(--orange); }
.meal-pill.ln { background: var(--primary-light); color: var(--primary); }
.inline-input { display: inline-flex; align-items: center; gap: 6px; }
.inline-input input { width: 96px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; outline: none; }
.inline-input input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.inline-input span { color: var(--text-sub); font-size: 12px; }
.row-unfilled td { background: #fffdf7; }
.actual-total td { background: var(--primary-lighter); font-weight: 600; }
.actual-status { margin-top: 14px; }

/* 要货看板：极简紧凑 */
.board-strip { display: flex; align-items: center; gap: 14px; padding: 4px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.bs-item { display: flex; align-items: baseline; gap: 6px; }
.bs-item > span { font-size: 13px; color: var(--text-sub); }
.bs-item > b { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
.bs-item > i { font-size: 13px; color: var(--text-sub); font-style: normal; }
.bs-item.hl > b { color: var(--green); }
.bs-item.warn > b { color: var(--orange); }
.bs-sep { color: var(--text-light); font-size: 18px; }
.board-detail { margin-bottom: 12px; }
.bd-head { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.bd-head span { font-weight: 400; color: var(--text-light); margin-left: 6px; }
.bd-row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.bd-row:last-child { border-bottom: none; }
.bd-tag { flex: none; padding: 4px 9px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bd-tag em { font-style: normal; font-weight: 400; margin-left: 5px; opacity: .85; }
.bd-tag.bf { background: var(--orange-bg); color: var(--orange); }
.bd-tag.ln { background: var(--primary-light); color: var(--primary); }
.bd-items { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.bd-item { display: inline-flex; align-items: center; gap: 5px; background: var(--bg); border-radius: 7px; padding: 4px 9px; font-size: 12px; }
.bd-item .bd-name { color: var(--text-sub); }
.bd-item b { color: var(--primary-deep); }
.board-mini-trend { display: flex; align-items: flex-end; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.bmt-label { font-size: 12px; color: var(--text-sub); margin-right: 4px; align-self: center; }
.bmt-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bmt-cell i { width: 16px; background: var(--primary); border-radius: 3px 3px 0 0; display: block; }
.bmt-cell i.cur { background: var(--green); }
.bmt-cell small { font-size: 10px; color: var(--text-light); }
.board-alerts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.ba-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 10px; border-radius: 12px; background: var(--primary-lighter); color: var(--text); }
.ba-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; }
.ba-item.orange { background: var(--orange-bg); }
.ba-item.orange i { background: var(--orange); }
.ba-item.red { background: var(--red-bg); }
.ba-item.red i { background: var(--red); }
.ba-item.green { background: var(--green-bg); }
.ba-item.green i { background: var(--green); }

/* ===== 移动首页重排：快捷入口第2位 + 核心确认卡 + 页脚压缩 ===== */
.quick-grid#m-quick-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-grid#m-quick-grid .quick-card { min-height: 0; padding: 10px 6px; border-radius: 14px; align-items: center; text-align: center; }
.quick-grid#m-quick-grid .qc-art { width: 34px; height: 34px; border-radius: 11px; margin-bottom: 6px; }
.quick-grid#m-quick-grid .qc-label { font-size: 12px; }
.quick-grid#m-quick-grid .qc-hint { display: none; }

/* 明日用餐确认卡 */
.need-card { background: #fff; border-radius: var(--radius); padding: 14px 15px; margin-bottom: 12px; box-shadow: var(--shadow); border-left: 5px solid var(--primary); }
.need-card.meal-lunch { border-left-color: #c9432c; }
.need-card.meal-breakfast { border-left-color: #f5b335; }
.need-card.muted-card { background: var(--gray-bg); border-left-color: var(--gray); }
.nc-head { display: flex; align-items: center; justify-content: space-between; }
.nc-meal { font-size: 16px; font-weight: 800; }
.nc-dishes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.nc-dish { background: var(--primary-lighter); color: var(--primary-deep); border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.need-card.meal-lunch .nc-dish { background: #fff1ec; color: #a83520; }
.need-card.meal-breakfast .nc-dish { background: #fff6e3; color: #a8701a; }
.nc-sub { font-size: 12px; color: var(--text-sub); margin: 8px 0; }
.nc-main { width: 100%; padding: 10px; border-radius: 11px; background: linear-gradient(135deg, #e8603f, #b9331f); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; }
.nc-main span { font-size: 18px; line-height: 1; }
.nc-actions { display: flex; gap: 8px; }
.nc-actions .nc-main { flex: 1.3; }
.nc-alt { flex: 1; border-radius: 11px; background: var(--bg); color: var(--text-sub); font-size: 13px; font-weight: 700; padding: 10px 4px; }
.nc-alt:active, .nc-main:active { transform: scale(.97); opacity: .88; }
.nc-done { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; padding: 10px 12px; border-radius: 10px; }
.nc-done.green { background: var(--green-bg); color: var(--green); }
.nc-done.gray { background: var(--gray-bg); color: var(--gray); }
.nc-done.blue { background: var(--primary-lighter); color: var(--primary-deep); }
.nc-done button { font-size: 12px; color: var(--primary); font-weight: 700; text-decoration: underline; }
.nc-foot, .need-card > .nc-detail { display: block; text-align: center; font-size: 12px; color: var(--text-light); margin-top: 10px; }
.nc-foot span, .need-card > .nc-detail { color: var(--primary); font-weight: 700; }

/* 页脚：公告横条 + 引导 + 社交，压到最小 */
.home-foot { margin-top: 20px; }
.ann-strip { display: flex; align-items: center; gap: 7px; background: #fff; border-radius: 11px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 13px; }
.as-ico { font-size: 15px; }
.as-tag { background: var(--primary-light); color: var(--primary-deep); border-radius: 5px; padding: 1px 6px; font-size: 11px; font-weight: 700; flex: none; }
.as-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-sub); }
.as-more { color: var(--primary); font-size: 12px; font-weight: 700; flex: none; }
/* 首页邀请语：公告下方、快捷入口上方，每次进入自动换一句 */
.invite-strip { display: flex; align-items: center; gap: 9px; margin: 12px 0 4px; padding: 11px 13px; border-radius: 14px; background: linear-gradient(100deg, #fff6ec, #fffdf8); border: 1px solid #f5e0c8; box-shadow: var(--shadow); }
.fg-envelope { flex: none; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: #e08a3c; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px #f3dcc0; }
.fg-text { flex: 1; font-size: 13px; color: #8a6134; font-weight: 600; line-height: 1.4; }
/* 旧版移动入口兼容 */
.foot-guide { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 2px; }
.foot-guide .fg-glyph { font-size: 18px; }
.foot-guide .fg-shuffle { font-size: 11px; color: var(--primary); border: 1px solid var(--line); border-radius: 10px; padding: 4px 9px; flex: none; text-decoration: none; }
.social-mini { text-align: center; font-size: 11px; color: var(--text-light); padding: 6px 0 2px; }
.social-mini b { color: var(--primary); }
.social-mini .sparkle { color: var(--orange); }

/* 首页顶部公告横条间距 */
.mobile-body > .ann-strip { margin-bottom: 2px; }

/* 复核预报卡：菜品展示 + 快捷反馈 */
.fc-dishes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.fc-dish { border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.86); box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.meal-lunch .fc-dish { color: #2f8b96; }
.meal-breakfast .fc-dish { color: #a9862a; }
.merged-confirm .mc-line { font-size: 12px; color: var(--text-sub); }
.cf-inline .cf-primary { background: linear-gradient(135deg, #5cbcc4, #2f8b96); color: #fff; box-shadow: 0 3px 9px rgba(47,139,150,.25); border: none; }
.cf-done { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; padding: 9px 12px; border-radius: 10px; }
.cf-done.green { background: var(--green-bg); color: var(--green); }
.cf-done.gray { background: var(--gray-bg); color: var(--gray); }
.cf-done.blue { background: var(--primary-lighter); color: var(--primary-deep); }
.cf-done button { font-size: 12px; color: var(--primary); font-weight: 700; }
.cf-done-ops { display: inline-flex; align-items: center; gap: 12px; }
.cf-done-ops button { font-size: 12px; font-weight: 700; text-decoration: underline; }

/* 午餐卡：清爽青色主题，和早餐暖黄区分 */
.feedback-card.meal-lunch {
  border: 1px solid rgba(74, 168, 184, .18);
  border-left: 5px solid #4aa8b8;
  box-shadow: 0 5px 18px rgba(47, 139, 150, .12);
  overflow: hidden;
}
.feedback-card.meal-lunch::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #8fd6d6, #4aa8b8, #6fc5c0);
}
.feedback-card.meal-lunch .fc-meal { color: #2f8b96; }
.feedback-card.meal-lunch .cf-inline .cf-primary { box-shadow: 0 4px 12px rgba(47, 139, 150, .25); }

/* 交互指引：点击手势 + 轻点提示 */
.guide-tap { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--primary); font-weight: 700; margin: 4px 0 8px; }
.tap-hand { font-size: 17px; animation: tap-bob 1.3s ease-in-out infinite; }
.guide-inline { color: var(--primary); font-size: 11px; font-weight: 700; margin-left: 4px; animation: guide-fade 1.6s ease-in-out infinite; }
@keyframes tap-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes guide-fade { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* 要货看板：紧凑单菜总斤数清单 */
.board-panel { padding: 14px 18px; }
.board-panel .panel-head { margin-bottom: 4px; }
.board-panel .board-chip { padding: 3px 10px; font-size: 12px; }
.board-day-switch { display: flex; align-items: center; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.bds-btn { padding: 4px 12px; border-radius: 7px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--text-sub); }
.bds-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.bds-note { margin-left: auto; font-size: 11px; color: var(--text-light); }
.dish-jin-list { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.djl-col { flex: 1 1 340px; max-width: 480px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.djl-col-head { font-size: 12px; font-weight: 700; padding: 5px 11px; }
.djl-col-head.bf { background: var(--orange-bg); color: var(--orange); }
.djl-col-head.ln { background: var(--primary-light); color: var(--primary); }
.djl-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 11px; border-top: 1px solid var(--line); font-size: 13px; }
.djl-row:first-of-type { border-top: none; }
.djl-name { color: var(--text); }
.djl-name i { font-style: normal; color: var(--text-light); font-size: 11px; margin-right: 6px; }
.djl-jin { color: var(--text-sub); white-space: nowrap; font-size: 12px; }
.djl-jin b { font-size: 15px; font-weight: 800; color: var(--orange); }
.djl-jin.over b { color: var(--red); }
.djl-empty { padding: 10px; text-align: center; color: var(--text-light); }
.board-alerts { padding-top: 8px; border-top: 1px solid var(--line); }

/* 公示菜单导入：软提示 / 未匹配标红 / 覆盖强提示 */
.mi-soft-tip { padding: 9px 12px; background: var(--primary-light); border: 1px solid var(--primary); border-radius: 8px; color: var(--primary-deep); font-size: 13px; line-height: 1.6; }
.mi-pick { display: block; margin-top: 4px; width: 100px; padding: 3px 4px; border: 1px solid var(--primary); border-radius: 6px; font-size: 11px; }
.mi-dish.mi-missing { border-color: #e74c3c !important; background: #fff2f0 !important; color: #c0392b !important; }
.mi-warn { margin-top: 10px; padding: 10px 12px; background: #fff4e5; border: 1px solid #ffc069; border-radius: 8px; color: #a35300; font-size: 13px; line-height: 1.7; }
.mi-warn .tap-link { margin-left: 6px; }
.mi-confirm-box { border: 2px solid #e74c3c; border-radius: 10px; background: #fff5f4; padding: 18px 20px; }
.mi-confirm-title { font-size: 17px; font-weight: 800; color: #c0392b; margin-bottom: 10px; }
.mi-confirm-detail { font-size: 14px; color: #4a4a4a; line-height: 1.7; }
.mi-confirm-q { margin-top: 12px; font-size: 15px; font-weight: 700; color: #c0392b; }
.mi-confirm-dates { margin-top: 12px; padding: 10px 12px; background: #fff; border: 1px solid #f5c6c2; border-radius: 8px; }
.mi-confirm-dates-h { font-size: 13px; font-weight: 700; color: #7a2e28; margin-bottom: 8px; }
.mi-date-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mi-date-chip { display: inline-block; padding: 3px 9px; background: #ffe9e7; border: 1px solid #f5c6c2; border-radius: 6px; font-size: 12px; font-weight: 700; color: #c0392b; }

/* 标签样式管理（pc.php 单页） */
.tag-emoji-pick { display: flex; gap: 4px; flex-wrap: wrap; }
.tag-emoji-pick .tep { width: 30px; height: 30px; border: 1px solid #dfe4ea; border-radius: 7px; background: #fff; font-size: 15px; cursor: pointer; }
.tag-emoji-pick .tep.on { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 2px var(--primary-light); }
.t-name, .t-bg { padding: 7px 9px; border: 1px solid #dfe4ea; border-radius: 7px; font-size: 13px; font-family: inherit; }
.t-name { width: 100%; }
.tag-chip-preview { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #f4f6f7; }

/* ===== 预约用餐 / 明日复核：原型定稿排版强化（仅作用于二级页） ===== */
/* 阶段进度：逐天方格 */
#weekplan-page .wp-day-chips { display:flex; gap:7px; flex-wrap:wrap; margin:12px 0; }
#weekplan-page .wp-day { width:62px; text-align:center; padding:7px 0; border-radius:12px; background:var(--gray,#f7f0e9); border:2px solid transparent; line-height:1.3; }
#weekplan-page .wp-day small { display:block; font-size:10px; opacity:.8; }
#weekplan-page .wp-day em { display:block; font-size:10px; font-style:normal; margin-top:2px; }
#weekplan-page .wp-day.active { background:#fff1df; border-color:#e68a3c; color:#d2772a; }
#weekplan-page .wp-day.filled { background:#e9f7f0; color:#43ae7c; }
#weekplan-page .wp-day.notcome { opacity:.6; }
/* 餐次切换胶囊 */
#weekplan-page .wp-meal-switch { display:flex; gap:8px; margin-bottom:12px; }
#weekplan-page .wp-ms { flex:1; padding:10px; border-radius:12px; background:var(--gray,#f7f0e9); color:var(--sub,#9a7d6d); font-weight:600; font-size:13px; }
#weekplan-page .wp-ms.active { background:var(--primary); color:#fff; }
/* 菜品：emoji + 标签 + 菜名 + 辣度 + 份数控件，去粗边框 */
#weekplan-page .wp-dish { border-bottom:1px solid var(--line,#f5e9e0); }
#weekplan-page .wp-dish .dname { display:flex; align-items:center; flex-wrap:wrap; gap:2px; }
#weekplan-page .wb { border-radius:8px; }
/* 明日复核：三按钮横排 + 取消回滚 + 流程说明 */
#confirm-page .choice-row.confirm-row { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:12px 0; }
#confirm-page .choice-card { border:2px solid var(--line,#f5e9e0); border-radius:12px; padding:10px 4px; text-align:center; background:#fff; min-height:0; }
#confirm-page .choice-card.on { border-color:var(--primary); background:var(--primary-light); }
#confirm-page .conf-cancel { background:var(--red,#f07a6a); color:#fff; border-radius:12px; padding:11px 14px; font-weight:700; width:100%; margin-top:6px; }
#confirm-page .flow { font-size:11px; color:var(--sub,#9a7d6d); background:var(--gray,#f7f0e9); border-radius:10px; padding:8px 10px; margin-top:10px; line-height:1.7; }

/* ============================================================
   二级页严格对齐原型 stage-booking-v2 page-book / page-review
   ============================================================ */
#weekplan-page,#confirm-page{--primary:#ff8f6b;--primary-deep:#e56e4b;--primary-light:#ffe9e0;--card:#fff;--text:#4a3830;--sub:#9a7d6d;--line:#f5e9e0;--green:#43ae7c;--green-bg:#e9f7f0;--gray:#f7f0e9;--red:#f07a6a;--red-bg:#ffefe9;--amber:#e0a040;--amber-bg:#fff4e4;--blue:#6e6199;--blue-bg:#f0edf7;--bf:#e68a3c;--bf-deep:#d2772a;--bf-light:#fff1df;--bf-line:#f0a85a;--ln:#4a86c5;--ln-deep:#3f74ac;--ln-light:#e8f2fc;--ln-line:#7fb2e8;--mc:var(--ln);--mc-deep:var(--ln-deep);--mc-light:var(--ln-light);--mc-line:var(--ln-line)}
#weekplan-page.meal-bf,#confirm-page.meal-bf{--mc:var(--bf);--mc-deep:var(--bf-deep);--mc-light:var(--bf-light);--mc-line:var(--bf-line)}
#weekplan-page.meal-ln,#confirm-page.meal-ln{--mc:var(--ln);--mc-deep:var(--ln-deep);--mc-light:var(--ln-light);--mc-line:var(--ln-line)}
#weekplan-page .mobile-body,#confirm-page .mobile-body{padding:14px 16px 24px}
#weekplan-page h1,#confirm-page h1{font-size:18px;margin:4px 0 2px}
#weekplan-page .mobile-header p,#confirm-page .mobile-header p{font-size:12px;color:var(--sub);margin:0}
/* seg 餐次切换 */
#weekplan-page .seg,#confirm-page .seg{display:flex;position:relative;background:#f2ece6;border-radius:999px;padding:4px;margin-bottom:14px;box-shadow:inset 0 1px 3px rgba(120,90,70,.08)}
#weekplan-page .seg .seg-slider,#confirm-page .seg .seg-slider{position:absolute;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border-radius:999px;background:var(--mc);box-shadow:0 4px 12px rgba(0,0,0,.15);transition:transform .28s cubic-bezier(.4,0,.2,1),background .28s}
#weekplan-page .seg.bf .seg-slider,#confirm-page .seg.bf .seg-slider{transform:translateX(0)}
#weekplan-page .seg.ln .seg-slider,#confirm-page .seg.ln .seg-slider{transform:translateX(100%)}
#weekplan-page .seg button,#confirm-page .seg button{flex:1;position:relative;z-index:1;border:none;background:none;padding:9px 0;font-size:13px;cursor:pointer;color:var(--sub);font-weight:600;transition:color .25s}
#weekplan-page .seg button.on,#confirm-page .seg button.on{color:#fff}
#weekplan-page .seg .seg-ico,#confirm-page .seg .seg-ico{margin-right:3px}
/* card / row / badge */
#weekplan-page .card,#confirm-page .card{background:var(--card);border-radius:14px;padding:15px;margin-bottom:12px;box-shadow:0 4px 16px rgba(120,90,70,.08)}
#weekplan-page .row,#confirm-page .row{display:flex;align-items:center;justify-content:space-between;gap:10px}
#weekplan-page .t,#confirm-page .t{font-size:15px;font-weight:600}
#weekplan-page .d,#confirm-page .d{font-size:12px;color:var(--sub);margin-top:3px;line-height:1.5}
#weekplan-page .badge,#confirm-page .badge{font-size:11px;padding:3px 9px;border-radius:10px;background:var(--gray);color:var(--sub)}
#weekplan-page .badge.g,#confirm-page .badge.g{background:var(--green-bg);color:var(--green)}
#weekplan-page .badge.o,#confirm-page .badge.o{background:var(--amber-bg);color:var(--amber)}
#weekplan-page .badge.r,#confirm-page .badge.r{background:var(--red-bg);color:var(--red)}
#weekplan-page .badge.b,#confirm-page .badge.b{background:var(--blue-bg);color:var(--blue)}
/* 阶段进度方格 */
#weekplan-page .prog{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
#weekplan-page .prog .day{width:62px;text-align:center;padding:7px 0;border-radius:12px;background:var(--gray);font-size:12px;cursor:pointer;border:2px solid transparent;line-height:1.3}
#weekplan-page .prog .day.done{background:var(--green-bg);color:var(--green)}
#weekplan-page .prog .day.cur{background:var(--mc-light);border-color:var(--mc);color:var(--mc-deep)}
#weekplan-page .prog .day.lock{opacity:.45;cursor:not-allowed}
#weekplan-page .prog .day .dd{font-weight:700;font-size:12px}
#weekplan-page .prog .day .dw{display:block;font-size:10px;opacity:.8}
#weekplan-page .prog .day .ds{display:block;font-size:10px;margin-top:2px}
/* 阶段进度日期块：极简迷你——仅提示早/午两态，省出空间给预约操作 */
#weekplan-page .prog .day{width:58px;padding:7px 2px}
#weekplan-page .prog .day .mini-row{display:block;margin-top:3px;font-size:10px;line-height:1.5;white-space:nowrap}
#weekplan-page .prog .day .mini{display:block;font-weight:600}
#weekplan-page .prog .day .mini i{font-style:normal;opacity:.7}
#weekplan-page .prog .day .mini-come{color:#2e9e5b}
#weekplan-page .prog .day .mini-not{color:#c0563f}
#weekplan-page .prog .day .mini-none{color:#9aa4b2}
/* 三按钮 choice */
#weekplan-page .choice-grid,#confirm-page .choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
#weekplan-page .choice,#confirm-page .choice{border:2px solid var(--line);border-radius:12px;padding:10px 4px;text-align:center;font-size:12px;cursor:pointer;background:#fff}
#weekplan-page .choice.on,#confirm-page .choice.on{border-color:var(--mc);background:var(--mc-light);color:var(--mc-deep);font-weight:600}
/* 菜品行 + 份数控件 */
#weekplan-page .dish,#confirm-page .dish{display:flex;align-items:center;gap:6px;padding:9px 0;border-bottom:1px solid var(--line)}
#weekplan-page .dish:last-child,#confirm-page .dish:last-child{border-bottom:none}
#weekplan-page .dish .nm,#confirm-page .dish .nm{flex:1;min-width:0;font-size:13px;display:flex;align-items:center;flex-wrap:wrap;gap:2px}
#weekplan-page .tag-combo,#confirm-page .tag-combo{display:inline-flex;align-items:center;gap:3px;vertical-align:middle;margin-right:3px;white-space:nowrap}
#weekplan-page .tag-combo .emo,#confirm-page .tag-combo .emo{font-size:13px;line-height:1}
#weekplan-page .tag-combo .txt,#confirm-page .tag-combo .txt{font-size:10px;font-weight:700;padding:2px 6px;border-radius:6px;line-height:1.4}
#weekplan-page .txt.bg-red,#confirm-page .txt.bg-red{background:#FFE0D6;color:#C24A10}
#weekplan-page .txt.bg-green,#confirm-page .txt.bg-green{background:#E4F3E8;color:#2E7D46}
#weekplan-page .chili-box,#confirm-page .chili-box{display:inline-flex;align-items:center;vertical-align:middle;white-space:nowrap}
#weekplan-page .chili,#confirm-page .chili{font-size:11px;line-height:1;filter:grayscale(1) opacity(.22)}
#weekplan-page .chili.on,#confirm-page .chili.on{filter:none;opacity:1;text-shadow:0 0 3px rgba(232,115,90,.5)}
#weekplan-page .chili-txt,#confirm-page .chili-txt{font-size:10px;color:#e8735a;font-weight:600;margin-left:2px}
#weekplan-page .eatbtns{display:flex;align-items:center;gap:4px;flex:none}
#weekplan-page .wb{border:none;border-radius:8px;padding:5px 8px;font-size:11px;cursor:pointer;background:var(--gray);color:var(--sub)}
#weekplan-page .wb.hall.on,#weekplan-page .wb.pack.on{background:var(--mc-light);color:var(--mc-deep);border:1px solid var(--mc-line);font-weight:700}
#weekplan-page .wb-packminus{width:24px;height:24px;border:none;border-radius:7px;background:var(--gray);color:var(--sub);cursor:pointer;font-weight:700}
#weekplan-page .stepb,#confirm-page .stepb{display:flex;align-items:center;gap:4px}
#weekplan-page .stepb button,#confirm-page .stepb button{width:24px;height:24px;border:none;border-radius:7px;background:var(--primary-light);color:var(--primary-deep);cursor:pointer;font-weight:700}
#weekplan-page .stepb b,#confirm-page .stepb b{min-width:14px;text-align:center;font-size:12px}
#weekplan-page .muted,#confirm-page .muted{opacity:.4}
/* 按钮 */
#weekplan-page .btn,#confirm-page .btn{border:none;border-radius:12px;padding:10px 14px;font-size:13px;cursor:pointer;background:var(--mc);color:#fff;font-weight:600}
#weekplan-page .btn.r,#confirm-page .btn.r{background:var(--red)}
#weekplan-page .btn.g,#confirm-page .btn.g{background:var(--green)}
#weekplan-page .btn.b,#confirm-page .btn.b{background:var(--blue)}
#weekplan-page .note,#confirm-page .note{background:var(--amber-bg);color:#967331;font-size:11px;padding:9px 11px;border-radius:10px;line-height:1.6;margin-top:8px}
#weekplan-page .flow,#confirm-page .flow{font-size:11px;color:var(--sub);background:var(--gray);border-radius:10px;padding:8px 10px;margin-top:10px;line-height:1.7}
/* 二级页顶部：原型为浅底标题区，不用橙色渐变 */
#weekplan-page .mobile-header,#confirm-page .mobile-header{background:var(--bg,#fff7f0);color:var(--text);box-shadow:none}
#weekplan-page .mobile-header h1,#confirm-page .mobile-header h1{color:var(--text)}
#weekplan-page .mobile-header p,#confirm-page .mobile-header p{color:var(--sub)}
#weekplan-page .mh-back,#confirm-page .mh-back{color:var(--text)}
/* 公告标题色块选择 */
.nt-colors{display:flex;gap:9px;align-items:center;padding:6px 0}
.nt-color{width:26px;height:26px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.14);cursor:pointer;padding:0;transition:transform .12s}
.nt-color:hover{transform:scale(1.1)}
.nt-color.on{box-shadow:0 0 0 2px #4a6fb5;transform:scale(1.12)}
.nt-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px;vertical-align:middle}
/* 预约总控关闭：入口置灰 + 提示（灰底橙字 tip） */
.gate-off{opacity:.55;filter:grayscale(.7);pointer-events:none;cursor:not-allowed}
.dh-card.gate-off,.menu-book-cta.gate-off{background:#eef1f5;color:#9aa4b2;border-color:#e2e7ee}
.dh-card.gate-off .dh-main small,.menu-book-cta.gate-off .gate-note{color:#e08a3c;font-weight:600}
.menu-book-cta.gate-off{display:flex;justify-content:space-between;align-items:center}
.gate-tip{background:#eef1f5;color:#e08a3c!important;font-weight:600;padding:4px 10px;border-radius:8px;display:inline-block}
