/* BAG Page Styles */
.bag-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bag-header {
    text-align: center;
    margin-bottom: 30px;
}

.bag-header h1 {
    color: #7F4069;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.bag-header p {
    color: #666;
    font-size: 1.1em;
}

/* 图表区域 */
.chart-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-section h2 {
    color: #1e33a6;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.chart-container {
    width: 100%;
    height: 500px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* 表格区域 */
.table-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-section h2 {
    color: #1e33a6;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

/* Summary区域 */
.summary-section {
    background: #e8f4f8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #1e33a6;
}

.summary-section h2 {
    color: #1e33a6;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.summary-content {
    line-height: 1.6;
    color: #333;
}

.summary-content p {
    margin-bottom: 10px;
}

.summary-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.summary-content li {
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bag-page-container {
        padding: 10px;
    }
    
    .bag-header h1 {
        font-size: 2em;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .data-table {
        font-size: 0.9em;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1e33a6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态 */
.error-message {
    background: #ffe6e6;
    border: 1px solid #ff9999;
    border-radius: 4px;
    padding: 15px;
    color: #cc0000;
    text-align: center;
    margin: 20px 0;
} 