/* ============================================================
   幸福小厨 🏠 家庭点单系统
   暖心风格样式表
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
    --color-primary: #E8833A;
    --color-primary-light: #F5A623;
    --color-primary-dark: #D4722A;
    --color-secondary: #FF6B6B;
    --color-accent: #4ECDC4;
    --color-bg: #FFF8F0;
    --color-bg-card: #FFFFFF;
    --color-bg-warm: #FFF3E0;
    --color-text: #4A3728;
    --color-text-light: #8B7355;
    --color-border: #F0E0D0;
    --color-success: #66BB6A;
    --color-warning: #FFA726;
    --color-danger: #EF5350;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 20px rgba(232, 131, 58, 0.12);
    --shadow-hover: 0 8px 30px rgba(232, 131, 58, 0.2);
    --sidebar-width: 220px;
    --sidebar-collapsed: 64px;
    --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html { font-size: 15px; }
body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea {
    font-family: inherit;
    font-size: 0.95rem;
}

/* ---------- Layout ---------- */
#app {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #E8833A 0%, #D4722A 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow: hidden;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
}
.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.logo-icon { font-size: 1.6rem; }
.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}
.toggle-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.toggle-btn:hover { background: rgba(255,255,255,0.25); }

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.85);
    transition: all 0.2s;
    font-size: 1rem;
    white-space: nowrap;
}
.nav-item:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.nav-item.active {
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-weight: 600;
}
.nav-icon { font-size: 1.3rem; }
.nav-label { }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}
.footer-text {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ---------- Main ---------- */
.main-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
}
.main-area.expanded {
    margin-left: var(--sidebar-collapsed);
}
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
}
.today-badge {
    font-size: 0.85rem;
    color: var(--color-text-light);
    background: var(--color-bg-warm);
    padding: 4px 14px;
    border-radius: 20px;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.family-count {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.content-wrapper {
    padding: 24px 32px 40px;
    max-width: 1200px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s;
    cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(232, 131, 58, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(232, 131, 58, 0.4);
    transform: translateY(-1px);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}
.btn-success {
    background: var(--color-success);
    color: #fff;
}
.btn-danger {
    background: var(--color-danger);
    color: #fff;
}
.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}
.btn-block {
    width: 100%;
    justify-content: center;
}
.btn-icon {
    background: transparent;
    border: none;
    color: var(--color-text-light);
    font-size: 1rem;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}
.btn-icon:hover {
    color: var(--color-danger);
    background: rgba(239, 83, 80, 0.1);
}

/* ---------- Welcome Banner ---------- */
.welcome-banner {
    background: linear-gradient(135deg, #FFE8D6 0%, #FFD6B0 100%);
    border-radius: var(--radius);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.banner-text h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.banner-text p {
    color: var(--color-text-light);
}
.banner-actions {
    display: flex;
    gap: 12px;
}

/* ---------- Section Card ---------- */
.section-card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}
.badge {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--color-bg-warm);
    color: var(--color-text-light);
}
.badge-warning {
    background: #FFF3CD;
    color: #856404;
}
.badge-success {
    background: #D4EDDA;
    color: #155724;
}

/* ---------- Empty State ---------- */
.empty-state, .empty-state-sm {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-light);
}
.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.empty-state-sm { padding: 20px; }

/* ---------- Order Cards Grid ---------- */
.order-cards-grid {
    display: grid;
    gap: 16px;
}
.order-card {
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    border-left: 4px solid var(--color-primary-light);
    transition: all 0.2s;
}
.order-card:hover { box-shadow: var(--shadow-hover); }
.order-card.order-confirmed { border-left-color: var(--color-success); }
.order-card.order-done {
    border-left-color: var(--color-accent);
    opacity: 0.75;
}
.order-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.member-avatar-lg {
    font-size: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-warm);
    border-radius: 50%;
}
.meal-tag {
    font-size: 0.75rem;
    background: var(--color-bg-warm);
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 8px;
    color: var(--color-text-light);
}
.order-status {
    margin-left: auto;
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
}
.order-status.pending {
    background: #FFF3CD;
    color: #856404;
}
.order-status.confirmed {
    background: #D4EDDA;
    color: #155724;
}
.order-status.done {
    background: #E2E3E5;
    color: #383D41;
}
.order-card-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.item-chip {
    font-size: 0.85rem;
    background: var(--color-bg-card);
    padding: 4px 12px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}
