        /* Base44风格的颜色系统 - 现代化配色方案 */
        :root {
            /* 主色调 - 更现代的蓝色 */
            --primary: #3B82F6;
            --primary-light: rgba(59, 130, 246, 0.1);
            --primary-dark: #2563EB;
            
            /* 辅助色调 - 清新的青色 */
            --secondary: #10B981;
            --secondary-dark: #059669;
            --secondary-darker: #047857;
            
            /* 强调色 - 温暖的橙色 */
            --accent: #F59E0B;
            --accent-dark: #D97706;
            
            /* 状态色 */
            --success: #10B981;
            --warning: #F59E0B;
            --danger: #EF4444;
            --info: #3B82F6;
            
            /* 中性色 - 更柔和的灰度 */
            --neutral-50: #F9FAFB;
            --neutral-100: #F3F4F6;
            --neutral-200: #E5E7EB;
            --neutral-300: #D1D5DB;
            --neutral-400: #9CA3AF;
            --neutral-500: #6B7280;
            --neutral-600: #4B5563;
            --neutral-700: #374151;
            --neutral-800: #1F2937;
            --neutral-900: #111827;
            
            --white: #FFFFFF;
            --black: #000000;
            
            /* 阴影系统 - 更自然的阴影 */
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            
            /* 圆角系统 */
            --radius-sm: 0.375rem;
            --radius-md: 0.5rem;
            --radius-lg: 0.75rem;
            --radius-xl: 1rem;
            
            /* 字体系统 */
            --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            --font-size-xs: 0.75rem;
            --font-size-sm: 0.875rem;
            --font-size-base: 1rem;
            --font-size-lg: 1.125rem;
            --font-size-xl: 1.25rem;
            --font-size-2xl: 1.5rem;
            --font-size-3xl: 1.875rem;
            
            /* 间距系统 */
            --space-1: 0.25rem;
            --space-2: 0.5rem;
            --space-3: 0.75rem;
            --space-4: 1rem;
            --space-5: 1.25rem;
            --space-6: 1.5rem;
            --space-8: 2rem;
            --space-10: 2.5rem;
            --space-12: 3rem;
        }

        /* 历史订单样式 */
        .history-section {
            margin-top: 2rem;
        }

        .history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .history-tbu {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .history-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--neutral-700);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .history-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }

.history-item {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    transition: transform 0.1s ease;
    /* border-left: 4px solid var(--primary); */
    cursor: pointer;
    position: relative;
}

        .history-item:hover {
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }
        /* 订单数量样式：与标题保持协调 */
        .history-title .order-count {
            font-size: 0.9em; /* 比标题文字稍小 */
            color: #6c757d; /* 次要文本色，可根据实际主题修改 */
            background: #f8f9fa; /* 浅色背景衬托（可选） */
            padding: 2px 8px;
            border-radius: 12px; /* 圆角徽章效果 */
        }

        /* 待确认状态 */
        .history-item.pending {
        }

        /* 制作中状态 */
