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

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    color: #f8fafc;
}

/* 顶部导航栏 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-left h1 {
    font-size: 24px;
    font-weight: 600;
    color: #f8fafc;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon {
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background: rgba(51, 65, 85, 0.6);
    transition: background 0.3s ease;
}

.icon:hover {
    background: rgba(100, 116, 139, 0.8);
}

.user-info {
    font-size: 14px;
    color: #e2e8f0;
}

/* 主要内容区域 */
.main-content {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 关键指标卡片 */
.metrics-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 14px;
    color: rgba(203, 213, 225, 0.8);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 4px;
}

.metric-change {
    font-size: 12px;
    color: #10b981;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: #ef4444;
}

/* 图表区域 */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.chart-header {
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #f8fafc;
}

.chart {
    width: 100%;
    height: 300px;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

/* 确保图表容器在不同屏幕尺寸下都有合适的高度 */
@media (max-width: 768px) {
    .chart {
        height: 250px;
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .chart {
        height: 200px;
        min-height: 200px;
    }
}

/* 订单处理区域 */
.orders-section {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

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

.orders-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #f8fafc;
}

.orders-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-btn {
    background: rgba(71, 85, 105, 0.6);
    border: none;
    color: #f8fafc;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.filter-btn:hover {
    background: rgba(100, 116, 139, 0.8);
}

.search-text {
    font-size: 14px;
    color: rgba(203, 213, 225, 0.7);
}

.orders-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.order-item {
    background: rgba(51, 65, 85, 0.6);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(100, 116, 139, 0.3);
    transition: background 0.3s ease;
}

.order-item:hover {
    background: rgba(71, 85, 105, 0.8);
}

.order-info {
    margin-bottom: 15px;
}

.order-id {
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 5px;
}

.order-date {
    font-size: 12px;
    color: rgba(148, 163, 184, 0.8);
    margin-bottom: 8px;
}

.order-customer {
    font-size: 14px;
    color: rgba(203, 213, 225, 0.9);
    margin-bottom: 5px;
}

.order-amount {
    font-size: 16px;
    font-weight: 600;
    color: #10b981;
}

.order-status {
    margin-bottom: 15px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
}

.status-badge.processing {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
}

.status-badge.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.status-badge.cancelled {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
}

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

.action-btn {
    background: rgba(71, 85, 105, 0.6);
    border: none;
    color: #f8fafc;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.action-btn:hover {
    background: rgba(100, 116, 139, 0.8);
}

.more-actions {
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.more-actions:hover {
    background: rgba(71, 85, 105, 0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .metrics-section {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .orders-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .orders-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-left h1 {
        font-size: 20px;
    }
    
    .metric-card {
        padding: 20px;
    }
    
    .metric-value {
        font-size: 24px;
    }
    
    .chart {
        height: 250px;
    }
}