/* 页面基础 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #f4f7f9;
}

h1 { text-align: center; color: #2c3e50; margin-bottom: 10px; }

/* 面板通用 */
.controls-panel {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.data-mgmt {
    background: #edf2f7 !important;
    border: 2px dashed #cbd5e0;
}

.input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.input-row input {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#addName { width: 80px; }
.input-row input[type="number"] { width: 50px; }

/* 按钮样式 */
.btn-add { background: #2ecc71; color: white; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; }
.btn-del { background: #e74c3c; color: white; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; }

/* 联动样式 */
.student-selectors { display: flex; align-items: center; gap: 15px; }

select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #3498db;
    background: white;
    cursor: pointer;
}

#compareSelect.active-compare {
    border-color: #e74c3c;
    color: #c0392b;
    font-weight: bold;
}

/* 分数盒子 */
.score-display-area { display: flex; gap: 15px; align-items: stretch; }

.total-score-box {
    text-align: center;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 110px;
}

.total-score-label { font-size: 20px; font-weight: 800; letter-spacing: 1px; } /* ELITE等字体的大小、粗细、字母间距 */
.total-score-value { font-size: 28px; font-weight: bold; } /* 总分数字的大小、粗细 */
.compare-score-box { background: #e74c3c !important; color: white !important; }

/* 图表区 */
.chart-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 800px;
    position: relative;
}

.average-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #228B22;
    color: #228B22;
    font-weight: 600;
}

.vs-badge { background: #34495e; color: white; padding: 2px 10px; border-radius: 6px; font-size: 16px; margin: 0 10px; }