.history-item.processing {
    background-image: url(../images/gh.jpg);
    background-repeat: no-repeat;
    background-position: right -3px top 10px;
    background-size: 232px;
    position: relative;
}



        /* 删除按钮样式 - 与其他按钮统一风格，红色区分 */
        .history-btn.delete-btn {
            background-color: #dc3545; /* 标准危险色 */
            color: white;
        }

        .history-btn.delete-btn:hover {
            background-color: #d32f2f; /* 加深红色，hover效果 */
        }

        /* 已取消状态的按钮样式 */
        .history-item.cancelled .view-btn {
            background: #9e9e9e;
            color: white;
        }
        
        .history-item.cancelled .view-btn:hover {
            background: #757575;
        }
        
        .history-item.cancelled .delete-btn {
            background: #616161;
            color: white;
        }
        
        .history-item.cancelled .delete-btn:hover {
            background: #424242;
        }

        /* 制作中按钮添加旋转动画，更直观 */
        .history-btn.confirm-btn.disabled i.fa-spin,
        .history-btn.confirm-btn-local.disabled i.fa-spin {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        /* 添加前缀兼容 */
        @-webkit-keyframes spin {
            0% { -webkit-transform: rotate(0deg); }
            100% { -webkit-transform: rotate(360deg); }
        }
        .history-btn.confirm-btn.disabled i.fa-spin,
        .history-btn.confirm-btn-local.disabled i.fa-spin {
            animation: spin 1s linear infinite;
            -webkit-animation: spin 1s linear infinite; /* 新增前缀 */
        }

        /* 调整按钮间距，避免拥挤 */
        /* .history-item-footer {
            flex-wrap: wrap;
        } */

        .history-item-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
        }

        .history-order-id {
            font-weight: 600;
            color: var(--neutral-700);
            font-size: 1rem;
        }

        .history-status {
            padding: 0.25rem 0.75rem;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        .status-local {
            background-color: var(--primary-light);
            color: var(--primary);
        }

        .status-pending {
            background-color: var(--primary-light);
            color: var(--primary);
        }

        .status-processing {
            background-color: rgba(255, 125, 0, 0.1);
            color: var(--accent);
        }

        .history-item-body {
            margin-bottom: 1rem;
        }

        .history-item-details {
            font-size: 0.875rem;
            color: var(--neutral-500);
            margin-bottom: 0.5rem;
            line-height: 1.5;
        }

        .history-item-total {
            font-weight: 600;
            color: var(--danger);
            margin-top: 0.5rem;
            font-size: 1.1rem;
            float: left;
        }

        .history-item-countdown {
            font-size: 12px;
            margin-top: 5px;
            text-align: right;
            font-weight: 500;
            float: right;
            line-height: 2.0rem;
            animation: pulse 1s infinite;
        }

        /* 订单历史卡片样式优化 - 新增 */
        .history-item {
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-bottom: 15px;
            transition: transform 0.1s ease;
            overflow: hidden;
            position: relative;
        }

        .history-item:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            transform: translateY(-2px);
        }

        .history-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px; 
        }

        .history-status {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
        }

        .status-local { background: #e3f2fd; color: #1976d2; }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-shipping { background: #ffc107; color: #212529; }
.status-completed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f5f5f5; color: #666; }
        
        /* 订单卡片背景色 - 根据状态设置不同的背景色 */
        .history-item.local {
            background: linear-gradient(135deg, #e3f2fd 0%, #f5f9ff 100%);
            position: relative;
            overflow: hidden;
        }
        
        .history-item.local::before {
            content: '\f015'; /* fa-home */
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            position: absolute;
            bottom: 20px;
            right: 20px;
            font-size: 120px;
            color: rgba(25, 118, 210, 0.08);
            z-index: 0;
        }
        
        .history-item.pending {
            background: linear-gradient(135deg, #fff3cd 0%, #fff8e0 100%);
            position: relative;
            overflow: hidden;
        }
        
        .history-item.pending::before {
            content: '\f017'; /* fa-clock */
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            position: absolute;
            bottom: 20px;
            right: 20px;
            font-size: 120px;
            color: rgba(133, 100, 4, 0.08);
            z-index: 0;
        }
        
        .history-item.processing {
            background: linear-gradient(135deg, #cce5ff 0%, #e6f2ff 100%);
            position: relative;
            overflow: hidden;
        }
        
        .history-item.processing::before {
            content: '\f013'; /* fa-cog - 圆润齿轮图标 */
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            position: absolute;
            bottom: 30px;
            right: 20px;
            font-size: 80px;
            color: rgba(0, 64, 133, 0.08);
            z-index: 0;
            animation: rotateGear1 3s linear infinite;
            transform-origin: center;
        }
        
        .history-item.processing::after {
            content: '\f013'; /* fa-cog - 圆润齿轮图标 */
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            position: absolute;
            bottom: 100px;
            right: 70px;
            font-size: 60px;
            color: rgba(0, 64, 133, 0.06);
            z-index: 0;
            animation: rotateGear2 2.5s linear infinite reverse;
            transform-origin: center;
        }
        
        @keyframes rotateGear1 {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        @keyframes rotateGear2 {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .history-item.shipping {
            background: linear-gradient(135deg, #ffc107 0%, #ffdb4d 100%);
            position: relative;
            overflow: hidden;
        }
        
        .history-item.shipping::before {
            content: '\f0d1'; /* fa-truck */
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            position: absolute;
            bottom: 20px;
            right: 20px;
            font-size: 120px;
            color: rgba(33, 37, 41, 0.08);
            z-index: 0;
        }
        
        .history-item.completed {
            background: linear-gradient(135deg, #d4edda 0%, #e2f0e6 100%);
            position: relative;
            overflow: hidden;
        }
        
        .history-item.completed::before {
            content: '\f00c'; /* fa-check */
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            position: absolute;
            bottom: 20px;
            right: 20px;
            font-size: 120px;
            color: rgba(21, 87, 36, 0.08);
            z-index: 0;
        }
        
        .history-item.cancelled {
            background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
            position: relative;
            overflow: hidden;
        }
        
        .history-item.cancelled::before {
            content: '\f00d'; /* fa-times */
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            position: absolute;
            bottom: 20px;
            right: 20px;
            font-size: 120px;
            color: rgba(102, 102, 102, 0.08);
            z-index: 0;
        }
        
        /* 新增状态背景色 */
        .history-item.submitted {
            background: linear-gradient(135deg, #ede7f6 0%, #f5f0ff 100%);
            position: relative;
            overflow: hidden;
        }
        
        .history-item.submitted::before {
            content: '\f1d8'; /* fa-paper-plane */
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            position: absolute;
            bottom: 20px;
            right: 20px;
            font-size: 120px;
            color: rgba(103, 58, 183, 0.08);
            z-index: 0;
        }
        
        .history-item.paid {
            background: linear-gradient(135deg, #e0f2f1 0%, #f0fafa 100%);
            position: relative;
            overflow: hidden;
        }
        
        .history-item.paid::before {
            content: '\f09d'; /* fa-credit-card */
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            position: absolute;
            bottom: 20px;
            right: 20px;
            font-size: 120px;
            color: rgba(0, 121, 107, 0.08);
            z-index: 0;
        }
        
        .history-item.confirmed {
            background: linear-gradient(135deg, #e1f5fe 0%, #f0f8ff 100%);
            position: relative;
            overflow: hidden;
        }
        
        .history-item.confirmed::before {
            content: '\f00c'; /* fa-check */
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            position: absolute;
            bottom: 20px;
            right: 20px;
            font-size: 120px;
            color: rgba(2, 136, 209, 0.08);
            z-index: 0;
        }

        .history-item-body {
            padding: 20px;
            position: relative;
            z-index: 1;
        }

        .history-item-details p {
            margin: 8px 0;
            color: #666;
            display: flex;
            align-items: center;
        }

        .history-item-details i {
            width: 16px;
            text-align: center;
            margin-right: 8px;
            color: #999;
        }

        .status-timeline {
            margin-top: 15px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 6px;
            border-left: 4px solid #ddd;
        }

        .timeline-item {
            display: flex;
            align-items: center;
            margin: 8px 0;
            padding: 5px 0;
            font-size: 13px;
        }

        .timeline-item i {
            margin-right: 10px;
            width: 16px;
            text-align: center;
            font-size: 14px;
        }

        .timeline-item.completed { color: #388e3c; }
        .timeline-item.pending { color: #f57c00; }
        .timeline-item.processing { color: #1976d2; }

        .history-item-total {
            text-align: right;
            margin-top: 15px;
            padding-top: 15px; 
        }

        .price-label {
            color: #666;
            font-size: 14px;
            margin-right: 8px;
        }

        .price-value {
            color: #d32f2f;
            font-size: 20px;
            font-weight: bold;
        }

        .history-item-footer {
            display: flex;
            gap: 10px;
            padding: 15px 20px; 
            flex-wrap: wrap;
        }

        .history-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 80px;
        }

        .history-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        .history-btn i {
            margin-right: 4px;
        }

        .view-btn {
            background: #2196f3;
            color: white;
        }

        .confirm-btn-local {
            background: #4caf50;
            color: white;
        }

        .delete-btn {
            background: #f44336;
            color: white;
        }

        .history-btn.disabled {
            background: #ccc;
            color: #666;
            cursor: not-allowed;
        }

        .history-btn.disabled:hover {
            transform: none;
            box-shadow: none;
        }

        .order-countdown {
            margin: 10px 20px 15px;
            padding: 12px;
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 6px;
            color: #856404;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 1;
            width: auto;
            box-sizing: border-box;
            line-height: 1.4;
            min-height: 40px;
            text-align: center;
            flex-wrap: wrap;
            gap: 4px;
        }
        
        .history-item .order-countdown {
            margin-left: 0;
            margin-right: 0;
            margin-top: 10px;
            margin-bottom: 0;
            width: calc(100% - 40px);
            position: relative;
            left: 20px;
            right: 20px;
            box-sizing: border-box;
        }

        .order-countdown i {
            margin-right: 8px;
            color: #f57c00;
        }
        
        .order-countdown span {
            font-size: inherit;
            line-height: inherit;
            display: inline;
            margin: 0;
            padding: 0;
        }
        .order-countdown .countdown-time {
                display: inline;
                margin: 0;
                padding: 0;
                font-size: inherit;
                line-height: inherit;
            }
            
            .order-countdown span {
                display: inline;
                margin: 0;
                padding: 0;
                font-size: inherit;
                line-height: inherit;
            }
        .countdown-time {
            color: #ff0000;
            font-weight: bold;
            font-size: inherit;
            line-height: inherit;
        }
        
        .order-countdown .countdown-time {
            display: inline;
            margin: 0;
            padding: 0;
        }

        .countdown-time {
            color: #d32f2f;
            font-weight: bold;
            font-size: 16px;
            margin: 0 4px;
            display: inline;
        }

        /* 导航按钮激活状态 */
.nav-btn.active {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    /* box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2); */
}
.nav-btn.active i {
    color: var(--primary);
    transform: scale(1.1);
}

/* 导航按钮激活状态 - 用户按钮 */
.nav-btn-user.active {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
}

/* 移除激活状态下的头像缩放 */

.nav-btn-user.active .fa-chevron-down {
    transform: rotate(180deg);
    color: var(--secondary);
}

/* 导航按钮激活状态 - 历史按钮 */
.nav-btn-secondary.active {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.nav-btn-secondary.active i {
    color: var(--warning);
    transform: scale(1.1);
}
        /* @media (max-width: 768px) {
            .history-item-footer {
                flex-direction: column;
            }
            
            .history-btn {
                width: 100%;
                margin-bottom: 8px;
            }
            
            .history-btn:last-child {
                margin-bottom: 0;
            }
        } */

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.7; }
            100% { opacity: 1; }
        }

.history-item-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
    float: left;
    justify-content: center;
    align-content: flex-end;
    flex-wrap: nowrap;
    flex-direction: row;
    position: relative;
    z-index: 2;
    padding: 0.75rem 1.25rem;
    background: transparent;
}

/* 响应式设计 - 确保按钮在小屏幕上正常显示 */
@media (max-width: 768px) {
    .history-item-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .history-btn {
        width: 100%;
        margin-bottom: 0;
    }
    
    .order-countdown {
                margin: 8px 15px 12px;
                padding: 10px;
                font-size: 13px;
                flex-direction: column;
                text-align: center;
                line-height: 1.3;
                min-height: 35px;
            }
    
    .order-countdown .countdown-time {
                display: inline;
                margin: 0;
                padding: 0;
            }
}

        .history-btn {
            flex: 1;
            padding: 0.5rem 0;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            font-weight: 500;
            text-align: center;
            transition: all 0.2s ease;
            border: none;
            cursor: pointer;
        }

        .view-btn {
            background-color: var(--primary-light);
            color: var(--primary);
        }

        .view-btn:hover {
            background-color: var(--primary-light);
            opacity: 0.9;
        }

        .confirm-btn {
            background-color: var(--success);
            color: white;
        }

        .confirm-btn:hover {
            background-color: #009924;
        }

        .confirm-btn.disabled {
            background-color: var(--neutral-200);
            color: var(--neutral-400);
            cursor: not-allowed;
            opacity: 0.7;
        }

        .confirm-btn-local {
            background-color: var(--success);
            color: white;
        }

        .confirm-btn-local:hover {
            background-color: #009924;
        }

        .confirm-btn-local.disabled {
            background-color: var(--neutral-200);
            color: var(--neutral-400);
            cursor: not-allowed;
            opacity: 0.7;
        }



        .hidden {
            display: none !important;
        }

        /* 渐变背景 - 来自order_frontend.php */
        .bg-gradient-primary {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        }
        
        .bg-gradient-secondary {
            background: linear-gradient(135deg, var(--secondary) 0%, #0DBDBD 100%);
        }
        
        .bg-gradient-accent {
            background: linear-gradient(135deg, var(--accent) 0%, #FF9A3D 100%);
        }

        /* 现代化卡片设计 */
        .modern-card {
            background: var(--white);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-light);
            transition: opacity 0.15s ease;
            border: 1px solid var(--neutral-200);
            overflow: hidden;
        }
        
        .modern-card:hover {
            box-shadow: var(--shadow-medium);
            transform: translateY(-2px);
            border-color: var(--neutral-300);
        }

        /* 现代化按钮设计 */
        .modern-btn {
            padding: var(--space-3) var(--space-6);
            border-radius: var(--radius-md);
            font-weight: 600;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            border: none;
            cursor: pointer;
            display: inline-flex;
            gap: var(--space-2);
            font-size: var(--text-sm);
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
        }
        
        .modern-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }
        
        .modern-btn:hover::before {
            left: 100%;
        }
        
        .modern-btn-primary {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            box-shadow: var(--shadow-primary);
        }
        
        .modern-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(22, 93, 255, 0.4);
        }
        
        .modern-btn-secondary {
            background: var(--white);
            color: var(--neutral-600);
            border: 1px solid var(--neutral-300);
            box-shadow: var(--shadow-sm);
        }
        
        .modern-btn-secondary:hover {
            background: var(--neutral-50);
            border-color: var(--neutral-400);
            transform: translateY(-2px);
            box-shadow: var(--shadow-light);
        }
        
        .modern-btn-danger {
            background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
            color: white;
            box-shadow: var(--shadow-danger);
        }
        
        .modern-btn-danger:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
        }
        /* 现代化输入框设计 */
        .modern-input {
            width: 100%;
            padding: var(--space-3) var(--space-4);
            border: 1px solid var(--neutral-200);
            border-radius: var(--radius-md);
            font-size: var(--text-sm);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            background: var(--white);
            color: var(--neutral-700);
        }
        
        .modern-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
            transform: translateY(-1px);
        }
        
        .modern-input:hover {
            border-color: var(--primary-light);
        }
        
        .modern-input::placeholder {
            color: var(--neutral-400);
        }

        /* 现代化选择器设计 */
        .modern-select {
            width: 100%;
            padding: var(--space-3) var(--space-4);
            border: 1px solid var(--neutral-200);
            border-radius: var(--radius-md);
            font-size: var(--text-sm);
            background: var(--white);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            color: var(--neutral-700);
        }
        
        .modern-select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
            transform: translateY(-1px);
        }
        
        .modern-select:hover {
            border-color: var(--primary-light);
        }

        /* 选择框错误状态样式 */
        .modern-select.error {
            border-color: var(--danger) !important;
            background-color: rgba(239, 68, 68, 0.02);
            animation: shake 0.5s ease-in-out;
        }
        
        .modern-select.error:focus {
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }
        
        /* 错误提示标签 */
        .error-message {
            color: var(--danger);
            font-size: 12px;
            margin-top: 4px;
            display: none;
            align-items: center;
            gap: 4px;
        }
        
        .error-message.show {
            display: flex;
        }
        
        /* 震动动画 */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
            20%, 40%, 60%, 80% { transform: translateX(2px); }
        }

        /* 导航栏 - 现代化玻璃拟态设计 */
        .navbar {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(209, 213, 219, 0.3);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            position: sticky;
            top: 0;
            z-index: 100;
            transition: all 0.3s ease;
        }
        
        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 var(--space-4);
        }

        /* 现代化订单项目卡片 */
        .order-item-card {
            background: var(--white);
            border: 1px solid var(--neutral-200);
            border-radius: var(--radius-lg);
            padding: var(--space-5);
            margin-bottom: var(--space-4);
            transition: opacity 0.1s ease;
            position: relative;
            box-shadow: var(--shadow-sm);
        }
        
        .order-item-card:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-medium);
            transform: translateY(-2px);
        }
        
        .order-item-card.selected {
            border-color: var(--primary);
            background: linear-gradient(135deg, var(--primary-light) 0%, rgba(22, 93, 255, 0.05) 100%);
            box-shadow: var(--shadow-medium);
        }

        /* 价格标签 - 来自order_frontend.php */
        .price-tag {
            background: linear-gradient(135deg, var(--success) 0%, #00D084 100%);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 14px;
        }
        


        /* 粘性订单摘要侧栏 */
        .sticky-sidebar {
            position: sticky;
            top: 5.2rem; /* 考虑导航栏高度(4rem) + 一些间距 */
            align-self: flex-start;
        }
        
        /* 在小屏幕设备上禁用粘性定位 */
        @media (max-width: 1024px) {
            .sticky-sidebar {
                position: static;
            }
        }

        /* 加载动画 - 来自order_frontend.php */
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid var(--neutral-200);
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            position: relative;
            top: -8px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* 订单摘要闪烁动画 - 2次闪烁 */
        @keyframes order-summary-flash {
            0% { background-color: rgba(255, 255, 255, 1); }
            25% { background-color: rgba(22, 93, 255, 0.1); }
            50% { background-color: rgba(255, 255, 255, 1); }
            75% { background-color: rgba(22, 93, 255, 0.1); }
            100% { background-color: rgba(255, 255, 255, 1); }
        }
        
        .order-summary-flash {
            animation: order-summary-flash 1s ease-in-out;
        }
        
        /* 订单项闪烁动画 - 2次闪烁 */
        @keyframes order-item-flash {
            0% { background-color: rgba(255, 255, 255, 1); }
            25% { background-color: rgba(22, 93, 255, 0.1); }
            50% { background-color: rgba(255, 255, 255, 1); }
            75% { background-color: rgba(22, 93, 255, 0.1); }
            100% { background-color: rgba(255, 255, 255, 1); }
        }
        
        .order-item-flash {
            animation: order-item-flash 1s ease-in-out;
        }
        
        /* 连接状态指示器样式 - 已删除轮询功能，保留空样式以保持兼容性 */
        .connection-status-indicator {
            /* 轮询功能已删除，此类不再使用 */
        }
        
        .connection-status-connected {
            /* 轮询功能已删除，此类不再使用 */
        }
        
        .connection-status-disconnected {
            /* 轮询功能已删除，此类不再使用 */
        }
        
        

        /* 响应式网格 - 每行4个分类 */
        .responsive-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    @media (min-width: 1400px) {
        .responsive-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }
    
    @media (max-width: 1199px) and (min-width: 992px) {
        .responsive-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    @media (max-width: 991px) and (min-width: 768px) {
        .responsive-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 767px) {
        .responsive-grid {
            grid-template-columns: 1fr;
            gap: 16px;
        }
    }
        
        /* 现代化分类卡片设计 */
        .category-card-simple {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: var(--space-4);
            border: 1px solid var(--neutral-200);
            transition: opacity 0.1s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: var(--space-3);
            box-shadow: var(--shadow-sm);
        }
        
        .category-card-simple:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-light);
            transform: translateY(-2px);
        }
        
        .category-card-simple.selected {
            border-color: var(--primary);
            background: linear-gradient(135deg, var(--primary-light) 0%, rgba(59, 130, 246, 0.05) 100%);
            box-shadow: var(--shadow-medium);
            transform: translateY(-1px);
        }
        
        .category-icon {
            width: 40px;
            height: 40px;
            background: #eff6ff;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: #3b82f6;
            transition: all 0.2s ease;
        }
        
        .category-card-simple:hover .category-icon {
            /* 移除图标悬停时的描边效果 */
        }
        
        .category-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .category-name {
            font-size: 13px;
            font-weight: 600;
            color: #1e293b;
            margin: 0 0 2px 0;
            letter-spacing: -0.1px;
        }

        
        /* 订单摘要 - 来自order_frontend.php */
.order-summary {
    /* background: var(--neutral-50); */
    /* border-radius: 0 12px 0 12px; */
    padding: 19px 25px 0px 24px;
    /* border: 1px solid var(--neutral-200); */
}
        
        .summary-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0px 8px 0px;
            border-bottom: 1px solid var(--neutral-200);
        }
        
        .summary-item:last-child {
            border-bottom: none;
            font-weight: 600;
            color: var(--primary-dark);
            font-size: 16px;
        }

        /* 状态指示器 - 来自order_frontend.php */
        .status-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* 订单加载状态样式 */
        .loading-orders {
            text-align: center;
            color: #666;
            padding: 50px 20px;
            font-size: 14px;
        }
        
        .loading-orders::before {
            content: '';
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #3b82f6;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: 10px;
            vertical-align: middle;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .loading-error {
            text-align: center;
            color: #ef4444;
            padding: 50px 20px;
            font-size: 14px;
        }
        
        .loading-error::before {
            content: '\f071';
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            display: block;
            font-size: 24px;
            margin-bottom: 10px;
            color: #ef4444;
        }
        
        .status-pending {
            background: rgba(255, 125, 0, 0.1);
            color: var(--warning);
        }
        
        .status-processing {
            background: rgba(204, 229, 255, 0.5);
            color: #004085;
        }
        
        .status-completed {
            background: rgba(212, 237, 218, 0.5);
            color: #155724;
        }

        /* 现代化确认模态框 */
        .custom-confirm-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 10000;
            display: flex;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }
        
        .custom-confirm-modal {
            background: var(--white);
            border-radius: var(--radius-xl);
            padding: var(--space-8);
            max-width: 400px;
            width: 90%;
            box-shadow: var(--shadow-heavy);
            text-align: center;
            border: 1px solid var(--neutral-200);
            transform: scale(0.95);
            animation: modalAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }
        
        @keyframes modalAppear {
            to {
                transform: scale(1);
            }
        }
        
        .custom-confirm-message {
            font-size: var(--text-base);
            margin-bottom: var(--space-6);
            color: var(--neutral-700);
            line-height: 1.6;
            font-weight: 500;
        }
        
        .custom-confirm-buttons {
            display: flex;
            gap: var(--space-3);
            justify-content: center;
        }
        
        .custom-confirm-btn {
            padding: var(--space-3) var(--space-6);
            border: none;
            border-radius: var(--radius-md);
            font-size: var(--text-sm);
            cursor: pointer;
            min-width: 80px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 600;
            position: relative;
            overflow: hidden;
        }
        
        .custom-confirm-btn.confirm {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            box-shadow: var(--shadow-primary);
        }
        
        .custom-confirm-btn.confirm:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(22, 93, 255, 0.4);
        }
        
        .custom-confirm-btn.cancel {
            background: var(--white);
            color: var(--neutral-600);
            border: 1px solid var(--neutral-300);
            box-shadow: var(--shadow-sm);
        }
        
        .custom-confirm-btn.cancel:hover {
            background: var(--neutral-50);
            border-color: var(--neutral-400);
            transform: translateY(-2px);
            box-shadow: var(--shadow-light);
        }
        
        .custom-confirm-btn.cancel:hover {
            background: var(--neutral-300);
        }

        /* 自定义样式 */
        .text-success {
            color: var(--success);
        }
        
        .text-danger {
            color: var(--danger);
        }
        
        .bg-neutral-50 {
            background-color: var(--neutral-50);
        }
        
        .hidden {
            display: none !important;
        }
        
        .fade-in {
            animation: fadeIn 0.4s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(16px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Toast提示框动画 */
        .toast-container {
            position: fixed;
            top: 5rem;
            right: 0;
            z-index: 50;
          /*  width: 100%;*/
          /*  max-width: 350px;*/
            padding-right: 0;
        }
        
        .toast {
            transform: translateX(100%);
            opacity: 0;
            transition: opacity 0.1s ease;
            border-radius: 0 0 0 8px; /* 右上角和右下角为直角，左下角和左上角保持圆角 */
        }
        
        .toast.show {
            transform: translateX(0);
            opacity: 1;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .toast-container {
                top: 5rem;
                right: 0;
                width: calc(100% - 1rem);
                max-width: none;
            }
        }
        
        .loading-container {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 48px;
            flex-direction: column;
        }
        
        .empty-state {
            text-align: center;
            padding: 31px 20px;
            color: #9ca3af;
        }
        
        .empty-state i {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
        }
        
        .empty-state p {
            font-size: 14px;
            margin-bottom: 8px;
        }
        
        .empty-state small {
            font-size: 12px;
            opacity: 0.7;
        }

        /* 现代化响应式设计 */
        @media (max-width: 768px) {
            .responsive-grid {
                grid-template-columns: 1fr;
                gap: var(--space-4);
            }
            
            .nav-container {
                padding: 0 var(--space-4);
            }
            
            .modern-card {
                margin: 0 var(--space-2);
                border-radius: var(--radius-lg);
            }
            
            .modern-btn {
                padding: var(--space-2) var(--space-4);
                font-size: var(--text-xs);
            }
            
            .modern-input,
            .modern-select {
                padding: var(--space-2) var(--space-3);
                font-size: var(--text-xs);
            }
            
            .category-card-simple {
                padding: var(--space-3);
                gap: var(--space-2);
            }
            
            .category-icon {
                width: 32px;
                height: 32px;
                font-size: 14px;
            }
            
            .order-item-card {
                padding: var(--space-4);
                margin-bottom: var(--space-3);
            }
            
            .history-item {
                padding: var(--space-4);
                margin-bottom: var(--space-3);
            }
            
            .custom-confirm-modal {
                padding: var(--space-6);
                margin: var(--space-4);
            }
            
            .toast-container {
                width: calc(100% - var(--space-4));
                padding: 0 var(--space-2);
            }
        }
        
        @media (max-width: 640px) {
            .responsive-grid {
                grid-template-columns: 1fr;
            }
            
            .modern-card {
                margin: 0 var(--space-1);
                border-radius: var(--radius-md);
            }
            
            .navbar {
                padding: var(--space-3) 0;
            }
            
            .nav-container {
                padding: 0 var(--space-3);
            }
            
            .category-card-simple {
                padding: var(--space-2);
                gap: var(--space-1);
            }
            
            .category-icon {
                width: 28px;
                height: 28px;
                font-size: 12px;
            }
            
            .category-name {
                font-size: 12px;
            }
            
            .custom-confirm-buttons {
                flex-direction: column;
                gap: var(--space-2);
            }
            
            .custom-confirm-btn {
                width: 100%;
            }
        }
        
        /* 页面加载动画 */
        @keyframes pageLoad {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .page-load-animation {
            animation: pageLoad 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
        }
        
        /* 滚动条样式 */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: var(--neutral-100);
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb {
            background: var(--neutral-300);
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: var(--neutral-400);
        }
        
        /* 订单项容器滚动样式 */
        #order-items-container {
            scrollbar-width: thin;
            scrollbar-color: var(--neutral-300) var(--neutral-100);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: max-height, overflow-y;
        }
        
        #order-items-container::-webkit-scrollbar {
            width: 6px;
        }
        
        #order-items-container::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 3px;
        }
        
        #order-items-container::-webkit-scrollbar-thumb {
            background: var(--neutral-300);
            border-radius: 3px;
        }
        
        #order-items-container::-webkit-scrollbar-thumb:hover {
            background: var(--neutral-400);
        }
        
        /* 当订单项较少时隐藏滚动条 */
        #order-items-container:not(:hover)::-webkit-scrollbar-thumb {
            background: transparent;
        }
        
        /* 滚动模式增强样式 */
        #order-items-container.scrolling-enabled {
            border: 1px solid var(--neutral-200);
            border-radius: 8px;
            padding: 8px;
            margin: -8px;
            background: linear-gradient(to bottom, transparent 0%, transparent 95%, rgba(255,255,255,0.8) 100%);
        }
        
        /* 平滑过渡动画 */
        #order-items-container * {
            transition: opacity 0.3s ease;
        }
        
        #order-items-container.scrolling-enabled:hover {
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
        }
        
        @media print {
            body * {
                visibility: hidden !important;
            }
            
            /* 确保订单相关内容可见（含临时打印容器） */
            #temp-print-container,
            #temp-print-container *,
            #invoice-modal, 
            #invoice-modal *, 
            #invoice-content,
            #invoice-content * {
                visibility: visible !important;
            }
            
            #invoice-modal {
                position: absolute !important;
                left: 0 !important;
                top: 0 !important;
                background: white !important;
                width: 100% !important;
                height: 100% !important;
                padding: 0 !important;
                margin: 0 !important;
                border: none !important;
            }
            
            #invoice-modal .bg-white {
                border: none !important;
                box-shadow: none !important;
                max-height: none !important;
                width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
            }
            
            /* 原订单内容和克隆内容统一样式 */
            #invoice-content, #print-clone {
                padding: 2rem !important;
                width: 100% !important;
                box-sizing: border-box !important;
            }
            
            .no-print {
                display: none !important;
            }
            
            /* 隐藏临时打印容器的多余样式 */
            #temp-print-container {
                position: absolute !important;
                left: 0 !important;
                top: 0 !important;
                margin: 0 !important;
                padding: 0 !important;
            }
        }

