/**
 * 学生成绩分析系统 - 成绩变化分析卡片样式
 */

/* 成绩变化分析卡片样式 */
#progressCard {
    background-color: var(--card-bg);
}

#progressCard .card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card-interaction-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(64, 106, 255, 0.08);
    border-left: 3px solid #406aff;
    border-radius: 6px;
    font-size: 13px;
    color: #2f3b52;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-interaction-hint .hint-icon {
    font-size: 16px;
    color: #406aff;
}

.button-inline-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #5a6478;
    padding: 4px 8px;
    background: rgba(64, 106, 255, 0.08);
    border-radius: 999px;
}

.progress-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* 响应式布局 */
    gap: 20px;
    padding: 15px;
}

.progress-column h5 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

.progress-column h5 i {
    margin-right: 8px;
}

.student-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.student-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color-light);
    font-size: 0.95em;
}

.student-list li:last-child {
    border-bottom: none;
}

.student-name {
    font-weight: 500;
    color: var(--text-primary);
    flex-basis: 40%;
    /* 给名字更多空间 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 6px;
    border-radius: 3px;
}

/* 进步学生名字背景样式 */
.progress-column:first-child .student-list li .student-name {
    background-color: rgba(76, 175, 80, 0.15);
    /* 浅绿色背景 */
    border-left: 3px solid var(--success-color);
}

/* 退步学生名字背景样式 */
.progress-column:last-child .student-list li .student-name {
    background-color: rgba(244, 67, 54, 0.15);
    /* 浅红色背景 */
    border-left: 3px solid var(--danger-color);
}

.score-change {
    font-weight: bold;
    flex-basis: 20%;
    text-align: right;
}

.score-increase {
    color: var(--success-color);
}

.score-decrease {
    color: var(--danger-color);
}

.score-detail {
    font-size: 0.85em;
    color: var(--text-secondary);
    flex-basis: 35%;
    text-align: right;
    white-space: nowrap;
}

/* Font Awesome 图标颜色 */
.icon-success {
    color: var(--success-color);
}

.icon-danger {
    color: var(--danger-color);
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}