/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E0F7EF;
    --primary-light: #F0F9F4;
    --primary-dark: #C8EFE0;
    --secondary-color: #FFF9F0;
    --accent-color: #FFB347;
    --accent-yellow: #FFF176;
    --text-primary: #333333;
    --text-secondary: #666666;
    --background: #FFF9F0;
    --card-bg: #FFF9F0;
    --border-color: #F0F9F4;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --radius: 20px;
    --radius-sm: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #FFF9F0;
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 70px;
}

/* 顶部导航栏 */
.navbar {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #E0F7EF, #F0F9F4);
    padding: 16px 20px 20px;
    box-shadow: var(--shadow-md);
    z-index: 100;
    border-radius: 0 0 24px 24px;
    margin: 0;
}

.app-title {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 搜索栏 */
.search-container {
    padding: 16px 8px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #FFF9F0;
    border-radius: 20px;
    padding: 14px 20px;
    box-shadow: var(--shadow-sm);
}

.search-icon {
    color: var(--text-secondary);
    margin-right: 10px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-primary);
    background: transparent;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    gap: 10px;
    padding: 0 8px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex-shrink: 0;
    padding: 8px 20px;
    border: none;
    background: white;
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab.active {
    background: #E0F7EF;
    color: #333;
    border-color: transparent;
}

/* 主内容区域 */
.main-content {
    padding: 0 20px;
}



/* 家庭成员选择 */
.family-select-section {
    padding: 0 8px 16px;
}

.family-select-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.family-select-title i {
    color: #88D4B5;
}

.family-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.family-list::-webkit-scrollbar {
    display: none;
}

.family-member {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.family-member.active {
    background: #E0F7EF;
    border-color: transparent;
}

.family-member i {
    font-size: 28px;
    color: var(--text-secondary);
}

.family-member.active i {
    color: #333;
}

.family-member span {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.family-member.active span {
    color: #333;
}

/* 已选菜品清单 */
.selected-dishes-section {
    padding: 0 20px 16px;
}

.selected-dishes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.selected-dishes-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-dishes-title i {
    color: var(--primary-color);
}

.clear-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--background);
    border: none;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: var(--border-color);
}

.selected-dishes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.selected-dish-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.selected-dish-name {
    font-size: 13px;
    color: var(--text-primary);
}

.selected-dish-person {
    font-size: 11px;
    color: #FFB347;
    background: rgba(255, 179, 71, 0.1);
    padding: 2px 8px;
    border-radius: 8px;
}

.selected-dish-remove {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border: none;
    border-radius: 50%;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.selected-dish-remove:hover {
    background: #ff4444;
    color: white;
}

.selected-dishes-summary {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
}

.selected-dishes-summary span {
    font-weight: 600;
    color: #FFB347;
    font-size: 16px;
}

/* 菜品瀑布流 - 小红书风格 */
.dish-waterfall {
    column-count: 2;
    column-gap: 8px;
    padding: 0 8px;
}

.dish-card {
    break-inside: avoid;
    background: #FFF9F0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    margin-bottom: 12px;
    position: relative;
}

.dish-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dish-image-wrapper {
    position: relative;
    z-index: 1;
}

.add-to-menu-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #E0F7EF;
    color: #333;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
    pointer-events: auto;
}

.add-to-menu-btn:hover {
    background: #C8EFE0;
    transform: scale(1.1);
}

.add-to-menu-btn.added {
    background: #4CAF50;
    color: white;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFF9F0;
    display: flex;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom, 0);
    border-radius: 24px 24px 0 0;
    padding-top: 12px;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 16px;
    margin: 0 4px;
}

.nav-item i {
    font-size: 22px;
}

.nav-item span {
    font-size: 12px;
}

.nav-item.active {
    background: #E0F7EF;
    color: #333;
}