.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.order-total {
    font-weight: 700;
    color: var(--color-primary);
}
.order-actions { display: flex; gap: 8px; }

/* ---------- Recommend ---------- */
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.recommend-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: linear-gradient(135deg, #FFF8F0, #FFF3E0);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition: all 0.25s;
}
.recommend-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.rec-category { font-size: 1.5rem; }
.rec-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rec-price { color: var(--color-primary); font-weight: 700; }
.rec-desc { font-size: 0.85rem; color: var(--color-text-light); }

/* ---------- Category Tags ---------- */
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.category-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-bg-warm);
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
}

/* ---------- Item Table ---------- */
.item-table-wrapper { overflow-x: auto; }
.item-table {
    width: 100%;
    border-collapse: collapse;
}
.item-table th, .item-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
}
.item-table th {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.item-table tr:hover td {
    background: rgba(232, 131, 58, 0.04);
}
.desc-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Order Layout ---------- */
.order-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

/* ---------- Category Tabs ---------- */
.order-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.tab-btn {
    padding: 8px 18px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-bg);
    font-size: 0.9rem;
    transition: all 0.2s;
    color: var(--color-text);
}
.tab-btn:hover {
    border-color: var(--color-primary-light);
    background: var(--color-bg-warm);
}
.tab-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ---------- Order Items Grid ---------- */
.order-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.order-item-card {
    position: relative;
    padding: 14px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.order-item-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 12px rgba(232, 131, 58, 0.15);
    transform: translateY(-1px);
}
.order-item-card.recommend {
    border-color: var(--color-warning);
    background: linear-gradient(135deg, #FFF8F0, #FFF8E1);
}
.item-card-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 1.2rem;
}
.item-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.item-card-price { color: var(--color-primary); font-weight: 700; font-size: 0.9rem; }
.item-card-desc { font-size: 0.8rem; color: var(--color-text-light); }
.btn-add {
    align-self: flex-end;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-add:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(232, 131, 58, 0.4);
}

/* ---------- Cart Panel ---------- */
.cart-card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    position: sticky;
    top: 90px;
}
.cart-header { margin-bottom: 16px; }
.cart-header h3 { font-size: 1.15rem; }

.cart-member { margin-bottom: 12px; }
.cart-member label, .cart-mealtime label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 6px;
}
.member-selector, .meal-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.member-btn, .meal-btn {
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-bg);
    font-size: 0.85rem;
    transition: all 0.2s;
}
.member-btn.active, .meal-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.cart-mealtime { margin-bottom: 16px; }

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding: 4px 0;
}
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}
.cart-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.qty-control {
    display: flex;
    align-items: center;
    gap: 4px;
}
.qty-control button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.qty-control button:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.cart-item-price { font-weight: 600; color: var(--color-primary); }

.cart-notes { margin-bottom: 16px; }
.cart-notes input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--color-bg);
}
.cart-notes input:focus {
    outline: none;
    border-color: var(--color-primary-light);
}

.cart-footer {  }
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.cart-total strong {
    font-size: 1.4rem;
    color: var(--color-primary);
}

/* ---------- History ---------- */
.history-controls { display: flex; gap: 8px; align-items: center; }
.date-input {
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--color-bg);
}
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-card {
    padding: 16px 20px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}
.history-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.history-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.history-notes {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(4px);
}
.modal {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    padding: 32px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--color-bg);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
}
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ---------- Emoji Picker ---------- */
.emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.emoji-opt {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    font-size: 1.2rem;
    transition: all 0.2s;
}
.emoji-opt:hover { border-color: var(--color-primary-light); }
.emoji-opt.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    z-index: 300;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.toast.success {
    background: #4CAF50;
    color: #fff;
}
.toast.error {
    background: var(--color-danger);
    color: #fff;
}
.toast-enter-active { animation: toastIn 0.4s ease; }
.toast-leave-active { animation: toastOut 0.3s ease; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to   { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .sidebar { width: var(--sidebar-collapsed); }
    .sidebar .nav-label, .sidebar .logo-text, .sidebar .footer-text { display: none !important; }
    .main-area { margin-left: var(--sidebar-collapsed); }
    .top-bar { padding: 16px; flex-wrap: wrap; }
    .content-wrapper { padding: 16px; }
    .order-layout { grid-template-columns: 1fr; }
    .welcome-banner { flex-direction: column; gap: 16px; text-align: center; }
    .banner-actions { flex-direction: column; width: 100%; }
    .banner-actions .btn { width: 100%; justify-content: center; }
    .order-items-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .recommend-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-light); }

