/* ==================== 变量与主题 ==================== */
:root {
    --primary: #E85D3F;
    --primary-dark: #C94A2F;
    --primary-light: #FFF0EC;
    --danger: #E74C3C;
    --success: #2DAA5F;
    --warning: #F0A030;
    --bg: #F5F2EE;
    --white: #FFFFFF;
    --text: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    --border: #E8E5DF;
    --card-bg: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
    --radius: 12px;
    --radius-sm: 8px;
    --tabbar-height: 56px;
    --header-height: 48px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #EDEBE6;
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    overscroll-behavior: none;
    overflow: hidden;
}

a { color: inherit; text-decoration: none; }

/* ==================== App 容器 ==================== */
.app-wrapper {
    max-width: 430px;
    margin: 0 auto;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0,0,0,0.06);
}

/* ==================== 顶部导航栏 ==================== */
.header-bar {
    height: var(--header-height);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-placeholder {
    min-width: 40px;
}

.header-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
    cursor: pointer;
}

/* ==================== 搜索栏 ==================== */
.search-bar {
    padding: 12px 14px;
    background: var(--white);
    flex-shrink: 0;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #F3F1EC;
    border-radius: 10px;
    padding: 9px 14px;
    gap: 8px;
    border: 1.5px solid transparent;
    transition: all 0.2s;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(232,93,63,0.08);
}

.search-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    outline: none;
    font-family: inherit;
    min-width: 0;
}

.search-input::placeholder { color: #B5AFA5; }

/* ==================== 分类导航 ==================== */
.category-nav {
    display: flex;
    gap: 6px;
    padding: 0 14px 12px;
    overflow-x: auto;
    background: var(--white);
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar { display: none; }

.cat-btn {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 20px;
    border: none;
    background: #F3F1EC;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.cat-btn.active {
    background: var(--text);
    color: white;
    font-weight: 600;
}

/* ==================== 主内容区 ==================== */
.main-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

/* ==================== 页面面板 ==================== */
.page-panel {
    display: none;
    flex: 1;
    flex-direction: column;
}
.page-panel.active {
    display: flex;
    flex-direction: column;
}

/* ==================== 菜品网格 ==================== */
.dish-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px;
    flex: 1;
}

/* ==================== 菜品卡片 - 现代风格 ==================== */
.dish-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.04);
}

.dish-card:active {
    transform: scale(0.975);
}

.dish-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #F3F1EC;
    cursor: pointer;
    position: relative;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.dish-card:active .dish-image img { transform: scale(1.05); }

.dish-info {
    padding: 8px 10px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    gap: 4px;
}

.dish-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dish-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.dish-ingredients {
    font-size: 11px;
    color: var(--text-light);
    margin: 2px 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.dish-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dish-category-tag {
    font-size: 10px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ==================== 数量控制器 ==================== */
.qty-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #F3F1EC;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    flex-shrink: 0;
}

.qty-btn:hover:not(:disabled) {
    background: var(--text);
    color: white;
}

.qty-btn:active:not(:disabled) {
    transform: scale(0.9);
}

.qty-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.qty-num {
    min-width: 18px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

/* ==================== 购物车悬浮按钮 ==================== */
.cart-fab {
    position: fixed;
    bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 24px);
    right: calc(50% - 215px + 14px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--text);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: transform 0.15s;
}

@media (max-width: 430px) {
    .cart-fab { right: 14px; }
}

.cart-fab:active {
    transform: scale(0.9);
}

.cart-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
}

/* ==================== 购物车弹出层 ==================== */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 200;
    justify-content: center;
    align-items: flex-end;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.cart-overlay.show { display: flex; }

.cart-popup {
    background: var(--white);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 430px;
    max-height: 65vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: var(--safe-bottom);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cart-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.cart-popup-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.btn-close {
    width: 30px;
    height: 30px;
    border: none;
    background: #F3F1EC;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.15s;
}

.btn-close:active { background: var(--border); }

.cart-popup-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 18px;
}

.cart-popup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F5F3EF;
    font-size: 14px;
}

.cart-popup-name { flex: 1; font-weight: 600; }
.cart-popup-price { color: var(--text-light); margin: 0 10px; font-size: 13px; }
.cart-popup-subtotal { font-weight: 700; color: var(--primary); min-width: 50px; text-align: right; }

.cart-popup-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    background: #FAFAF8;
}

.cart-popup-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.cart-popup-total-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

/* ==================== 下单成功弹层 ==================== */
.success-popup {
    background: var(--white);
    border-radius: 16px;
    width: 85%;
    max-width: 320px;
    padding: 40px 24px 28px;
    text-align: center;
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.success-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.success-subtitle { color: var(--text-secondary); font-size: 13px; margin-bottom: 12px; }
.success-order-no {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-family: 'SF Mono', 'Courier New', monospace;
    background: #F3F1EC;
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-block;
}

/* ==================== 菜品详情弹窗 ==================== */
.detail-popup {
    background: var(--white);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 430px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.15s;
}

.detail-close:active { transform: scale(0.9); }

.detail-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.detail-info { padding: 18px 18px 22px; }

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.detail-header h2 { font-size: 20px; font-weight: 700; }

.detail-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.detail-ingredients {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 12px 0 20px;
    line-height: 1.6;
    padding: 10px 14px;
    background: #F8F6F3;
    border-radius: 8px;
}

.detail-steps {
    margin: 0 0 20px;
}

.detail-steps h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #FAFAF8;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    border-left: 3px solid var(--primary);
    counter-increment: step-counter;
}

.step-item::before {
    content: counter(step-counter);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.detail-steps {
    counter-reset: step-counter;
}

.detail-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid #F3F1EC;
}