.bg-primary {
    background-color: var(--primary);
}

        /* 关键修复：确保hidden类优先级 */
        #invoice-modal.hidden {
            display: none !important;
        }

        /* 修复鼠标悬停不显示小手的问题 */
        #mobile-menu-btn,
        #mobile-history-btn,
        #confirm-order-btn {
            cursor: pointer;
        }



.price-preview {
    background: linear-gradient(135deg, #e7eaef 0%, #ffffff 100%);
    color: var(--primary-dark);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-top: 16px;
}




/* 订单单据样式 */
.invoice-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.invoice-logo {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.invoice-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--neutral-700);
}

.invoice-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.invoice-details {
    flex: 1;
    min-width: 250px;
    line-height: 28px;
}

.invoice-qrcode {
    width: 120px;
    height: 120px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.invoice-table th,
.invoice-table td {
    border: 1px solid var(--neutral-200);
    padding: 0.75rem;
    text-align: left;
}

.invoice-table th {
    background-color: var(--primary-light);
    font-weight: bold;
}

.invoice-total {
    text-align: right;
    font-size: 1.2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--neutral-300);
}

.invoice-footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--neutral-500);
}

/* 历史订单备注区域样式 */
.invoice-note-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 0.5rem;
}

.invoice-note-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

.invoice-note-content {
    font-size: 0.95rem;
    color: var(--neutral-600);
    line-height: 1.5;
    padding: 0.5rem;
    background-color: white;
    border-radius: 0.25rem;
    border: 1px solid var(--neutral-100);
}

