/**
 * ============================================
 * 家庭点菜系统 - 全局样式文件
 * ============================================
 * 主色调：粉蓝 #E1F5FE + 粉红 #FFCDD2（可爱主题）
 * 辅助色：浅黄 #FFF8E1、浅紫 #F3E5F5
 * 文字色：深灰 #333333、中灰 #666666、浅灰 #999999
 * 设计风格：可爱、卡通、清爽
 * ============================================
 */

/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 隐藏PC端滚动条 */
::-webkit-scrollbar {
    display: none !important;
}

/* 隐藏Firefox滚动条 */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.card-header > div {
    /* 其他样式保持不变 */
    gap: 60px; /* 从20px增加到60px，扩大了3倍 */
}/* 自定义对话框样式 */
.custom-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

.dialog-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    .card-header > div {
    /* 其他样式保持不变 */
    gap: 260px; /* 从20px增加到60px，扩大了3倍 */
}p: 10px;
}

.dialog-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dialog-btn.confirm {
    background-color: #4CAF50;
    color: white;
}

.dialog-btn.confirm:hover {
    background-color: #45a049;
}

.dialog-btn.cancel {
    background-color: #f1f1f1;
    color: #333;
}

.dialog-btn.cancel:hover {
    background-color: #e0e0e0;
}

/* 今日推荐版块样式 */
.card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: white;
}

/* 卡片头部样式 */
.card-header {
    padding: 1.2em 1.5em;
    background: #E1F5FE;
    border-bottom: 1px solid #B3E5FC;
}

.card-header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1em;
}

.card-header .header-left {
    display: flex;
    align-items: center;
    gap: 1em;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
}