.detail-qty .qty-btn {
    width: 36px;
    height: 36px;
}

.detail-qty .qty-btn svg {
    width: 18px;
    height: 18px;
}

/* ==================== 底部导航栏 ==================== */
.tabbar {
    flex-shrink: 0;
    width: 100%;
    height: calc(var(--tabbar-height) + var(--safe-bottom));
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
    z-index: 100;
}

.tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
    position: relative;
    padding: 2px 0;
}

.tabbar-item.active {
    color: var(--text);
}

.tabbar-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabbar-icon svg {
    width: 20px;
    height: 20px;
}

.tabbar-label {
    font-size: 10px;
    font-weight: 600;
}

.tabbar-badge {
    position: absolute;
    top: 0;
    right: calc(50% - 24px);
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    font-family: inherit;
    font-weight: 600;
}

.btn-primary {
    background: var(--text);
    color: white;
}
.btn-primary:active {
    opacity: 0.85;
    transform: scale(0.98);
}

.btn-outline {
    background: var(--white);
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:active { background: #F5F3EF; transform: scale(0.98); }

.btn-block { width: 100%; display: flex; }
.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}
.btn-sm:active { background: #F5F3EF; }
.btn-sm.danger { color: var(--danger); border-color: #F5C6CB; }
.btn-sm.danger:active { background: #FEF0F0; }

/* ==================== 订单列表 ==================== */
.order-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 14px;
    margin: 6px 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-card-no {
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-light);
}

.order-card-status {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.order-card-items {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.5;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-light);
    padding-top: 8px;
    border-top: 1px solid #F5F3EF;
}

.order-card-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.order-card-remark {
    font-size: 12px;
    color: #E85D3F;
    margin-top: 6px;
    padding: 6px 10px;
    background: #FFF0EC;
    border-radius: 6px;
    line-height: 1.4;
}

/* ==================== 购物车备注 ==================== */
.cart-remark {
    margin-bottom: 12px;
}

.remark-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #E8E5DF;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #FAFAF8;
    outline: none;
    box-sizing: border-box;
    color: var(--text);
    transition: all 0.15s;
}

.remark-input:focus {
    border-color: var(--primary);
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(232,93,63,0.08);
}

.remark-input::placeholder {
    color: #B5AFA5;
}

/* ==================== 页面头部 ==================== */
.page-header {
    padding: 14px 16px;
    background: var(--white);
    flex-shrink: 0;
}
.page-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

/* ==================== 我的页面 ==================== */
.mine-header {
    background: var(--white);
    padding: 24px 18px 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mine-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #F3F1EC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.mine-nickname {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text);
}

.mine-desc {
    font-size: 12px;
    color: var(--text-light);
}

.mine-menu-group {
    background: var(--white);
    margin: 8px 12px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.mine-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid #F5F3EF;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.1s;
}

.mine-menu-item:last-child { border-bottom: none; }
.mine-menu-item:active { background: #F8F6F3; }

.mine-menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mine-menu-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mine-menu-arrow {
    color: #CCC;
    font-size: 18px;
    font-weight: 300;
}

/* ==================== 管理后台 ==================== */
.admin-panel {
    background: var(--bg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-header-bar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--white);
    gap: 12px;
    flex-shrink: 0;
}

.admin-header-bar h3 { font-size: 17px; font-weight: 700; }

.back-btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.admin-tabs {
    display: flex;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.admin-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
    font-weight: 500;
}

.admin-tab.active {
    color: var(--text);
    border-bottom-color: var(--text);
    font-weight: 700;
}

.admin-content { padding: 12px 14px; overflow-y: auto; flex: 1; }

/* 菜品管理列表 */
.admin-dish-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 6px;
    font-size: 13px;
    box-shadow: var(--shadow-sm);
}

.admin-dish-item img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.admin-dish-info { flex: 1; min-width: 0; }
.admin-dish-name { font-weight: 700; font-size: 14px; }
.admin-dish-meta { font-size: 11px; color: var(--text-light); margin-top: 2px; }

.admin-dish-status {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #F3F1EC;
    color: var(--text-light);
    font-weight: 600;
}
.admin-dish-status.active { background: var(--primary-light); color: var(--primary); }

.admin-dish-actions { display: flex; gap: 6px; }

/* 订单管理列表 */
.admin-order-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

.admin-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.admin-order-header code {
    font-size: 11px;
    color: var(--text-light);
    background: #F3F1EC;
    padding: 2px 8px;
    border-radius: 4px;
}

.order-status {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
}
.status-pending { background: #FFF3CD; color: #856404; }
.status-cooking { background: #CCE5FF; color: #004085; }
.status-done { background: #D4EDDA; color: #155724; }

.admin-order-items {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.5;
}

.admin-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-light);
    padding-top: 8px;
    border-top: 1px solid #F5F3EF;
}

/* ==================== 弹窗/模态框 ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 300;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.modal-overlay.show { display: flex; }

.modal {
    background: var(--white);
    border-radius: 16px;
    padding: 22px;
    width: 90%;
    max-width: 380px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #E8E5DF;
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
    font-family: inherit;
    background: #FAFAF8;
    outline: none;
    transition: all 0.15s;
    color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--text);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.form-group textarea { resize: vertical; min-height: 60px; }

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ==================== 通用状态 ==================== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-light);
    /* 在 dish-grid 中横跨整行 */
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon { font-size: 40px; margin-bottom: 8px; }
.empty-state p { font-size: 13px; }

/* ==================== Toast ==================== */
.toast {
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.82);
    color: white;
    padding: 9px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    white-space: nowrap;
}

.toast.show { opacity: 1; }