/* ============================================================
   ✨ 年轻化改造 · 玻璃拟态 · 隐藏彩蛋 · 活泼动效
   ============================================================ */

/* ---------- 玻璃拟态卡片 ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 8px 32px rgba(232, 131, 58, 0.08);
}
.glass-card:hover {
    box-shadow: 0 8px 40px rgba(232, 131, 58, 0.15);
}
.glass-card .section-header h3 {
    background: linear-gradient(135deg, var(--color-primary), #FF8A80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Top Bar 磨砂 ---------- */
.top-bar.glass {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

/* ---------- Section Card 新变体 ---------- */
.section-card.vibrant {
    border: none;
    background: linear-gradient(135deg, rgba(255,248,240,0.9), rgba(255,243,224,0.9));
    position: relative;
    overflow: hidden;
}
.section-card.vibrant::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(255,107,107,0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(78,205,196,0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* ---------- 彩虹旋转边框（彩蛋） ---------- */
.rainbow-border {
    position: relative;
    overflow: hidden;
}
.rainbow-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        #ff6b6b, #ffa726, #ffee58, #66bb6a, #4ecdc4, #42a5f5, #ab47bc, #ff6b6b
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: spinBorder 3s linear infinite;
}
@keyframes spinBorder {
    100% { transform: rotate(360deg); }
}

/* ---------- 活泼动效 ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 131, 58, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(232, 131, 58, 0); }
}
@keyframes bounce-in {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes pop-out {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@keyframes wobble {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-4px) rotate(-1deg); }
    30% { transform: translateX(4px) rotate(1deg); }
    45% { transform: translateX(-3px) rotate(-0.5deg); }
    60% { transform: translateX(3px) rotate(0.5deg); }
    75% { transform: translateX(-1px); }
}

/* ---------- 给推荐卡片增加活力 ---------- */
.recommend-card {
    animation: float 4s ease-in-out infinite;
}
.recommend-card:nth-child(2) { animation-delay: 0.5s; }
.recommend-card:nth-child(3) { animation-delay: 1s; }
.recommend-card:nth-child(4) { animation-delay: 1.5s; }
.recommend-card:nth-child(5) { animation-delay: 2s; }
.recommend-card:nth-child(6) { animation-delay: 2.5s; }

/* ---------- 导航图标微动 ---------- */
.nav-item:hover .nav-icon {
    animation: wiggle 0.4s ease-in-out;
}

/* ---------- 订单卡片新样式 ---------- */
.order-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.order-card:hover {
    transform: translateY(-2px) scale(1.005);
}

/* ---------- 欢迎横幅玻璃化 ---------- */
.welcome-banner.glass-banner {
    background: linear-gradient(135deg, rgba(255,232,214,0.7), rgba(255,214,176,0.5)) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
}
.welcome-banner.glass-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,107,107,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.welcome-banner.glass-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(78,205,196,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ---------- 彩蛋：披风小猫咪 ---------- */
.hidden-cat {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
    opacity: 0;
}
.hidden-cat.visible {
    opacity: 1;
}
.hidden-cat.catch-me {
    animation: bounce-cat 0.5s ease;
}
@keyframes bounce-cat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.4) rotate(-10deg); }
    50% { transform: scale(0.9) rotate(5deg); }
    75% { transform: scale(1.2) rotate(-5deg); }
}

/* ---------- 跳舞模式 ---------- */
.dance-mode .sidebar {
    animation: danceBg 1s ease infinite alternate;
}
@keyframes danceBg {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(30deg); }
}
.dance-mode .nav-icon {
    animation: wiggle 0.3s ease infinite;
}
.dance-mode .order-card {
    animation: wobble 0.6s ease infinite;
}
.dance-mode .recommend-card {
    animation: wobble 0.5s ease infinite !important;
}
.dance-mode .section-header h3::after {
    content: ' 🕺';
}
.dance-mode .btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #f093fb, #4ecdc4, #ffa726);
    background-size: 300% 300%;
    animation: shimmer 2s ease infinite;
}

/* ---------- 五彩纸屑 ---------- */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 9998;
    border-radius: 2px;
}

