/* 数据分析页面样式 */

/* 继承主样式的基础上的补充样式 */
.header {
    background-color: #0056b3;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 24px;
    color: white;
    border: none;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.stat-card .value {
    font-size: 32px;
    font-weight: bold;
    color: #0056b3;
}

.stat-card .unit {
    font-size: 14px;
    color: #999;
}

.chart-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.chart-section h2 {
    margin-top: 0;
    color: #0056b3;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

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

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

.update-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 20px 0;
}

.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

.success {
    color: #28a745;
}

#scriptUploadInput {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-summary {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}