/* ============================================================
   私厨买菜系统 - 样式表
   ============================================================ */
:root {
  --primary: #ff5722;
  --primary-dark: #e64a19;
  --primary-light: #fff3e0;
  --accent: #ff9800;
  --success: #4caf50;
  --danger: #f44336;
  --text: #1a1a1a;
  --text-sub: #888;
  --bg: #f5f5f7;
  --card: #fff;
  --border: #f0f0f0;
  --shadow: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.10);
  --radius: 12px;
  --radius-lg: 18px;
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh;
  padding-bottom: 80px; -webkit-font-smoothing: antialiased;
}
img { display:block; max-width:100%; }
button { font-family:inherit; cursor:pointer; border:none; background:none; }
input, textarea, select { font-family:inherit; }
a { color: inherit; text-decoration: none; }

/* ============ 店招 Hero ============ */
.store-hero {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, #ff7043 0%, #ff5722 50%, #e64a19 100%);
  overflow: hidden;
}
.store-hero__banner { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.store-hero__overlay { position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.55) 100%); }
.store-hero__topbar {
  position:absolute; top:0; left:0; right:0;
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  padding:14px 18px; z-index:2;
}
.store-hero__tenant {
  color: #fff; font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.2);
  padding: 8px 14px; border-radius: 18px;
  backdrop-filter: blur(10px);
}
.store-hero__btn {
  height:36px; padding:0 14px; border-radius:18px;
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  color:#fff; font-size:13px; font-weight:500;
  display:inline-flex; align-items:center; gap:6px;
}
.store-hero__info {
  position:absolute; left:0; right:0; bottom:0;
  display:flex; align-items:center; gap:14px;
  padding:18px 22px 22px; z-index:2;
}
.store-hero__logo {
  width:60px; height:60px; border-radius:16px;
  background: #fff;
  display:flex; align-items:center; justify-content:center;
  font-size:30px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  flex-shrink:0; overflow: hidden;
}
.store-hero__logo img { width:100%; height:100%; object-fit:cover; }
.store-hero__meta { color:#fff; min-width:0; flex:1; }
.store-hero__name {
  font-size:22px; font-weight:700; margin-bottom:4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.store-hero__slogan {
  font-size:13px; opacity:.92; margin-bottom:6px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.store-hero__stats { display:flex; align-items:center; gap:8px; font-size:12px; opacity:.95; }

/* ============ 主 Tab ============ */
.main-tabs {
  display:flex; gap:6px; padding:10px 16px;
  background:#fff; position:sticky; top:0; z-index:50;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  overflow-x:auto; -webkit-overflow-scrolling:touch;
}
.main-tabs::-webkit-scrollbar { display:none; }
.main-tab {
  flex-shrink:0; padding:8px 18px; border-radius:20px;
  font-size:14px; font-weight:500; color: var(--text-sub);
  background: #f5f5f7; transition: all .25s;
}
.main-tab.active {
  background: var(--primary); color:#fff; font-weight:600;
  box-shadow: 0 4px 12px rgba(255,87,34,.3);
}

/* ============ 容器 ============ */
.container { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.content { display:none; animation: fadeIn .35s ease; }
.content.active { display:block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px);} to{opacity:1;transform:translateY(0);} }

/* ============ Section ============ */
.section { margin-bottom: 22px; }
.section-header {
  display:flex; justify-content:space-between; align-items:center;
  padding: 0 4px; margin-bottom: 12px;
  flex-wrap: wrap; gap: 8px;
}
.section-title { font-size:17px; font-weight:700; color:var(--text); }
.section-extra { font-size:12px; color:var(--text-sub); }

/* ============ 公告 ============ */
.announce-bar {
  display:flex; align-items:center; gap:10px;
  padding: 12px 16px; margin: 16px 0;
  background: linear-gradient(135deg, #fff8e1, #ffe0b2);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  overflow: hidden;
}
.announce-bar__icon { font-size:16px; flex-shrink:0; }
.announce-bar__content { flex:1; font-size:13px; color:#8b5a00; line-height:1.5; }

/* ============ 菜单行（紧凑列表） ============ */
.menu-section-title { font-size: 13px; color: #888; padding: 8px 4px; font-weight: 600; }
.menu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.menu-row__main {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; min-width: 0;
}
.menu-row__main input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.menu-row__name {
  font-size: 15px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.menu-row__count { font-size: 11px; color: #bbb; flex-shrink: 0; }
.menu-row__alt-btn {
  padding: 4px 12px;
  background: #fff3e0; color: #e65100;
  border: 1px solid #ffe0b2; border-radius: 14px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; flex-shrink: 0;
}
.menu-row__alt-btn:hover { background: #ffe0b2; }
.menu-row__alt-list {
  grid-column: 1 / -1;
  margin-top: 8px; padding: 10px 12px;
  background: #fafafa; border-radius: 8px;
  border: 1px dashed #e0e0e0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.menu-row__alt-item {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: #fff;
  border: 1px solid #eee; border-radius: 14px;
  font-size: 12px; cursor: pointer;
}
.menu-row__alt-item:hover { border-color: var(--primary); background: #fff3e0; }
.menu-row__alt-item input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--primary); }

/* ============ 采购卡片 ============ */
.purchase-card {
  background: #fff; border-radius: 12px;
  padding: 14px; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.purchase-card__head {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 10px;
}
.purchase-card__items { display: flex; flex-direction: column; gap: 4px; }
.purchase-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px; cursor: pointer;
}
.purchase-item input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--success); }
.purchase-item__qty { color: #999; font-size: 12px; margin-left: auto; }

/* ============ 空状态 ============ */
.empty-state { text-align:center; padding: 40px 20px; color: var(--text-sub); }
.empty-state .icon { font-size:48px; margin-bottom:12px; opacity:.5; }
.empty-state h3 { font-size:16px; color:var(--text); margin-bottom:4px; }

/* ============ 表单 ============ */
.form-group { margin-bottom: 14px; }
.form-group label { display:block; font-size:13px; font-weight:600; color:var(--text); margin-bottom:6px; }
.form-group input, .form-group textarea, .form-group select {
  width:100%; padding: 10px 14px;
  border: 1.5px solid #eee; border-radius: 10px;
  font-size:14px; background: #fafafa;
  transition: all .25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline:none; border-color: var(--primary); background:#fff;
  box-shadow: 0 0 0 3px rgba(255,87,34,.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size:12px; color:var(--text-sub); margin-top:6px; line-height:1.5; }

.input-row { display:flex; gap:8px; align-items:center; }
.input-row input, .input-row select { flex:1; }

/* ============ 按钮 ============ */
.btn {
  padding: 10px 20px; border-radius: 10px;
  font-size:14px; font-weight:600;
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  transition: all .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color:#fff; box-shadow: 0 4px 12px rgba(255,87,34,.3); }
.btn-success { background: linear-gradient(135deg, #66bb6a, #43a047); color:#fff; box-shadow: 0 4px 12px rgba(76,175,80,.3); }
.btn-danger { background: linear-gradient(135deg, #ef5350, #e53935); color:#fff; }
.btn-secondary { background: #f5f5f7; color: var(--text); }
.btn-sm { padding: 6px 14px; font-size:12px; border-radius:8px; }
.btn-block { width:100%; }

/* ============ 统计卡片 ============ */
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dash-card {
  background: #fff; border-radius: 14px; padding: 16px 14px;
  box-shadow: var(--shadow); text-align: center;
}
.dash-card__icon { font-size: 24px; margin-bottom: 6px; }
.dash-card__num {
  font-size: 26px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.dash-card__label { font-size: 12px; color: var(--text-sub); margin-top: 6px; }
.dash-card__sub { font-size: 11px; color: #bbb; margin-top: 2px; }
.dash-status-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dash-status-item { padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.dash-status-item.pending { background: #fff3e0; color: #e65100; }
.dash-status-item.confirmed { background: #e3f2fd; color: #1565c0; }
.dash-status-item.cooking { background: #f3e5f5; color: #6a1b9a; }
.dash-status-item.done { background: #e8f5e9; color: #2e7d32; }
.dash-status-item.rejected { background: #ffebee; color: #c62828; }

.dash-trend {
  display: flex; gap: 8px; align-items: flex-end; justify-content: space-around;
  height: 180px; background: #fff; border-radius: 14px;
  padding: 20px 12px 30px; box-shadow: var(--shadow);
  position: relative;
}
.dash-trend__bar { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; height: 100%; justify-content: flex-end; }
.dash-trend__fill { width: 70%; min-height: 4px; background: linear-gradient(180deg, #ff9800, #ff5722); border-radius: 6px 6px 0 0; }
.dash-trend__label { position: absolute; bottom: -22px; font-size: 11px; color: #999; }
.dash-trend__amt { position: absolute; top: -22px; font-size: 11px; color: var(--primary); font-weight: 700; white-space: nowrap; }

/* ============ 供应商/分类列表 ============ */
.wish-item {
  background:#fff; border-radius: var(--radius);
  padding: 14px 16px; margin-bottom:8px;
  box-shadow: var(--shadow);
  display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;
}
.wish-item__name { font-weight:700; font-size:14px; }
.wish-item__meta { font-size:11px; color: var(--text-sub); }

.announce-list {
  border:1px solid #eee; border-radius: 10px;
  padding: 8px; background: #fafafa; margin-bottom: 10px;
  max-height: 280px; overflow-y: auto;
}
.announce-item {
  display:flex; align-items:center; gap:8px;
  padding: 8px 12px; background: #fff; border-radius: 8px;
  margin-bottom:6px;
}
.announce-item__text { flex:1; font-size:13px; }

/* ============ 排行 ============ */
.rank-item {
  display:flex; align-items:center; gap:12px;
  background:#fff; border-radius: var(--radius);
  padding: 12px 16px; margin-bottom:8px;
  box-shadow: var(--shadow);
}
.rank-item__num {
  width:32px; height:32px; border-radius:50%;
  background: #f5f5f7; color: var(--text-sub);
  font-weight:800; font-size:14px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.rank-item__num.gold { background: linear-gradient(135deg, #ffd700, #ff9800); color:#fff; }
.rank-item__num.silver { background: linear-gradient(135deg, #c0c0c0, #9e9e9e); color:#fff; }
.rank-item__num.bronze { background: linear-gradient(135deg, #cd7f32, #a05a1f); color:#fff; }
.rank-item__name { flex:1; font-weight:600; font-size:14px; min-width:0; }
.rank-item__rate { font-weight:800; font-size:15px; color: var(--primary); min-width: 50px; text-align:right; }

/* ============ 反馈/订单卡片 ============ */
.feedback-input-card {
  background:#fff; border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.feedback-item {
  background:#fff; border-radius: var(--radius);
  padding: 14px 16px; margin-bottom:10px;
  box-shadow: var(--shadow);
}
.feedback-item__head {
  display:flex; justify-content:space-between; align-items:center;
  gap:8px; margin-bottom:8px; flex-wrap:wrap;
}
.feedback-item__user { font-size:12px; color: var(--text-sub); font-weight:500; }
.feedback-item__time { font-size:11px; color:#bbb; }
.feedback-item__text { font-size:13px; color: var(--text); line-height:1.6; }
.feedback-item__reply {
  margin-top:10px; padding: 10px 12px;
  background: #fff3e0; border-radius:8px;
  font-size:12px; color:#8b5a00;
  border-left: 3px solid var(--accent);
}
.feedback-item__reply.chef { background: #e3f2fd; color: #0d47a1; border-left-color: #2196f3; }
.feedback-item__reply b { color: var(--primary); }

/* ============ 历史菜单 ============ */
.hist-item {
  display: flex; gap: 10px; padding: 12px; background: #fff;
  border-radius: 10px; margin-bottom: 8px; box-shadow: var(--shadow);
  cursor: pointer; align-items: center;
}
.hist-item input[type=checkbox] { accent-color: var(--primary); width: 18px; height: 18px; }
.hist-item__date { font-size: 12px; color: var(--primary); font-weight: 600; }
.hist-item__dishes { font-size: 13px; margin-top: 4px; }
.merged-box { background: #fff; border-radius: 12px; padding: 16px; margin-top: 12px; box-shadow: var(--shadow); }
.merged-dish summary { padding: 8px 0; cursor: pointer; font-weight: 600; }

/* ============ 菜品卡（点菜） ============ */
.dish-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 16px; margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.dish-card__head { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.dish-card__icon {
  width:56px; height:56px; border-radius:14px;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  display:flex; align-items:center; justify-content:center;
  font-size:28px; flex-shrink:0;
}
.dish-card__info { flex:1; min-width:0; }
.dish-card__name { font-size:16px; font-weight:700; color:var(--text); margin-bottom:4px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.dish-card__desc { font-size:12px; color:var(--text-sub); margin-top:2px; }

/* ============ 已选原材料 ============ */
.ing-chip-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; background: #fff3e0;
  border-radius: 8px; margin-bottom: 4px;
}
.ing-chip-name { font-size: 12px; color: #e65100; min-width: 60px; }
.ing-chip-row .ing-portion {
  flex: 1; padding: 4px 8px;
  border: 1px solid #ddd; border-radius: 4px; font-size: 12px;
}
.ing-chip-unit { font-size: 11px; color: #999; }
.ing-chip-row .remove-ing {
  background: none; border: none; color: #c62828;
  font-weight: 700; cursor: pointer; padding: 0 4px;
}

/* ============ 采购组 ============ */
.vip-bar {
  padding: 10px 16px; background: linear-gradient(135deg,#ff5722,#e64a19);
  color: #fff; border-radius: 12px; margin: 16px 0; font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
}
.buy-group { background: #fff; border-radius: 12px; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.buy-group__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: linear-gradient(135deg,#fff8e1,#ffe0b2); font-weight: 700;
}
.buy-group__items { padding: 8px 12px; }
.buy-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 4px;
  border-bottom: 1px solid #f5f5f5; cursor: pointer;
}
.buy-item:last-child { border-bottom: none; }
.buy-item.is-pantry { opacity: .5; }
.buy-item input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--primary); }
.buy-item__name { flex: 1; font-size: 14px; }
.buy-item__unit { color: var(--text-sub); font-size: 12px; }
.buy-item__from {
  font-size: 11px; color: #bbb; max-width: 30%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.price-btn { padding: 4px 8px !important; font-size: 14px !important; }

/* ============ 弹窗 ============ */
.modal-overlay {
  position:fixed; inset:0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  z-index: 999;
  display:none; align-items:center; justify-content:center;
  padding: 20px;
}
.modal-overlay.show { display:flex; animation: fadeIn .3s; }
.modal-box {
  background: #fff; border-radius: 20px;
  padding: 24px; max-width: 400px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-header { display:flex; justify-content:space-between; align-items:center; margin-bottom: 18px; }
.modal-header h2 { font-size:20px; color: var(--text); }
.modal-close {
  width:32px; height:32px; border-radius:50%;
  background: #f5f5f7; color: var(--text-sub);
  font-size:16px;
  display:flex; align-items:center; justify-content:center;
}
.auth-tabs {
  display:flex; gap:6px; margin-bottom: 18px;
  background: #f5f5f7; padding:4px; border-radius: 10px;
}
.auth-tab {
  flex:1; padding: 10px; border-radius:8px;
  font-size:13px; font-weight:600; color: var(--text-sub);
  transition: all .25s;
}
.auth-tab.active { background:#fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.auth-form { display:block; }
.auth-error { color: var(--danger); font-size:13px; text-align:center; margin-top:12px; min-height: 18px; }

/* ============ Toast ============ */
.toast-container {
  position: fixed; bottom: 100px; left:50%; transform: translateX(-50%);
  z-index: 9999; pointer-events:none;
  width: 100%; max-width: 400px; padding: 0 16px;
}
.toast {
  background: rgba(30,30,30,.95);
  backdrop-filter: blur(10px);
  color:#fff; padding: 12px 20px;
  border-radius: 12px; text-align:center;
  font-size:14px; font-weight:500;
  opacity:0; transform: translateY(20px);
  transition: all .35s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.toast.show { opacity:1; transform: translateY(0); }

/* ============ 无租户入口页 ============ */
.no-tenant-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: linear-gradient(135deg, #ff7043, #e64a19);
}
.no-tenant-card {
  background: #fff; border-radius: 20px; padding: 32px 24px;
  max-width: 400px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.no-tenant-card h1 { font-size: 24px; margin-bottom: 12px; }
.no-tenant-card p { color: #888; font-size: 13px; margin-bottom: 20px; }

/* ============ 私厨登录页 ============ */
.chef-auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: linear-gradient(135deg, #ff7043, #e64a19);
}
.chef-auth-card {
  background: #fff; border-radius: 20px; padding: 32px 24px;
  max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.chef-auth-header { text-align: center; margin-bottom: 24px; }
.chef-auth-logo { font-size: 48px; margin-bottom: 8px; }
.chef-auth-header h1 { font-size: 22px; margin-bottom: 6px; }
.chef-auth-header p { font-size: 13px; color: #888; }
.chef-auth-footer { text-align: center; margin-top: 18px; font-size: 13px; }
.chef-auth-footer a { color: var(--primary); }

/* ============ 客户浏览模式 ============ */
.customer-hero {
  background: linear-gradient(135deg, #ff7043, #e64a19);
  border-radius: 18px; padding: 24px 20px; color: #fff; margin: 16px 0;
  box-shadow: 0 8px 24px rgba(255,87,34,.25);
}
.customer-hero__title { font-size: 22px; margin-bottom: 6px; }
.customer-hero__sub { font-size: 13px; opacity: .9; margin-bottom: 18px; }
.customer-input { display: flex; gap: 10px; margin-bottom: 14px; }
.customer-input__item { flex: 1; }
.customer-input__item label { display: block; font-size: 12px; margin-bottom: 6px; opacity: .9; }
.customer-input__item input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: none; font-size: 15px; background: rgba(255,255,255,.95); color: #333;
}
.dish-check-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cust-dish-check { width: 20px; height: 20px; accent-color: var(--primary); }

/* ============ 响应式 ============ */
@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .store-hero { height: 200px; }
  .store-hero__logo { width: 52px; height: 52px; font-size: 26px; border-radius: 14px; }
  .store-hero__name { font-size: 19px; }
  .store-hero__info { padding: 14px 16px 18px; gap: 12px; }
  .store-hero__topbar { padding: 10px 14px; }
  .container { padding: 0 12px; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-box { padding: 20px; border-radius: 16px; }
  .input-row { flex-wrap: wrap; }
}
/* 采购数量输入框 */
.buy-item .buy-qty-input {
  width: 70px; padding: 4px 8px; font-size: 13px;
  border: 1.5px solid #eee; border-radius: 6px;
  background: #fafafa; text-align: center;
}
.buy-item .buy-qty-input:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.buy-item .del-ing {
  padding: 4px 8px !important; font-size: 12px !important;
}
/* ============ 采购分类分组 ============ */
.purchase-group {
  margin-bottom: 10px;
}
.purchase-group:last-child {
  margin-bottom: 0;
}
.purchase-group__head {
  font-size: 11px;
  color: #ff5722;
  font-weight: 700;
  padding: 4px 8px;
  background: #fff3e0;
  border-radius: 6px;
  margin-bottom: 4px;
  display: inline-block;
}
.purchase-group__items {
  padding-left: 4px;
}
/* ============ 客户点菜主按钮（白底橙红字，反色设计） ============ */
#custSearchBtn {
  background: linear-gradient(135deg, #ffb300, #ff8f00) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 20px rgba(255, 143, 0, .4) !important;
  letter-spacing: 1px;
  border: none !important;
  transition: all .25s;
  width: 100%;
}
#custSearchBtn:hover {
  background: linear-gradient(135deg, #ffc107, #ffa000) !important;
  box-shadow: 0 8px 24px rgba(255, 143, 0, .55) !important;
  transform: translateY(-1px);
}
/* ============ 采购中：订单 Tab（横向滑动） ============ */
.customer-tabs {
  display: flex !important;
  gap: 8px;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
  scrollbar-width: thin;
  white-space: nowrap;
}
.customer-tabs::-webkit-scrollbar {
  height: 4px;
}
.customer-tabs::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.customer-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  background: #f5f5f7;
  color: #666;
  border: 1px solid #eee;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  user-select: none;
}
.customer-tab:hover {
  background: #fff3e0;
  border-color: #ffcc80;
}
.customer-tab.active {
  background: linear-gradient(135deg, #ff7043, #e64a19);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(230, 74, 25, .3);
  font-weight: 700;
}
/* ============ 采购历史折叠卡片 ============ */
.hist-fold-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  overflow: hidden;
}
.hist-fold-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  transition: background .2s;
}
.hist-fold-card__head:hover {
  background: #fafafa;
}
.hist-fold-card__title {
  flex: 1;
  font-size: 13px;
  line-height: 1.6;
  min-width: 0;
}
.hist-fold-card__title b {
  font-size: 14px;
  color: #333;
}
.hist-fold-card__arrow {
  display: inline-block;
  width: 16px;
  color: #999;
  font-size: 10px;
  margin-right: 6px;
  transition: transform .2s;
}
.hist-fold-card__body {
  padding: 8px 16px 14px;
  border-top: 1px dashed #f0f0f0;
  background: #fafafa;
}
/* ============ 菜名管理：人数区间 Tab ============ */
.dish-range-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dish-range-tabs::-webkit-scrollbar { display: none; }
.dish-range-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  background: #f5f5f7;
  color: #666;
  border: 1px solid #eee;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.dish-range-tab:hover {
  background: #fff3e0;
  border-color: #ffcc80;
}
.dish-range-tab.active {
  background: linear-gradient(135deg, #ff7043, #e64a19);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(230, 74, 25, .3);
}
.dish-range-tab.has-data {
  border-color: #ff7043;
}
.dish-range-tab.active.has-data {
  border-color: transparent;
}
/* ============ 最近订单翻页 ============ */
.page-btn {
  padding: 6px 12px;
  background: #f5f5f7;
  color: #666;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.page-btn:hover:not(:disabled) {
  background: #fff3e0;
  border-color: #ffcc80;
  color: #e64a19;
}
.page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.page-btn-active {
  background: linear-gradient(135deg, #ff7043, #e64a19);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(230, 74, 25, .3);
}
