/* =========================================================================
 * 兰森食堂 设计系统 + H5 移动优先样式
 * H5 应用：窄容器（max-width 480px）居中，固定底栏 + 安全区，手机上访问最舒适；
 * 桌面访问时同样居中显示移动 App 式布局（无手机外框，纯 H5）。
 * 配色：主橙 #FF6B35 → #FF8C52；成功绿 #27AE60 / #2ECC71；背景 #f5f6f8。
 * ========================================================================= */

:root {
  --orange: #FF6B35;
  --orange-2: #FF8C52;
  --green: #27AE60;
  --green-2: #2ECC71;
  --bg: #f5f6f8;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --text: #1f2329;
  --text-2: #8a8f99;
  --text-3: #b6bac1;
  --line: #eef0f3;
  --danger: #e54848;
  --purple: #6C5CE7;
  --purple-2: #A29BFE;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  background: #e9ebef;
  font-family: var(--font);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  /* 防止任何意外横向滚动 */
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ol, ul { margin: 0; padding-left: 18px; }
input, select { font-family: inherit; font-size: 14px; }

/* ------------------------- 应用外壳（H5 移动优先，窄容器居中） ------------------------- */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
}

/* ------------------------- 顶部导航 ------------------------- */
.top-nav {
  flex: none;
  min-height: 50px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.top-nav--home { background: linear-gradient(90deg, var(--orange), var(--orange-2)); border-bottom: none; }

.nav-building {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 10px;
}
.nav-building:active { background: rgba(255, 255, 255, 0.18); }
.nav-building-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-caret { font-size: 11px; opacity: 0.9; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-icon { font-size: 18px; }

/* 品牌区（总部统一形象） */
.nav-brand { display: flex; align-items: center; gap: 8px; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.brand-emoji { font-size: 22px; }
.nav-brand-name { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: 0.5px; }

.nav-title { font-size: 17px; font-weight: 700; }
.top-nav--sub { position: relative; }
.nav-back {
  font-size: 26px;
  line-height: 1;
  color: var(--text);
  width: 32px;
  text-align: left;
}
.top-nav--sub .nav-title { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
.nav-placeholder { width: 32px; }

/* ------------------------- 页面容器 ------------------------- */
.page-container {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px 16px;
}

/* ------------------------- 底部 TabBar ------------------------- */
.tabbar {
  flex: none;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-2);
  font-size: 11px;
  padding: 4px 0;
}
.tab-icon { font-size: 20px; line-height: 1; }
.tab-item.active { color: var(--orange); font-weight: 700; }

/* ------------------------- 通用卡片/按钮 ------------------------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
}
.section-title { font-size: 15px; font-weight: 700; margin: 4px 2px 10px; }
.muted { color: var(--text-2); font-weight: 400; font-size: 12px; }
.empty { text-align: center; color: var(--text-2); padding: 30px 10px; font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;            /* 移动端点按区域 ≥ 44px */
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.28);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 18px; }
.btn-block { display: flex; width: 100%; }
.btn-ghost {
  background: #fff;
  color: var(--orange);
  border: 1px solid rgba(255, 107, 53, 0.4);
  box-shadow: none;
}

/* ------------------------- 首页：截单提醒条 ------------------------- */
.cutoff-bar {
  background: linear-gradient(90deg, #fff3ec, #ffe9df);
  color: #c2410c;
  border: 1px solid #ffd9c4;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.cutoff-bar b { color: var(--orange); }

/* ------------------------- 首页：营销 Banner 轮播（管理后台维护） ------------------------- */
.banner-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.banner-carousel::-webkit-scrollbar { display: none; }
.saas-banner {
  flex: 0 0 auto;
  width: 86%;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(120deg, #fff3ec, #ffe9df);
  border: 1px solid #ffd9c4;
  box-shadow: 0 3px 10px rgba(255, 107, 53, 0.15);
  cursor: pointer;
  min-height: 72px;
}
.saas-banner img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.saas-banner .banner-text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #c2410c;
  text-align: center;
}

/* ------------------------- 首页：主 Banner ------------------------- */
.hero-banner {
  background: linear-gradient(120deg, var(--orange), var(--orange-2));
  border-radius: var(--radius);
  padding: 18px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.3);
  margin-bottom: 14px;
}
.hero-sub { font-size: 12px; opacity: 0.9; }
.hero-title { font-size: 26px; font-weight: 800; margin: 2px 0 6px; letter-spacing: 1px; }
.hero-price { font-size: 22px; font-weight: 800; }
.hero-old { font-size: 13px; font-weight: 400; opacity: 0.8; text-decoration: line-through; margin-left: 6px; }
.hero-tag { margin-top: 6px; font-size: 11px; background: rgba(255, 255, 255, 0.22); display: inline-block; padding: 2px 8px; border-radius: 10px; }
.hero-emoji { font-size: 56px; line-height: 1; }

/* ------------------------- 首页：分段切换 ------------------------- */
.seg {
  display: flex;
  background: #eceef2;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
}
.seg-btn {
  flex: 1;
  min-height: 38px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  background: transparent;
}
.seg-btn.active { background: #fff; color: var(--orange); box-shadow: var(--shadow); }

/* ------------------------- 首页：套餐卡片 ------------------------- */
.pkg-list { display: flex; flex-direction: column; gap: 12px; }
.pkg-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pkg-badge {
  position: absolute;
  top: 0; left: 0;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-bottom-right-radius: 10px;
}
.pkg-body { padding: 30px 14px 14px; }
.pkg-name { font-size: 15px; font-weight: 700; }
.pkg-desc { color: var(--text-2); font-size: 12px; margin: 6px 0 12px; line-height: 1.6; }
.pkg-foot { display: flex; align-items: center; justify-content: space-between; }
.pkg-price .now { color: var(--orange); font-size: 20px; font-weight: 800; }
.pkg-price .old { color: var(--text-3); font-size: 12px; text-decoration: line-through; margin-left: 6px; }

/* ------------------------- 首页：加购项 ------------------------- */
.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.addon-row.sel { border: 1px solid rgba(255, 107, 53, 0.5); }
.addon-name { font-size: 14px; font-weight: 600; }
.addon-desc { color: var(--text-2); font-size: 12px; margin-top: 2px; }
.addon-right { display: flex; align-items: center; gap: 10px; }
.addon-price { color: var(--orange); font-weight: 700; font-size: 13px; }
.addon-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 18px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.addon-btn.on { background: var(--orange); color: #fff; }

/* ------------------------- 首页：怎么吃 ------------------------- */
.how-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.how-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.how-list { color: var(--text-2); font-size: 13px; line-height: 1.9; }

/* ------------------------- 子页通用标题条 ------------------------- */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 2px 2px 12px;
}
.page-head h2 { font-size: 17px; margin: 0; }

/* ------------------------- 预约确认页 ------------------------- */
.rv-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.rv-card .rc-title { font-size: 13px; color: var(--text-2); margin-bottom: 10px; font-weight: 600; }
.rv-pkg-name { font-size: 16px; font-weight: 700; }
.rv-pkg-desc { color: var(--text-2); font-size: 12px; margin-top: 4px; line-height: 1.6; }
.rv-line { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.rv-line:first-of-type { border-top: none; }
.rv-line .lbl { color: var(--text-2); }
.rv-line .val { font-weight: 600; text-align: right; }
.rv-line .val.orange { color: var(--orange); }

.time-chips { display: flex; gap: 10px; }
.time-chip {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.time-chip.active { border-color: var(--orange); color: var(--orange); background: #fff4ee; }

/* ------------------------- 取餐码页 ------------------------- */
.pickup-status {
  background: linear-gradient(120deg, var(--green), var(--green-2));
  color: #fff;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(39, 174, 96, 0.3);
}
.pickup-status.done { background: linear-gradient(120deg, #9aa3ad, #b6bcc4); box-shadow: none; }
.ps-text { font-size: 14px; opacity: 0.95; }
.ps-code {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 6px;
  margin: 8px 0 2px;
}
.ps-sub { font-size: 12px; opacity: 0.9; }

/* ------------------------- 订单列表 ------------------------- */
.order-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.order-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.order-code { font-size: 18px; font-weight: 800; letter-spacing: 2px; color: var(--orange); }
.order-pill { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 10px; }
.order-pill.pending { background: #fff4ee; color: var(--orange); }
.order-pill.done { background: #eafaf0; color: var(--green); }
.order-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 3px 0; }
.order-row .v { color: var(--text); }
.order-actions { margin-top: 10px; display: flex; gap: 10px; }

/* ------------------------- 我的页 ------------------------- */
.profile-card {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  border-radius: var(--radius);
  padding: 18px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.3);
  margin-bottom: 14px;
}
.pc-top { display: flex; align-items: center; gap: 12px; }
.pc-avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.pc-name { font-size: 18px; font-weight: 800; }
.pc-badge { display: inline-block; margin-top: 4px; font-size: 11px; background: rgba(255, 255, 255, 0.25); padding: 2px 8px; border-radius: 10px; }
.pc-meta { margin-top: 8px; font-size: 12px; opacity: 0.95; }
.pc-stats { display: flex; margin-top: 16px; }
.pc-stat { flex: 1; text-align: center; }
.pc-stat .num { font-size: 18px; font-weight: 800; }
.pc-stat .lbl { font-size: 11px; opacity: 0.9; margin-top: 2px; }
.pc-stat + .pc-stat { border-left: 1px solid rgba(255, 255, 255, 0.25); }

/* 九宫格 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.grid-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
}
.grid-item:active { background: #fff7f2; }
.grid-icon { font-size: 24px; }

.coupon-card {
  background: linear-gradient(120deg, #fff4ee, #ffe9df);
  border: 1px dashed var(--orange);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.coupon-amt { color: var(--orange); font-size: 24px; font-weight: 800; }
.coupon-amt small { font-size: 13px; }
.coupon-info { flex: 1; }
.coupon-title { font-size: 14px; font-weight: 700; }
.coupon-cond { font-size: 11px; color: var(--text-2); margin-top: 2px; }

/* ------------------------- 社群页 ------------------------- */
.comm-banner {
  background: linear-gradient(120deg, var(--orange), var(--orange-2));
  border-radius: var(--radius);
  padding: 16px;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.3);
}
.cb-top { display: flex; align-items: center; justify-content: space-between; }
.cb-name { font-size: 18px; font-weight: 800; }
.cb-members { font-size: 12px; opacity: 0.9; }
.cb-desc { font-size: 12px; opacity: 0.95; margin-top: 6px; }
.cb-tag { display: inline-block; margin-top: 8px; font-size: 11px; background: rgba(255,255,255,0.22); padding: 2px 8px; border-radius: 10px; }

.chat { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.msg { display: flex; gap: 8px; align-items: flex-start; }
.msg.user { flex-direction: row-reverse; }
.msg-avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.msg-bubble {
  max-width: 75%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  background: #fff;
  box-shadow: var(--shadow);
}
.msg.user .msg-bubble { background: linear-gradient(120deg, var(--orange), var(--orange-2)); color: #fff; border-top-right-radius: 2px; }
.msg.bot .msg-bubble { border-top-left-radius: 2px; }
.msg-name { font-size: 11px; color: var(--text-2); margin-bottom: 3px; }

.benefit-card, .robot-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.benefit-title, .robot-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.benefit-list { display: flex; flex-direction: column; gap: 10px; }
.benefit-item { display: flex; gap: 10px; align-items: center; }
.bi-icon { font-size: 22px; }
.bi-title { font-size: 13px; font-weight: 600; }
.bi-desc { font-size: 12px; color: var(--text-2); }
.robot-note { font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* ------------------------- 取餐地址列表 ------------------------- */
.addr-hint { font-size: 12px; color: var(--text-2); background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--line); }
.addr-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.addr-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.addr-top { display: flex; align-items: center; gap: 8px; }
.addr-building { font-size: 15px; font-weight: 700; }
.addr-default { font-size: 11px; font-weight: 700; color: var(--orange); background: #fff4ee; padding: 1px 8px; border-radius: 10px; }
.addr-detail { font-size: 13px; color: var(--text); margin-top: 6px; }
.addr-point { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.addr-actions { display: flex; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.link-btn { color: var(--orange); font-size: 13px; font-weight: 600; }
.link-btn.danger { color: var(--danger); }

/* ------------------------- 弹窗（楼宇选择 / 地址编辑） ------------------------- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: none; }
.modal-root.open { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.modal-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  background: var(--bg);
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sheetUp 0.22s ease;
}
@keyframes sheetUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }

/* 桌面端：弹窗改为居中卡片，而不是底部抽屉 */
@media (min-width: 768px) {
  .modal-sheet {
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(440px, 92vw);
    max-height: 86vh;
    border-radius: 18px;
    animation: popIn 0.2s ease;
  }
  @keyframes popIn { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
}

.modal-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close { font-size: 18px; color: var(--text-2); width: 30px; height: 30px; }
.modal-search { flex: none; padding: 10px 16px; background: #fff; }
.modal-search input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; outline: none; }
.modal-search input:focus { border-color: var(--orange); }
.modal-list { flex: 1; overflow-y: auto; padding: 6px 12px 14px; }
.b-item {
  width: 100%;
  text-align: left;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  box-shadow: var(--shadow);
}
.b-item.cur { border: 1px solid var(--orange); }
.b-name { font-size: 15px; font-weight: 700; }
.b-meta { font-size: 12px; color: var(--text-2); }
.b-check { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--orange); font-weight: 800; }
.modal-tip { flex: none; padding: 10px 16px; font-size: 11px; color: var(--text-3); background: #fff; border-top: 1px solid var(--line); }
.modal-foot { flex: none; padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); }

/* 登录/注册 Tab 切换（v14） */
.seg-tabs { display: flex; gap: 8px; }
.seg-tab {
  flex: 1; padding: 10px 0; text-align: center; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text-2);
  cursor: pointer; transition: all 0.15s;
}
.seg-tab.active { background: var(--brand, #FF6B35); border-color: var(--brand, #FF6B35); color: #fff; }

/* 地址编辑表单 */
.form-field { margin-bottom: 14px; }
.form-label { font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.form-control {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  outline: none;
}
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8f99' fill='none' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.form-control:focus { border-color: var(--orange); }
.form-row { display: flex; align-items: center; gap: 8px; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.switch input { width: 18px; height: 18px; accent-color: var(--orange); }
.step-hint { font-size: 12px; color: var(--text-2); margin: 2px 4px 12px; }

/* ============================ 好物（下班团购 / 周边好物） ============================ */
.biz-tabs { display: flex; gap: 0; margin-bottom: 12px; border-radius: 12px; overflow: hidden; background: #fff; }
.biz-tab { flex: 1; text-align: center; padding: 12px 8px; background: #fff; font-size: 13px; font-weight: 700; border: none; cursor: pointer; border-bottom: 3px solid transparent; color: var(--text-2); }
.biz-tab.active.green { border-bottom-color: var(--green); color: var(--green); }
.biz-tab.active.purple { border-bottom-color: var(--purple); color: var(--purple); }

.gb-page-header { background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%); border-radius: 14px; padding: 18px; color: #fff; margin-bottom: 12px; }
.gb-page-header .t1 { font-size: 10px; opacity: 0.8; margin-bottom: 4px; }
.gb-page-header .t2 { font-size: 20px; font-weight: 800; }
.gb-page-header .t3 { font-size: 12px; opacity: 0.8; margin-top: 4px; }
.gb-categories { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }
.gb-cat { padding: 6px 14px; border-radius: 18px; font-size: 12px; background: #fff; color: var(--text-2); white-space: nowrap; border: none; cursor: pointer; flex-shrink: 0; }
.gb-cat.active { background: var(--green); color: #fff; font-weight: 600; }
.gb-product { background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 8px; display: flex; gap: 10px; box-shadow: var(--shadow); }
.gb-product .pimg { width: 80px; height: 80px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 36px; flex-shrink: 0; }
.gb-product .pinfo { flex: 1; }
.gb-product .pinfo .pname { font-size: 14px; font-weight: 700; }
.gb-product .pinfo .pspec { font-size: 11px; color: var(--text-2); margin: 2px 0; }
.gb-product .pinfo .pprice { font-size: 18px; font-weight: 800; color: var(--green); }
.gb-product .pinfo .pprice s { font-size: 11px; color: #ccc; margin-left: 6px; }
.gb-product .pinfo .psales { font-size: 11px; color: var(--text-2); }
.gb-product .add-btn { align-self: flex-end; background: var(--green); color: #fff; border: none; border-radius: 16px; padding: 6px 16px; font-size: 12px; font-weight: 700; cursor: pointer; }

.surrounding-header { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); border-radius: 14px; padding: 18px; color: #fff; margin-bottom: 12px; }
.surrounding-header .sh-tag { font-size: 10px; background: rgba(255, 215, 0, 0.2); color: #FFD700; padding: 2px 10px; border-radius: 10px; display: inline-block; margin-bottom: 6px; }
.surrounding-header .sh-title { font-size: 18px; font-weight: 800; }
.surrounding-header .sh-sub { font-size: 11px; opacity: 0.7; margin-top: 4px; }
.surrounding-header .sh-features { display: flex; gap: 12px; margin-top: 10px; font-size: 11px; }
.s-categories { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }
.s-cat { padding: 7px 14px; border-radius: 18px; font-size: 12px; background: #fff; color: var(--text-2); white-space: nowrap; border: none; cursor: pointer; flex-shrink: 0; }
.s-cat.active { background: var(--purple); color: #fff; font-weight: 600; }
.service-card { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.service-card .s-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.service-card .s-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.service-card .s-name { font-size: 15px; font-weight: 700; flex: 1; }
.service-card .s-badge { font-size: 10px; padding: 2px 8px; border-radius: 8px; }
.service-card .s-badge.hot { background: #FFE8D6; color: #FF6B35; }
.service-card .s-desc { font-size: 12px; color: var(--text-2); margin-bottom: 8px; line-height: 1.5; }
.service-card .s-pricing { display: flex; gap: 10px; margin-bottom: 8px; }
.service-card .s-price-item { flex: 1; background: #f9fafb; border-radius: 8px; padding: 8px; text-align: center; }
.service-card .s-price-item .sp-name { font-size: 10px; color: var(--text-2); }
.service-card .s-price-item .sp-price { font-size: 16px; font-weight: 800; color: #1a1a2e; }
.service-card .s-price-item .sp-price span { font-size: 12px; font-weight: 500; color: var(--text-3); text-decoration: line-through; margin-left: 4px; }
.service-card .s-bottom { display: flex; justify-content: space-between; align-items: center; }
.service-card .s-sold { font-size: 11px; color: var(--text-2); }
.service-card .s-btn { background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: #fff; border: none; border-radius: 18px; padding: 8px 20px; font-size: 12px; font-weight: 700; cursor: pointer; }

.home-biz-grid { display: flex; gap: 10px; margin-bottom: 12px; }
.home-biz-card { flex: 1; border-radius: 14px; padding: 14px; color: #fff; cursor: pointer; position: relative; overflow: hidden; text-align: left; }
.home-biz-card::after { content: ''; position: absolute; right: -15px; top: -15px; width: 80px; height: 80px; border-radius: 40px; background: rgba(255, 255, 255, 0.08); }
.home-biz-card.green { background: linear-gradient(135deg, #27AE60, #2ECC71); }
.home-biz-card.purple { background: linear-gradient(135deg, var(--purple), var(--purple-2)); }
.home-biz-card .hb-emoji { font-size: 28px; position: relative; z-index: 1; }
.home-biz-card .hb-tag { font-size: 9px; background: rgba(255, 255, 255, 0.25); padding: 2px 8px; border-radius: 8px; display: inline-block; }
.home-biz-card .hb-title { font-size: 14px; font-weight: 800; margin: 6px 0 2px; position: relative; z-index: 1; }
.home-biz-card .hb-sub { font-size: 10px; opacity: 0.85; position: relative; z-index: 1; }

/* ============================ 顶部 hero 轮动 banner（JS cross-fade，无白屏） ============================ */
.hero-carousel { position: relative; width: 100%; height: 140px; border-radius: 14px; overflow: hidden; margin: 12px 0; box-shadow: var(--shadow); }
.hero-slide { position: absolute; inset: 0; padding: 16px 18px; color: #fff; display: flex; align-items: center; justify-content: space-between; opacity: 0; pointer-events: none; transition: opacity 0.6s ease-in-out; cursor: pointer; }
.hero-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slide .hero-left { flex: 1; min-width: 0; }
.hero-slide .hero-sub { font-size: 10px; opacity: 0.9; margin-bottom: 4px; }
.hero-slide .hero-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.hero-slide .hero-tag { font-size: 11px; opacity: 0.85; background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 12px; display: inline-block; }
.hero-slide .hero-emoji { font-size: 56px; opacity: 0.9; flex-shrink: 0; margin-left: 12px; }
.hero-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.hero-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.5); opacity: 0.7; transition: background 0.3s, opacity 0.3s; }
.hero-dot.active { opacity: 1; background: #fff; }

/* ============================ 板块窗口（团购+周边） ============================ */
.home-biz-card { flex: 1; border-radius: 16px; padding: 18px 16px 16px; color: #fff; cursor: pointer; position: relative; overflow: hidden; text-align: left; min-height: 120px; }
.home-biz-card .hb-emoji { font-size: 36px; position: relative; z-index: 1; }
.home-biz-card .hb-tag { font-size: 10px; background: rgba(255,255,255,0.25); padding: 3px 10px; border-radius: 10px; display: inline-block; margin-top: 4px; }
.home-biz-card .hb-title { font-size: 18px; font-weight: 800; margin: 8px 0 2px; position: relative; z-index: 1; }
.home-biz-card .hb-sub { font-size: 11px; opacity: 0.9; position: relative; z-index: 1; line-height: 1.4; }
.home-biz-card .hb-action { font-size: 12px; font-weight: 700; margin-top: 10px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,0.2); position: relative; z-index: 1; }

/* ============================ 客服聊天 ============================ */
.chat-thread { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { display: flex; flex-direction: column; gap: 4px; max-width: 78%; }
.chat-left { align-self: flex-start; }
.chat-right { align-self: flex-end; }
.chat-bubble { padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.6; background: #fff; box-shadow: var(--shadow); }
.chat-left .chat-bubble { border-top-left-radius: 2px; }
.chat-right .chat-bubble { background: linear-gradient(120deg, var(--orange), var(--orange-2)); color: #fff; border-top-right-radius: 2px; }
.chat-time { font-size: 10px; color: var(--text-3); }
.chat-right .chat-time { text-align: right; }
.chat-input-bar { flex: none; display: flex; gap: 8px; padding: 10px 14px; background: #fff; border-top: 1px solid var(--line); }
.chat-input { flex: 1; min-height: 40px; border: 1px solid var(--line); border-radius: 20px; padding: 0 14px; outline: none; font-size: 14px; }
.chat-input:focus { border-color: var(--orange); }

/* ============================ 「我的」页面（瑞幸风格重构 v12.1） ============================ */

/* 顶部橙色渐变头部（与首页主色调一致） */
.my-header {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C52 50%, #FF6B35 100%);
  border-radius: 0 0 22px 22px;
  padding: 20px 16px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: -12px;
}
.my-header::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.my-header::after {
  content: '';
  position: absolute;
  left: 40%;
  bottom: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.my-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.my-avatar-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.5);
  overflow: hidden;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}
.my-avatar-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.my-avatar-wrap .my-avatar-emoji {
  font-size: 32px; line-height: 1;
}
.my-avatar-wrap .avatar-edit-hint {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 50%;
}
.my-avatar-wrap:hover .avatar-edit-hint { opacity: 1; }

.my-user-info { flex: 1; min-width: 0; }
.my-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.my-name { font-size: 19px; font-weight: 800; }
.my-name-arrow { font-size: 16px; opacity: 0.8; }
.my-phone-row { margin-top: 4px; font-size: 12px; opacity: 0.85; }

/* 会员等级卡片 */
.member-card {
  background: #fff;
  border-radius: 14px;
  margin: 0 12px 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  margin-top: 12px;
}
.member-level-row { display: flex; align-items: center; justify-content: space-between; }
.member-level-name { font-size: 15px; font-weight: 800; color: var(--text); }
.member-level-name .lv-tag { color: #FF6B35; }
.member-level-name .lv-num { color: #FF6B35; font-size: 17px; }
.member-points-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}
.member-points-val { font-size: 28px; font-weight: 800; color: var(--text); }
.member-points-label { font-size: 12px; color: var(--text-2); }
.member-progress { margin-top: 10px; }
.member-progress-bar {
  height: 6px;
  background: #E5E7EB;
  border-radius: 3px;
  overflow: hidden;
}
.member-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.member-progress-tip {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-3);
}
.member-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: #F59E0B;
  font-weight: 600;
  margin-top: 2px;
  cursor: pointer;
}

/* 功能按钮网格（4列，瑞幸风格） */
.my-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px 10px 14px;
  margin-bottom: 14px;
}
.my-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 2px;
  border-radius: 10px;
  transition: background 0.15s;
  position: relative;
}
.my-grid-item:active { background: #F3F4F6; }
.my-grid-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
}
.my-grid-icon.icon-order { background: #EFF6FF; }
.my-grid-icon.icon-coupon { background: #FFF7ED; }
.my-grid-icon.icon-groupmeal { background: #F0FDF4; }
.my-grid-icon.icon-invoice { background: #FEF3C7; }
.my-grid-icon.icon-giftcard { background: #FDF2F8; }
.my-grid-icon.icon-bizcoop { background: #EFF6FF; }
.my-grid-icon.icon-wechat { background: #F0FDF4; }
.my-grid-icon.icon-breakfast { background: #FFF1F2; }
.my-grid-label { font-size: 12px; color: var(--text); font-weight: 500; }
.my-grid-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 16px; height: 16px;
  background: #EF4444;
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* 推广 Banner 区域 */
.promo-banner {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 1px solid #FDE68A;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.promo-banner::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
}
.promo-text { flex: 1; position: relative; z-index: 1; }
.promo-title { font-size: 16px; font-weight: 800; color: #92400E; }
.promo-sub { font-size: 12px; color: #B45309; margin-top: 2px; }
.promo-action {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

/* ====== 子页面通用 ====== */
.sub-page-list { display: flex; flex-direction: column; gap: 10px; }
.sub-page-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
}
.sub-page-card + .sub-page-card { margin-top: 0; }
.sp-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sp-card-title { font-size: 15px; font-weight: 700; }
.sp-card-extra { font-size: 12px; color: var(--orange); font-weight: 600; }
.sp-card-body { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.sp-empty { text-align: center; color: var(--text-2); padding: 30px 10px; font-size: 13px; }
.sp-empty-icon { font-size: 40px; margin-bottom: 8px; }

/* 我的订单子页 */
.order-filter-tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }
.order-filter-tab {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  color: var(--text-2);
  border: 1px solid var(--line);
}
.order-filter-tab.active { background: var(--orange); color: #fff; border-color: var(--orange); }

/* 优惠券子页 */
.coupon-list { display: flex; flex-direction: column; gap: 10px; }
.coupon-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.coupon-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--orange), var(--orange-2));
}
.coupon-item.expired { opacity: 0.55; }
.coupon-item.expired::before { background: #ccc; }
.coupon-amt { text-align: center; min-width: 64px; }
.coupon-amt .amt-val { font-size: 26px; font-weight: 800; color: var(--orange); }
.coupon-amt .amt-val small { font-size: 13px; }
.coupon-amt .amt-cond { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.coupon-detail { flex: 1; }
.coupon-detail .c-title { font-size: 14px; font-weight: 700; }
.coupon-detail .c-scope { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.coupon-detail .c-date { font-size: 10px; color: var(--text-3); margin-top: 4px; }
.coupon-use-btn {
  background: var(--orange);
  color: #fff;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* 多人团餐子页 */
.meal-plan-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 10px;
}
.meal-plan-head { display: flex; justify-content: space-between; align-items: flex-start; }
.meal-plan-name { font-size: 15px; font-weight: 700; }
.meal-plan-price { font-size: 18px; font-weight: 800; color: var(--green); }
.meal-plan-desc { font-size: 12px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.meal-plan-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 11px; color: var(--text-3); }
.meal-plan-actions { margin-top: 10px; display: flex; gap: 8px; }

/* 发票管理子页 */
.invoice-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 10px;
}
.invoice-head { display: flex; justify-content: space-between; align-items: center; }
.invoice-type { font-size: 14px; font-weight: 700; }
.invoice-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.invoice-status.done { background: #DCFCE7; color: #166534; }
.invoice-status.pending { background: #FEF3C7; color: #92400E; }
.invoice-status.rejected { background: #FEE2E2; color: #991B1B; }
.invoice-body { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.invoice-row { display: flex; justify-content: space-between; padding: 3px 0; }

/* 礼品卡子页 */
.gift-card-item {
  background: linear-gradient(135deg, #FDF2F8, #FCE7F3);
  border: 1px solid #FBCFE8;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}
.gift-card-head { display: flex; justify-content: space-between; align-items: center; }
.gift-card-name { font-size: 15px; font-weight: 700; color: #BE185D; }
.gift-card-balance { font-size: 20px; font-weight: 800; color: #BE185D; }
.gift-card-body { margin-top: 8px; font-size: 12px; color: #9D174D; }
.gift-card-no { font-size: 11px; color: #BE185D; opacity: 0.6; margin-top: 4px; }

/* 招商合作 / 关注微信 / 我的早餐 子页 */
.info-page { padding: 20px 0; }
.info-hero {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border-radius: 14px;
  margin-bottom: 16px;
}
.info-hero-icon { font-size: 48px; margin-bottom: 10px; }
.info-hero-title { font-size: 18px; font-weight: 800; color: #1E40AF; }
.info-hero-sub { font-size: 13px; color: #3B82F6; margin-top: 4px; }
.info-section { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.info-section-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.info-section-body { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.info-contact-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 8px;
}
.info-qrcode {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.info-qrcode-img {
  width: 180px; height: 180px;
  background: #f0f0f0;
  margin: 12px auto;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-3);
}

/* 编辑资料增强弹窗 */
.profile-form-avatar {
  text-align: center;
  margin-bottom: 16px;
}
.profile-form-avatar .pfa-preview {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #f0f0f0;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  overflow: hidden;
  border: 2px dashed var(--line);
  cursor: pointer;
  position: relative;
}
.profile-form-avatar .pfa-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-form-avatar .pfa-hint { font-size: 11px; color: var(--text-3); }
.profile-form-avatar .pfa-input { display: none; }

/* ============================ v12.2：早餐 / 团餐阶梯 / 邀请好友 / 预约加购 ============================ */

/* 首页早餐入口（午餐板块上方） */
.home-bf-entry {
  display: flex; align-items: center; gap: 12px;
  margin: 10px 12px 4px; padding: 14px 16px;
  background: linear-gradient(135deg, #FFF1E6, #FFD8B8);
  border: 1px solid #FED7AA; border-radius: 16px;
  cursor: pointer;
}
.home-bf-entry .hbf-emoji { font-size: 30px; }
.home-bf-entry .hbf-info { flex: 1; }
.home-bf-entry .hbf-title { font-weight: 700; color: #C2410C; font-size: 15px; }
.home-bf-entry .hbf-sub { font-size: 12px; color: #EA580C; margin-top: 2px; }
.home-bf-entry .hbf-action { font-size: 13px; color: #C2410C; font-weight: 600; }

/* 预约页：加购其他产品（可选） */
.rv-addon-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rv-addon {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 10px; cursor: pointer; font-size: 13px;
  background: #fff;
}
.rv-addon .ra-price { color: var(--orange); font-weight: 600; }
.rv-addon.on { border-color: var(--orange); background: #FFF7F0; }

/* 团餐阶梯优惠 */
.meal-plan-tiers { background: #FFF9F0; border-radius: 10px; padding: 8px 10px; margin-top: 8px; }
.mpt-title { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.meal-tier { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: var(--text-2); }
.meal-tier-discount { color: var(--orange); font-weight: 700; }

/* =========================================================================
 * 早餐首页（沉浸式暖色重设计 v14.0）
 * 整屏柔和暖色渐变背景，内容卡片大圆角自然贴合，左右收窄到 10–12px。
 * 仅作用于 bf- 前缀类，不影响其它 Tab / 页面。
 * ========================================================================= */
/* 整页根容器：负边距铺满 .page-container 的 12px 内边距，制造沉浸感 */
.bf-page {
  margin: -12px -12px -16px;
  padding: 0 0 12px;
  min-height: calc(100% + 8px);
  background: linear-gradient(180deg, #FFE7CF 0%, #FFF4EA 120px, #FFF7F1 100%);
  display: flex;
  flex-direction: column;
}

/* 顶部 hero：橙→暖黄渐变，底部圆角内收 */
.bf-hero {
  margin: 10px 10px 4px;
  padding: 20px 18px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #FF6B35 0%, #FF9248 55%, #FFB066 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.28);
}
.bf-hero-greet { font-size: 21px; font-weight: 800; letter-spacing: 0.3px; }
.bf-hero-building {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; opacity: 0.95; margin-top: 8px;
  background: rgba(255, 255, 255, 0.2); padding: 4px 10px; border-radius: 999px;
}
.bf-hero-sub {
  font-size: 13px; opacity: 0.92; margin-top: 12px;
  display: flex; align-items: center; gap: 6px;
}

.bf-sec-mini {
  font-size: 15px; font-weight: 800; margin: 16px 12px 10px;
  display: flex; justify-content: space-between; align-items: center;
  color: #5A3A22;
}
.bf-sec-mini .more { font-size: 12px; color: #B07A4E; font-weight: 500; }

/* 取餐提醒：半透明暖卡 */
.bf-reminder {
  display: flex; align-items: flex-start; gap: 8px; margin: 4px 10px 6px;
  background: rgba(255, 247, 240, 0.92); border: 1px solid #FFE0C2;
  border-radius: 14px; padding: 10px 12px; font-size: 12px; line-height: 1.6;
  backdrop-filter: blur(2px);
}
.bf-reminder b { color: var(--orange); }

/* v2.4 截单状态条：开卖中（绿）/ 已截单（灰） */
.bf-cutoff-bar {
  display: flex; align-items: center; gap: 7px; margin: 6px 10px;
  border-radius: 12px; padding: 9px 12px; font-size: 12.5px; line-height: 1.5;
}
.bf-cutoff-bar.open { background: #EAF9F0; border: 1px solid #B9E8CD; color: #0E7A46; }
.bf-cutoff-bar.closed { background: #F3F4F6; border: 1px solid #E1E4E8; color: #6B7280; }
.bf-cutoff-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.bf-cutoff-bar.open .bf-cutoff-dot { background: #16A34A; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16); }
.bf-cutoff-bar.closed .bf-cutoff-dot { background: #9CA3AF; }
.bf-cutoff-bar b { font-weight: 800; }

/* v2.4 SKU 上限说明 */
.bf-limit-note {
  margin: 0 0 10px; padding: 0 14px; font-size: 11.5px; color: #A9764A; line-height: 1.5;
}

/* v2.4 取餐须知警示卡 */
.bf-warn-card {
  margin: 10px 10px 4px; background: #FFF8EC; border: 1px solid #FFE2B8;
  border-radius: 14px; padding: 11px 13px;
}
.bf-warn-title { font-size: 13px; font-weight: 800; color: #B45309; margin-bottom: 5px; }
.bf-warn-body { font-size: 12px; color: #8A6534; line-height: 1.75; }
.bf-warn-body b { color: #C2410C; }

/* v2.4 取餐卡内提示 */
.bf-order-tip {
  margin: 8px 0; padding: 8px 10px; background: #FFF8EC; border-radius: 10px;
  font-size: 11.5px; color: #8A6534; line-height: 1.7;
}
.bf-order-tip b { color: #C2410C; }
.bf-order-card.done { opacity: .72; }
.bf-order-card.expired { border-color: #E5E7EB; background: #FAFAFA; }

/* 菜单面板：整宽半透明白卡，圆角贴合 */
.bf-menu-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px; margin: 0 10px; box-shadow: 0 6px 18px rgba(255, 138, 76, 0.12);
  overflow: hidden; backdrop-filter: blur(4px);
}

/* A/B 套餐 Tab 切换器 */
.bf-set-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(238, 240, 243, 0.9); background: rgba(250, 250, 250, 0.6); }
.bf-set-tab {
  flex: 1; border: none; background: none; padding: 13px 8px; font-size: 14px; font-weight: 700;
  color: var(--text-2); cursor: pointer; transition: background .2s, color .2s; display: flex;
  align-items: center; justify-content: center; gap: 5px; position: relative;
}
.bf-set-tab:active { background: rgba(255, 243, 233, 0.8); }
.bf-set-tab.active { color: var(--orange); background: #fff; }
.bf-set-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 22%; right: 22%; height: 3px;
  background: var(--orange); border-radius: 3px 3px 0 0;
}
.bf-tab-letter {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: #FFE0C2; color: #C2410C; font-size: 13px; font-weight: 800;
  transition: background .2s, color .2s;
}
.bf-set-tab.active .bf-tab-letter { background: var(--orange); color: #fff; }

/* 套餐大卡片：整宽 + 圆润缩略图 + 选中态高亮（浅橙底 + 左描边） */
.bf-set-card {
  display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; position: relative;
  transition: background .2s, box-shadow .2s, transform .12s; border-left: 4px solid transparent;
}
.bf-set-card:active { transform: scale(0.985); }
.bf-set-card.checked { background: #FFF5EE; border-left-color: var(--orange); }
.bf-set-card-thumb {
  width: 74px; height: 74px; display: flex; align-items: center; justify-content: center; font-size: 40px;
  background: linear-gradient(135deg, #FFF3E9, #FFE0C2); border-radius: 18px; flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(255, 138, 76, 0.18);
}
.bf-set-card-body { flex: 1; min-width: 0; }
.bf-set-card-name { font-size: 16px; font-weight: 800; color: #2B2B2B; }
.bf-set-card-desc { font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.bf-set-card-price { font-size: 20px; font-weight: 800; color: var(--orange); flex-shrink: 0; }
.bf-set-card-check {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #E2E5EA; display: flex;
  align-items: center; justify-content: center; font-size: 14px; color: #fff; flex-shrink: 0;
  transition: background .2s, border-color .2s, transform .2s;
}
.bf-set-card-check.checked { background: var(--orange); border-color: var(--orange); transform: scale(1.05); }

/* 加点单品网格：2 列圆润、间距匀、emoji 更大更居中 */
.bf-addon-title {
  font-size: 14px; font-weight: 800; padding: 16px 16px 6px; color: #8A6A4F;
  border-top: 1px solid rgba(238, 240, 243, 0.9);
}
.bf-addon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 14px 16px; }
.bf-addon-item {
  background: #FCFCFD; border: 1px solid var(--line); border-radius: 16px; padding: 16px 8px 12px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: background .18s, transform .12s, box-shadow .18s;
}
.bf-addon-item:active { transform: scale(0.97); background: #FFF7F1; box-shadow: 0 4px 12px rgba(255, 138, 76, 0.14); }
.bf-addon-emoji { font-size: 40px; margin-bottom: 8px; line-height: 1; }
.bf-addon-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; color: #2B2B2B; }
.bf-addon-price { font-size: 15px; font-weight: 800; color: var(--orange); margin-bottom: 10px; }

/* 步进器 */
.bf-stepper { display: flex; align-items: center; gap: 10px; }
.bf-step-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 17px; line-height: 1; cursor: pointer; color: var(--orange); font-weight: 700;
  transition: background .15s, transform .12s; display: flex; align-items: center; justify-content: center;
}
.bf-step-btn:active { background: #FFF1E8; transform: scale(0.9); }
.bf-step-num { min-width: 20px; text-align: center; font-weight: 800; font-size: 15px; }

/* 取餐信息：包裹层收窄，白卡半透明在暖底上 */
.bf-rv-wrap { margin: 14px 10px 0; display: flex; flex-direction: column; gap: 12px; }
.bf-rv-card {
  background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(255, 224, 194, 0.7);
  border-radius: 18px; box-shadow: 0 4px 14px rgba(255, 138, 76, 0.1); backdrop-filter: blur(4px);
}
.bf-foot-note { text-align: center; margin: 14px 12px 4px; font-size: 12px; color: #B07A4E; }

/* 结算栏：sticky 底部，圆角上扬 + 柔和阴影，平滑显隐 */
.bf-settle {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.98); border-radius: 18px 18px 0 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  margin: 14px 10px 0; box-shadow: 0 -8px 22px rgba(255, 107, 53, 0.14);
  backdrop-filter: blur(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.bf-settle.bf-settle--hidden { opacity: 0; transform: translateY(100%); pointer-events: none; }
.bf-settle-info { display: flex; flex-direction: column; }
.bf-settle-total { font-size: 12px; color: var(--text-2); }
.bf-settle-price { font-size: 20px; font-weight: 800; color: var(--orange); }
.bf-settle .btn { width: auto; padding: 11px 24px; font-size: 14px; }

/* 早餐订单（取餐码）——保留原样，仅微调边距 */
.bf-order-card { background: #fff; border-radius: 14px; padding: 14px; margin: 0 12px 12px; box-shadow: var(--shadow); }
.bf-order-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bf-order-date { font-size: 13px; color: var(--text-2); }
.bf-order-code-row { display: flex; align-items: center; gap: 12px; background: #FFF7F0; border: 1px dashed #FDBA74; border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.bf-code-label { font-size: 12px; color: var(--text-2); }
.bf-code { font-size: 22px; font-weight: 800; letter-spacing: 2px; color: var(--orange); }

/* 以下类已弃用但保留以防其它遗留引用（保留定义，无副作用） */
.bf-greet, .bf-weather, .bf-feature-row, .bf-feature, .bf-quick-entry, .bf-tag-orange { /* 旧版早餐结构，已迁移至 bf-page 沉浸式布局 */ }

/* 邀请好友 */
.invite-code-card { margin: 12px; padding: 20px 16px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.invite-code-label { font-size: 13px; color: var(--text-2); text-align: center; }
.invite-code { font-size: 30px; font-weight: 800; letter-spacing: 6px; text-align: center; color: var(--orange); margin: 10px 0; }
.invite-count-row { display: flex; justify-content: space-around; font-size: 13px; color: var(--text-2); margin: 14px 0; }
