* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            scroll-behavior: smooth;
        }

        /* 屏幕阅读器专用类 */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        body {
            background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
            min-height: 100vh;
            padding: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

/* 响应式断点 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        max-width: 1100px;
    }
}

@media (max-width: 992px) {
    .container {
        width: 100%;
        max-width: 900px;
    }
    
    .header-title {
        font-size: 28px;
    }
    
    .stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        width: 48%;
        margin-bottom: 15px;
    }
    
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        margin-top: 0;
    }
    
    .table-container {
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
        margin-top: 20px;
    }
    
    .header-section {
        padding: 20px;
    }
    
    .header-title {
        font-size: 24px;
    }
    
    .header-subtitle {
        font-size: 14px;
    }
    
    .search-section {
        padding: 20px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input-container {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
        margin: 10px 0;
    }
    
    .status-tags {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .status-tag {
        margin: 5px;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .order-section {
        padding: 20px;
    }
    
    .table-container {
        overflow-x: auto;
        border-radius: 12px;
    }
    
    .order-table {
        font-size: 14px;
        min-width: 700px;
    }
    
    .order-table th,
    .order-table td {
        padding: 10px;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }
    
    /* 隐藏标题装饰元素 */
    .header-section::before,
    .header-section::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-cards {
        flex-direction: column;
    }

    .charts-container {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .time-range-filter {
        justify-content: center;
    }

    .custom-date-range {
        flex-direction: column;
        align-items: stretch;
    }

    .chart-wrapper {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
        margin-top: 15px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .header-subtitle {
        font-size: 13px;
    }
    
    .search-input-container input {
        font-size: 16px;
        padding: 12px 15px 12px 55px;
    }
    
    .search-btn {
        font-size: 16px;
        padding: 12px 25px;
    }
    
    .order-table {
        font-size: 13px;
        min-width: 600px;
    }
    
    .order-table th,
    .order-table td {
        padding: 8px;
    }
    
    .status-tags {
        padding: 0 10px;
    }
    
    .btn-view {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .stats {
        padding: 0;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    /* 统计模块移动端适配 */
    .stats-module {
        padding: 16px;
    }
    
    .stats-filter h2 {
        font-size: 18px;
    }
    
    .time-range-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card .value {
        font-size: 28px;
    }
    
    .chart-section {
        padding: 16px;
    }
    
    .chart-wrapper {
        height: 200px;
    }
    

}

        .container {
            max-width: 1200px;
            width: 100%;
            background: #ffffff;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
            overflow: hidden;
            backdrop-filter: blur(10px);
            position: relative;
        }

        /* 标题区域 */
        .header-section {
            background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
            color: white;
            padding: 36px 24px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(91, 134, 229, 0.3);
            position: relative;
            overflow: hidden;
        }
        .header-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            animation: float 6s ease-in-out infinite;
        }
        .header-section::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -10%;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 50%;
            animation: float 8s ease-in-out infinite reverse;
        }
        .header-content {
            position: relative;
            z-index: 1;
        }
        .header-section h1 {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 12px;
            letter-spacing: 1.5px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .header-section p {
            font-size: 16px;
            opacity: 0.95;
            font-weight: 300;
        }
        
        @keyframes float {
            0%, 100% {
                transform: translateY(0px) rotate(0deg);
            }
            50% {
                transform: translateY(-20px) rotate(5deg);
            }
        }

        /* 查询区域 */
        .search-section {
            padding: 32px 24px;
            border-bottom: 1px solid #f5f5f5;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
            text-align: center;
        }
        .search-section h2 {
            font-size: 18px;
            color: #333;
            margin-bottom: 20px;
            font-weight: 600;
        }
        .search-section p {
            color: #666;
            font-size: 14px;
            margin-bottom: 20px;
        }
        .search-box {
            display: flex;
            gap: 16px;
            align-items: center;
            flex-wrap: wrap;
            max-width: 650px;
            margin: 0 auto;
        }
        .search-box .search-input-container {
            flex: 1;
            min-width: 250px;
            position: relative;
        }
        .search-input {
            width: 100%;
            padding: 16px 20px 16px 55px;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 400;
            outline: none;
            transition: all 0.3s ease;
            background: white;
        }
        .search-input-container::before {
            content: '🔍';
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            color: #9ca3af;
            z-index: 1;
        }
        .search-input:focus {
            border-color: #5b86e5;
            box-shadow: 0 0 0 4px rgba(91, 134, 229, 0.15);
            transform: translateY(-1px);
            background: white;
        }
        .search-btn {
            padding: 16px 36px;
            background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(91, 134, 229, 0.2);
            position: relative;
            overflow: hidden;
        }
        .search-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;
        }
        .search-btn:hover::before {
            left: 100%;
        }
        .search-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(91, 134, 229, 0.4);
        }
        .search-btn:active {
            transform: translateY(0);
            box-shadow: 0 5px 15px rgba(91, 134, 229, 0.3);
        }
        .search-btn:disabled {
            background: #a0cfff;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            opacity: 0.6;
            border: 2px solid transparent;
        }

        /* 统计区域 */
        .stats-section {
            padding: 24px;
            display: flex;
            gap: 24px;
            flex-wrap: wrap;
            background: #f8faff;
            border-bottom: 1px solid #f0f4f9;
        }
        .stat-card {
            flex: 1;
            min-width: 200px;
            background: #ffffff;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.06);
            transition: all 0.3s ease;
            border-top: 4px solid #5b86e5;
        }
        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }
        .stat-card label {
            display: block;
            font-size: 14px;
            color: #64748b;
            margin-bottom: 10px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .stat-card .value {
            font-size: 32px;
            color: #3b82f6;
            font-weight: 700;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        .stat-card .value::after {
            content: '单';
            font-size: 14px;
            font-weight: 500;
            color: #64748b;
            margin-left: 4px;
        }

        /* 状态标签区域 */
        .status-tags {
            padding: 16px 24px;
            font-size: 13px;
            color: #475569;
            border-bottom: 1px solid #f0f4f9;
            background: #ffffff;
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
        }
        .status-tag-item {
            display: inline-flex;
            align-items: center;
            padding: 8px 16px;
            border-radius: 25px;
            font-size: 13px;
            font-weight: 600;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid transparent;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            background: #f8fafc;
        }
        .status-tag-item:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            background: #f0f4f9;
            border-color: #e2e8f0;
        }
        .status-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin-right: 6px;
            vertical-align: middle;
        }
        .dot-all { background: #64748b; }
        .dot-queue { background: #ffc107; }
        .dot-finish { background: #10b981; }
        .dot-error { background: #ef4444; }
        .dot-processing { background: #3b82f6; }
        .dot-unknown { background: #94a3b8; }

        /* 状态标签激活样式 */
        .status-tag-item.active {
            background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
            color: white;
            border-color: #3b82f6;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
            transform: translateY(-1px);
        }

        .status-tag-item.active:hover {
            background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
        }

        /* 类型标签区域 */
        .type-tags {
            padding: 16px 24px;
            font-size: 13px;
            color: #475569;
            border-bottom: 1px solid #f0f4f9;
            background: #ffffff;
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
        }
        .type-tag-item {
            display: inline-flex;
            align-items: center;
            padding: 8px 16px;
            border-radius: 25px;
            font-size: 13px;
            font-weight: 600;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid transparent;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            background: #f8fafc;
        }
        .type-tag-item:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            background: #f0f4f9;
            border-color: #e2e8f0;
        }
        .type-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin-right: 6px;
            vertical-align: middle;
        }
        .dot-all { background: #64748b; }
        .dot-card { background: #f59e0b; }
        .dot-visitor { background: #8b5cf6; }
        .dot-like { background: #10b981; }
        .dot-hot { background: #ef4444; }

        /* 类型标签激活样式 */
        .type-tag-item.active {
            background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
            color: white;
            border-color: #3b82f6;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
            transform: translateY(-1px);
        }

        .type-tag-item.active:hover {
            background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
        }

        /* 订单列表区域 */
        .order-section {
            padding: 24px;
            background: #ffffff;
        }

        /* 订单过滤区域 */
        .order-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            align-items: center;
            margin-bottom: 24px;
            padding: 20px;
            background: #f8fafc;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
        }

        .filter-group {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: center;
        }

        .filter-input {
            padding: 10px 14px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
            outline: none;
            transition: all 0.3s ease;
            min-width: 150px;
            background: white;
        }

        .filter-input:focus {
            border-color: #5b86e5;
            box-shadow: 0 0 0 3px rgba(91, 134, 229, 0.1);
        }

        .filter-btn {
            padding: 10px 18px;
            background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .filter-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(91, 134, 229, 0.3);
        }

        .filter-btn.clear-btn {
            background: #64748b;
        }

        .filter-btn.clear-btn:hover {
            background: #475569;
        }

        .export-group {
            display: flex;
            gap: 10px;
            margin-left: auto;
        }

        .export-btn {
            padding: 10px 18px;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .export-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }

        /* 日期分隔符 */
        .date-separator {
            color: #64748b;
            font-weight: 600;
            margin: 0 4px;
        }

        /* 排序功能 */
        .sortable {
            cursor: pointer;
            position: relative;
        }

        .sortable:hover {
            background: linear-gradient(135deg, #4776e6 0%, #26a0da 100%);
        }

        .sort-icon {
            font-size: 12px;
            margin-left: 4px;
            opacity: 0.6;
            transition: opacity 0.2s ease;
        }

        .sortable:hover .sort-icon {
            opacity: 1;
        }

        .sort-asc .sort-icon::before {
            content: "↑";
            font-weight: bold;
        }

        .sort-desc .sort-icon::before {
            content: "↓";
            font-weight: bold;
        }

        /* 分页控件 */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 32px;
            padding: 20px;
            background: #f8fafc;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
        }

        .page-btn {
            padding: 8px 14px;
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            color: #374151;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 44px;
            display: inline-flex;
            justify-content: center;
            align-items: center;
        }

        .page-btn:hover:not(:disabled) {
            background: #5b86e5;
            color: white;
            border-color: #5b86e5;
            transform: translateY(-1px);
        }

        .page-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .page-info {
            font-size: 14px;
            color: #64748b;
            font-weight: 500;
        }

        .page-size {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: #64748b;
        }

        #pageSizeSelect {
            padding: 6px 10px;
            border: 2px solid #e2e8f0;
            border-radius: 6px;
            font-size: 14px;
            background: white;
            cursor: pointer;
        }

        /* 订单状态视觉指示器 */
        .status-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 16px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* 付款状态 */
        .payment-status.paid {
            background: #d1fae5;
            color: #065f46;
            border: 1px solid #a7f3d0;
        }

        .payment-status.unpaid {
            background: #fee2e2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }

        .payment-status.pending {
            background: #fef3c7;
            color: #92400e;
            border: 1px solid #fde68a;
        }

        /* 发货状态 */
        .shipping-status.completed {
            background: #d1fae5;
            color: #065f46;
            border: 1px solid #a7f3d0;
        }

        .shipping-status.processing {
            background: #dbeafe;
            color: #1e40af;
            border: 1px solid #bfdbfe;
        }

        .shipping-status.pending {
            background: #fef3c7;
            color: #92400e;
            border: 1px solid #fde68a;
        }

        .shipping-status.error {
            background: #fee2e2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }

        /* 订单统计文本 */
        #orderCount {
            font-weight: 600;
            color: #374151;
        }
        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            color: #64748b;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid #f1f5f9;
            font-weight: 500;
        }

        .order-header-actions {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .stats-toggle-btn {
            padding: 8px 16px;
            background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
            box-shadow: 0 2px 8px rgba(91, 134, 229, 0.2);
        }

        .stats-toggle-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(91, 134, 229, 0.3);
        }

        .stats-toggle-btn.active {
            background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
        }

        .toggle-icon {
            font-size: 16px;
        }
        .order-header .mobile-tip {
            color: #5b86e5;
            font-weight: 500;
        }

        /* 表格容器 */
        .table-wrapper {
            width: 100%;
            overflow-x: auto;
            scrollbar-width: thin;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            background: white;
        }
        .order-table {
            width: 100%;
            min-width: 800px;
            border-collapse: collapse;
            font-size: 14px;
            background: white;
        }
        .order-table th {
            background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
            padding: 16px 20px;
            text-align: left;
            color: white;
            font-weight: 600;
            border-bottom: none;
            position: sticky;
            top: 0;
            z-index: 10;
            white-space: nowrap;
            letter-spacing: 0.5px;
        }
        .order-table td {
            padding: 18px 20px;
            color: #1e293b;
            border-bottom: 1px solid #f5f5f9;
            transition: all 0.3s ease;
            white-space: nowrap;
            vertical-align: middle;
        }
        /* 数量详情列样式 */
        .order-table td:nth-child(5) {
            white-space: normal;
            line-height: 1.6;
        }
        /* 订单详情模态框中的数量详情样式 */
        .modal-body .detail-item .detail-value div {
            margin-bottom: 4px;
        }
        .modal-body .detail-item .detail-value div:last-child {
            margin-bottom: 0;
            font-weight: 500;
            color: #5b86e5;
        }
        .order-table tr {
            transition: all 0.3s ease;
            position: relative;
        }
        .order-table tr:hover td {
            background: #f0f9ff;
            box-shadow: inset 3px 0 0 #5b86e5;
            transition: all 0.2s ease;
        }
        .order-table tr:nth-child(even) td {
            background: #f8fafc;
        }
        .order-table tr:nth-child(even):hover td {
            background: #e0f2fe;
            box-shadow: inset 3px 0 0 #5b86e5;
        }
        .order-table tr:hover {
            transform: translateX(4px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }
        .order-table .order-id {
            font-weight: 600;
            color: #5b86e5;
            cursor: pointer;
            text-decoration: none;
            position: relative;
            padding-bottom: 2px;
        }
        .order-table .order-id::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #5b86e5 0%, #36d1dc 100%);
            transition: width 0.3s ease;
        }
        .order-table .order-id:hover::after {
            width: 100%;
        }
        .order-empty {
            padding: 60px 0;
            text-align: center;
            color: #94a3b8;
            font-size: 14px;
            background: #f8fafc;
        }
        .order-empty p {
            margin-bottom: 6px;
        }
        .order-empty .empty-tip {
            font-size: 12px;
            color: #cbd5e1;
        }

        /* 操作按钮样式 */
        .operate-btn {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 13px;
            cursor: pointer;
            margin-right: 8px;
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
            border: 1px solid transparent;
        }
        .btn-view {
            background: #e0f2fe;
            color: #3b82f6;
            border: 1px solid #dbeafe;
        }
        .btn-view:hover {
            background: #bae6fd;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
        }
        .btn-repair {
            background: #fee2e2;
            color: #ef4444;
            border: 1px solid #fecaca;
        }
        .btn-repair:hover {
            background: #fecaca;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
        }
        .btn-repair:disabled {
            background: #f8fafc;
            color: #94a3b8;
            border: 1px solid #e2e8f0;
            cursor: not-allowed;
        }
        .btn-disabled {
            background: #f8fafc;
            color: #94a3b8;
            border: 1px solid #e2e8f0;
            cursor: not-allowed;
        }

        /* 详情弹窗 */
        .detail-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.6);
            z-index: 1000;
            animation: fadeIn 0.3s ease;
            backdrop-filter: blur(5px);
            display: none;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .modal-content {
            background: white;
            padding: 32px;
            border-radius: 16px;
            width: 90%;
            max-width: 650px;
            max-height: 85vh;
            overflow-y: auto;
            position: relative;
            animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
            border-top: 4px solid #5b86e5;
        }
        @keyframes slideIn {
            from { 
                opacity: 0;
                transform: translateY(30px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 2px solid #f5f5f5;
        }
        .modal-title {
            font-size: 24px;
            font-weight: 700;
            color: #333;
            background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .modal-close {
            background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
            color: white;
            border: none;
            font-size: 20px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .modal-close:hover {
            transform: rotate(90deg);
            box-shadow: 0 4px 15px rgba(91, 134, 229, 0.4);
        }
        .modal-body {
            font-size: 13px;
        }
        .detail-item {
            display: flex;
            padding: 10px 0;
            border-bottom: 1px solid #f8fafc;
        }
        .detail-item:last-child {
            border-bottom: none;
        }
        .detail-label {
            width: 100px;
            color: #64748b;
            font-weight: 500;
        }
        .detail-value {
            flex: 1;
            color: #1e293b;
        }
        .error-msg {
            color: #ef4444;
            font-weight: 500;
            padding: 2px 6px;
            background: #fef2f2;
            border-radius: 3px;
        }

        /* 加载和错误区域 */
        .loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
            background: #f0f9ff;
            border-radius: 12px;
            margin: 20px 0;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
        }
        
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #e0f2fe;
            border-top: 3px solid #5b86e5;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .error-box {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            color: #dc2626;
            padding: 16px 20px;
            border-radius: 12px;
            margin: 20px 0;
            border-left: 4px solid #ef4444;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }
        
        .loading, .error-box {
            text-align: center;
            display: none;
        }
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #f1f5f9;
            border-top: 4px solid #5b86e5;
            border-right: 4px solid #36d1dc;
            border-radius: 50%;
            margin: 0 auto 16px;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .loading p {
            color: #5b86e5;
            font-size: 15px;
            font-weight: 600;
        }
        
        /* 统计模块 */
        .stats-module {
            padding: 24px;
            background: #ffffff;
            border-bottom: 1px solid #f0f4f9;
        }
        
        /* 统计模块头部按钮容器 */
        .stats-header-actions {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 16px;
            padding: 0 8px;
            width: 100%;
            box-sizing: border-box;
        }
        
        /* 确保按钮在新位置仍保持良好样式 */
        .stats-header-actions .stats-toggle-btn {
            margin: 0;
        }
        
        /* 订单头部操作按钮容器 */
        .order-header-actions {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .stats-filter {
            margin-bottom: 24px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f5f5f5;
        }

        .stats-filter h2 {
            font-size: 22px;
            font-weight: 600;
            color: #333;
            margin-bottom: 16px;
            background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .filter-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
        }

        .time-range-filter {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .time-range-btn {
            padding: 8px 16px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            background: #ffffff;
            color: #64748b;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .time-range-btn:hover {
            border-color: #5b86e5;
            color: #5b86e5;
            transform: translateY(-1px);
        }

        .time-range-btn.active {
            background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
            color: white;
            border-color: #5b86e5;
            box-shadow: 0 4px 15px rgba(91, 134, 229, 0.3);
        }

        .refresh-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
            color: white;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(91, 134, 229, 0.2);
        }

        .refresh-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(91, 134, 229, 0.3);
        }

        .refresh-btn:active {
            transform: translateY(0);
        }

        .custom-date-range {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 16px;
            padding: 16px;
            background: #f8fafc;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
        }

        .date-input {
            padding: 8px 12px;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            font-size: 14px;
            color: #475569;
            background: white;
            transition: border-color 0.3s ease;
        }

        .date-input:focus {
            outline: none;
            border-color: #5b86e5;
            box-shadow: 0 0 0 3px rgba(91, 134, 229, 0.1);
        }

        .date-separator {
            color: #64748b;
            font-size: 16px;
        }

        .apply-date-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
            color: white;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .apply-date-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(91, 134, 229, 0.3);
        }

        .stats-cards {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            margin-bottom: 32px;
        }

        .stat-card {
            flex: 1;
            min-width: 200px;
            background: #ffffff;
            padding: 24px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.06);
            transition: all 0.3s ease;
            border-top: 4px solid #5b86e5;
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }

        .stat-card label {
            display: block;
            font-size: 14px;
            color: #64748b;
            margin-bottom: 12px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stat-card .value {
            font-size: 36px;
            color: #5b86e5;
            font-weight: 700;
            line-height: 1.2;
        }

        

        .charts-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 24px;
        }

        .chart-section {
            background: #ffffff;
            padding: 24px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.06);
            border: 1px solid #f0f4f9;
        }

        .chart-section h3 {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin-bottom: 20px;
            text-align: center;
        }

        .chart-wrapper {
            height: 300px;
            position: relative;
        }

        /* 骨架屏加载动画 */
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
        }
        
        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        .error-box {
            display: none;
            padding: 20px;
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            color: #991b1b;
            border-radius: 12px;
            margin: 24px;
            text-align: center;
            border: 2px solid #fca5a5;
            font-weight: 500;
            box-shadow: 0 4px 15px rgba(252, 165, 165, 0.2);
            animation: shake 0.5s ease;
        }
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }
        .error-box p {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            font-weight: 500;
        }
        .error-box p::before {
            content: '⚠️';
            margin-right: 6px;
        }

        /* 补单加载提示 */
        .repair-loading {
            display: inline-block;
            width: 12px;
            height: 12px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #ef4444;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            vertical-align: middle;
            margin-right: 4px;
        }

        /* 响应式适配 */
        @media (max-width: 768px) {
            body {
                padding: 12px;
            }
            .container {
                border-radius: 8px;
            }
            .header-section {
                padding: 24px 16px;
            }
            .header-section h1 {
                font-size: 24px;
            }
            .search-box {
                flex-direction: column;
                align-items: stretch;
            }
            .search-section {
                padding: 24px 16px;
            }
            .stats-section {
                padding: 16px;
                gap: 12px;
            }
            .stat-card {
                min-width: 100%;
                margin-bottom: 12px;
                padding: 16px;
            }
            .stat-card .value {
                font-size: 28px;
            }
            .status-tags {
                padding: 12px 16px;
                gap: 12px;
            }
            .status-tag-item {
                margin-bottom: 8px;
                padding: 6px 12px;
                font-size: 12px;
            }
            .order-section {
                padding: 16px;
            }
            .order-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
                font-size: 12px;
            }
            .operate-btn {
                display: block;
                margin-bottom: 8px;
                text-align: center;
            }
            .loading, .error-box {
                padding: 30px 16px;
            }
            .modal-content {
                width: 95%;
                padding: 20px;
            }
        }