/* ===== 全局基础 ===== */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; background: #f5f6fa; }

/* ===== 布局 ===== */
.app-layout { display: flex; flex-direction: column; min-height: 100vh; }
.app-navbar { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 10px 16px; position: sticky; top: 0; z-index: 100; }
.app-main { flex: 1; padding-bottom: 70px; overflow-y: auto; }

/* ===== 底部导航 ===== */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e9ecef; display: flex; z-index: 100; }
.bottom-nav .nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; color: #aaa; text-decoration: none; font-size: 11px; transition: color 0.2s; }
.bottom-nav .nav-item.active { color: #667eea; }
.bottom-nav .nav-icon { font-size: 20px; line-height: 1; margin-bottom: 2px; }

/* ===== 登录页 ===== */
.login-page { min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: #fff; border-radius: 20px; padding: 32px 28px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-icon { font-size: 48px; }
.login-logo h2 { margin: 8px 0 4px; color: #333; }

/* 密码错误提示 & 找回入口 */
.recover-hint { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #888; background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 6px 12px; margin-bottom: 8px; }
.recover-hint .btn-link { font-size: 13px; color: #667eea; font-weight: 600; text-decoration: none; }
.recover-hint .btn-link:hover { text-decoration: underline; }

/* 密码找回步骤面板 */
.recover-panel { animation: fadeSlideIn 0.25s ease; }
.recover-step-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #333; margin-bottom: 16px; }
.recover-step-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== 首页 ===== */
.welcome-card { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border-radius: 16px; padding: 20px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.quick-btn { border-radius: 12px; border: 1px solid #e9ecef; text-decoration: none; color: #333; transition: transform 0.1s, box-shadow 0.1s; }
.quick-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); color: #667eea; }
.quick-icon { font-size: 28px; margin-bottom: 4px; }
.quick-label { font-size: 13px; font-weight: 500; }
.today-status { border-radius: 12px; }

/* ===== 点餐页 ===== */
.order-page { background: #f5f6fa; min-height: 100vh; display: flex; flex-direction: column; }

/* 固定头部区域（日期+倒计时+餐段切换），整体作为一个 sticky 块 */
.order-sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

/* 日期行 */
.order-date-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(to right, #fafbff, #fff);
}
.order-date-text { font-weight: 700; font-size: 15px; color: #333; }
.order-deadline {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #fff8e1;
    color: #e65100;
    font-weight: 500;
}
.order-deadline.expired { background: #fce4ec; color: #c62828; }
.order-deadline.ok { background: #e8f5e9; color: #2e7d32; }

/* 餐段 Tab */
.meal-tab-bar { padding: 10px 16px 12px; display: flex; gap: 10px; }
.meal-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}
.meal-tab:hover { border-color: #667eea; color: #667eea; }
.meal-tab.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102,126,234,0.35);
}
.meal-tab .tab-badge {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 20px;
    font-weight: 600;
}
.meal-tab.active .tab-badge-done { background: rgba(255,255,255,0.3); color: #fff; }
.meal-tab.active .tab-badge-expired { background: rgba(255,80,80,0.35); color: #fff; }
.meal-tab:not(.active) .tab-badge-done { background: #d4edda; color: #155724; }
.meal-tab:not(.active) .tab-badge-expired { background: #f8d7da; color: #721c24; }

/* 菜品列表区域 */
.dish-list {
    padding: 16px 14px 80px;   /* bottom 留出底部导航高度 */
    flex: 1;
}

/* 菜品卡片 */
.dish-card {
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    background: #fff;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.dish-card:active { transform: scale(0.99); }
.dish-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.dish-card.selected {
    border-color: #28a745;
    background: linear-gradient(135deg, #f6fff8 0%, #edfdf3 100%);
    box-shadow: 0 4px 16px rgba(40,167,69,0.18);
}
.dish-card-inner { display: flex; align-items: center; padding: 14px; gap: 14px; }

.dish-img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.10); }
.dish-img-placeholder {
    width: 80px; height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ececec, #e0e0e0);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; flex-shrink: 0;
}

.dish-info { flex: 1; min-width: 0; }
.dish-name { font-size: 15px; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish-desc { font-size: 12px; color: #999; margin-bottom: 6px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.dish-action { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; flex-shrink: 0; }

/* 选择按钮 */
.btn-select {
    min-width: 68px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-select-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 3px 10px rgba(102,126,234,0.4);
}
.btn-select-primary:hover { transform: scale(1.06); box-shadow: 0 5px 14px rgba(102,126,234,0.5); }
.btn-select-change {
    background: #f4f4ff;
    color: #667eea;
    border: 1.5px solid #667eea !important;
}
.btn-select-change:hover { background: #eaebff; }
.btn-select-done {
    background: #e8f5e9;
    color: #2e7d32;
    cursor: default;
}
.btn-select-expired {
    background: #f4f4f4;
    color: #bbb;
    cursor: default;
}

.spicy-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.supplier-tag { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; background: #f0e6ff; color: #6f42c1; }
.spicy-none { background: #e8f5e9; color: #388e3c; }
.spicy-mild { background: #fff3e0; color: #f57c00; }
.spicy-hot { background: #fce4ec; color: #c62828; }

/* ===== 周点餐 ===== */
.week-order-page { }

/* 每日卡片 */
.week-day-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.week-day-today {
    border-color: #ffc107;
    box-shadow: 0 2px 12px rgba(255,193,7,0.2);
}
.week-day-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f2ff, #f8f0ff);
    border-bottom: 1px solid #e9ecef;
}
.week-day-name { font-weight: 700; font-size: 15px; color: #333; }
.week-day-date { font-size: 13px; color: #888; }

/* 餐段区域 */
.week-meal-section {
    padding: 12px 12px 8px;
    border-bottom: 1px solid #f0f0f0;
}
.week-meal-section:last-child { border-bottom: none; }
.week-meal-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}
.week-expired {
    font-size: 13px;
    color: #bbb;
    padding: 8px 0;
    text-align: center;
}
.week-no-dish {
    font-size: 13px;
    color: #ccc;
    padding: 8px 0;
    text-align: center;
}

/* 菜品网格 */
.week-dish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
}

/* 单个菜品卡片 */
.week-dish-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.week-dish-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102,126,234,0.15);
}
.week-dish-item:active {
    transform: scale(0.98);
}
.week-dish-selected {
    border-color: #28a745;
    background: linear-gradient(135deg, #f6fff8, #edfdf3);
    box-shadow: 0 2px 10px rgba(40,167,69,0.15);
}

/* 菜品缩略图 */
.week-dish-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.week-dish-img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ececec, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

/* 菜品信息 */
.week-dish-info {
    flex: 1;
    min-width: 0;
}
.week-dish-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 选中/已点角标 */
.week-dish-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
}
.week-dish-ordered {
    background: #d4edda;
    color: #155724;
}
.week-dish-chosen {
    background: #cfe2ff;
    color: #084298;
}

/* 保留旧表格样式以防回退 */
.week-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.week-table { width: 100%; border-collapse: collapse; }
.week-table th, .week-table td { padding: 10px 8px; text-align: center; border: 1px solid #dee2e6; font-size: 13px; }
.week-table .meal-header { background: #f0f4ff; font-weight: bold; white-space: nowrap; width: 45%; }
.week-table .day-header { background: #f8f9fa; font-weight: bold; white-space: nowrap; width: 10%; }
.week-table .day-label { background: #f8f9fa; font-weight: bold; white-space: nowrap; }
.week-table .today-day { background: #fff3cd; color: #856404; }
.week-table .today-row > td { background: #fffdf0; }
.week-table .today-row > td.day-label { background: #fff3cd; }
.week-select { width: 100%; font-size: 12px; padding: 2px 4px; }

/* ===== 我的订单 ===== */
.my-orders-page { }
.order-date-header { }
.order-item { border-radius: 12px; }
.order-item.cancelled { opacity: 0.5; }
.meal-icon { font-size: 24px; width: 32px; text-align: center; }

/* ===== 菜品管理 ===== */
.dish-manage-page { }
.dish-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.dish-thumb-placeholder { width: 56px; height: 56px; border-radius: 8px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.img-preview { max-width: 120px; max-height: 120px; border-radius: 8px; object-fit: cover; }

/* ===== 用户管理 ===== */
.user-manage-page { }
.user-avatar-sm { width: 40px; height: 40px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.user-manage-item { border-radius: 12px; transition: box-shadow 0.2s; }
.user-manage-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* ===== 统计页 ===== */
.stat-card { border-radius: 12px; }
.stat-num { font-size: 28px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 12px; color: #666; }
.rank-item:hover { background: #f8f9fa; }
.rank-badge { width: 28px; height: 28px; border-radius: 50%; background: #e9ecef; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 13px; flex-shrink: 0; }
.rank-badge.top3 { background: linear-gradient(135deg, #ffd700, #ffb300); color: #fff; }
.rank-count { font-size: 16px; }
/* 用户明细卡片 */
.user-detail-card { border: 1px solid #e9ecef; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.user-detail-header { background: linear-gradient(135deg, #f0f2ff, #f8f0ff); border-bottom: 1px solid #e9ecef; }
.spicy-badge { font-size: 13px; }

/* ===== 套餐组合样式 ===== */
.combo-badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 8px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; white-space: nowrap;
}

/* 今日点餐 - 套餐子菜品列表 */
.combo-items-desc {
    background: #f8f5ff;
    border: 1px solid #e8e0f8;
    border-radius: 8px;
    padding: 6px 10px;
    margin-top: 4px;
    line-height: 1.6;
    -webkit-line-clamp: unset !important;
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
}
.combo-item-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    background: #fff;
    border: 1px solid #d4c4f0;
    color: #5b3e9e;
    margin: 2px 3px 2px 0;
    white-space: nowrap;
    transition: background 0.15s;
}
.combo-item-tag:hover {
    background: #ede6fa;
}
/* 可选配菜标签样式（灰色虚线边框，区别于必选） */
.combo-item-tag.optional-item {
    border-style: dashed;
    border-color: #b0b0c0;
    color: #666;
    background: #f8f8fc;
}
/* 分组单选配菜标签样式（橙色虚线边框） */
.combo-item-tag.group-item {
    border: 1.5px dashed #fd7e14;
    color: #fd7e14;
    background: #fff9f5;
}
/* 限选分组配菜标签样式（蓝色实线边框） */
.combo-item-tag.select-group-item {
    border: 1.5px solid #0d6efd;
    color: #0d6efd;
    background: #f0f5ff;
}
/* 限选提示标签（蓝色背景） */
.combo-item-tag.select-limit-hint {
    border: 1.5px solid #0d6efd;
    color: #fff;
    background: #0d6efd;
    font-size: 11px;
}

/* 整周点餐 - 套餐卡片 */
.week-dish-item.combo-item {
    flex-direction: column;
    align-items: stretch;
    border-color: #c8b8e8;
    background: linear-gradient(135deg, #fdfcff, #f8f4ff);
}
.week-dish-item.combo-item:hover {
    border-color: #7c5cbf;
    box-shadow: 0 2px 10px rgba(124,92,191,0.18);
}
.week-dish-item.combo-item.week-dish-selected {
    border-color: #28a745;
    background: linear-gradient(135deg, #f6fff8, #edfdf3);
}
.week-combo-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.week-combo-body {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd0f0;
}
.week-combo-body .combo-item-tag {
    font-size: 12px;
    padding: 3px 10px;
    margin: 2px 2px;
}
.week-combo-count {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}
/* 整周点餐 - 套餐已选配菜摘要 */
.week-combo-selection-summary {
    font-size: 12px;
    color: #155724;
    background: #d4edda;
    border-radius: 6px;
    padding: 4px 8px;
    margin-top: 2px;
    line-height: 1.5;
}

/* 今日点餐 - 套餐卡片增强 */
.dish-card.combo-card {
    border-color: #c8b8e8;
    background: linear-gradient(135deg, #fdfcff, #f8f4ff);
}
.dish-card.combo-card.selected {
    border-color: #28a745;
    background: linear-gradient(135deg, #f6fff8 0%, #edfdf3 100%);
}

/* ===== 弹窗 ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 576px) { .modal-overlay { align-items: center; } }
.modal-dialog-custom { background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 540px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; }
@media (min-width: 576px) { .modal-dialog-custom { border-radius: 20px; } }
.modal-lg-custom { max-width: 600px; }
.modal-header-custom { padding: 16px 20px; border-bottom: 1px solid #e9ecef; display: flex; justify-content: space-between; align-items: center; }
.modal-body-custom { padding: 16px 20px; overflow-y: auto; flex: 1; }
.modal-footer-custom { padding: 12px 20px; border-top: 1px solid #e9ecef; display: flex; justify-content: flex-end; gap: 8px; }

/* ===== 修改密码页 ===== */
.change-pwd-page { background: #f5f6fa; min-height: 100vh; }
.change-pwd-card { border-radius: 16px; border: none; box-shadow: 0 2px 12px rgba(0,0,0,0.08); max-width: 440px; margin: 0 auto; }
.change-pwd-icon { font-size: 48px; line-height: 1; }

/* ===== Toast ===== */
.toast-message { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); padding: 10px 24px; border-radius: 24px; color: #fff; font-size: 14px; z-index: 9999; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,0.2); animation: fadeInUp 0.3s ease; }
.toast-message.success { background: #28a745; }
.toast-message.error { background: #dc3545; }
@keyframes fadeInUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ===== 通用 ===== */
.empty-state { }
.cursor-pointer { cursor: pointer; }
.bg-purple { background-color: #6f42c1 !important; }

/* ===== 评价星星 ===== */
.rating-stars { display: flex; justify-content: center; gap: 8px; font-size: 36px; }
.rating-star { color: #ddd; cursor: pointer; transition: color 0.15s, transform 0.15s; user-select: none; }
.rating-star:hover { transform: scale(1.2); }
.rating-star.active { color: #ffc107; }

/* ===== PC 端适配 ===== */
@media (min-width: 768px) {
    .app-main { padding-bottom: 0; max-width: 720px; margin: 0 auto; }
    .order-page, .week-order-page, .my-orders-page, .dish-manage-page, .user-manage-page, .settings-page, .statistics-page, .home-page, .change-pwd-page { padding: 20px !important; }
}

/* ===== 管理员改餐弹窗 ===== */
.mp-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px); z-index: 1040;
    animation: mpFadeIn 0.2s ease;
}
@keyframes mpFadeIn { from { opacity: 0; } to { opacity: 1; } }

.mp-sheet {
    position: fixed; bottom: 0; left: 0; right: 0;
    max-height: 82vh; background: #f6f7fb;
    border-radius: 24px 24px 0 0; z-index: 1050;
    display: flex; flex-direction: column;
    box-shadow: 0 -8px 40px rgba(102,126,234,0.18);
    animation: mpSlideUp 0.28s cubic-bezier(.32,1.2,.5,1);
}
@keyframes mpSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* 拖拽条 */
.mp-drag-bar {
    width: 40px; height: 4px; border-radius: 2px;
    background: #d1d5db; margin: 10px auto 0; flex-shrink: 0;
}

/* 头部 */
.mp-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px 10px; flex-shrink: 0;
}
.mp-header-left { display: flex; align-items: center; gap: 10px; }
.mp-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mp-title { font-size: 15px; font-weight: 600; color: #1a1a2e; }
.mp-title strong { color: #667eea; }
.mp-subtitle { font-size: 12px; color: #6b7280; margin-top: 1px; display: flex; align-items: center; gap: 4px; }
.mp-meal-tag {
    display: inline-block; padding: 1px 7px; border-radius: 10px;
    font-size: 11px; font-weight: 600;
}
.mp-meal-tag.lunch  { background: #fef3c7; color: #92400e; }
.mp-meal-tag.dinner { background: #dbeafe; color: #1e40af; }
.mp-close-btn {
    width: 30px; height: 30px; border: none; border-radius: 50%;
    background: #e5e7eb; color: #6b7280; font-size: 13px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.mp-close-btn:hover { background: #d1d5db; }

/* 当前→新菜品状态条 */
.mp-current-order {
    display: flex; align-items: center; gap: 8px;
    background: #fff; margin: 0 16px 12px;
    border-radius: 12px; padding: 10px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    font-size: 13px; flex-shrink: 0;
}
.mp-current-label {
    background: #fde8e8; color: #dc2626; font-size: 11px;
    font-weight: 700; padding: 2px 7px; border-radius: 8px; flex-shrink: 0;
}
.mp-current-dish { color: #374151; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-arrow { color: #9ca3af; font-size: 14px; flex-shrink: 0; }
.mp-new-dish { font-weight: 600; color: #667eea; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-new-dish.placeholder { color: #d1d5db; font-weight: 400; font-style: italic; }

/* 内容滚动区 */
.mp-body { flex: 1; overflow-y: auto; padding: 0 16px 8px; }
.mp-section-title {
    font-size: 12px; font-weight: 700; color: #9ca3af;
    letter-spacing: .05em; text-transform: uppercase;
    margin-bottom: 8px; padding-left: 2px;
}

/* loading / empty */
.mp-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 0; color: #9ca3af; font-size: 14px; }
.mp-spinner {
    width: 20px; height: 20px; border: 2px solid #e5e7eb;
    border-top-color: #667eea; border-radius: 50%;
    animation: mpSpin .7s linear infinite;
}
@keyframes mpSpin { to { transform: rotate(360deg); } }
.mp-empty { text-align: center; padding: 40px 0; color: #9ca3af; font-size: 14px; }
.mp-empty-icon { font-size: 36px; margin-bottom: 8px; }

/* 菜品卡片列表 */
.mp-dish-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.mp-dish-card {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 2px solid transparent;
    border-radius: 14px; padding: 11px 14px; cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: border-color .15s, box-shadow .15s, transform .1s;
}
.mp-dish-card:active { transform: scale(0.98); }
.mp-dish-card.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12), 0 2px 8px rgba(102,126,234,0.15);
    background: #f5f3ff;
}
.mp-dish-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, #f3e8ff, #dbeafe);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #667eea; flex-shrink: 0;
}
.mp-dish-info { flex: 1; min-width: 0; }
.mp-dish-name { font-size: 14px; font-weight: 600; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-dish-supplier { font-size: 12px; color: #9ca3af; margin-top: 1px; }
.mp-dish-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mp-combo-tag {
    font-size: 11px; padding: 2px 7px; border-radius: 8px;
    background: #d1fae5; color: #065f46; font-weight: 600;
}
.mp-check { font-size: 16px; color: #667eea; font-weight: 700; }

/* 套餐配菜面板 */
.mp-combo-panel {
    background: #fff; border-radius: 16px;
    padding: 14px; margin-top: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.mp-combo-panel-title {
    font-size: 13px; font-weight: 700; color: #374151;
    margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.mp-combo-icon { font-size: 16px; }
.mp-combo-group { margin-bottom: 14px; }
.mp-combo-group-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700;
    margin-bottom: 6px; color: #374151;
}
.mp-combo-group-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.mp-combo-group-dot.required { background: #ef4444; }
.mp-combo-group-dot.single   { background: #f59e0b; }
.mp-combo-group-dot.multi    { background: #3b82f6; }
.mp-combo-group-dot.optional { background: #6b7280; }
.mp-combo-group-hint {
    font-size: 11px; color: #9ca3af; font-weight: 400;
    background: #f3f4f6; padding: 1px 6px; border-radius: 6px;
}
.mp-combo-group-warn {
    font-size: 11px; color: #ef4444; font-weight: 600;
    background: #fef2f2; padding: 1px 6px; border-radius: 6px; margin-left: auto;
}
.mp-combo-progress {
    font-size: 11px; color: #3b82f6; font-weight: 700;
    background: #eff6ff; padding: 1px 7px; border-radius: 6px; margin-left: auto;
}
.mp-combo-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 10px; cursor: pointer;
    transition: background .12s;
    border: 1.5px solid transparent;
}
.mp-combo-item:hover:not(.locked):not(.disabled) { background: #f9fafb; }
.mp-combo-item.selected { background: #f5f3ff; border-color: #c4b5fd; }
.mp-combo-item.locked   { cursor: default; opacity: 0.75; }
.mp-combo-item.disabled { cursor: not-allowed; opacity: 0.45; }
.mp-item-radio {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid #d1d5db; flex-shrink: 0;
    transition: border-color .12s, background .12s;
}
.mp-item-radio.on { border-color: #667eea; background: #667eea; box-shadow: inset 0 0 0 3px #fff; }
.mp-item-checkbox {
    width: 18px; height: 18px; border-radius: 5px;
    border: 2px solid #d1d5db; flex-shrink: 0;
    transition: border-color .12s, background .12s;
}
.mp-item-checkbox.on { border-color: #667eea; background: #667eea; }
.mp-item-checkbox.disabled { background: #f3f4f6; }
.mp-item-check { color: #667eea; font-weight: 700; font-size: 15px; margin-left: auto; flex-shrink: 0; }
.mp-item-check.locked { color: #10b981; }
.mp-item-name { font-size: 13px; color: #374151; flex: 1; }
.mp-item-badge {
    font-size: 11px; color: #10b981; font-weight: 600;
    background: #d1fae5; padding: 1px 7px; border-radius: 6px; margin-left: auto;
}
.mp-combo-error {
    background: #fef2f2; color: #dc2626; font-size: 12px;
    border-radius: 8px; padding: 8px 12px; margin-top: 8px;
    border: 1px solid #fecaca;
}

/* 数量控制 */
.mp-qty-ctrl {
    display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0;
}
.mp-qty-btn {
    width: 26px; height: 26px; border-radius: 8px;
    border: 1.5px solid #e5e7eb; background: #f9fafb;
    color: #374151; font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s;
}
.mp-qty-btn:active { background: #e5e7eb; }
.mp-qty-val { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; color: #374151; }

/* 底部操作栏 */
.mp-footer {
    display: flex; gap: 10px; padding: 12px 16px 20px;
    border-top: 1px solid #f3f4f6; flex-shrink: 0;
    background: #f6f7fb;
}
.mp-btn-cancel {
    flex: 1; padding: 12px; border-radius: 14px;
    border: 1.5px solid #e5e7eb; background: #fff;
    color: #6b7280; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background .12s;
}
.mp-btn-cancel:hover { background: #f9fafb; }
.mp-btn-confirm {
    flex: 2; padding: 12px; border-radius: 14px; border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    box-shadow: 0 4px 12px rgba(102,126,234,0.35);
    transition: opacity .15s, transform .1s;
}
.mp-btn-confirm:active:not(.disabled) { transform: scale(0.98); }
.mp-btn-confirm.disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.mp-btn-spinner {
    width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff; border-radius: 50%;
    animation: mpSpin .7s linear infinite;
}
