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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    /* 整体色调：自上而下 深红色 → 白色 渐变 */
    background: linear-gradient(180deg, #b91c1c 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e5243b;
}

header h1 {
    font-size: 2.5em;
    color: #e5243b;
    margin-bottom: 10px;
    font-weight: 700;
}

.update-time {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

.back-link {
    display: inline-block;
    margin-top: 15px;
    color: #e5243b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: #b91c1c;
    text-decoration: underline;
}

.committees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.committee-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: white;
}

.committee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(229, 36, 59, 0.3);
    border-color: #e5243b;
}

.committee-card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.stats-preview {
    color: white;
    font-size: 0.9em;
}

.stats-preview p {
    margin: 5px 0;
}

.legend-bar {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.legend-label {
    font-size: 0.9em;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.legend-label.left {
    color: #2563eb; /* 蓝色 */
}

.legend-label.right {
    color: #dc2626; /* 红色 */
}

.legend-gradient {
    flex: 1;
    min-width: 0;
    height: 30px;
    border-radius: 15px;
    background: linear-gradient(
        to right,
        #3b82f6 0%,    /* 蓝色 */
        #10b981 25%,   /* 绿色 */
        #eab308 50%,   /* 黄色 */
        #f97316 75%,   /* 橙色 */
        #ef4444 100%   /* 红色 */
    );
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block;
}

/* 响应式设计：小屏幕时调整布局 */
@media (max-width: 768px) {
    .legend-bar {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .legend-gradient {
        width: 100%;
        height: 25px;
    }
    
    .legend-label {
        font-size: 0.85em;
    }
}

.notes-section {
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.notes-section h2 {
    color: #e5243b;
    margin-bottom: 20px;
    text-align: center;
}

.notes-content {
    color: #555;
    line-height: 1.8;
}

.notes-content p {
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

.notes-content ul {
    list-style-type: disc;
    padding-left: 30px;
    margin: 0;
}

.notes-content li {
    margin-bottom: 10px;
    color: #666;
}

.committee-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.committee-stats .stat-card {
    min-width: 300px;
    max-width: 400px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.total {
    background: linear-gradient(135deg, #e5243b 0%, #f87171 100%);
    color: white;
}

.stat-card.first {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-card.second {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-card.third {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.stat-card.capacity {
    background: linear-gradient(135deg, #b91c1c 0%, #e5243b 100%);
    color: white;
}

.stat-ratio {
    font-size: 0.8em;
    margin-top: 5px;
    opacity: 0.9;
}

.stat-card h3 {
    font-size: 1em;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0;
}

.chart-container {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.chart-container h2 {
    color: #e5243b;
    margin-bottom: 20px;
    text-align: center;
}

.committee-intro {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.committee-intro h2 {
    color: #e5243b;
    margin-bottom: 20px;
    text-align: center;
}

.intro-content {
    color: #555;
    line-height: 1.8;
    font-size: 1.05em;
    white-space: pre-wrap; /* 保留换行和段首Tab缩进 */
    tab-size: 4;
}

.intro-content p {
    margin: 0;
    text-align: justify;
}

.navigation {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
}

.navigation h3 {
    color: #e5243b;
    margin-bottom: 15px;
}

.committees-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.committee-link {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: #e5243b;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    border: 2px solid #e5243b;
}

.committee-link:hover {
    background: #e5243b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .committees-grid {
        grid-template-columns: 1fr;
    }

    .committee-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

