/**
 * 📊 仪表盘专用样式：统计数据网格与可视化图表
 */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.premium-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-card-inner {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.stat-card-icon {
    font-size: 2.5rem;
    position: absolute;
    right: 20px;
    top: 20px;
    opacity: 0.1;
    transition: all var(--transition-base);
}

.premium-card:hover .stat-card-icon {
    opacity: 0.2;
    transform: scale(1.1) rotate(-5deg);
}

.stat-card-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-card-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
}

/* 渐变配色体系 */
.accent-blue { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.accent-green { background: linear-gradient(90deg, #10b981, #34d399); }
.accent-cyan { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.accent-orange { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* 极简趋势表格 */
.minimalistic-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.minimalistic-table th {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 0 15px 10px;
}

.minimalistic-table td {
    background: #fdfdfd;
    padding: 15px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.minimalistic-table td:first-child {
    border-left: 1px solid var(--border-light);
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.minimalistic-table td:last-child {
    border-right: 1px solid var(--border-light);
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

/* --- 图表加载器容器 --- */
.chart-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: var(--radius-lg);
    transition: opacity 0.3s ease;
}

#trendChart {
    transition: filter 0.3s ease;
}

.loading #trendChart {
    filter: blur(3px);
}