.invoice-system-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--neutral-50);
    border-radius: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--neutral-500);
}

/* 打印样式 - 修复打印为空问题 */
@media print {
    body * {
        visibility: hidden !important;
    }
    
    /* 确保订单相关内容可见（含临时打印容器） */
    #temp-print-container,
    #temp-print-container *,
    #invoice-modal, 
    #invoice-modal *, 
    #invoice-content,
    #invoice-content * {
        visibility: visible !important;
    }
    
    #invoice-modal {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        background: white !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
    
    #invoice-modal .bg-white {
        border: none !important;
        box-shadow: none !important;
        max-height: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 原订单内容和克隆内容统一样式 */
    #invoice-content, #print-clone {
        padding: 2rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    /* 隐藏临时打印容器的多余样式 */
    #temp-print-container {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* 关键修复：确保hidden类优先级 */
#invoice-modal.hidden {
    display: none !important;
}

/* 业务导航栏样式 - 融合3d66.com设计风格 */
.business-navbar {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 30;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

/* 左侧区域 */
.nav-left {
    display: flex;
    align-items: center;
}

/* 中间区域 */
.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* Logo区域 - 简洁风格 */
.logo-area {
    display: flex;
    align-items: center;
    margin-right: 30px;
    cursor: pointer;
}

.logo-area:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 12px;
    font-size: 18px;
}