.nav-badge {
    position: absolute;
    top: 6px;
    right: 50%;
    transform: translateX(22px);
    background: #FF4444;
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* 菜单页面样式 */
.menu-content {
    padding: 16px;
    padding-bottom: 100px;
}

/* 统计模块 */
.menu-stats {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.stat-card {
    flex: 1;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #FFB347;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    margin: 0 16px;
}

.member-stat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.member-stat-item {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.member-stat-count {
    font-weight: 600;
    color: #FFB347;
}

.menu-group {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.menu-group-title {
    padding: 12px 16px;
    background: var(--background);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-group-title i {
    color: #FFB347;
}

.menu-items {
    padding: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-name {
    font-size: 15px;
    color: var(--text-primary);
}

.menu-item-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item-remove:hover {
    background: #ff4444;
    color: white;
}

/* 确认按钮区域 */
.confirm-section {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 150;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
}

.confirm-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

.confirm-btn i {
    font-size: 18px;
}

/* 用餐时间选择器 */
.meal-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.meal-selector {
    background: white;
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 320px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.meal-selector-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
}

.meal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.meal-option {
    width: 100%;
    padding: 14px 20px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.meal-option:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

.meal-cancel-btn {
    width: 100%;
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.meal-cancel-btn:hover {
    border-color: var(--text-secondary);
}

/* 历史菜单页面样式 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
}

.history-meal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.history-meal i {
    color: #FFB347;
}

.history-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.history-date span {
    font-size: 12px;
    color: var(--text-secondary);
}

.history-dishes {
    padding: 12px 16px;
}

.history-dish-group {
    margin-bottom: 10px;
}

.history-dish-group:last-child {
    margin-bottom: 0;
}

.history-dish-member {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-dish-member i {
    font-size: 12px;
}

.history-dish-names {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.history-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

.history-stats {
    display: flex;
    gap: 16px;
}

.history-stat {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-stat i {
    color: #FFB347;
    font-size: 14px;
}

.history-delete-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-delete-btn:hover {
    background: #ff4444;
    color: white;
}

/* 调整导航栏布局 */
.navbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

.navbar .app-title {
    flex: 1;
    margin: 0;
}

.history-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.history-btn:hover {
    background: rgba(255,255,255,0.3);
}

.dish-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #FFE4D6, #FFD93D);
}

.dish-info {
    padding: 8px 10px;
}

.dish-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 空状态 */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.empty-state.show {
    display: flex;
}

.empty-icon {
    font-size: 80px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-text {
    color: var(--text-secondary);
    font-size: 16px;
}

/* 浮动添加按钮 */
.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 99;
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.1);
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 响应式 */
@media (max-width: 375px) {
    .dish-grid {
        grid-template-columns: 1fr;
    }
    
    .dish-image {
        height: 180px;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dish-card {
    animation: fadeIn 0.4s ease;
}

/* 详情页样式 */
.back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

.detail-content {
    padding-bottom: 0;
}

.dish-detail-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #FFE4D6, #FFD93D);
    background-size: cover;
    background-position: center;
}

.dish-detail-info {
    background: white;
    border-radius: 24px 24px 0 0;
    margin-top: -24px;
    padding: 24px 20px 40px;
    position: relative;
    z-index: 10;
}

.dish-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.dish-detail-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    flex: 1;
}

.dish-detail-category {
    font-size: 14px;
    color: #FFB347;
    background: rgba(255, 179, 71, 0.1);
    padding: 6px 14px;
    border-radius: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.dish-detail-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tag-pill {
    padding: 6px 14px;
    background: var(--background);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    background: var(--background);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn i {
    font-size: 20px;
    color: var(--text-secondary);
}

.action-btn span {
    font-size: 12px;
    color: var(--text-secondary);
}

.action-btn:hover {
    background: var(--border-color);
}

.action-btn.liked i {
    color: #FF6B35;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 24px 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #FFB347;
}

.dish-description {
    margin-bottom: 24px;
}

.description-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.suggestions {
    margin-bottom: 24px;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.suggestion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--background);
    border-radius: 16px;
}

.suggestion-item i {
    font-size: 28px;
    color: #FFB347;
}

.suggestion-item span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 菜单浮层按钮 */
.menu-fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E0F7EF, #F0F9F4);
    color: #333;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(200, 239, 224, 0.4);
    z-index: 300;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(200, 239, 224, 0.5);
}

.menu-fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FFB347;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* 抽屉遮罩 */
.menu-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 待定菜单抽屉 */
.menu-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFF9F0;
    border-radius: 24px 24px 0 0;
    z-index: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

.menu-drawer.show {
    transform: translateY(0);
}

.menu-drawer-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0;
}

.menu-drawer-handle-bar {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

.menu-drawer-header {
    padding: 0 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.menu-drawer-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.drawer-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.drawer-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #FFB347;
    line-height: 1;
}

.drawer-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.drawer-category-stats {
    display: flex;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.drawer-category-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.category-icon {
    font-size: 20px;
}

.category-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.menu-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.drawer-dish-group {
    margin-bottom: 16px;
}

.drawer-dish-group:last-child {
    margin-bottom: 0;
}

.drawer-group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.drawer-dish-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-dish-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--background);
    border-radius: 12px;
}

.drawer-dish-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-dish-name {
    font-size: 14px;
    color: var(--text-primary);
}

.drawer-dish-person {
    font-size: 11px;
    color: #FFB347;
    background: rgba(255, 179, 71, 0.1);
    padding: 2px 8px;
    border-radius: 8px;
}

.drawer-dish-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.drawer-dish-remove:hover {
    background: #ff4444;
    color: white;
}

.menu-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: white;
}

.confirm-menu-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #FFB347, #FFD93D);
    color: #333;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 179, 71, 0.3);
}

.confirm-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 179, 71, 0.4);
}

.drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.drawer-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.drawer-empty span {
    font-size: 14px;
}

/* 菜品管理卡片操作按钮 */
.dish-info {
    padding: 8px 10px 4px;
}

.dish-category-tag {
    font-size: 11px;
    color: #FFB347;
    background: rgba(255, 179, 71, 0.1);
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 4px;
}

.dish-actions {
    display: flex;
    gap: 8px;
    padding: 0 10px 10px;
}

.dish-action-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #4A90E2;
    color: white;
}

.edit-btn:hover {
    background: #357ABD;
}

.delete-btn {
    background: #FF4444;
    color: white;
}

.delete-btn:hover {
    background: #CC0000;
}

/* 菜品弹窗样式 */
.dish-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dish-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.dish-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.dish-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.dish-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--background);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.dish-modal-close:hover {
    background: var(--border-color);
}

.dish-modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-color);
}

.image-upload-area {
    width: 100%;
    min-height: 200px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    padding: 40px;
}

.upload-placeholder i {
    font-size: 40px;
}

.upload-placeholder span {
    font-size: 14px;
}

.image-upload-area img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.dish-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.dish-modal-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: var(--background);
    color: var(--text-secondary);
}

.cancel-btn:hover {
    background: var(--border-color);
}

.save-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 删除弹窗 */
.delete-modal {
    text-align: center;
    padding: 10px;
}

.delete-modal-icon {
    font-size: 60px;
    color: #FF4444;
    margin: 20px 0 10px;
}

.delete-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.delete-modal-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.delete-confirm-btn {
    background: #FF4444;
    color: white;
}

.delete-confirm-btn:hover {
    background: #CC0000;
}

/* 调整底部导航3个按钮 */
.bottom-nav .nav-item {
    flex: 1;
}