/* 全局样式 */
        :root {
            --primary-color: #3498db;
            --secondary-color: #2c3e50;
            --success-color: #2ecc71;
            --warning-color: #f39c12;
            --danger-color: #e74c3c;
            --light-color: #ecf0f1;
            --dark-color: #34495e;
            --sidebar-width: 250px;
            --header-height: 60px;
            --transition-speed: 0.3s;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }
        
        a {
            text-decoration: none;
            color: inherit;
        }
        
        /* 布局样式 */
        .app-container {
            display: flex;
            min-height: 100vh;
        }
        
        /* 侧边栏样式 */
        .sidebar {
            width: var(--sidebar-width);
            background: var(--secondary-color);
            color: white;
            height: 100vh;
            position: fixed;
            transition: all var(--transition-speed);
            z-index: 100;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        }
        
        .sidebar-header {
            padding: 20px;
            background: rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            height: var(--header-height);
        }

        .sidebar-header h2 {
            font-size: 17px;
            line-height: 1.2;
            white-space: nowrap;
            letter-spacing: -0.5px;
        }
        
        .sidebar-menu {
            padding: 20px 0;
            overflow-y: auto;
            height: calc(100vh - var(--header-height));
        }
        
        .menu-item {
            padding: 12px 20px;
            display: flex;
            align-items: center;
            transition: all 0.2s;
            border-left: 3px solid transparent;
        }
        
        .menu-item:hover {
            background: rgba(255, 255, 255, 0.1);
            border-left: 3px solid var(--primary-color);
        }
        
        .menu-item.active {
            background: rgba(255, 255, 255, 0.1);
            border-left: 3px solid var(--primary-color);
        }
        
        .menu-item i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }
        
        /* 主内容区样式 */
        .main-content {
            flex: 1;
            margin-left: var(--sidebar-width);
            transition: all var(--transition-speed);
        }
        
        /* 顶部导航栏样式 */
        .topbar {
            height: var(--header-height);
            background: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            position: sticky;
            top: 0;
            z-index: 90;
            margin-bottom: 20px;
        }
        
        .topbar-left {
            display: flex;
            align-items: center;
        }
        
        .toggle-sidebar {
            font-size: 20px;
            margin-right: 20px;
            cursor: pointer;
            color: var(--dark-color);
        }
        
        .topbar-right {
            display: flex;
            align-items: center;
        }
        
        .user-profile {
            display: flex;
            align-items: center;
            cursor: pointer;
            position: relative;
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
        }
        
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--danger-color);
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 内容区样式 */
        .content-area {
            /* padding: 20px; */
        }
        
        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .page-title {
            font-size: 24px;
            font-weight: 600;
            color: var(--secondary-color);
        }
        
        .breadcrumb {
            display: flex;
            list-style: none;
            font-size: 14px;
            color: #7f8c8d;
        }
        
        .breadcrumb li:after {
            content: '/';
            margin: 0 10px;
        }
        
        .breadcrumb li:last-child:after {
            content: '';
        }
        
        /* 卡片样式 */
        .card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
            overflow: hidden;
        }
        
        .card-header {
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .card-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--secondary-color);
        }
        
        .card-body {
            padding: 20px;
        }
        
        /* 统计卡片样式 */
        .stats-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .stat-card {
            background: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
        }
        
        .stat-card:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--primary-color);
        }
        
        .stat-card.primary:before {
            background: var(--primary-color);
        }
        
        .stat-card.success:before {
            background: var(--success-color);
        }
        
        .stat-card.warning:before {
            background: var(--warning-color);
        }
        
        .stat-card.danger:before {
            background: var(--danger-color);
        }
        
        .stat-title {
            font-size: 14px;
            color: #7f8c8d;
            margin-bottom: 5px;
        }
        
        .stat-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--secondary-color);
        }
        
        .stat-change {
            font-size: 12px;
            margin-top: 5px;
            display: flex;
            align-items: center;
        }
        
        .stat-change.up {
            color: var(--success-color);
        }
        
        .stat-change.down {
            color: var(--danger-color);
        }
        
        /* 表格样式 */
        .table-responsive {
            overflow-x: auto;
        }
        
        .data-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .data-table th {
            background: #f8f9fa;
            padding: 12px 15px;
            text-align: left;
            font-weight: 600;
            color: var(--dark-color);
            border-bottom: 2px solid #eee;
        }
        
        .data-table td {
            padding: 12px 15px;
            border-bottom: 1px solid #eee;
            vertical-align: middle;
        }
        
        .data-table tr:hover {
            background: #f8f9fa;
        }
        
        .data-table .status {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }
        
        .status-success {
            background: #d4edda;
            color: #155724;
        }
        
        .status-warning {
            background: #fff3cd;
            color: #856404;
        }
        
        .status-danger {
            background: #f8d7da;
            color: #721c24;
        }
        
        .status-info {
            background: #d1ecf1;
            color: #0c5460;
        }
        
        /* 按钮样式 */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 16px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }
        
        .btn i {
            margin-right: 5px;
        }
        
        .btn-sm {
            padding: 5px 10px;
            font-size: 12px;
        }
        
        .btn-primary {
            background: var(--primary-color);
            color: white;
            background: #3498db;
        }
        
        .btn-primary:hover {
            background: #2980b9;
        }
        
        .btn-success {
            background: var(--success-color);
            color: white;
        }
        
        .btn-success:hover {
            background: #27ae60;
        }
        
        .btn-danger {
            background: var(--danger-color);
            color: white;
        }
        
        .btn-danger:hover {
            background: #c0392b;
        }
        
        .btn-outline {
            background: transparent;
            border: 1px solid #ddd;
            color: var(--dark-color);
        }
        
        .btn-outline:hover {
            background: #f8f9fa;
        }
        
        /* 表单元素样式 */
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: var(--dark-color);
        }
        
        .form-control {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            transition: all 0.2s;
        }
        
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
            outline: none;
        }
        
        .search-box {
            display: flex;
        }
        
        .search-box input {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            border-right: none;
        }
        
        .search-box button {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }
        
        /* 标签页样式 */
        .tabs {
            display: flex;
            border-bottom: 1px solid #ddd;
            margin-bottom: 20px;
        }
        
        .tab {
            padding: 10px 20px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }
        
        .tab:hover {
            color: var(--primary-color);
        }
        
        .tab.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
            font-weight: 600;
        }
        
        /* 图表容器样式 */
        .chart-container {
            height: 300px;
            background: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
        }
        
        /* 分页样式 */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 20px;
        }
        
        .pagination button {
            margin: 0 5px;
        }
        
        .pagination-info {
            margin: 0 10px;
            color: #7f8c8d;
            font-size: 14px;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .sidebar {
                transform: translateX(-100%);
            }
            
            .sidebar.active {
                transform: translateX(0);
            }
            
            .main-content {
                margin-left: 0;
            }
            
            .stats-row {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .stats-row {
                grid-template-columns: 1fr;
            }
        }
        /* 主内容区 */
        .main-content {
         
            padding: 25px;
            transition: all 0.3s ease;
        }
        
        /* 页面标题区 */
        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--gray-light);
        }
        
        .page-title {
            font-size: 24px;
            font-weight: 600;
            color: var(--dark);
        }
        
        .breadcrumb {
            display: flex;
            font-size: 14px;
            color: var(--gray);
        }
        
        .breadcrumb-item:after {
            content: '/';
            margin: 0 10px;
        }
        
        .breadcrumb-item:last-child:after {
            content: '';
        }
        
        /* 操作工具栏 */
        .toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 15px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .btn-group {
            display: flex;
            gap: 10px;
        }
        
        
        
        /* 搜索框 */
        .search-box {
            position: relative;
            width: 300px;
        }
        
        .search-box input {
            width: 100%;
            padding: 8px 15px 8px 35px;
            border: 1px solid #000;;
            border-radius: 6px;
            font-size: 14px;
            transition: all 0.2s;
        }
        
        .search-box input:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
        }
        
        .search-box i {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }
        
        /* 筛选条件 */
        .filters {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .filter-item {
            position: relative;
        }
        
        .filter-item select {
            padding: 4px 30px 8px 15px;
            border: 1px solid var(--gray-light);
            border-radius: 6px;
            appearance: none;
            background-color: white;
            font-size: 14px;
            cursor: pointer;
        }
        
        .filter-item:after {
            content: '\f078';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            color: var(--gray);
            font-size: 12px;
        }
        
        /* 数据表格 */
        .data-table-wrapper {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            overflow: hidden;
        }
        
        .data-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .data-table thead {
            background: #f8f9fa;
        }
        
        .data-table th {
            padding: 15px;
            text-align: left;
            font-weight: 600;
            color: var(--dark);
            border-bottom: 2px solid var(--gray-light);
        }
        
        .data-table td {
            padding: 12px 15px;
            border-bottom: 1px solid var(--gray-light);
            vertical-align: middle;
        }
        
        .data-table tr:last-child td {
            border-bottom: none;
        }
        
        .data-table tr:hover {
            background: rgba(67, 97, 238, 0.03);
        }
        
        /* 状态标签 */
        .status-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .status-active {
            background: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .status-inactive {
            background: rgba(108, 117, 125, 0.1);
            color: var(--gray);
        }
        
        .status-warning {
            background: rgba(255, 193, 7, 0.1);
            color: #ffc107;
        }
        
        .status-danger {
            background: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        /* 分页 */
        .pagination {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            padding: 15px;
            background: white;
            border-top: 1px solid var(--gray-light);
        }
        
        .page-info {
            margin-right: 15px;
            font-size: 14px;
            color: var(--gray);
        }
        
        .page-link {
            padding: 6px 12px;
            margin: 0 3px;
            border: 1px solid var(--gray-light);
            border-radius: 4px;
            color: var(--dark);
            transition: all 0.2s;
        }
        
        .page-link:hover {
            background: var(--light);
        }
        
        .page-link.active {
            background: var(--primary);
            border-color: var(--primary);
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .sidebar {
                transform: translateX(-100%);
            }
            
            .sidebar.active {
                transform: translateX(0);
            }
            
            .main-content {
                margin-left: 0;
            }
            
            .toolbar {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            
            .search-box {
                width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            .filters {
                flex-wrap: wrap;
            }
            
            .data-table {
                display: block;
                overflow-x: auto;
                white-space: nowrap;
            }
        }
        /* 订单状态标签 */
        .status-badge {
            display: inline-block;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            text-align: center;
            min-width: 80px;
        }
        
        .status-pending {
            background: rgba(253, 126, 20, 0.1);
            color: #fd7e14;
        }
        
        .status-processing {
            background: rgba(13, 110, 253, 0.1);
            color: #0d6efd;
        }
        
        .status-shipped {
            background: rgba(111, 66, 193, 0.1);
            color: #6f42c1;
        }
        
        .status-delivered {
            background: rgba(25, 135, 84, 0.1);
            color: #198754;
        }
        
        .status-cancelled {
            background: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        .status-returned {
            background: rgba(108, 117, 125, 0.1);
            color: #6c757d;
        }
        
        /* 分页 */
        .pagination {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background: white;
            border-top: 1px solid var(--gray-light);
        }
        
        .page-info {
            font-size: 14px;
            color: var(--gray);
        }
        
        .page-links {
            display: flex;
            align-items: center;
        }
        
        .page-link {
            padding: 6px 12px;
            margin: 0 3px;
            border: 1px solid var(--gray-light);
            border-radius: 4px;
            color: var(--dark);
            transition: var(--transition);
        }
        
        .page-link:hover {
            background: var(--light);
        }
        
        .page-link.active {
            background: var(--primary);
            color: #000;
            border-color: var(--primary);
        }
        
        /* 订单详情卡片 */
        .order-detail-card {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .order-detail-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--gray-light);
        }
        
        .order-number {
            font-size: 18px;
            font-weight: 600;
        }
        
        .order-date {
            color: var(--gray);
            font-size: 14px;
        }
        
        .order-customer {
            margin-bottom: 15px;
        }
        
        .customer-name {
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .customer-contact {
            color: var(--gray);
            font-size: 14px;
        }
        
        .order-items {
            width: 100%;
            border-collapse: collapse;
            margin: 15px 0;
        }
        
        .order-items th {
            text-align: left;
            padding: 10px;
            background: #f8f9fa;
            border-bottom: 1px solid var(--gray-light);
        }
        
        .order-items td {
            padding: 12px 10px;
            border-bottom: 1px solid var(--gray-light);
        }
        
        .order-items tr:last-child td {
            border-bottom: none;
        }
        
        .order-summary {
            display: flex;
            justify-content: flex-end;
            margin-top: 15px;
        }
        
        .summary-table {
            width: 300px;
            border-collapse: collapse;
        }
        
        .summary-table td {
            padding: 8px 10px;
            border-bottom: 1px solid var(--gray-light);
        }
        
        .summary-table tr:last-child td {
            border-bottom: none;
            font-weight: 600;
            font-size: 16px;
        }
        
         /* 报表筛选区 */
        .report-filters {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding: 20px;
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
        }
        
        .filter-group {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .filter-item {
            position: relative;
                width: 300px;
        }
        
        .filter-label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            color: var(--gray);
            font-weight: 500;
            float: left
        }
        
        .filter-select {
            padding: 10px 35px 10px 15px;
            border: 1px solid var(--gray-light);
            border-radius: 6px;
            appearance: none;
            background-color: white;
            font-size: 14px;
            cursor: pointer;
            min-width: 180px;
            transition: var(--transition);
            float: left
        }
        
        .filter-select:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
        }
        
        .filter-item:after {
            content: '\f078';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 12px;
            transform: translateY(-50%);
            pointer-events: none;
            color: var(--gray);
            font-size: 12px;
        }
        
        .date-range-picker {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .date-input {
            padding: 10px 15px;
            border: 1px solid var(--gray-light);
            border-radius: 6px;
            font-size: 14px;
        }
        
        /* 报表卡片 */
        .report-card {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 25px;
            margin-bottom: 30px;
        }
        
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .card-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--dark);
        }
        
        .card-actions {
            display: flex;
            gap: 10px;
        }
        
        /* 图表容器 */
        .chart-container {
            height: 400px;
            margin-bottom: 20px;
            position: relative;
        }
        
        .chart-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            background: #f8f9fa;
            border-radius: 6px;
            color: var(--gray);
            font-size: 16px;
        }
        
        /* 指标卡片 */
        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .metric-card {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 20px;
            transition: var(--transition);
        }
        
        .metric-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }
        
        .metric-title {
            font-size: 14px;
            color: var(--gray);
            margin-bottom: 10px;
        }
        
        .metric-value {
            font-size: 28px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 5px;
        }
        
        .metric-change {
            display: flex;
            align-items: center;
            font-size: 13px;
        }
        
        .change-up {
            color: #28a745;
        }
        
        .change-down {
            color: #dc3545;
        }
        
        /* 表格报表 */
        .table-report {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }
        
        .table-report th {
            padding: 15px;
            text-align: left;
            background: #f8f9fa;
            font-weight: 600;
            color: var(--dark);
        }
        
        .table-report td {
            padding: 12px 15px;
            border-bottom: 1px solid var(--gray-light);
        }
        
        .table-report tr:last-child td {
            border-bottom: none;
        }
        
        .table-report tr:hover {
            background: rgba(67, 97, 238, 0.03);
        }
        
        /* 分页 */
        .pagination {
            display: flex;
            justify-content: flex-end;
            margin-top: 20px;
        }
        
        .page-btn {
            padding: 8px 12px;
            margin: 0 5px;
            border: 1px solid var(--gray-light);
            border-radius: 4px;
            background: white;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .page-btn:hover {
            background: var(--light);
        }
        
        .page-btn.active {
            background: var(--primary);
            border-color: var(--primary);
        }



























        .chart-container {
            width: 100%;
            margin: 30px auto;
            padding: 20px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }
        
        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .chart-title {
            font-size: 20px;
            font-weight: 600;
            color: #2c3e50;
        }
         .chart-actions {
            display: flex;
            gap: 10px;
        }
        
        select {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: white;
            font-size: 14px;
        }
/*         
        canvas {
            width: 100% !important;
            height: 400px !important;
        } */
        
        .chart-footer {
            margin-top: 15px;
            font-size: 13px;
            color: #7f8c8d;
            text-align: right;
        }