/* ---------- 浮动泡泡 ---------- */
.float-bubble {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

/* ---------- 按钮脉冲光环（下单后） ---------- */
.btn-celebrate {
    animation: pulse-glow 1s ease 3;
}

/* ---------- 隐藏的小惊喜 ---------- */
.secret-sparkle {
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s;
}
.secret-sparkle:active {
    transform: scale(1.3);
}
.secret-hint {
    font-size: 0.75rem;
    color: var(--color-text-light);
    opacity: 0.4;
    text-align: center;
    margin-top: 8px;
    transition: opacity 0.3s;
    cursor: default;
}
.secret-hint:hover {
    opacity: 0.8;
}

/* ---------- 新标签活力徽章 ---------- */
.badge-new {
    background: linear-gradient(135deg, #FF6B6B, #FFA726);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 12px;
    animation: pulse-glow 2s ease infinite;
}

/* ---------- 空状态彩蛋 ---------- */
.empty-state .empty-icon {
    cursor: pointer;
    transition: transform 0.2s;
    user-select: none;
}
.empty-state .empty-icon:active {
    animation: pop-out 0.3s ease;
}
.empty-state .secret-message {
    display: none;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--color-primary);
    opacity: 0;
    transition: opacity 0.5s;
}
.empty-state .secret-message.show {
    display: block;
    opacity: 1;
}

/* ---------- 侧边栏彩蛋 ---------- */
.sidebar-footer .footer-text {
    cursor: pointer;
    user-select: none;
}
.sidebar-footer .admin-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 0.75rem;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s, background 0.2s, transform 0.2s;
}
.sidebar-footer .admin-link:hover {
    opacity: 1;
    background: rgba(255,255,255,0.20);
    transform: translateY(-1px);
}
.sidebar-footer .footer-text.rainbow {
    background: linear-gradient(90deg, #ff6b6b, #ffa726, #ffee58, #66bb6a, #4ecdc4, #42a5f5, #ab47bc);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    font-weight: 700;
}

/* ---------- 进入时的弹跳 ---------- */
@keyframes bounceIn {
    0%   { transform: scale(0.3); opacity: 0; }
    50%  { transform: scale(1.05); }
    70%  { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}
.bounce-enter {
    animation: bounceIn 0.5s ease forwards;
}

/* ---------- 表格操作区彩蛋 ---------- */
.item-table tbody tr {
    transition: all 0.2s;
}
.item-table tbody tr:has(.btn-icon:hover) {
    background: rgba(232, 131, 58, 0.08) !important;
}

/* ---------- 分类标签悬浮 ---------- */
.category-tag {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.category-tag:hover {
    transform: scale(1.05) translateY(-1px);
}

/* ---------- 响应式扩展 ---------- */
@media (max-width: 768px) {
    .welcome-banner.glass-banner::before,
    .welcome-banner.glass-banner::after {
        display: none;
    }
}

/* ============================================================
   🏠 全新首页设计 · 英雄区 · 双列布局
   ============================================================ */

/* ---------- 英雄区 ---------- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #ff8a65 0%, #ffa726 40%, #ffcc80 100%);
    border-radius: 24px;
    padding: 40px 44px;
    margin-bottom: 20px;
    overflow: hidden;
    min-height: 200px;
    box-shadow: 0 8px 40px rgba(255, 167, 38, 0.20);
}
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.10) 0%, transparent 50%);
    pointer-events: none;
}
.hero-bg-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-emoji {
    position: absolute;
    font-size: 48px;
    opacity: 0;
}
.hero-emoji:nth-child(1) { top: 10%; right: 8%; }
.hero-emoji:nth-child(2) { top: 55%; right: 18%; font-size: 36px; }
.hero-emoji:nth-child(3) { top: 15%; right: 22%; font-size: 32px; }
.hero-emoji:nth-child(4) { top: 60%; right: 5%; font-size: 40px; }
.hero-emoji:nth-child(5) { top: -5%; right: 35%; font-size: 28px; }

.hero-content {
    position: relative;
    z-index: 1;
}
.hero-text h2 {
    font-size: 28px;
    color: #fff;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.hero-text p {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    margin: 0 0 20px 0;
}

/* 英雄区统计数字 */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 22px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 14px 24px;
    max-width: 520px;
}
.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-stat-icon {
    font-size: 24px;
}
.hero-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1.2;
}
.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}
.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.25);
}

