/* ==========================================
   爆发富论坛 - 数据中心页面样式
   ========================================== */

/* 数据头部 */
.data-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 48px 0;
    text-align: center;
}

.data-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.data-header p {
    font-size: 1rem;
    opacity: 0.9;
}

/* 数据容器 */
.data-container {
    padding: 32px 20px;
}

/* 筛选面板 */
.filter-panel {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-options button {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.filter-options button:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.filter-options button.active {
    background: var(--primary-color);
    color: #fff;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.btn-apply,
.btn-reset {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-apply {
    background: var(--primary-color);
    color: #fff;
}

.btn-apply:hover {
    background: var(--primary-dark);
}

.btn-reset {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-reset:hover {
    background: var(--border-color);
}

/* 数据摘要 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.summary-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

.summary-card:hover {
    transform: translateY(-4px);
}

.summary-card i {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.summary-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 图表区域 */
.chart-section {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.chart-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.chart-actions {
    display: flex;
    gap: 8px;
}

.btn-export {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-export:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.chart-container {
    position: relative;
    height: 400px;
}

/* 数据表格区域 */
.data-table-section {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.table-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 8px;
}

/* 表格 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.data-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

.data-table .positive {
    color: var(--secondary-color);
    font-weight: 500;
}

.data-table .negative {
    color: var(--danger-color);
    font-weight: 500;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.pagination a.active {
    background: var(--primary-color);
    color: #fff;
}

.pagination a.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-ellipsis {
    color: var(--text-muted);
}

/* 响应式 */
@media screen and (max-width: 1199px) {
    .data-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-container {
        height: 350px;
    }
}

@media screen and (max-width: 991px) {
    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-actions {
        justify-content: flex-end;
    }
}

@media screen and (max-width: 767px) {
    .data-header h1 {
        font-size: 1.5rem;
    }
    
    .data-summary {
        grid-template-columns: 1fr;
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .summary-card i {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .summary-value {
        font-size: 1.25rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .chart-header,
    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 10px 12px;
    }
}

@media screen and (max-width: 479px) {
    .data-header {
        padding: 32px 0;
    }
    
    .data-header h1 {
        font-size: 1.25rem;
    }
    
    .data-container {
        padding: 20px 16px;
    }
    
    .filter-panel {
        padding: 16px;
    }
    
    .filter-options button {
        padding: 4px 10px;
        font-size: 0.8125rem;
    }
    
    .chart-section,
    .data-table-section {
        padding: 16px;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .btn-export {
        padding: 4px 10px;
        font-size: 0.8125rem;
    }
}