.card-header .header-left h3.card-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-header .header-left span {
    font-size: 0.9em;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-header .header-right {
    display: flex;
    gap: 0.8em;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
}

/* 按钮样式 */
.btn {
    font-size: 0.9em !important;
    padding: 0.4em 1em !important;
    border-radius: 0.5em !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-sm {
    font-size: 0.8em !important;
    padding: 0.3em 0.8em !important;
}

/* ========== 采购清单统计卡片样式 ========== */
.stats-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-around;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: #F3E5F5;
    border-radius: 8px;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-number.green {
    color: #FFCDD2;
}

.stat-number.blue {
    color: #2196F3;
}

.stat-number.orange {
    color: #ff9800;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    .card-header {
        padding: 1em 1.2em;
    }
    
    .card-header > div {
        flex-wrap: wrap;
        gap: 1em;
    }
    
    .card-header .header-left {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 1em;
        justify-content: space-between;
    }
    
    .card-header .header-left h3.card-title {
        font-size: 1.2em;
        margin: 0;
    }
    
    .card-header .header-left span {
        font-size: 0.9em;
        color: #666;
    }
    
    .card-header .header-right {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0.6em;
    }
    
    .card-header .header-right .btn {
        font-size: 0.8em !important;
        padding: 0.5em 1em !important;
    }
}

/* 小屏幕设备 */
@media (max-width: 480px) {
    .card-header .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    
    .card-header .header-right {
        flex-wrap: wrap;
    }
    
    .btn {
        font-size: 0.8em !important;
        padding: 0.5em 0.8em !important;
    }
}

.card-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-body {
    padding: 1.5em;
}

/* 生成推荐按钮 */
.btn-primary {
    background-color: #ff6b8b !important;
    border: none !important;
    border-radius: 0.6em !important;
    padding: 0.8em 1.6em !important;
    font-size: 1em !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}

.btn-primary:hover {
    background-color: #ff476a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 139, 0.3) !important;
}

/* 今日已选菜单 */
.menu-dishes {
    background: #FFF8E1 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
}

.menu-dish-item {
    background: white !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
}

.menu-dish-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

.menu-dish-name {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 4px !important;
}

.menu-dish-type {
    font-size: 14px !important;
    color: #666 !important;
}

/* 推荐搭配方案 */
.menu-set {
    background: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    transition: all 0.2s ease !important;
}

.menu-set:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.menu-set-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.menu-set-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.menu-set-badge {
    background: #4CAF50 !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* 小按钮样式 */
.btn-sm {
    padding: 6px 12px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
}

.btn-secondary {
    background-color: #f1f1f1 !important;
    color: #333 !important;
    border: none !important;
}

.btn-secondary:hover {
    background-color: #e0e0e0 !important;
}

/* 空状态 */
.empty-state {
    text-align: center !important;
    padding: 40px 20px !important;
    color: #666 !important;
}

.empty-state-icon {
    font-size: 48px !important;
    margin-bottom: 16px !important;
}

.empty-state-text {
    font-size: 16px !important;
    margin: 0 !important;
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    .card {
        border-radius: 10px !important;
    }
    
    .card-header {
        padding: 14px 16px !important;
    }
    
    .card-body {
        padding: 16px !important;
    }
    
    .card-title {
        font-size: 16px !important;
    }
    
    .btn-primary {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    .menu-dishes {
        padding: 12px !important;
    }
    
    .menu-dish-item {
        padding: 10px !important;
    }
    
    .menu-dish-name {
        font-size: 14px !important;
    }
    
    .menu-dish-type {
        font-size: 12px !important;
    }
    
    .menu-set {
        padding: 12px !important;
    }
    
    .menu-set-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .menu-set-header > div {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .btn-sm {
        padding: 4px 8px !important;
        font-size: 12px !important;
    }
    
    .empty-state {
        padding: 30px 16px !important;
    }
    
    .empty-state-icon {
        font-size: 36px !important;
    }
    
    .empty-state-text {
        font-size: 14px !important;
    }
}

/* 重命名按钮样式 */
.rename-btn {
    font-size: 16px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #4CAF50 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    margin-left: 0px !important;
}

.rename-btn:hover {
    color: #45a049 !important;
    transform: scale(1.1) !important;
    background: transparent !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* 商品卡片 */
.product-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    margin-bottom: 0;
    position: relative;
    border-bottom: 1px solid #eee;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
    background: #fafafa;
}

/* 管理员可编辑样式 */
.product-card.admin-editable {
    cursor: pointer;
}

.product-card.admin-editable:hover {
    box-shadow: none;
    background: #f0f7f0;
}

/* 商品图片 */
.product-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

/* ========== 登录页面样式 ========== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 20px;
    position: relative;
}

.login-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 320px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}



.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(224, 224, 224, 0.6);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    background: white;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: #ff6b8b;
    color: white;
    width: 100%;
    padding: 14px 0;
}

.btn-primary:hover {
    background-color: #ff476a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 139, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 139, 0.2);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #555;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-danger:hover {
    background-color: #da190b;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ========== 提示消息样式 ========== */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-icon {
    font-size: 18px;
    font-weight: bold;
}

/* 自动消失的提示框 */
.auto-dismiss {
    animation: autoDismiss 1.5s steps(1) forwards;
}

@keyframes autoDismiss {
    0% {
        opacity: 1;
    }
    99% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
        margin-bottom: 0;
        padding: 0;
        height: 0;
        overflow: hidden;
    }
}

/* ========== 错误弹窗样式 ========== */
.error-toast {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 204, 204, 0.9);
    color: #721c24;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(245, 198, 203, 0.8);
}

.error-toast-icon {
    font-size: 16px;
    font-weight: bold;
    color: #f44336;
}

.error-toast-message {
    font-size: 14px;
    font-weight: 500;
}

/* ========== 主页面布局 ========== */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
.navbar {
    background-color: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.8em;
    flex-wrap: nowrap;
}

.logo {
    font-size: 1.4em;
    font-weight: 600;
    color: #4CAF50;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Logo容器样式 */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.3em;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    gap: 0.3em;
    margin-left: 1.2em;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-item {
    padding: 0.5em 1em;
    border-radius: 0.4em;
    text-decoration: none;
    color: #555;
    font-size: 0.9em;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-item:hover {
    background-color: #f0f0f0;
    color: #333;
}

.nav-item.active {
    background-color: #4CAF50;
    color: white;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1em;
    white-space: nowrap;
    flex-shrink: 0;
}

.user-info {
    font-size: 0.9em;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.user-role {
    background-color: #4CAF50;
    color: white;
    padding: 0.2em 0.5em;
    border-radius: 0.3em;
    font-size: 0.8em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 主内容区 */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-header {
    margin-bottom: 25px;
}

.page-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.page-header p {
    color: #666;
    font-size: 14px;
}

/* ========== 卡片样式 ========== */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.card-body {
    padding: 20px;
}

/* ========== 推荐菜品模块 ========== */
.recommendation-section {
    margin-bottom: 30px;
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recommendation-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.recommendation-date {
    color: #666;
    font-size: 14px;
}

.menu-set {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.menu-set-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.menu-set-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.menu-set-badge {
    background-color: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.menu-dishes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.menu-dish-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.menu-dish-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.menu-dish-type {
    font-size: 12px;
    color: #666;
}

/* ========== 菜品网格 ========== */
.dish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.dish-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.dish-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-content {
    padding: 15px;
}

.dish-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.dish-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dish-tag {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: #e8f5e9;
    color: #4CAF50;
}

.dish-tag.type-meat {
    background-color: #ffebee;
    color: #f44336;
}

.dish-tag.type-vegetable {
    background-color: #e8f5e9;
    color: #4CAF50;
}

.dish-tag.type-egg {
    background-color: #fff3e0;
    color: #ff9800;
}

.dish-tag.type-staple {
    background-color: #e3f2fd;
    color: #2196F3;
}

.dish-tag.type-soup {
    background-color: #f3e5f5;
    color: #9c27b0;
}

/* 状态标签样式 - 与 dish-tag 保持一致 */
.dish-tag.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.dish-tag.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.dish-tag.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* ========== 采购者信息强制不显示删除线 - 最高优先级 ========== */
.purchaser-info-inline,
span.purchaser-info-inline,
.ingredient-info .purchaser-info-inline,
.ingredient-info span.purchaser-info-inline,
.ingredient-checkbox:checked + .ingredient-info .purchaser-info-inline,
.ingredient-checkbox:checked + .ingredient-info span.purchaser-info-inline,
form .ingredient-info .purchaser-info-inline,
form .ingredient-info span.purchaser-info-inline {
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration: none !important;
    -webkit-text-decoration-line: none !important;
    opacity: 1 !important;
}

.dish-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.dish-likes {
    color: #f44336;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dish-rating {
    color: #ff9800;
    font-size: 14px;
}

/* ========== 表单样式 ========== */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.form-control-lg {
    padding: 15px;
    font-size: 16px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* ========== 表格样式 ========== */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 13px;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.table-actions {
    display: flex;
    gap: 5px;
}

/* ========== 采购清单样式 ========== */
.shopping-list {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.shopping-category {
    margin-bottom: 25px;
}

.shopping-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

.ingredient-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.ingredient-item:hover {
    background-color: #f8f9fa;
}

.ingredient-checkbox {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.ingredient-checkbox:checked + .ingredient-info {
    opacity: 0.6;
}

.ingredient-checkbox:checked + .ingredient-info .ingredient-name,
.ingredient-checkbox:checked + .ingredient-info .ingredient-amount {
    text-decoration: line-through;
}

.ingredient-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ingredient-name {
    font-weight: 500;
}

.ingredient-amount {
    color: #666;
    font-size: 14px;
}

.ingredient-dish {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

/* ========== 评价样式 ========== */
.review-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-user {
    font-weight: 500;
    color: #333;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-rating {
    color: #ff9800;
    margin-bottom: 8px;
}

.review-content {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.rating-input {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.rating-star {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-star:hover,
.rating-star.active {
    color: #ff9800;
}

/* ========== 分页样式 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.page-item {
    list-style: none;
}

.page-link {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    background-color: white;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #f0f0f0;
}

.page-item.active .page-link {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* ========== 筛选栏 ========== */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    color: #555;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
}

/* ========== 移动端适配 ========== */
/* 平板设备 */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .navbar-content {
        padding: 0 15px;
        height: auto;
        flex-direction: column;
        padding: 10px 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        margin: 10px 0;
    }
    
    .nav-item {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .dish-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .menu-dishes {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
    }
    
    .page-header h2 {
        font-size: 20px;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px;
    }
    
    /* 按钮优化 */
    .btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    /* 输入框优化 */
    .form-control {
        font-size: 14px;
        padding: 12px;
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    /* 登录页面优化 */
    .login-box {
        padding: 25px 20px;
        max-width: 100%;
        margin: 0 15px;
        min-height: auto;
    }
    
    .login-container {
        padding: 15px;
        min-height: 100vh;
    }
    
    /* 导航栏优化 */
    .navbar {
        position: relative;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .navbar-content {
        padding: 10px 12px;
        flex-direction: column;
        gap: 8px;
    }
    
    .logo {
        font-size: 16px;
        text-align: center;
        width: 100%;
    }
    
    .nav-menu {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        justify-items: center;
        position: relative;
        z-index: 100;
    }
    
    .nav-item {
        padding: 8px 6px;
        font-size: 11px;
        text-align: center;
        border-radius: 6px;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        position: relative;
        z-index: 101;
        pointer-events: auto;
    }
    
    .user-menu {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-top: 1px solid #f0f0f0;
        margin-top: 5px;
    }
    
    .user-info {
        font-size: 12px;
        flex: 1;
        overflow: hidden;
    }
    
    .user-role {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* 主内容区优化 */
    .main-content {
        padding: 12px 10px;
    }
    
    /* 卡片优化 */
    .card {
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .card-header {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    /* 菜品网格优化 */
    .dish-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dish-card {
        border-radius: 10px;
    }
    
    .dish-image {
        height: 140px;
    }
    
    .dish-content {
        padding: 10px;
    }
    
    /* 菜单菜品优化 */
    .menu-dishes {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .menu-dish-item {
        padding: 12px;
    }
    
    /* 筛选栏优化 */
    .filter-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .filter-label {
        font-size: 12px;
        color: #666;
        font-weight: 500;
    }
    
    .filter-select {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .filter-group input[type="text"] {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .filter-bar button,
    .filter-bar a {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
        margin-top: 0 !important;
    }
    
    /* 按钮优化 */
    .btn {
        font-size: 14px;
        padding: 12px 16px;
        border-radius: 6px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1;
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
    }
    
    .btn-primary {
        background-color: #ff6b8b;
        color: white;
        width: 100%;
    }
    
    /* 确保按钮可点击 */
    button, .btn, a.btn {
        cursor: pointer;
        pointer-events: auto;
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* 表单优化 */
    .form-control {
        font-size: 14px;
        padding: 12px;
        border-radius: 6px;
        min-height: 44px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100% !important;
    }
    
    /* 表格优化 */
    .data-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    /* 分页优化 */
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 20px;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 空状态优化 */
    .empty-state {
        padding: 30px 20px;
    }
    
    .empty-state-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .empty-state-text {
        font-size: 14px;
    }
    
    /* 字体大小调整 */
    h3 {
        font-size: 15px;
    }
    
    h4 {
        font-size: 13px;
    }
    
    /* 间距调整 */
    .mt-20 {
        margin-top: 12px;
    }
    
    .mb-20 {
        margin-bottom: 12px;
    }
    
    /* 触摸体验优化 */
    button, a, .nav-item, .page-link, .ingredient-checkbox {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* 确保所有可点击元素正常工作 */
    a, button, input[type="checkbox"], input[type="submit"], .nav-item, .page-link {
        cursor: pointer;
        pointer-events: auto;
    }
    
    /* 防止文本溢出 */
    .menu-dish-name,
    .dish-title,
    .user-info,
    .card-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 图片优化 */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* 采购清单优化 */
    .ingredient-item {
        padding: 10px;
        position: relative;
        z-index: 1;
    }
    
    .ingredient-item form {
        position: relative;
        z-index: 2;
    }
    
    .ingredient-checkbox {
        width: 20px;
        height: 20px;
        cursor: pointer;
        pointer-events: auto;
        -webkit-appearance: checkbox;
        appearance: checkbox;
        position: relative;
        z-index: 10;
        min-width: 20px;
        min-height: 20px;
    }
    
    .ingredient-name {
        font-size: 13px;
    }
    
    .ingredient-amount {
        font-size: 12px;
    }
    
    /* 评价区域优化 */
    .latest-review {
        padding-top: 8px;
        margin-top: 8px;
    }
    
    .latest-review-content {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* 状态标签优化 */
    .status-badge {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    /* 菜品标签优化 */
    .dish-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* 小屏幕手机 */
@media (max-width: 320px) {
    .nav-item {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .main-content {
        padding: 10px 8px;
    }
    
    .card-header,
    .card-body {
        padding: 12px;
    }
    
    .btn {
        font-size: 13px;
        padding: 10px;
    }
}

/* ========== 工具类 ========== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.empty-state-text {
    font-size: 16px;
}

/* ========== 图片上传样式 ========== */
.image-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.image-upload:hover {
    border-color: #4CAF50;
    background-color: #f8f9fa;
}

.image-upload-icon {
    font-size: 40px;
    color: #999;
    margin-bottom: 10px;
}

.image-upload-text {
    color: #666;
    font-size: 14px;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 10px;
}

/* ========== 状态标签 ========== */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}