/* 英雄区按钮 */
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-glow {
    box-shadow: 0 4px 20px rgba(255,255,255,0.30);
}
.btn-glow:hover {
    box-shadow: 0 6px 28px rgba(255,255,255,0.45);
    transform: translateY(-2px);
}
.btn-glass {
    background: rgba(255,255,255,0.20);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.30);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.30);
    color: #fff;
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.80);
    border: none;
    padding: 14px 18px;
    font-size: 1rem;
}
.btn-ghost:hover {
    color: #fff;
    background: rgba(255,255,255,0.10);
    transform: translateY(-2px);
}

/* ---------- 三餐状态条 ---------- */
.meal-status-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.meal-status-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.70);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.6);
    transition: transform 0.2s;
}
.meal-status-item:hover {
    transform: translateY(-1px);
}
.meal-status-icon {
    font-size: 20px;
}
.meal-status-name {
    font-size: 14px;
    font-weight: 600;
    color: #5d4037;
}
.meal-status-count {
    margin-left: auto;
    font-size: 12px;
    background: #f5f0ec;
    padding: 2px 10px;
    border-radius: 12px;
    color: #999;
    font-weight: 600;
}
.meal-status-count.active {
    background: linear-gradient(135deg, #ff8a65, #ffa726);
    color: #fff;
}

/* ---------- 双列布局 ---------- */
.home-dual {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}
.home-col-main {
    min-width: 0;
}
.home-col-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---------- 紧凑订单卡片 ---------- */
.order-cards-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.order-compact-card {
    background: linear-gradient(135deg, #fff, #fefaf5);
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px solid #f0e6e0;
    border-left: 4px solid #ffa726;
    transition: all 0.25s;
    position: relative;
}
.order-compact-card:hover {
    box-shadow: 0 4px 20px rgba(232,131,58,0.12);
    transform: translateY(-1px);
}
.order-compact-card.order-confirmed { border-left-color: #66bb6a; }
.order-compact-card.order-done {
    border-left-color: #90caf9;
    opacity: 0.75;
}
.order-compact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.order-compact-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.order-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.order-meal-badge {
    font-size: 11px;
    background: #f5f0ec;
    padding: 2px 8px;
    border-radius: 8px;
    color: #999;
    margin-left: 6px;
}
.order-compact-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.order-compact-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.order-time {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    color: #ccc;
}
.order-count-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: #fff;
    font-size: 12px;
    padding: 1px 10px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ---------- 推荐列表（垂直） ---------- */
.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.recommend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255,248,240,0.6);
    border-radius: 12px;
    border: 1px solid rgba(255,167,38,0.08);
    transition: all 0.2s;
}
.recommend-row:hover {
    background: rgba(255,248,240,0.9);
    transform: translateX(3px);
}
.recommend-row-icon {
    font-size: 24px;
    width: 36px;
    text-align: center;
}
.recommend-row-info {
    flex: 1;
    min-width: 0;
}
.recommend-row-info strong {
    display: block;
    font-size: 14px;
}
.recommend-row-desc {
    font-size: 12px;
    color: #bbb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.recommend-row-price {
    font-size: 15px;
    font-weight: 700;
    color: #ff8a65;
    white-space: nowrap;
}

/* ---------- 家庭小贴士 ---------- */
.tip-card {
    padding: 18px 20px;
    position: relative;
}
.tip-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.tip-emoji {
    font-size: 28px;
    line-height: 1;
}
.tip-content strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}
.tip-content p {
    font-size: 13px;
    color: #999;
    margin: 0;
}
.tip-refresh {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s, transform 0.2s;
    padding: 4px;
}
.tip-refresh:hover {
    opacity: 1;
    transform: rotate(180deg);
}

/* ---------- 空状态 ---------- */
.empty-text {
    font-size: 16px;
    margin-bottom: 4px;
}
.empty-hint {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 16px;
}

/* ---------- 英雄区动画降级 ---------- */
@media (max-width: 768px) {
    .home-dual {
        grid-template-columns: 1fr;
    }
    .hero-section {
        padding: 28px 20px;
    }
    .hero-emoji { display: none; }
    .hero-stats {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        max-width: none;
    }
    .hero-stat-divider { display: none; }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .meal-status-bar {
        flex-wrap: wrap;
    }
    .meal-status-item {
        flex: 1 1 calc(50% - 6px);
    }
    .order-time { position: static; margin-top: 4px; }
}