.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 右侧区域 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-item {
    position: relative;
}

/* 导航按钮 - 3d66风格 */
.nav-btn {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    transition: none;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* 移除按钮悬停效果 - 只保留图标缩放 */

.nav-btn:active {
    transform: translateY(0);
}

.nav-btn i {
    margin-right: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-btn:hover i {
    transform: scale(1.1);
}

.nav-btn span {
    font-weight: 500;
}

/* 次要按钮样式 */
.nav-btn-secondary {
    background-color: #f9fafb;
    border-color: #e5e7eb;
    color: #6b7280;
}

.nav-btn-secondary:hover {
    background-color: white;
    border-color: var(--primary);
    color: var(--primary);
}

/* 登录/注册按钮 - 3d66风格 */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-btn-register {
    background-color: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 移除注册按钮的滑动光效 */

/* 移除注册按钮悬停效果 - 只保留图标缩放 */

.nav-btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
}



.nav-btn-login:hover {
    background: var(--primary-dark);
}

.nav-btn-login:active {
    transform: translateY(0);
}

/* 用户区域 - 头像和用户信息 */
.user-area {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.user-info {
    position: relative;
}

.nav-btn-user {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
}

/* 移除用户按钮悬停效果 */

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}



/* 移除头像悬停效果 */

/* 头像图标按钮 - 简洁风格 */
.nav-btn-user-icon {
    background: transparent;
    border: none;
    padding: 4px;
    position: relative;
    border-radius: 50%;
    cursor: pointer;
    overflow: visible;
    transition: all 0.2s ease;
}

/* 头像按钮激活状态 */
.nav-btn-user-icon.active {
    background: rgba(22, 93, 255, 0.1);
    transform: translateY(-1px);
}

.nav-btn-user-icon:hover {
    /* 移除悬停效果 */
    background: transparent;
    border-color: transparent;
    color: inherit;
    transform: none;
    box-shadow: none;
}

.nav-btn-user-icon:hover i {
    transform: none;
}

/* 头像图标容器 - 简洁风格 */
.user-avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(22, 93, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    position: relative;
}

.user-avatar-icon i {
    font-size:30px;
    line-height: 1;
    margin-right: 0px;
}

/* 勋章图标 - 显示在最外层 */
.user-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 500;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    z-index: 999;
}

.username {
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-btn-user .fa-chevron-down {
    margin-left: 4px;
    margin-right: 0;
    font-size: 10px;
}



/* 刷新按钮 */
.nav-btn-refresh {
    background-color: #f9fafb;
    border-color: #e5e7eb;
    color: #6b7280;
}

.nav-btn-refresh:hover {
    background-color: white;
    border-color: var(--secondary);
    color: var(--secondary);
}

/* 订单同步按钮 - 统一为次要按钮样式 */
.nav-btn.nav-btn-sync {
    background-color: #f9fafb;
    border-color: #e5e7eb;
    color: #6b7280;
    font-weight: 500;
}

.nav-btn.nav-btn-sync:hover,
.nav-btn.nav-btn-sync:focus:hover {
    background-color: white;
    border-color: var(--primary);
    color: var(--primary);
}









/* 徽章样式 */
.nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

/* 下拉菜单 - 简洁风格 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 0; /* 与index.php保持一致 */
}

/* 鼠标悬停下拉菜单效果 - 简洁风格 */
/* 注意：现在使用JavaScript控制显示/隐藏，CSS悬停效果已移除 */
.user-info .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.user-info .dropdown-menu:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 用户下拉菜单 - 简洁样式 */
.user-dropdown {
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    max-width: 260px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-top: 0; /* 移除之前可能存在的margin-top */
}

.user-dropdown .dropdown-header {
    background: #f8fafc;
    color: #374151;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.user-dropdown .dropdown-header i {
    color: var(--primary);
    margin-right: 8px;
}

/* 用户信息 - 简洁风格 */
.user-info {
    position: relative;
}



/* 下拉菜单项 - 简洁风格 */
.user-dropdown .dropdown-item {
    padding: 12px 20px;
    font-size: 14px;
    color: #475569;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.user-dropdown .dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}



/* 修复：分离悬停和点击显示逻辑 */
.dropdown:hover .dropdown-menu:not(.user-dropdown) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 用户下拉菜单使用悬停显示 */
.user-info:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block !important;
}

.dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.dropdown-header i {
    margin-right: 8px;
    color: var(--primary);
}

.dropdown-content {
    max-height: 320px;
    overflow-y: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: #f9fafb;
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 24px;
}

.dropdown-item i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    color: #6b7280;
    transition: all 0.2s ease;
}

.dropdown-item:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

/* 增强的下拉项悬停效果 */
.dropdown-item {
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: left 0.4s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-divider {
    height: 1px;
    background-color: #f3f4f6;
    margin: 8px 0;
}

.empty-state {
    padding: 31px 20px;
    text-align: center;
    color: #9ca3af;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.empty-state:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
    color: #9ca3af;
}

/* 增强的移动端菜单按钮效果 */
.nav-btn-mobile {
    background-color: transparent;
    border: none;
    color: #6b7280;
    font-size: 18px;
    padding: 10px;
    margin-left: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn-mobile::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.nav-btn-mobile:hover::before {
    width: 40px;
    height: 40px;
}

.nav-btn-mobile:hover {
    background-color: #f9fafb;
    color: var(--primary);
    transform: rotate(90deg);
}

/* 导航按钮激活状态 */
.nav-btn.active {
    /* background-color: var(--primary-light); */
    border-color: var(--primary);
    color: var(--primary);
    /* box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2); */
}

.nav-btn.active i {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* 导航按钮激活状态 - 用户按钮 */
.nav-btn-user.active {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
}

.nav-btn-user.active .user-avatar {
    transform: scale(1.05);
}

.nav-btn-user.active .fa-chevron-down {
    transform: rotate(180deg);
    color: var(--secondary);
}

/* 导航按钮激活状态 - 历史按钮 */
.nav-btn-secondary.active {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.nav-btn-secondary.active i {
    color: var(--warning);
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
        height: 60px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .nav-btn span {
        display: none;
    }
    
    .nav-btn i {
        margin-right: 0;
        font-size: 16px;
    }
    
    .auth-buttons {
        gap: 6px;
    }
    
    .username {
        display: none;
    }
    
    .nav-btn-user .fa-chevron-down {
        display: none;
    }
    
    .dropdown-menu {
        width: 260px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .logo-area {
        margin-right: 16px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-right: 8px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .nav-right {
        gap: 4px;
    }
    
    .nav-btn {
        padding: 6px 8px;
    }
    
    .dropdown-menu {
        width: 240px;
    }
}

/* 简洁风格 - 无复杂动画 */

/* 导航栏和Logo - 简洁风格 */
.business-navbar {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 30;
}

/* 移除登录按钮悬停效果 - 只保留图标缩放 */}

/* 移除头像悬停效果 */

/* 历史订单样式 */
.history-section {
    margin-top: 2rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.history-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--neutral-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 图片预览容器样式 */
.image-preview-container {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-preview-container img {
    max-height: 128px; /* 对应 max-h-32 */
    width: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

/* 上传拖拽区域样式 */
.upload-dropzone {
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}
