/* ==================== 班主任工作台扩展样式 ==================== */

/* 侧边栏副标题 */
.sidebar-subtitle {
    color: var(--sidebar-text-dim);
    font-size: 12px;
    margin-top: 4px;
}

.teacher-sidebar {
    background: var(--sidebar-gradient);
}

/* 表头按钮组 */
.header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 大弹窗 */
.modal-large {
    width: 720px;
    max-width: 92%;
}

/* 双列表单 */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* 必填星号 */
.required {
    color: var(--danger-color);
    margin-left: 2px;
}

/* 文本辅助类 */
.text-muted {
    color: var(--text-secondary);
    font-size: 13px;
}

/* 文本截断单元格 */
.ellipsis-cell {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* CSV 模板代码块 */
.csv-template {
    display: block;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    margin: 8px 0;
    word-break: break-all;
    white-space: pre-wrap;
}

.import-section {
    margin: 16px 0;
    padding: 12px;
    background: #fafafa;
    border-radius: 4px;
}

.import-target {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.import-target select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.import-preview {
    margin-top: 16px;
    padding: 12px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 4px;
}

.import-result {
    margin-top: 16px;
    padding: 12px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 4px;
}

.import-result.has-failed {
    background: #fffbe6;
    border-color: #ffe58f;
}

.error-list {
    margin-top: 8px;
    max-height: 160px;
    overflow-y: auto;
    background: #fff1f0;
    padding: 8px;
    border-radius: 4px;
}

.error-list li {
    color: var(--danger-color);
    font-size: 13px;
    list-style: none;
    padding: 2px 0;
}

/* 自定义字段列表 */
.custom-field-list {
    margin: 12px 0;
}

.custom-field-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 4px;
    margin-bottom: 6px;
}

/* ==================== 五维行为样式 ==================== */

/* 维度徽章 */
.dimension-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    font-weight: 500;
}

.dimension-badge.dim-de   { background: #f5222d; }
.dimension-badge.dim-zhi  { background: #1890ff; }
.dimension-badge.dim-ti   { background: #52c41a; }
.dimension-badge.dim-mei  { background: #722ed1; }
.dimension-badge.dim-lao  { background: #fa8c16; }

/* 五维总览卡片 */
.behavior-overview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .behavior-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dimension-card {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.dimension-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.dimension-card.active {
    border-color: var(--primary-color);
}

.dimension-icon {
    font-size: 32px;
}

.dimension-name {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.dimension-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.dimension-stat .stat-num {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
}

.dimension-detail {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 维度选择按钮 */
.dimension-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dimension-btn {
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.dimension-btn:hover {
    border-color: var(--primary-color);
}

.dimension-btn.active {
    color: white;
    border-color: transparent;
}

.dimension-btn.active.dim-de   { background: #f5222d; }
.dimension-btn.active.dim-zhi  { background: #1890ff; }
.dimension-btn.active.dim-ti   { background: #52c41a; }
.dimension-btn.active.dim-mei  { background: #722ed1; }
.dimension-btn.active.dim-lao  { background: #fa8c16; }

.dimension-emoji {
    font-size: 18px;
}

/* 类型选择 */
.type-selector {
    display: flex;
    gap: 8px;
}

.type-btn {
    flex: 1;
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.type-btn.reward.active {
    background: #52c41a;
    color: white;
    border-color: #52c41a;
}

.type-btn.punish.active {
    background: #ff4d4f;
    color: white;
    border-color: #ff4d4f;
}

/* 分值选择 */
.score-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.score-btn {
    padding: 6px 12px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    min-width: 50px;
    transition: all 0.2s;
}

.score-btn.active.positive {
    background: #52c41a;
    color: white;
    border-color: #52c41a;
}

.score-btn.active.negative {
    background: #ff4d4f;
    color: white;
    border-color: #ff4d4f;
}

/* 建议词 */
.suggestions {
    margin-top: 12px;
    padding: 12px;
    background: #e6f7ff;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.suggestion-chip {
    display: inline-block;
    padding: 4px 10px;
    background: white;
    border: 1px solid #91d5ff;
    border-radius: 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-chip:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 分数颜色 */
.score-positive {
    color: var(--success-color);
    font-weight: 500;
}

.score-negative {
    color: var(--danger-color);
    font-weight: 500;
}

/* ==================== 学生档案页样式 ==================== */

.profile-search {
    position: relative;
    background: white;
    padding: 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
}

.search-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

.search-item:hover {
    background: #f5f5f5;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 12px;
}

/* 学生头部 */
.student-header {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.student-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: white;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.student-meta h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.gender-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    margin-left: 6px;
    font-weight: normal;
}

.gender-tag.male { background: #1890ff; }
.gender-tag.female { background: #eb2f96; }

.meta-row {
    color: var(--text-color);
    font-size: 14px;
    margin-top: 4px;
}

/* 五维评分概览 */
.behavior-summary {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.behavior-summary h4 {
    margin-bottom: 12px;
    font-size: 16px;
}

.dim-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
    min-width: 0;
}

@media (max-width: 768px) {
    .dim-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

.dim-summary-card {
    text-align: center;
    padding: 12px;
    background: #fafafa;
    border-radius: 6px;
    min-width: 0;
    overflow: hidden;
}

.dim-icon {
    font-size: 24px;
}

.dim-name {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.dim-score {
    font-size: 22px;
    font-weight: bold;
}

.dim-score.positive { color: var(--success-color); }
.dim-score.negative { color: var(--danger-color); }

.dim-count {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    word-break: break-word;
    line-height: 1.4;
}

/* 移动端：压缩卡片高度与字号，减少空白占比 */
@media (max-width: 768px) {
    .dim-summary-card {
        padding: 10px 6px;
    }
    .dim-icon { font-size: 20px; line-height: 1.2; }
    .dim-name { font-size: 12px; margin: 2px 0; }
    .dim-score { font-size: 18px; line-height: 1.2; }
    .dim-count { font-size: 11px; margin-top: 2px; }
}

/* Tab 组件 */
.tabs {
    display: flex;
    background: white;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: var(--shadow);
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 14px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 500;
}

.tab-count {
    margin-left: 4px;
    color: var(--text-secondary);
    font-size: 12px;
}

.tab-content {
    background: white;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    min-height: 200px;
}

.tab-content .card {
    box-shadow: none;
    margin-bottom: 0;
    border-radius: 0;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-item {
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 4px;
}

.info-item label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 4px;
}

.info-item span {
    color: var(--text-color);
    font-size: 14px;
}

/* 成长记录列表 */
.growth-list {
    margin-top: 12px;
}

.growth-item {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
}

.growth-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.growth-content {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 14px;
}

/* ==================== 班级统计页样式 ==================== */

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.status-distribution {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.status-dist-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dist-count {
    color: var(--text-color);
    font-weight: 500;
}

/* 五维统计卡片 */
.behavior-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .behavior-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.behavior-stat-card {
    text-align: center;
    padding: 16px;
    background: #fafafa;
    border-radius: 6px;
    border-top: 3px solid #ddd;
}

.behavior-stat-card.dim-de   { border-top-color: #f5222d; }
.behavior-stat-card.dim-zhi  { border-top-color: #1890ff; }
.behavior-stat-card.dim-ti   { border-top-color: #52c41a; }
.behavior-stat-card.dim-mei  { border-top-color: #722ed1; }
.behavior-stat-card.dim-lao  { border-top-color: #fa8c16; }

.dim-icon-large {
    font-size: 36px;
}

.dim-name-large {
    font-size: 14px;
    color: var(--text-color);
    margin: 6px 0;
    font-weight: 500;
}

.dim-total-score {
    font-size: 28px;
    font-weight: bold;
    margin: 6px 0;
}

.dim-total-score.positive { color: var(--success-color); }
.dim-total-score.negative { color: var(--danger-color); }

.dim-detail-stats {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 柱状图 */
.bar-chart {
    margin-top: 12px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.bar-label {
    width: 50px;
    color: var(--text-color);
    font-size: 14px;
}

.bar-track {
    flex: 1;
    background: #f5f5f5;
    border-radius: 4px;
    height: 24px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.bar-fill.dim-de   { background: #f5222d; }
.bar-fill.dim-zhi  { background: #1890ff; }
.bar-fill.dim-ti   { background: #52c41a; }
.bar-fill.dim-mei  { background: #722ed1; }
.bar-fill.dim-lao  { background: #fa8c16; }

.bar-value {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
}

/* 加减分统计 */
.reward-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reward-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 4px;
}

/* ==================== 班主任首页样式 ==================== */

.quick-actions {
    margin-bottom: 24px;
}

.quick-actions h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.quick-action-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
    text-align: center;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.quick-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.quick-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.quick-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 提醒卡片 */
.reminders-section {
    margin-bottom: 24px;
}

.reminders-section h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.reminder-card {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    border-left: 4px solid #ddd;
}

.reminder-card.has-content {
    border-left-color: var(--warning-color);
}

.reminder-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.reminder-icon {
    font-size: 20px;
}

.reminder-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.reminder-count {
    background: var(--warning-color);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.reminder-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reminder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: #fafafa;
    border-radius: 4px;
    font-size: 13px;
}

.reminder-empty {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px;
}

.reminder-more {
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
    padding: 6px;
}

.student-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.student-chip {
    display: inline-block;
    padding: 4px 10px;
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-color);
}

/* 我负责的班级 */
.my-classes {
    margin-bottom: 24px;
}

.my-classes h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.my-classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.my-class-card {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.class-name {
    font-size: 16px;
    font-weight: 500;
}

/* 移动端调整 */
@media (max-width: 768px) {
    .header-actions {
        width: 100%;
    }

    .header-actions button {
        flex: 1;
        padding: 8px 10px;
        font-size: 13px;
    }

    .student-header {
        flex-direction: column;
        text-align: center;
    }

    .meta-row {
        text-align: center;
    }

    .meta-row .text-muted {
        margin-left: 0 !important;
    }
}

/* ==================== 班主任数据导出页 ==================== */
.teacher-export-page .page-header {
    margin-bottom: 16px;
}

.export-layout {
    display: grid;
    grid-template-columns: minmax(380px, 1fr) 1.4fr;
    gap: 16px;
    align-items: start;
}

.export-layout.preview-active .export-config {
    max-height: none;
}

.export-card {
    margin-bottom: 16px;
}

.export-card .card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    user-select: none;
    background: #fafafa;
    border-radius: var(--radius) var(--radius) 0 0;
}

.export-card .card-title .toggle-icon {
    transition: transform 0.2s;
    color: var(--text-secondary);
    font-size: 14px;
    display: inline-block;
}

.export-card .card-title .toggle-icon.expanded {
    transform: rotate(180deg);
}

.export-card .card-body {
    padding: 16px;
}

.field-count {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: normal;
    margin-left: 6px;
}

.field-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.field-actions .btn-link {
    padding: 2px 8px;
    font-size: 13px;
    color: var(--primary-color);
    background: transparent;
    border: none;
    cursor: pointer;
}

.field-actions .btn-link:hover {
    text-decoration: underline;
}

.field-actions .field-tip {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: auto;
}

.field-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field-group-title {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
    padding-left: 4px;
    border-left: 3px solid var(--primary-color);
}

.field-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.field-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: grab;
    background: #fff;
    transition: all 0.15s;
    font-size: 13px;
}

.field-item:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.field-item.checked {
    border-color: var(--primary-color);
    background: #e6f4ff;
}

.field-item.dragging {
    opacity: 0.4;
}

.field-item input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--primary-color);
}

.field-item .field-label {
    flex: 1;
    cursor: pointer;
}

.field-item .drag-handle {
    color: #bbb;
    cursor: grab;
    font-size: 14px;
}

.range-input {
    display: flex;
    align-items: center;
    gap: 6px;
}

.range-input .filter-input {
    flex: 1;
    min-width: 0;
}

.range-input .range-sep {
    color: var(--text-secondary);
}

.filter-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
}

/* ==================== 模块一：学生信息采集 ==================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.page-header h2 { margin: 0; }

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.collection-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #f0f0f0;
}
.collection-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.collection-title { font-size: 16px; font-weight: 600; flex: 1; word-break: break-all; }
.collection-desc { color: #666; font-size: 13px; line-height: 1.5; }
.collection-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #888;
}
.collection-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px 0;
    border-top: 1px dashed #eee;
    border-bottom: 1px dashed #eee;
}
.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.stat-mini .stat-num { font-size: 18px; font-weight: 600; color: #333; }
.stat-mini .stat-label { font-size: 11px; color: #888; }

.collection-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.progress-bar {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1890ff, #52c41a);
    transition: width 0.3s;
}
.progress-text { color: #666; }
.collection-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 字段构造器 */
.fields-builder { display: flex; flex-direction: column; gap: 10px; }
.field-builder-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto auto;
    gap: 8px;
    align-items: center;
}
.field-builder-row.has-options {
    grid-template-columns: 2fr 1fr 2fr auto auto;
}
.field-builder-row .checkbox-inline {
    grid-column: 3;
    white-space: nowrap;
}
.field-builder-row.has-options .checkbox-inline {
    grid-column: 4;
}
.field-builder-row .btn-icon {
    grid-column: 4;
}
.field-builder-row.has-options .btn-icon {
    grid-column: 5;
}
.field-type-select { max-width: 120px; }
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    line-height: 1;
}
.checkbox-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}
.radio-inline, .checkbox-inline { margin-right: 12px; }
.radio-group, .checkbox-group { padding: 6px 0; }
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.btn-icon:hover {
    opacity: 1;
    background: rgba(24, 144, 255, 0.08);
    color: var(--primary-color);
}

/* 字段构造器响应式 */
@media (max-width: 768px) {
    .field-builder-row,
    .field-builder-row.has-options {
        grid-template-columns: 1fr auto auto;
    }
    .field-builder-row > .form-input:first-child {
        grid-column: 1 / -1;
    }
    .field-builder-row .checkbox-inline,
    .field-builder-row.has-options .checkbox-inline {
        grid-column: 2;
    }
    .field-builder-row .btn-icon,
    .field-builder-row.has-options .btn-icon {
        grid-column: 3;
    }
    .field-builder-row > .form-input:not(:first-child):not(.field-type-select) {
        grid-column: 1 / -1;
    }
}

/* 采集详情表格 */
.detail-info { padding: 10px 0; border-bottom: 1px solid #f0f0f0; margin-bottom: 12px; }
.detail-info p { margin: 0 0 6px 0; color: #555; }
.detail-meta { display: flex; gap: 16px; font-size: 12px; color: #888; }
.filter-row { display: flex; gap: 10px; margin-bottom: 12px; }
.table-wrap { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.data-table th, .data-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}
.data-table th {
    background: #fafafa;
    font-weight: 600;
    color: #555;
}
.data-table tr:hover { background: #fafafa; }
.text-center { text-align: center; }

/* 学生端采集列表 */
.section { margin-bottom: 30px; }
.section-title {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
    border-left: 4px solid #1890ff;
    padding-left: 10px;
}
.collections-list { display: flex; flex-direction: column; gap: 10px; }
.collection-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}
.collection-item:hover { box-shadow: 0 2px 12px rgba(24,144,255,0.12); }
.collection-item.is-overdue { border-color: #ffccc7; background: #fff2f0; }
.collection-item.submitted { opacity: 0.75; }
.collection-item-main { flex: 1; min-width: 0; }
.collection-item-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.collection-item-desc { color: #666; font-size: 13px; margin-bottom: 4px; }
.collection-item-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
}

/* ==================== 模块二：通知公告与任务提交 ==================== */

/* 通知铃铛图标 */
.notif-bell {
    position: relative;
    font-size: 20px;
    color: #555;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.notif-bell:hover { background: #f0f0f0; }
.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 14px;
    font-weight: 600;
}

/* 侧边栏菜单项待办 badge */
.nav-badge {
    margin-left: auto;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 14px;
    font-weight: 600;
}

/* 扣分类型联想输入浮层 */
.type-combo { position: relative; }
.type-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.12);
    z-index: 100; max-height: 240px; overflow-y: auto; margin-top: 2px;
}
.type-option { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.type-option:hover, .type-option.active { background: #e6f7ff; color: var(--primary-color, #1890ff); }
.type-option.type-other { color: #999; border-bottom: none; }
.type-empty { padding: 10px 12px; color: #999; font-size: 13px; }
.type-empty a { color: var(--primary-color, #1890ff); cursor: pointer; }
@media (max-width: 480px) {
    .type-dropdown { max-height: 200px; }
    .type-option { padding: 10px 12px; }
}

/* 通知列表 */
.notifications-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.notif-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.notif-item.is-unread { background: #f6f9ff; border-color: #d6e4ff; }
.notif-item.is-pinned { border-left: 4px solid #1890ff; }
.notif-item-icon { font-size: 24px; }
.notif-item-main { flex: 1; min-width: 0; }
.notif-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.notif-item-title > span:nth-child(2) { flex: 1; min-width: 0; }
.unread-dot {
    width: 8px;
    height: 8px;
    background: #ff4d4f;
    border-radius: 50%;
    display: inline-block;
}
.pin-mark {
    background: #1890ff;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
}
.notif-type-badge {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    background: #f0f0f0;
    color: #555;
}
.role-warning { background: #fff7e6 !important; color: #faad14 !important; }
.notif-item-snippet {
    color: #666;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}
.notif-item-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
}
.notif-item-arrow { color: #bbb; font-size: 22px; }
.notif-item-actions { display: flex; gap: 6px; }

/* 通知详情 */
.notif-detail {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.notif-detail-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.notif-detail-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.notif-detail-title-row h2 { margin: 0; flex: 1; min-width: 0; }
.notif-detail-meta {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}
.notif-detail-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    padding: 16px 0;
    min-height: 60px;
}
.notif-detail-content.ql-editor-content img { max-width: 100%; }
.ql-editor-content { line-height: 1.7; }
.ql-editor-content p { margin: 8px 0; }
.ql-editor-content h1, .ql-editor-content h2, .ql-editor-content h3 { margin: 12px 0 8px; }

.notif-attachments { padding: 16px 0; border-top: 1px dashed #eee; }
.notif-attachments h4 { margin: 0 0 10px 0; }
.attachments-list { display: flex; flex-wrap: wrap; gap: 10px; }
.attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #1890ff;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}
.attachment-item:hover { background: #e6f7ff; }
.attachment-icon { font-size: 16px; }
.attachment-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-size { color: #999; font-size: 11px; }

/* 任务提交区 */
.task-submission-section {
    margin-top: 24px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}
.task-submission-section h3 { margin: 0 0 16px 0; }
.submission-form { background: #fff; padding: 16px; border-radius: 6px; }
.upload-area { display: flex; flex-direction: column; gap: 10px; }
.upload-files { display: flex; flex-direction: column; gap: 4px; }
.upload-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
}
.upload-file-item > span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.submission-history { margin-top: 20px; }
.submission-history h4 { margin: 0 0 10px 0; color: #555; }
.submission-history-item {
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #1890ff;
}
.submission-history-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.submission-history-content { font-size: 13px; color: #333; padding: 6px 0; }
.submission-history-att { font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.submission-history-comment {
    margin-top: 8px;
    padding: 8px 10px;
    background: #fffbe6;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

/* Quill 编辑器容器 */
.quill-editor-container {
    min-height: 120px;
    background: #fff;
    border-radius: 4px;
}
.quill-editor-container .ql-toolbar {
    border: 1px solid #ddd !important;
    border-bottom: none !important;
    border-radius: 4px 4px 0 0;
}
.quill-editor-container .ql-container {
    border: 1px solid #ddd !important;
    border-radius: 0 0 4px 4px;
    min-height: 100px;
    font-size: 14px;
}

/* 通知管理 - tabs */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}
.tabs button {
    background: none;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.tabs button:hover { color: #1890ff; }
.tabs button.active { color: #1890ff; border-bottom-color: #1890ff; font-weight: 600; }
.tabs button:disabled { opacity: 0.5; cursor: not-allowed; }

/* 计分管理 - 扣分/加分 Tab */
.score-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}
.score-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
    margin-bottom: -2px;
}
.score-tab:hover { color: #1890ff; }
.score-tab.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
    font-weight: 600;
}

/* 计分管理 - 类型标签 */
.type-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.type-tag.type-punish {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}
.type-tag.type-reward {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

/* 计分管理 - 操作按钮和撤回状态 */
.action-btns {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}
.btn-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 13px;
    border-radius: 3px;
    transition: all 0.2s;
}
.btn-link.btn-edit {
    color: #1890ff;
}
.btn-link.btn-edit:hover {
    background: #e6f7ff;
}
.btn-link.btn-revoke {
    color: #ff4d4f;
}
.btn-link.btn-revoke:hover {
    background: #fff1f0;
}
.text-muted {
    color: #bbb;
    font-size: 13px;
}
.row-revoked {
    opacity: 0.55;
    background: #fafafa;
}
.row-revoked td {
    text-decoration: line-through;
}
.badge-revoked {
    background: #f5f5f5;
    color: #999;
    border: 1px solid #d9d9d9;
}
.filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}
.filter-checkbox input {
    cursor: pointer;
}
.modal-subtitle {
    color: #999;
    font-size: 14px;
    font-weight: normal;
    margin-left: 8px;
}
.modal-revoke {
    max-width: 500px;
}
.modal-revoke .revoke-info {
    background: #f6f8fa;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.modal-revoke .revoke-info p {
    margin: 4px 0;
    font-size: 14px;
}
/* [btn-danger 已统一在顶部按钮规范 v2，此处删除重复声明避免覆盖] */

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card-mini {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #f0f0f0;
}
.stat-card-mini .stat-num { font-size: 28px; font-weight: 600; }
.stat-card-mini .stat-label { font-size: 13px; color: #888; margin-top: 4px; }

/* CSS 饼图 */
.pie-chart-wrap { display: flex; justify-content: center; margin: 20px 0; }
.pie-chart {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.pie-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.pie-rate { font-size: 24px; font-weight: 600; color: #333; }
.pie-label { font-size: 12px; color: #888; }

.stats-section { margin-top: 24px; }
.stats-section h4 { margin: 0 0 12px 0; color: #555; }
.student-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.student-chip {
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 13px;
    color: #555;
}

/* === 模块通用补充样式 === */
/* 表单补充类（项目原 CSS 未定义 .form-input / .form-label / .form-row） */
.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}
.form-input, .form-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.1);
}
.form-textarea { resize: vertical; }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }
.form-row.align-center { align-items: center; }

/* 表单行内 checkbox 组（不被 flex 压缩） */
.form-row .checkbox-group { flex: 0 0 auto; }
.form-row .deadline-group { display: flex; align-items: center; gap: 8px; flex: 1; }
.form-row .deadline-group .inline-label {
    display: inline-block;
    margin: 0;
    white-space: nowrap;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}
.form-row .deadline-group .form-input { flex: 1; min-width: 0; }

/* checkbox-inline 增强（全局可用） */
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    white-space: nowrap;
    user-select: none;
}
.checkbox-inline input[type="checkbox"],
.checkbox-inline input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
}
.form-group > label.checkbox-inline {
    display: inline-flex;
    margin-bottom: 0;
}
.form-group.checkbox-inline,
.form-group > label.checkbox-inline {
    white-space: normal;
}

/* 单选组 */
.radio-group {
    display: flex;
    gap: 20px;
    padding: 6px 0;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}
.radio-label input[type="radio"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    margin: 0;
}
.radio-label input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 500;
}

/* 扣分弹窗适配 */
.modal-punishment {
    max-width: 560px;
    width: 100%;
}

/* 按钮/关闭按钮补充 */
.btn-primary:disabled {
    background: #bbb;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.btn-primary:disabled:hover {
    background: #bbb;
    box-shadow: none;
    transform: none;
}
.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

/* 文本辅助类 */
.text-warning { color: #faad14 !important; }
.role-warning { background: #fff7e6 !important; color: #faad14 !important; }
.loading { text-align: center; padding: 30px; color: #888; }

/* ==================== 申诉模块样式 ==================== */
/* 扣分摘要卡片（通知详情页审批） */
.punishment-summary-card {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px;
}
.pun-summary-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pun-student { font-weight: 600; font-size: 15px; }
.pun-score { font-size: 18px; font-weight: 700; }
.pun-status { padding: 3px 10px; border-radius: 12px; font-size: 12px; }
.pun-status-pending { background: #fff7e6; color: #faad14; }
.pun-status-approved { background: #f6ffed; color: #52c41a; }
.pun-status-rejected { background: #fff1f0; color: #f5222d; }
.pun-summary-meta { display: flex; gap: 18px; margin-top: 8px; font-size: 13px; color: #8c8c8c; flex-wrap: wrap; }
.pun-reason { margin-top: 8px; font-size: 13px; color: #595959; line-height: 1.6; }
.audit-action-row {
    display: flex; align-items: center; gap: 12px;
    margin-top: 12px; padding-top: 12px;
    border-top: 1px dashed #ffe58f; flex-wrap: wrap;
}
.audit-score-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #595959; }
.audit-score-input {
    width: 72px; padding: 6px 8px; border: 1px solid #d9d9d9;
    border-radius: 6px; font-size: 14px;
}
.audit-done-tip { margin-top: 10px; font-size: 14px; }

/* 申诉按钮 */
.appeal-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px dashed #eee;
    margin-top: 10px;
}
.btn-appeal {
    background: #fa8c16;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(250, 140, 22, 0.25);
}
.btn-appeal:hover {
    background: #ff7a45;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 140, 22, 0.35);
}
.appeal-status-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

/* 申诉卡片 */
.appeals-list { display: flex; flex-direction: column; gap: 12px; }
.appeal-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #f0f0f0;
}
.appeal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.appeal-card-body { font-size: 14px; line-height: 1.6; }
.appeal-reason { margin-bottom: 8px; }
.appeal-rp-info {
    padding: 8px 10px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 6px;
}
.appeal-rp-meta { font-size: 13px; color: #666; }
.score-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 6px;
    background: #fff7e6;
    color: #fa8c16;
}
.appeal-card-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}
.handle-result { font-weight: 600; margin-bottom: 4px; }
.handle-result.accepted { color: #52c41a; }
.handle-result.rejected { color: #ff4d4f; }
.handle-comment { display: block; margin-top: 4px; font-weight: normal; color: #666; font-size: 13px; }
.handle-meta { display: flex; gap: 14px; font-size: 12px; color: #888; }
.appeal-card-actions { margin-top: 10px; text-align: right; }

/* 申诉详情 */
.detail-section { margin-bottom: 16px; }
.detail-section h4 {
    font-size: 14px;
    margin: 0 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}
.detail-row { font-size: 13px; margin-bottom: 4px; display: flex; gap: 6px; }
.detail-row .label { color: #888; min-width: 80px; }
.detail-content { padding: 8px 0; color: #333; }
.handle-comment-text {
    padding: 8px 10px;
    background: #fffbe6;
    border-radius: 4px;
    margin-top: 4px;
    font-size: 13px;
}

/* 统计看板 */
.stats-dashboard { margin-bottom: 24px; }
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s;
}
.stat-card.has-warning { border-color: #ff7875; background: var(--danger-soft); }
.stat-card.highlight { border-color: #faad14; background: var(--warning-soft); }
.stat-card .stat-num { font-size: 28px; font-weight: 600; color: var(--text-color); }
.stat-card.has-warning .stat-num { color: #ff4d4f; }
.stat-card.highlight .stat-num { color: #faad14; }
.stat-card .stat-label { font-size: 12px; color: #888; margin-top: 4px; }

/* 柱状图 */
.bar-chart-section { margin-bottom: 20px; }
.bar-chart-section h4 { margin: 0 0 12px 0; }
.bar-chart { display: flex; flex-direction: column; gap: 8px; }
.bar-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.bar-row:hover { background: #f5f5f5; }
.bar-row-high { background: #fff2f0; }
.bar-row-high:hover { background: #ffccc7; }
.bar-label {
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bar-track {
    position: relative;
    height: 24px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: visible;
    display: flex;
    align-items: center;
}
.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}
.bar-value {
    position: absolute;
    right: 8px;
    font-size: 12px;
    color: #555;
    font-weight: 600;
}
.bar-rate { font-size: 12px; color: #666; }
.bar-rate.rate-warning { color: #ff4d4f; font-weight: 600; }

/* 部门表格 */
.department-table-section { margin-bottom: 20px; }
.department-table-section h4 { margin: 0 0 12px 0; }
.sortable { cursor: pointer; user-select: none; }
.sortable:hover { background: #f0f7ff; }
.row-warning { background: #fff2f0 !important; }
.row-warning:hover { background: #ffccc7 !important; }

/* 待处理列表 */
.pending-section { margin-top: 24px; }
.pending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.pending-header h3 { margin: 0; }
.pending-filters { display: flex; gap: 8px; }
.pending-list { display: flex; flex-direction: column; gap: 12px; }
.pending-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #f0f0f0;
    border-left: 4px solid #52c41a;
}
.pending-card.is-pending { border-left-color: #faad14; }
.pending-card-header { margin-bottom: 10px; }
.pending-card-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pending-appellant { font-weight: 600; }
.pending-time { color: #999; font-size: 12px; margin-left: auto; }
.pending-card-body { font-size: 13px; }
.rp-info-row { margin-bottom: 4px; display: flex; gap: 6px; }
.pending-reason {
    margin: 10px 0;
    padding: 10px;
    background: #fffbe6;
    border-radius: 4px;
    line-height: 1.6;
}
.pending-attachments { display: flex; flex-wrap: wrap; gap: 8px; }
.pending-card-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
/* [btn-danger 已统一在顶部按钮规范 v2，此处删除重复声明避免覆盖] */

/* 处理弹窗 */
.handle-preview {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.8;
}
.handle-preview div { margin-bottom: 4px; }
.handle-warning {
    padding: 8px 12px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 4px;
    color: #d48806;
    font-size: 13px;
    margin-top: 8px;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* 申诉状态标签 */
.appeal-status-tag { padding: 2px 8px; border-radius: 10px; font-size: 11px; }

/* tabs 已在通知模块定义 */

.export-action-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.export-buttons {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.export-warn {
    margin-top: 8px;
    color: var(--warning-color);
    font-size: 13px;
}

.export-preview {
    position: sticky;
    top: 16px;
}

.preview-body {
    padding: 0;
}

.preview-table-wrap {
    overflow-x: auto;
    max-height: 60vh;
    overflow-y: auto;
}

.preview-table {
    margin: 0;
    font-size: 13px;
    min-width: 100%;
}

.preview-table thead th {
    position: sticky;
    top: 0;
    background: #fafafa;
    z-index: 1;
    white-space: nowrap;
}

.preview-table td {
    white-space: nowrap;
}

.preview-total {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: normal;
    margin-left: 6px;
}

.empty-tip {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

/* 移动端响应式 */
@media (max-width: 992px) {
    .export-layout {
        grid-template-columns: 1fr;
    }

    .export-preview {
        position: static;
    }

    .preview-table-wrap {
        max-height: 50vh;
    }
}

@media (max-width: 640px) {
    .field-list {
        grid-template-columns: 1fr;
    }

    .field-actions .field-tip {
        display: none;
    }

    .export-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .export-buttons {
        justify-content: stretch;
    }

    .export-buttons button {
        flex: 1;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==================== 五维批量行为管理 ==================== */
.behavior-batch-page .page-header { margin-bottom: 16px; }
.behavior-batch-page .header-actions { display: flex; gap: 8px; }

.behavior-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

/* ===== 最近行为记录列表 ===== */
.behavior-records-card {
    margin-top: 12px;
}
.behavior-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.behavior-records-header h3 {
    margin: 0;
    font-size: 15px;
    color: #333;
}
.behavior-records-filter {
    display: flex;
    gap: 6px;
    align-items: center;
}
.behavior-records-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
}
.behavior-record-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
    transition: all 0.2s;
}
.behavior-record-item:hover {
    border-color: #1890ff;
    background: #e6f7ff;
}
.behavior-record-item.revoked {
    background: #fff1f0;
    border-color: #ffa39e;
    opacity: 0.7;
}
.rec-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.rec-score {
    font-weight: bold;
    font-size: 16px;
    min-width: 40px;
    text-align: center;
    padding: 2px 6px;
    border-radius: 4px;
}
.rec-score.pos { color: #389e0d; background: #f6ffed; }
.rec-score.neg { color: #cf1322; background: #fff2f0; }
.rec-dim {
    font-size: 11px;
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
}
.rec-dim.dim-de   { background: #f5222d; }
.rec-dim.dim-zhi  { background: #1890ff; }
.rec-dim.dim-ti   { background: #52c41a; }
.rec-dim.dim-mei  { background: #722ed1; }
.rec-dim.dim-lao  { background: #fa8c16; }
.rec-type {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    background: #f0f0f0;
    color: #666;
}
.rec-desc {
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}
.rec-remark {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}
.rec-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 11px;
    color: #999;
    gap: 2px;
    min-width: 120px;
}
.rec-student { font-weight: bold; color: #333; font-size: 12px; }
.rec-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}
.rec-audit-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.rec-audit-tag.pending { background: #fff7e6; color: #faad14; }
.rec-audit-tag.rejected { background: #fff1f0; color: #f5222d; }
.btn-action {
    font-size: 11px;
    padding: 2px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-action.edit { color: #1890ff; border-color: #91d5ff; }
.btn-action.edit:hover { background: #e6f7ff; border-color: #1890ff; }
.btn-action.revoke { color: #ff4d4f; border-color: #ffa39e; }
.btn-action.revoke:hover { background: #fff1f0; border-color: #ff4d4f; }
.rec-revoked-tag {
    font-size: 11px;
    color: #cf1322;
    padding: 2px 6px;
    background: #fff1f0;
    border-radius: 3px;
}

/* ===== 修改弹窗 ===== */
.edit-modal-content {
    max-width: 420px;
}
.edit-record-info {
    background: #f0f5ff;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #333;
}
.edit-record-info p { margin: 0; }
.edit-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.edit-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.edit-form-row label {
    width: 50px;
    font-size: 13px;
    color: #666;
    flex-shrink: 0;
}
.edit-text-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
}

.behavior-students-panel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel-title {
    padding: 12px 16px;
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.select-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.panel-filter { padding: 10px 12px; border-bottom: 1px solid var(--border-color); }
.panel-action { padding: 8px 12px; border-bottom: 1px solid var(--border-color); background: #fafafa; }

.checkbox-all {
    display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px;
}

.checkbox-all input { accent-color: var(--primary-color); }

.students-list { flex: 1; overflow-y: auto; padding: 4px 0; }

.student-row {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border-bottom: 1px solid #f0f0f0;
    cursor: pointer; transition: background 0.15s;
}

.student-row:hover { background: #f5faff; }
.student-row.selected { background: #e6f4ff; }
.student-row input[type="checkbox"] { accent-color: var(--primary-color); }

.stu-info { flex: 1; min-width: 0; }
.stu-name { font-weight: 500; font-size: 14px; }
.stu-no { font-size: 11px; color: var(--text-secondary); }

.stu-scores { display: flex; gap: 3px; flex-wrap: wrap; max-width: 130px; justify-content: flex-end; }

.mini-score {
    font-size: 10px; padding: 1px 5px; border-radius: 8px;
    color: #fff; font-weight: 500; min-width: 24px; text-align: center;
}

/* 五维色系：德-红 / 智-蓝 / 体-绿 / 美-紫 / 劳-橙 */
.dim-de  { background: #f5222d; }
.dim-zhi { background: #1890ff; }
.dim-ti  { background: #52c41a; }
.dim-mei { background: #722ed1; }
.dim-lao { background: #fa8c16; }

.behavior-action-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }

.behavior-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border-color); margin-bottom: 16px; }

.behavior-tab {
    padding: 10px 24px; border: none; background: transparent;
    cursor: pointer; font-size: 14px; color: var(--text-secondary);
    border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s;
}

.behavior-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.zhi-hint {
    background: #fff7e6; border: 1px solid #ffd591;
    border-radius: 6px; padding: 8px 12px; margin-bottom: 12px;
    font-size: 13px; color: #ad6800;
}

.behavior-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px; margin-bottom: 16px;
}

.behavior-type-card {
    border: 2px solid var(--border-color); border-radius: 8px;
    padding: 10px 12px; cursor: pointer; transition: all 0.15s;
    background: #fff; position: relative;
}

.behavior-type-card:hover { border-color: var(--primary-color); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(24,144,255,0.15); }
.behavior-type-card.selected { border-color: var(--primary-color); background: #e6f4ff; box-shadow: 0 2px 8px rgba(24,144,255,0.25); }

.behavior-type-card input[type="checkbox"] { position: absolute; top: 8px; right: 8px; accent-color: var(--primary-color); }

.type-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; padding-right: 22px; }
.type-name { font-weight: 600; font-size: 14px; }
.dimension-tag { font-size: 11px; padding: 1px 6px; border-radius: 8px; color: #fff; font-weight: 500; }
.type-card-score { font-size: 16px; font-weight: 700; }
.type-card-score.positive { color: #52c41a; }
.type-card-score.negative { color: #ff4d4f; }
.type-card-desc { font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.4; }

.batch-action-bar {
    background: #fafafa; border-radius: 8px; padding: 12px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px;
}

.batch-info { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.info-item strong { color: var(--primary-color); font-size: 15px; }
.batch-form { display: flex; gap: 8px; align-items: center; }
.batch-remark, .batch-date { padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 13px; }
.batch-remark { min-width: 180px; }

.confirm-summary { margin: 12px 0; }
.confirm-summary > p { background: #f0f7ff; padding: 10px; border-radius: 6px; border-left: 4px solid var(--primary-color); margin-bottom: 12px; }
.confirm-section { margin-bottom: 12px; }
.confirm-section h4 { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.confirm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--neutral-100); padding: 3px 8px; border-radius: 4px; font-size: 12px; border: 1px solid var(--border-color); color: var(--text-secondary); }

.result-summary { margin: 12px 0; }
.result-summary p { margin: 6px 0; }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger  { color: var(--danger-color); }

/* 用户名重复检测样式 */
.input-error { border-color: var(--danger-color, #e91e63) !important; background: #fff5f5; }
.input-success { border-color: var(--success-color, #4caf50) !important; background: #f5fff5; }

.error-list {
    background: #fff1f0; padding: 8px 12px; border-radius: 4px;
    margin-top: 8px; max-height: 200px; overflow-y: auto;
}

.error-list li { color: var(--danger-color); font-size: 12px; padding: 2px 0; }

/* 学生列表五维分数列 */
.dim-score-row { display: flex; align-items: center; gap: 3px; }

.dim-mini-score {
    display: inline-flex; align-items: center; padding: 2px 6px;
    border-radius: 4px; font-size: 11px; color: #fff; cursor: pointer;
    min-width: 32px; justify-content: center; font-weight: 500;
}

.dim-mini-score .dim-num { margin-left: 1px; font-weight: 700; }
.dim-total { margin-left: 4px; font-size: 11px; color: var(--text-secondary); font-weight: 600; }

/* 分数明细弹窗 */
.score-detail-body { padding: 8px 0; }
.detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #f0f0f0; }
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-secondary); }
.detail-value { font-weight: 500; }

/* 学生列表排序 */
.sort-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sort-select { min-width: 120px; }
.sort-order-btn { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.sortable-th { cursor: pointer; user-select: none; position: relative; transition: background-color 0.15s; }
.sortable-th:hover { background-color: rgba(64, 158, 255, 0.08); }
.sortable-th.sort-active { color: var(--primary-color); font-weight: 700; }
.sort-indicator { margin-left: 2px; font-size: 11px; font-weight: 700; }

/* StudentProfile 五维概览增强 */
.dim-summary-card { border-top: 3px solid var(--border-color) !important; position: relative; }
.dim-summary-card.dim-de  { border-top-color: #f5222d !important; }
.dim-summary-card.dim-zhi { border-top-color: #1890ff !important; }
.dim-summary-card.dim-ti  { border-top-color: #52c41a !important; }
.dim-summary-card.dim-mei { border-top-color: #722ed1 !important; }
.dim-summary-card.dim-lao { border-top-color: #fa8c16 !important; }

.dim-tag-zhi {
    display: inline-block; background: #e6f4ff; color: var(--primary-color);
    padding: 0 6px; border-radius: 8px; font-size: 10px; margin-left: 4px; vertical-align: middle;
}

.dim-total-bar {
    margin-top: 12px; padding: 10px 16px;
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: #fff; border-radius: 6px; text-align: center; font-size: 15px;
    word-break: break-word;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .dim-total-bar {
        padding: 8px 10px;
        font-size: 13px;
    }
    .dim-total-bar strong { font-size: 16px; }
}

.dim-total-bar strong { font-size: 20px; margin: 0 4px; }

/* ==================== 学生/家长端首页 ==================== */
.student-home-content, .parent-home-content { display: flex; flex-direction: column; gap: 16px; }

.student-info-card { display: flex; align-items: center; gap: 16px; padding: 16px; }

.student-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 600; flex-shrink: 0;
}

.student-meta h3 { margin: 0 0 4px; font-size: 20px; }
.student-meta .meta-row { color: var(--text-secondary); font-size: 13px; }

.score-overview { padding: 16px; }
.score-overview h4 { margin: 0 0 16px; font-size: 16px; }

.overview-content {
    display: grid; grid-template-columns: 360px 1fr;
    gap: 24px; align-items: center;
}

.radar-area { display: flex; justify-content: center; }
.behavior-radar-wrap { display: flex; justify-content: center; }
.behavior-radar { max-width: 100%; height: auto; }

.total-area { display: flex; flex-direction: column; gap: 16px; }

.total-score {
    text-align: center; padding: 16px;
    background: linear-gradient(135deg, #f0f7ff, #e6f4ff);
    border-radius: 8px;
}

.total-num { font-size: 40px; font-weight: 700; color: var(--primary-color); line-height: 1; }
.total-label { color: var(--text-color); margin-top: 4px; font-size: 14px; }
.total-max { color: var(--text-secondary); font-size: 12px; margin-top: 2px; }

.dim-list { display: flex; flex-direction: column; gap: 6px; }

.dim-list-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; background: #fafafa;
    border-radius: 6px; border-left: 3px solid var(--border-color);
    font-size: 14px;
}

.dim-list-item.dim-de  { border-left-color: #f5222d; }
.dim-list-item.dim-zhi { border-left-color: #1890ff; }
.dim-list-item.dim-ti  { border-left-color: #52c41a; }
.dim-list-item.dim-mei { border-left-color: #722ed1; }
.dim-list-item.dim-lao { border-left-color: #fa8c16; }

.dim-list-name { flex: 1; display: flex; align-items: center; gap: 6px; }
.dim-dot { width: 8px; height: 8px; border-radius: 50%; }
.dim-list-item.dim-de  .dim-dot { background: #f5222d; }
.dim-list-item.dim-zhi .dim-dot { background: #1890ff; }
.dim-list-item.dim-ti  .dim-dot { background: #52c41a; }
.dim-list-item.dim-mei .dim-dot { background: #722ed1; }
.dim-list-item.dim-lao .dim-dot { background: #fa8c16; }

.dim-zhi-tag {
    background: #e6f4ff; color: var(--primary-color);
    padding: 0 6px; border-radius: 8px; font-size: 10px; margin-left: 4px;
}

.dim-list-score { font-weight: 600; min-width: 40px; text-align: right; }
.dim-detail-btn { padding: 2px 8px; font-size: 12px; }

/* 响应式 */
@media (max-width: 992px) {
    .behavior-layout { grid-template-columns: 1fr; }
    .behavior-students-panel { max-height: 400px; }
    .overview-content { grid-template-columns: 1fr; }
    .radar-area { order: 2; }
}

@media (max-width: 640px) {
    .behavior-types-grid { grid-template-columns: 1fr; }
    .batch-action-bar { flex-direction: column; align-items: stretch; }
    .batch-form { flex-wrap: wrap; }
    .batch-remark { min-width: 0; flex: 1; }
}

/* ==================== 校级领导模块样式 ==================== */

/* 统计卡片网格容器 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card-warning { border: 2px solid #faad14; background: #fffbe6; }
.stat-card-warning .stat-value { color: #faad14; }

/* ===== 年级总览 - 统计卡片：桌面端限宽自动换行，数字永不拆行 ===== */
.gl-stat-cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.gl-stat-cards .stat-card { padding: 18px 20px; gap: 12px; }
.gl-stat-cards .stat-value { white-space: nowrap; flex-shrink: 0; font-size: 26px; line-height: 1.2; }
.gl-stat-cards .stat-label { line-height: 1.35; min-width: 0; }
@media (max-width: 640px) {
    .gl-stat-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
    .gl-stat-cards .stat-card { padding: 12px 10px; gap: 8px; }
    .gl-stat-cards .stat-value { font-size: 22px; }
    .gl-stat-cards .stat-label { font-size: 12px; }
}

/* ===== 年级总览 - 生源学校分布列表（自适应：手机端人数同行可见，无需横向滚动）===== */
.school-dist-list { display: flex; flex-direction: column; }
.school-dist-row { padding: 10px 0; border-bottom: 1px solid #f0f2f5; }
.school-dist-row:last-child { border-bottom: none; }
.school-dist-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.school-dist-name { flex: 1; font-size: 14px; color: #262626; word-break: break-all; }
.school-dist-cnt { font-size: 13px; color: #8c8c8c; white-space: nowrap; }
.school-dist-cnt strong { color: #1677ff; font-size: 16px; margin-right: 2px; }
.school-dist-bar { height: 8px; background: #f0f2f5; border-radius: 4px; overflow: hidden; }
.school-dist-bar-inner { height: 100%; background: linear-gradient(90deg, #4096ff, #1677ff); border-radius: 4px; transition: width 0.3s; }
@media (max-width: 640px) {
    .school-dist-row { padding: 8px 0; }
    .school-dist-name { font-size: 13px; }
    .school-dist-cnt { font-size: 12px; }
    .school-dist-cnt strong { font-size: 15px; }
}

/* ===== 年级总览 - 中考等级分布（A+1 / A+2 … 等级徽章）===== */
.zk-dist-card { margin-bottom: 16px; }
.zk-dist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.zk-dist-head h3 { margin: 0; font-size: 16px; color: #262626; }
.zk-dist-sub { font-size: 12px; color: #8c8c8c; }
.zk-dist-list { display: flex; flex-wrap: wrap; gap: 8px; }
.zk-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px;
    border: 1px solid #d6e4ff;
    border-radius: 999px;
    background: linear-gradient(180deg, #f5f9ff, #eef4ff);
    transition: border-color .2s, transform .2s;
}
.zk-chip:hover { border-color: #4096ff; transform: translateY(-1px); }
.zk-chip-grade { font-size: 13px; font-weight: 700; color: #1677ff; letter-spacing: .3px; }
.zk-chip-cnt { font-size: 14px; font-weight: 600; color: #262626; }
.zk-chip-cnt em { font-style: normal; font-size: 11px; font-weight: 400; color: #8c8c8c; margin-left: 1px; }
/* 无数据档位：置灰弱化，保证 12 档始终完整可见 */
.zk-chip-zero { border-color: #eceff3; background: #fafbfc; }
.zk-chip-zero .zk-chip-grade { color: #bfbfbf; }
.zk-chip-zero .zk-chip-cnt { color: #bfbfbf; }
.zk-chip-zero:hover { border-color: #d9d9d9; transform: none; }
/* 不在固定 12 档内的历史值 */
.zk-chip-other { border-color: #ffe7ba; background: linear-gradient(180deg, #fffbf2, #fff7e6); }
.zk-chip-other .zk-chip-grade { color: #d46b08; }
@media (max-width: 640px) {
    .zk-dist-head h3 { font-size: 15px; }
    .zk-dist-list { gap: 6px; }
    .zk-chip { padding: 5px 10px; gap: 6px; }
    .zk-chip-grade { font-size: 12px; }
    .zk-chip-cnt { font-size: 13px; }
}

/* ===== 校级领导 - 数据驾驶舱 ===== */
.stat-card-clickable {
    cursor: pointer;
    position: relative;
}
.stat-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #1677ff;
}
.stat-card-hint {
    position: absolute;
    bottom: 8px;
    right: 16px;
    font-size: 11px;
    color: #1677ff;
    animation: pulse-hint 1.5s infinite;
}
@keyframes pulse-hint {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ===== 校级领导 - 全局搜索 ===== */
.leader-overview .global-search-container {
    position: relative;
    margin-bottom: 20px;
}
.leader-overview .global-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 0 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.leader-overview .global-search-box:focus-within {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}
.leader-overview .search-icon {
    font-size: 16px;
    color: #999;
    margin-right: 8px;
}
.leader-overview .global-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 14px;
    background: transparent;
}
.leader-overview .search-clear {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
}
.leader-overview .search-clear:hover {
    background: #f5f5f5;
    color: #666;
}
.leader-overview .search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 1000;
}
.leader-overview .search-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}
.leader-overview .search-group {
    padding: 8px 0;
}
.leader-overview .search-group-title {
    padding: 4px 12px;
    font-size: 12px;
    color: #999;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}
.leader-overview .search-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.leader-overview .search-item:hover {
    background: #f5f7fa;
}
.leader-overview .search-item-icon {
    font-size: 16px;
    margin-right: 10px;
}
.leader-overview .search-item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}
.leader-overview .search-item-meta {
    font-size: 12px;
    color: #999;
}

/* ===== 校级领导 - 年级分组折叠 ===== */
.leader-overview .grade-table .grade-row {
    cursor: pointer;
    transition: background 0.15s;
}
.leader-overview .grade-table .grade-row:hover {
    background: #f5f7fa;
}
.leader-overview .grade-table .expand-icon {
    display: inline-block;
    font-size: 10px;
    color: #999;
    transition: transform 0.2s;
}
.leader-overview .grade-table .expand-icon.expanded {
    transform: rotate(90deg);
}
.leader-overview .grade-detail-row {
    background: #fafbfc;
}
.leader-overview .class-detail-list {
    padding: 16px 20px;
}
.leader-overview .class-detail-header {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8ecf1;
}
.leader-overview .class-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.leader-overview .class-detail-item:hover {
    border-color: #1677ff;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.12);
    transform: translateX(4px);
}
.leader-overview .class-detail-item.has-punishment {
    border-left: 3px solid #ff4d4f;
}
.leader-overview .class-detail-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.leader-overview .class-detail-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.leader-overview .class-detail-teacher {
    font-size: 12px;
    color: #666;
}
.leader-overview .class-detail-leader {
    font-size: 12px;
    color: #999;
}
.leader-overview .class-detail-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}
.leader-overview .stat-chip {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
}
.leader-overview .stat-chip.students {
    background: #e6f4ff;
    color: #1677ff;
}
.leader-overview .stat-chip.punish {
    background: #fff1f0;
    color: #ff4d4f;
    font-weight: 600;
}
.leader-overview .stat-chip.no-punish {
    background: #f6ffed;
    color: #52c41a;
}
.leader-overview .class-detail-arrow {
    font-size: 10px;
    color: #ccc;
    margin-left: 8px;
}

/* ===== 校级领导 - 班级详情弹窗 ===== */
.leader-overview .class-detail-modal {
    max-width: 600px;
    max-height: 85vh;
}
.leader-overview .class-info-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 12px;
    background: #f5f7fa;
    border-radius: 8px;
    margin-bottom: 16px;
}
.leader-overview .class-info-item {
    display: flex;
    flex-direction: column;
}
.leader-overview .class-info-item .label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.leader-overview .class-info-item .value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.leader-overview .type-detail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.leader-overview .type-detail-item {
    padding: 12px 14px;
    background: #fafbfc;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
}
.leader-overview .type-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.leader-overview .type-detail-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.leader-overview .type-detail-category {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}
.leader-overview .type-detail-category.category-punish {
    background: #fff1f0;
    color: #ff4d4f;
}
.leader-overview .type-detail-category.category-reward {
    background: #f6ffed;
    color: #52c41a;
}
.leader-overview .type-detail-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}
.leader-overview .type-detail-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}
.leader-overview .type-detail-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7875, #ff4d4f);
    border-radius: 3px;
    transition: width 0.3s;
}
@media (max-width: 480px) {
    .leader-overview .class-info-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .leader-overview .class-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .leader-overview .class-detail-info {
        flex-wrap: wrap;
    }
}

/* 图表区块 */
.chart-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.chart-section h3 { font-size: 16px; margin: 0 0 16px 0; color: var(--text-color); }

/* 趋势柱状图（纯CSS垂直柱状图） */
.trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-height: 160px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}
.trend-chart-wide { gap: 4px; }
.trend-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 48px;
}
.trend-bar-item-thin { min-width: 20px; }
.trend-bar-value-top {
    font-size: 11px;
    margin-bottom: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}
.trend-num-punish { color: #ff4d4f; font-weight: 600; }
.trend-num-reward { color: #52c41a; font-weight: 600; }
.trend-bar-group {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 120px;
}
.trend-bar {
    width: 14px;
    min-height: 2px;
    border-radius: 3px 3px 0 0;
    transition: height 0.3s;
}
.trend-bar-item-thin .trend-bar { width: 8px; }
.trend-bar-punish { background: linear-gradient(180deg, #ff7875, #ff4d4f); }
.trend-bar-reward { background: linear-gradient(180deg, #95de64, #52c41a); }
.trend-bar-label {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.trend-bar-label-thin { font-size: 10px; transform: rotate(-45deg); transform-origin: center top; margin-top: 12px; }

/* 图例 */
.trend-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 12px; height: 12px; border-radius: 2px; }
.legend-punish { background: #ff4d4f; }
.legend-reward { background: #52c41a; }

/* 横向条形图（纯CSS水平条形图） */
.hbar-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hbar-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.hbar-row:hover { background: #fafafa; }
.hbar-label {
    font-size: 13px;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hbar-track {
    position: relative;
    height: 24px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: visible;
    display: flex;
    align-items: center;
}
.hbar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1890ff, #096dd9);
    border-radius: 4px;
    transition: width 0.3s;
}
.hbar-fill-orange { background: linear-gradient(90deg, #fa8c16, #fa541c); }
.hbar-value {
    position: absolute;
    right: 8px;
    font-size: 12px;
    color: #555;
    font-weight: 600;
}

/* 排名序号 */
.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    background: #f0f0f0;
    color: #888;
    flex-shrink: 0;
}
.rank-1 { background: #ff4d4f; color: #fff; }
.rank-2 { background: #fa8c16; color: #fff; }
.rank-3 { background: #faad14; color: #fff; }

/* 申诉状态徽章 */
.status-badge.badge-warning {
    background: #fff7e6;
    color: #faad14;
    border: 1px solid #ffd591;
}
.status-badge.badge-success {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}
.status-badge.badge-danger {
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffa39e;
}

/* 弹窗内部结构 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.modal-header h3 { margin: 0; }
.modal-body { margin-bottom: 16px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

/* 表格单元格省略 */
.cell-ellipsis {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 筛选栏信息文本 */
.filter-info { color: var(--text-secondary); font-size: 13px; margin-left: auto; }

/* ==================== 收费管理模块 ==================== */
.status-badge.badge-closed {
    background: #f5f5f5;
    color: #999;
    border: 1px solid #d9d9d9;
}

/* 缴费进度条 */
.fee-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================== 转班申请样式 ==================== */
.status-badge.badge-pending {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}
.status-badge.badge-rejected {
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffa39e;
}
.status-badge.badge-cancelled {
    background: #f5f5f5;
    color: #999;
    border: 1px solid #d9d9d9;
}

.transfer-request-card {
    margin-bottom: 16px;
}
.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.request-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.request-time {
    color: #999;
    font-size: 13px;
}
.request-body {
    padding: 8px 0;
}
.request-body .info-row {
    margin-bottom: 8px;
    color: #333;
}
.request-body .info-label {
    color: #666;
}
.request-body .arrow {
    margin: 0 8px;
    color: #1890ff;
    font-weight: bold;
}
.students-preview {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f5f7fa;
    border-radius: 6px;
}
.students-list {
    display: inline-block;
    margin-left: 8px;
    color: #1890ff;
}
.request-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.tab-count {
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* ==================== AI 评语风格选择 ==================== */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 8px;
}
.style-card {
    border: 1.5px solid #e8ecf1;
    border-radius: 10px;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.style-card:hover {
    border-color: #91caff;
    transform: translateY(-1px);
}
.style-card.active {
    border-color: #1677ff;
    background: #e6f4ff;
    box-shadow: 0 2px 8px rgba(22,119,255,0.15);
}
.style-emoji { font-size: 28px; margin-bottom: 4px; }
.style-name  { font-weight: 600; color: #333; margin-bottom: 4px; }
.style-desc  { font-size: 12px; color: #888; line-height: 1.4; }
.fee-progress-bar {
    width: 80px;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}
.fee-progress-fill {
    height: 100%;
    background: var(--success-color);
    border-radius: 4px;
    transition: width 0.3s;
}
.fee-progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* 二维码缩略图 */
.qr-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}
.qr-image {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
}
.qr-wrap {
    text-align: center;
    padding: 12px;
}
.qr-preview {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: zoom-out;
}

/* 班级多选列表 */
.class-check-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px;
}
.class-check-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    font-size: 14px;
    cursor: pointer;
}
.class-check-item:hover {
    background: var(--bg-color);
    border-radius: 4px;
}
.class-check-item input[type="checkbox"] {
    accent-color: var(--primary-color);
}

/* 缴费详情概览 */
.payment-overview {
    background: var(--bg-color);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.payment-overview .overview-item {
    text-align: center;
}
.payment-overview .overview-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}
.payment-overview .overview-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 过期行高亮 */
.row-overdue {
    background: #fff1f0;
}
.row-overdue:hover {
    background: #ffccc7;
}

/* 收费提醒 */
.fee-warn-tip {
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-bottom: 12px;
    color: #d46b08;
    font-size: 14px;
}
.fee-tip {
    color: var(--text-secondary);
    font-size: 13px;
}

/* 缴费操作按钮组 */
.payment-actions {
    display: flex;
    gap: 8px;
}

/* 收费弹窗 */
.modal-fee-form {
    max-width: 560px;
    width: 100%;
}
.modal-fee-detail {
    max-width: 800px;
    width: 100%;
}

@media (max-width: 480px) {
    .modal-fee-form, .modal-fee-detail {
        width: 94% !important;
        max-height: 90vh;
        overflow-y: auto;
    }
    .payment-overview {
        gap: 12px;
    }
}

/* ==================== 批量导入用户样式 ==================== */

/* 页面头部按钮组 */
.header-actions {
    display: flex;
    gap: 12px;
}

/* 大弹窗 */
.modal-large {
    max-width: 720px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* 步骤区块 */
.batch-step {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fafafa;
    border-bottom: 1px solid var(--border-color);
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.step-title {
    font-weight: 600;
    font-size: 15px;
}
.step-body {
    padding: 16px;
}
.step-desc {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 14px;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}
.upload-area:hover,
.upload-area.is-dragging {
    border-color: var(--primary-color);
    background: #e6f7ff;
}
.upload-area.has-file {
    border-color: var(--success-color);
    background: #f6ffed;
}
.upload-placeholder .upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.upload-placeholder p {
    color: var(--text-secondary);
    margin: 4px 0;
}
.upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
}
.upload-file-info .upload-icon {
    font-size: 40px;
    margin-bottom: 8px;
}
.upload-file-info p {
    margin: 4px 0;
}

/* 验证错误区域 */
.validation-errors {
    margin-bottom: 16px;
}
.error-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.error-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #ffccc7;
    border-radius: 4px;
    background: #fff1f0;
}
.error-item {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #ffccc7;
    font-size: 13px;
}
.error-item:last-child {
    border-bottom: none;
}
.error-row {
    color: var(--danger-color);
    font-weight: 600;
    min-width: 56px;
}
.error-user {
    color: var(--text-color);
    min-width: 100px;
    font-weight: 500;
}
.error-msg {
    color: var(--text-secondary);
    flex: 1;
}
.validation-success {
    color: var(--success-color);
    padding: 12px;
    background: #f6ffed;
    border-radius: 4px;
    margin-bottom: 16px;
}

/* 预览表格 */
.preview-table {
    margin-bottom: 12px;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.data-table.compact {
    font-size: 13px;
}
.data-table.compact th,
.data-table.compact td {
    padding: 6px 10px;
}
.status-badge.ok {
    background: #f6ffed;
    color: var(--success-color);
    border: 1px solid #b7eb8f;
}
.status-badge.fail {
    background: #fff1f0;
    color: var(--danger-color);
    border: 1px solid #ffccc7;
}

/* 提交/结果区域 */
.submit-area, .result-area {
    padding: 12px 0;
}
.result-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* 徽章颜色变体 */
.badge.success {
    background: #f6ffed;
    color: var(--success-color);
    border: 1px solid #b7eb8f;
}
.badge.danger {
    background: #fff1f0;
    color: var(--danger-color);
    border: 1px solid #ffccc7;
}

/* [btn-warning / btn-sm 已统一在顶部按钮规范 v2，此处删除重复声明避免覆盖] */

.page-notice {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-left: 4px solid #faad14;
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.notice-icon {
    font-size: 18px;
}
.pending-row {
    background: #fffbe6 !important;
}
.pending-row td {
    color: #d48806;
}
.row-selected {
    background: #e3f2fd !important;
}
.row-selected td {
    background: #e3f2fd !important;
}
.data-table th input[type="checkbox"],
.data-table td input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
/* [btn-sm 已统一在顶部按钮规范 v2，此处删除重复声明避免覆盖] */

.pending-id {
    display: inline-block;
    padding: 2px 8px;
    background: var(--warning-color);
    color: white;
    border-radius: 3px;
    font-size: 12px;
}
.pending-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: var(--warning-color);
    color: white;
    border-radius: 3px;
    font-size: 11px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
/* 用户名列下的关联班级/学生信息（学生/家长账号） */
.user-link-info {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
    line-height: 1.4;
    word-break: break-all;
}

/* ===== 互评已完成样式 ===== */
.assignment-card.assignment-completed {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s;
}
.assignment-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s;
}
.assignment-completed-view .completed-banner {
    background: linear-gradient(135deg, #52c41a, #389e0d);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}
.assignment-status.completed {
    background: #52c41a;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
/* CR-018：三态状态 —— 填写完成（待提交）蓝色徽章 */
.assignment-status.filling {
    background: #1890ff;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(24, 144, 255, 0.3);
}
.assignment-status {
    background: #e6f7ff;
    color: #1890ff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.assignment-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}
.rating-display {
    font-size: 13px;
}

/* ===== 学生/家长 考试成绩展示 ===== */
.student-scores-section {
    margin-top: 20px;
}
.exam-block {
    background: #fafbfc;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.exam-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e8ecf1;
}
.exam-date {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.exam-type-tag {
    font-size: 12px;
    background: #e6f4ff;
    color: #1677ff;
    padding: 2px 8px;
    border-radius: 4px;
}
.exam-semester-tag {
    font-size: 12px;
    background: #f6ffed;
    color: #389e0d;
    padding: 2px 8px;
    border-radius: 4px;
}
.exam-total {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    color: #1677ff;
}
.exam-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}
.exam-score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}
.exam-score-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.score-subject {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}
.score-num {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}
.score-excellent { color: #52c41a; }
.score-good { color: #1677ff; }
.score-pass { color: #fa8c16; }
.score-fail { color: #ff4d4f; }
@media (max-width: 480px) {
    .exam-scores-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    .score-num { font-size: 18px; }
}

/* ===== 学生/家长/综合信息 加减分记录两栏展示 ===== */
.behavior-records-section {
    margin-top: 20px;
}
.behavior-columns {
    display: flex;
    gap: 16px;
}
.behavior-col {
    flex: 1;
    min-width: 0;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    overflow: hidden;
}
.behavior-col-reward {
    border-color: #b7eb8f;
}
.behavior-col-punish {
    border-color: #ffccc7;
}
.behavior-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.behavior-col-reward .behavior-col-header {
    background: #f6ffed;
    color: #389e0d;
}
.behavior-col-punish .behavior-col-header {
    background: #fff2f0;
    color: #cf1322;
}
.behavior-col-count {
    font-size: 12px;
    font-weight: normal;
    color: #888;
}
.behavior-col-empty {
    padding: 24px 14px;
    text-align: center;
    color: #999;
    font-size: 13px;
}
.behavior-record-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}
.behavior-record-item {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.2s;
}
.behavior-record-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.behavior-record-item.reward {
    border-left: 3px solid #52c41a;
}
.behavior-record-item.punish {
    border-left: 3px solid #ff4d4f;
}
.behavior-record-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.behavior-record-dim {
    font-size: 12px;
    background: #f0f5ff;
    color: #1677ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.behavior-record-score {
    font-size: 16px;
    font-weight: 700;
}
.behavior-record-desc {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 4px;
}
.behavior-record-meta {
    font-size: 11px;
    color: #999;
}
@media (max-width: 768px) {
    .behavior-columns {
        flex-direction: column;
    }
}

/* ===== 学生/家长 AI评语展示 ===== */
.student-ai-reviews-section {
    margin-top: 20px;
}
.ai-review-card {
    background: linear-gradient(135deg, #f0f5ff 0%, #e6f4ff 100%);
    border: 1px solid #91caff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
}
.ai-review-card::before {
    content: '📝';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    opacity: 0.3;
}
.ai-review-header {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}
.ai-review-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.ai-review-badge.term {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}
.ai-review-badge.growth {
    background: #e6fffb;
    color: #13c2c2;
    border: 1px solid #87e8de;
}
.ai-review-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    background: #fff;
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 3px solid #1677ff;
    white-space: pre-wrap;
}
.ai-review-meta {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}
.ai-review-disclaimer {
    font-size: 11px;
    color: #bbb;
    margin-top: 8px;
    font-style: italic;
}

/* ==================== 登录页提示 ==================== */
.login-tips {
    margin-top: 16px;
    text-align: left;
}
.login-tips details {
    background: #f5f7fa;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    padding: 10px 14px;
}
.login-tips summary {
    cursor: pointer;
    font-size: 13px;
    color: #555;
    user-select: none;
}
.login-tips-content {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}
.login-tips-content p {
    margin: 4px 0;
}

/* ==================== 生日提醒样式 ==================== */

/* 生日提醒卡片 */
.birthday-card {
    border-left-color: #ff7875 !important;
    background: linear-gradient(135deg, #fff 0%, #fff1f0 100%);
}
.birthday-card.has-content {
    border-left-color: #ff4d4f !important;
    box-shadow: 0 2px 12px rgba(255, 77, 79, 0.12);
}

/* 生日徽章 */
.birthday-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.birthday-badge.birthday-today {
    background: #ff4d4f;
    color: #fff;
    animation: birthday-pulse 1.5s infinite;
}
.birthday-badge.birthday-soon {
    background: #ff7a45;
    color: #fff;
}
.birthday-badge.birthday-later {
    background: #fff1f0;
    color: #ff7875;
    border: 1px solid #ffccc7;
}

@keyframes birthday-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 生日列表项 */
.birthday-item {
    cursor: pointer;
    transition: background 0.15s;
}
.birthday-item:hover {
    background: #fff1f0;
}
.birthday-item.birthday-today {
    background: #fff1f0;
    border: 1px solid #ffccc7;
}
.birthday-item.birthday-soon {
    background: #fffbe6;
}

/* 生日弹窗 */
.birthday-modal {
    max-width: 520px;
    width: 90%;
}
.birthday-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
    position: relative;
}
.birthday-modal-header h3 {
    margin: 0;
    flex: 1;
}
.birthday-modal-icon {
    font-size: 28px;
}
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0 4px;
}
.modal-close:hover {
    color: #333;
}

.birthday-modal-tip {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    padding: 10px 14px;
    color: #d46b08;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.birthday-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.birthday-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
}
.birthday-row:hover {
    background: #fff1f0;
    border-color: #ffccc7;
    transform: translateX(2px);
}

.birthday-date-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #fff1f0, #ffccc7);
    border-radius: 8px;
}
.birthday-day {
    font-size: 20px;
    font-weight: 700;
    color: #cf1322;
    line-height: 1.1;
}
.birthday-month {
    font-size: 12px;
    color: #8c8c8c;
    margin-top: 2px;
}

.birthday-info {
    flex: 1;
    min-width: 0;
}
.birthday-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}
.birthday-class {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.birthday-countdown {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}
.birthday-countdown.birthday-today {
    background: #ff4d4f;
    color: #fff;
    animation: birthday-pulse 1.5s infinite;
}
.birthday-countdown.birthday-soon {
    background: #fff7e6;
    color: #fa541c;
    border: 1px solid #ffbb96;
}
.birthday-countdown.birthday-later {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.birthday-action {
    flex-shrink: 0;
}

/* 响应式 */
@media (max-width: 480px) {
    .birthday-row {
        flex-wrap: wrap;
    }
    .birthday-action {
        width: 100%;
        text-align: right;
    }
}

/* ==================== 学生综合档案 - 左右分栏 ==================== */
.profile-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.profile-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    overflow: hidden;
    position: sticky;
    top: 16px;
}

.sidebar-search {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-search .search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
}

.student-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.student-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.student-list-item:hover {
    background: #f0f7ff;
}

.student-list-item.active {
    background: #e6f4ff;
    border-left: 3px solid #1677ff;
    padding-left: 11px;
}

.stu-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1677ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.student-list-item.active .stu-avatar {
    background: #0958d9;
}

.stu-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stu-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.stu-no {
    font-size: 12px;
}

.student-list-empty {
    padding: 30px 14px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.profile-main {
    flex: 1;
    min-width: 0;
}

/* 学生档案 - 纵向折叠布局 */
.profile-main-vertical {
    padding: 0;
}
.profile-section {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fb 0%, #eef2f7 100%);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    border-bottom: 1px solid #e8ecf1;
}
.profile-section-header:hover {
    background: linear-gradient(135deg, #eef2f7 0%, #e4e9f0 100%);
}
.profile-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}
.profile-section-icon {
    font-size: 18px;
}
.profile-section-toggle {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}
.profile-section-body {
    padding: 16px;
}
.student-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 20px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 14px;
}
.info-row label {
    color: #8c8c8c;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 80px;
}
.info-row span {
    color: #1a1a1a;
    text-align: right;
    word-break: break-all;
}

/* 加减分记录分组 */
.record-date-group {
    margin-bottom: 16px;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    overflow: hidden;
}
.record-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: #f6f8fa;
    border-bottom: 1px solid #e8ecf1;
}
.record-date-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
}
.record-date-summary {
    font-size: 12px;
}
.record-table {
    border: none;
}
.record-table th, .record-table td {
    padding: 8px 12px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}
.record-row-reward td {
    background: #f6ffed;
}
.record-row-punish td {
    background: #fff1f0;
}
.record-type-name {
    display: inline-block;
    padding: 2px 8px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 4px;
    font-size: 12px;
}
.behavior-total-bar {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #f6f8fa;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}
.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}
.badge-info {
    background: #e6f7ff !important;
    color: #1890ff !important;
    border: 1px solid #91d5ff;
}
.badge-warning {
    background: #fff7e6 !important;
    color: #fa8c16 !important;
    border: 1px solid #ffd591;
}

/* 学期级折叠 */
.semester-group {
    margin-bottom: 14px;
    border: 1px solid #d6e4ff;
    border-radius: 8px;
    overflow: hidden;
}
.semester-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, #e6f0ff 0%, #d6e4ff 100%);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.semester-header:hover {
    background: linear-gradient(135deg, #d6e4ff 0%, #c7d9ff 100%);
}
.semester-toggle {
    font-size: 12px;
    color: #1677ff;
    margin-right: 4px;
}
.semester-label {
    font-weight: 600;
    font-size: 14px;
    color: #1677ff;
}
.semester-summary {
    font-size: 12px;
    color: #666;
}
.semester-count {
    margin-left: 8px;
    color: #999;
    font-size: 11px;
}
.semester-body {
    padding: 10px 0;
    background: #fafbff;
}

/* 学生档案学期级折叠结束 */

/* 移动端：侧栏改为顶部横向或折叠 */
@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    .student-list {
        max-height: 240px;
    }
}

/* ==================== 学生信息修改申请模块 ==================== */
/* [btn-success 已统一在顶部按钮规范 v2，此处删除重复声明避免覆盖] */

/* 基础信息卡片 */
.student-basic-info {
    margin-top: 16px;
}
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.card-header-row h4 { margin: 0; }
.basic-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px 20px;
}
.info-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}
.info-label {
    color: #888;
    font-size: 13px;
    min-width: 90px;
    flex-shrink: 0;
}
.info-value {
    color: #333;
    font-size: 14px;
    word-break: break-all;
}

/* 修改信息弹窗 */
.info-edit-modal {
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
}
.info-edit-body {
    padding: 0 4px;
}
.info-edit-hint {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #795548;
    line-height: 1.6;
}
.info-edit-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 12px;
}
.info-edit-label {
    width: 110px;
    flex-shrink: 0;
    padding-top: 8px;
    font-size: 14px;
    color: #555;
}
.sensitive-tag {
    color: #e74c3c;
    margin-left: 2px;
    font-size: 12px;
}
.info-edit-input-wrap {
    flex: 1;
}
.info-edit-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.info-edit-input:focus {
    outline: none;
    border-color: #3498db;
}
.info-edit-current {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.info-edit-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

/* 班主任审核页面 */
.teacher-info-edit-requests .header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.request-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.request-card {
    padding: 16px;
}
.request-card.status-pending { border-left: 4px solid #f39c12; }
.request-card.status-approved { border-left: 4px solid #27ae60; }
.request-card.status-rejected { border-left: 4px solid #e74c3c; }
.request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.request-student .student-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}
.request-student .student-no {
    color: #888;
    font-size: 13px;
}
.status-tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.tag-pending { background: #fff3cd; color: #856404; }
.tag-approved { background: #d4edda; color: #155724; }
.tag-rejected { background: #f8d7da; color: #721c24; }
.request-card-body { margin-bottom: 12px; }
.request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}
.request-reason, .request-review-comment {
    font-size: 13px;
    color: #666;
    padding: 6px 10px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-top: 6px;
}
.request-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 详情弹窗 */
.info-edit-detail-modal {
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
}
.detail-body { padding: 0 4px; }
.detail-student-info {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 12px;
}
.detail-student-info .detail-row {
    display: flex;
    gap: 12px;
    padding: 4px 0;
    font-size: 14px;
}
.detail-student-info .detail-label {
    color: #888;
    min-width: 80px;
}
.detail-fields-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.detail-field-item {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff;
}
.detail-field-item.is-sensitive {
    border-color: #ffd5d5;
    background: #fff8f8;
}
.detail-field-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.detail-field-header .field-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}
.detail-field-values {
    padding-left: 8px;
    border-left: 2px solid #eee;
}
.field-value-row {
    font-size: 13px;
    padding: 2px 0;
}
.field-value-label { color: #888; }
.field-value-old { color: #999; text-decoration: line-through; }
.field-value-arrow {
    color: #bbb;
    text-align: center;
    margin: 2px 0;
    font-size: 14px;
}
.field-value-new {
    color: #27ae60;
    font-weight: 500;
    word-break: break-all;
}
.detail-warn {
    margin-top: 14px;
    padding: 10px 12px;
    background: #fff3cd;
    border: 1px solid #ffe082;
    border-radius: 6px;
    color: #856404;
    font-size: 13px;
}

/* 审批弹窗 */
.action-modal { max-width: 480px; }
.action-body { padding: 0 4px; }
.action-hint {
    padding: 10px 12px;
    background: #f0f7ff;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #2c5282;
}
.action-row { margin-bottom: 12px; }

/* =========================================================
   AutoCompleteSelect - 联想下拉选择组件样式
   视觉风格与原生 select / filter-select / form-input 保持一致
   ========================================================= */
.ac-select {
    position: relative;
    display: inline-block;
    width: 100%;
    vertical-align: middle;
}
.ac-select.ac-disabled { opacity: 0.6; cursor: not-allowed; }

.ac-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 36px 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
    transition: border-color .25s, box-shadow .25s;
    position: relative;
    height: 34px;
}
/* 与 .form-group select 完全一致的 padding + 高度，视觉对齐 */
.form-group .ac-input-wrap,
.form-input + .ac-select .ac-input-wrap,
.ac-select.form-input .ac-input-wrap {
    padding: 0 36px 0 12px;
    height: 34px;
}
/* filter-select 场景：紧凑高度 */
.filter-select + .ac-select .ac-input-wrap,
.ac-select.filter-select .ac-input-wrap {
    padding: 6px 36px 6px 12px;
    height: auto;
    min-height: 34px;
}

.ac-input-wrap:hover { border-color: #91caff; }
.ac-input-wrap.ac-focused {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}
.ac-select.ac-disabled .ac-input-wrap {
    background: #f5f5f5;
    cursor: not-allowed;
}
.ac-select.ac-required .ac-input-wrap::before {
    content: '*';
    color: var(--danger-color);
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    z-index: 1;
}
.ac-select.ac-required .ac-input-wrap {
    padding-left: 14px; /* 为红星留位 */
}

.ac-input {
    flex: 1;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-color);
    height: 32px;
    line-height: 32px;
}
.ac-input:disabled { cursor: not-allowed; background: transparent; }

/* 清空按钮 */
.ac-clear {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #c0c4cc;
    color: #fff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    transition: background .2s;
}
.ac-clear:hover { background: #909399; }

/* 触发区（箭头/加载） */
.ac-trigger {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #909399;
    cursor: pointer;
    z-index: 2;
}
.ac-arrow { color: #606266; }

/* 加载 spinner */
.ac-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #e4e7ed;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: ac-spin 0.8s linear infinite;
}
@keyframes ac-spin { to { transform: rotate(360deg); } }

/* 下拉面板 */
.ac-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08), 0 3px 6px -4px rgba(0,0,0,0.12);
    z-index: 2000;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    animation: ac-drop-in .15s ease-out;
}
@keyframes ac-drop-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 空状态 + 加载态 */
.ac-empty {
    padding: 18px 16px;
    color: var(--text-secondary);
    text-align: center;
    font-size: 13px;
}
.ac-loading { display: flex; align-items: center; justify-content: center; }
.ac-more-tip {
    padding: 8px 12px;
    background: #fafafa;
    color: #8c8c8c;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

/* 选项 */
.ac-option {
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-color);
    border-bottom: 1px solid #f5f5f5;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .15s, color .15s;
}
.ac-option:last-child { border-bottom: none; }
.ac-option:hover { background: #f5f7fa; }
.ac-option.ac-highlight { background: #e6f7ff; color: var(--primary-dark); }
.ac-option.ac-selected {
    background: #e6f7ff;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}
.ac-option.ac-selected::after {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success-color);
    font-weight: bold;
}

/* 关键字高亮 */
.ac-mark {
    background: #fff1b8;
    color: #d46b08;
    padding: 0 1px;
    border-radius: 2px;
    font-weight: 500;
}

/* 确保在 filter-bar 内宽度一致 */
.filter-bar .ac-select {
    min-width: 150px;
}
.filter-bar .ac-input-wrap {
    height: auto;
    padding: 8px 36px 8px 12px;
}

/* 在分页大小选择器里的样式 */
.page-size-selector .ac-select {
    width: auto;
    min-width: 90px;
}
.page-size-selector .ac-input-wrap {
    padding: 2px 30px 2px 8px;
    height: auto;
}
.page-size-selector .ac-input {
    height: 24px;
    line-height: 24px;
    font-size: 13px;
}

/* 导入目标 select 场景 */
.import-target .ac-select { flex: 1; }
.import-target .ac-input-wrap { padding: 8px 36px 8px 12px; }
.action-label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
}
.action-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

/* 移动端适配：修改信息弹窗 */
@media (max-width: 480px) {
    .info-edit-modal,
    .info-edit-detail-modal,
    .action-modal {
        width: 94%;
        max-height: 90vh;
        overflow-y: auto;
    }
    .info-edit-row {
        flex-direction: column;
        gap: 4px;
    }
    .info-edit-label {
        width: auto;
        padding-top: 0;
    }
    .basic-info-grid {
        grid-template-columns: 1fr;
    }
    .request-meta { flex-direction: column; gap: 4px; }
}

/* ==================== 角色切换书签导航 ==================== */
/* ===== 角色切换下拉选择器 ===== */
.role-switcher {
    position: relative;
    display: inline-block;
}

.role-switch-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px 0 10px;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    background: #fff;
    color: #303133;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    outline: none;
}

.role-switch-trigger:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.role-switch-trigger.open {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.15);
}

.role-switch-trigger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.trigger-icon {
    font-size: 15px;
    line-height: 1;
}

.trigger-label {
    line-height: 1;
}

.trigger-arrow {
    font-size: 10px;
    color: #909399;
    transition: transform 0.2s ease;
    line-height: 1;
}

.trigger-arrow.up {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.role-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 140px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    padding: 4px;
    z-index: 9999;
    overflow: hidden;
}

.role-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #303133;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.role-dropdown-item:hover {
    background: #f0f7ff;
    color: #1890ff;
}

.role-dropdown-item.active {
    background: #e6f4ff;
    color: #1890ff;
    font-weight: 600;
}

.item-icon {
    font-size: 15px;
    line-height: 1;
}

.item-label {
    flex: 1;
    line-height: 1;
}

.item-check {
    font-size: 13px;
    color: #1890ff;
    line-height: 1;
}

/* 下拉动画 */
.role-dropdown-enter-active,
.role-dropdown-leave-active {
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.role-dropdown-enter-from,
.role-dropdown-leave-to {
    opacity: 0;
    transform: translateY(-6px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .role-switch-trigger {
        height: 32px;
        padding: 0 10px 0 8px;
        font-size: 12px;
        gap: 4px;
    }
    .trigger-icon {
        font-size: 14px;
    }
    .role-dropdown-menu {
        min-width: 120px;
    }
    .role-dropdown-item {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ==================== 图片编辑器（ImageEditor）样式 ==================== */
.img-editor-portal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.img-editor-mask {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.img-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #000;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}
.img-editor-counter {
    font-size: 15px;
    font-weight: 600;
    color: #faad14;
    letter-spacing: 1px;
}
.img-editor-btn {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.img-editor-btn:hover:not(:disabled) { background: #3a3a3a; }
.img-editor-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.img-editor-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #0e0e0e;
    padding: 8px;
    min-height: 0;
}
.img-editor-canvas {
    max-width: 100%;
    max-height: 100%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.img-editor-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    pointer-events: none;
    white-space: nowrap;
}
.img-editor-text-input {
    position: absolute;
    background: transparent;
    border: 1px dashed rgba(250, 173, 20, 0.8);
    outline: none;
    padding: 2px 4px;
    font-size: 16px; /* iOS Safari <16 会触发自动放大 */
    font-weight: 600;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    min-width: 80px;
    max-width: 240px;
    caret-color: #faad14;
}

.img-editor-toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #000;
    border-top: 1px solid #2a2a2a;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}
.img-editor-tool {
    flex-shrink: 0;
    min-height: 44px;
    min-width: 44px;
    padding: 0 14px;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}
.img-editor-tool:hover { background: #3a3a3a; }
.img-editor-tool:active { transform: scale(0.96); }
.img-editor-tool.on {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
    font-weight: 600;
}
.img-editor-confirm {
    background: #faad14;
    border-color: #faad14;
    color: #1a1a1a;
    font-weight: 700;
}
.img-editor-done {
    background: #faad14;
    border-color: #faad14;
    color: #1a1a1a;
    font-weight: 700;
    margin-left: auto;
    padding: 0 22px;
    box-shadow: 0 2px 8px rgba(250, 173, 20, 0.45);
}

.img-editor-swatches {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
}
.img-editor-swatch {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #555;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    vertical-align: middle;
}
.img-editor-swatch.on {
    border-color: #faad14;
    box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.35);
}
.swatch-red { background: #ff4d4f; }
.swatch-black { background: #000; }
.swatch-white { background: #fff; }

/* 移动端：加大按钮、紧凑工具栏 */
@media (max-width: 600px) {
    .img-editor-header {
        padding: 8px 10px;
    }
    .img-editor-counter {
        font-size: 14px;
    }
    .img-editor-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    .img-editor-tool {
        min-height: 48px;
        min-width: 48px;
        padding: 0 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    .img-editor-done {
        padding: 0 18px;
        font-size: 15px;
    }
    .img-editor-swatch {
        width: 32px;
        height: 32px;
    }
    .img-editor-text-input {
        font-size: 16px;
    }
}

/* 超小屏（如 iPhone SE）进一步紧凑 */
@media (max-width: 380px) {
    .img-editor-toolbar {
        gap: 6px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    }
    .img-editor-tool {
        padding: 0 10px;
        min-width: 44px;
    }
    .img-editor-done {
        padding: 0 14px;
    }
}

/* ==================== 图片附件缩略图与预览（通用，修复"图片太大手机装不下"） ==================== */

/* 上传中的提示文字 */
.upload-tip {
    color: #1890ff;
    font-size: 13px;
    margin-top: 6px;
}

/* 表格里附件数量徽章 */
.attachment-badge {
    display: inline-block;
    padding: 1px 7px;
    background: #f0f5ff;
    color: #1890ff;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
}

/* 图片缩略图预览区（容器） */
.attachment-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* 缩略图项（用后代选择器覆盖通用 .attachment-item 链接样式） */
.attachment-preview .attachment-item {
    position: relative;
    display: inline-block;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    cursor: pointer;
    flex-shrink: 0;
}

.attachment-preview .attachment-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 缩略图删除按钮 */
.btn-remove-att {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff4d4f;
    color: #fff;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 2;
}

.btn-remove-att:hover {
    background: #ff7875;
}

/* 大图预览遮罩 */
.image-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    cursor: pointer;
}

/* 大图本身：限制最大尺寸，手机屏幕装得下 */
.image-preview-large {
    max-width: 92vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* 移动端缩略图适配 */
@media (max-width: 600px) {
    .attachment-preview .attachment-item {
        width: 64px;
        height: 64px;
    }
    .image-preview-large {
        max-width: 95vw;
        max-height: 80vh;
    }
}

/* ==================== AI 成长建议 Markdown 预览样式 ==================== */
.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 {
    margin: 12px 0 8px;
    font-weight: 600;
    color: #2c3e50;
}
.markdown-preview h1 { font-size: 20px; }
.markdown-preview h2 { font-size: 18px; border-bottom: 1px solid #eee; padding-bottom: 6px; }
.markdown-preview h3 { font-size: 16px; }
.markdown-preview p { margin: 8px 0; line-height: 1.8; }
.markdown-preview ul, .markdown-preview ol { margin: 8px 0; padding-left: 24px; }
.markdown-preview li { margin: 4px 0; line-height: 1.7; }
.markdown-preview strong { color: #1a1a1a; font-weight: 600; }
.markdown-preview em { font-style: italic; }
.markdown-preview code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    font-family: monospace;
}
.markdown-preview blockquote {
    border-left: 3px solid #ddd;
    margin: 10px 0;
    padding: 8px 16px;
    background: #f9f9f9;
    color: #666;
}
.markdown-preview hr { border: none; border-top: 1px solid #eee; margin: 16px 0; }
.markdown-preview table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}
.markdown-preview td, .markdown-preview th {
    border: 1px solid #ddd;
    padding: 6px 10px;
}
.markdown-preview a { color: #1890ff; text-decoration: none; }
.markdown-preview a:hover { text-decoration: underline; }

/* ==================== AI 方案类型选择卡片 ==================== */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.plan-card {
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: #fff;
}
.plan-card:hover {
    border-color: #1890ff;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
}
.plan-card.active {
    border-color: #1890ff;
    background: linear-gradient(135deg, #e6f4ff 0%, #bae0ff 100%);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.25);
}
.plan-emoji {
    font-size: 28px;
    margin-bottom: 6px;
}
.plan-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 4px;
}
.plan-card.active .plan-name {
    color: #096dd9;
}
.plan-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}
.plan-card.active .plan-desc {
    color: #389e0d;
}

/* ==================== AI 详细程度选项 ==================== */
.detail-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.detail-card {
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: #fff;
}
.detail-card:hover {
    border-color: #52c41a;
    background: #f6ffed;
}
.detail-card.active {
    border-color: #52c41a;
    background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.2);
}
.detail-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 4px;
}
.detail-card.active .detail-name {
    color: #389e0d;
}
.detail-desc {
    font-size: 12px;
    color: #666;
}
.detail-card.active .detail-desc {
    color: #52c41a;
}

/* 移动端适配方案卡片 */
@media (max-width: 480px) {
    .plan-grid,
    .detail-options {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   打印样式（班主任学生档案：点击「🖨 打印 / 导出PDF」后调用）
   在系统打印对话框可选「另存为PDF」即完成PDF导出（无需额外库）
   ================================================================ */
@media print {
    /* ① 全局：去背景/阴影，强制白底黑字，A4 边距 */
    * { box-shadow: none !important; text-shadow: none !important; border-radius: 0 !important; }
    html, body { background: #fff !important; color: #000 !important; }
    @page { size: A4; margin: 12mm 15mm; }

    /* ② 隐藏所有非档案内容：顶部导航、侧边栏、面包屑、操作按钮、搜索框 */
    .layout-container > aside.sidebar,
    .layout-container .layout-header,
    .layout-container .layout-footer,
    .profile-sidebar,
    .sidebar-search,
    .page-header .header-actions,
    .profile-print-actions,
    .btn, .btn-primary, .btn-secondary, .btn-text, .btn-danger, .btn-link,
    .auto-complete-select,
    .search-input, .filter-select, .filter-input,
    .filter-bar, .header-actions > button,
    .toast-container,
    .modal-overlay, .modal-content,
    .loading-mask {
        display: none !important;
    }

    /* ③ 页面容器：取消所有外边距，档案占满整页 */
    body { margin: 0 !important; padding: 0 !important; }
    .page-container { margin: 0 !important; padding: 0 !important; max-width: 100% !important; box-shadow: none !important; }
    .page-header {
        background: transparent !important;
        border: none !important;
        padding: 0 0 8px 0 !important;
        margin: 0 0 10px 0 !important;
        border-bottom: 2px solid #333 !important;
    }
    .page-header h2 { margin: 0 !important; font-size: 20px !important; color: #000 !important; }
    .profile-layout {
        display: block !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .profile-main {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .profile-main-vertical {
        padding: 0 !important;
    }

    /* ④ 折叠区块：移除展开/收起按钮文字，去除交互样式；防止切页时折行 */
    .profile-section {
        page-break-inside: avoid;
        break-inside: avoid;
        margin: 10px 0 14px 0 !important;
        border: 1px solid #ccc !important;
    }
    .profile-section-header {
        background: #f0f0f0 !important;
        border-bottom: 1px solid #ccc !important;
        padding: 6px 10px !important;
        color: #000 !important;
        cursor: default !important;
    }
    .profile-section-header .profile-section-toggle { display: none !important; }
    .profile-section-header .profile-section-title {
        font-size: 14px !important;
        font-weight: bold !important;
        color: #000 !important;
    }
    .profile-section-body {
        display: block !important;
        padding: 10px !important;
    }

    /* ⑤ 学期分组：同样避免拆页 */
    .semester-group {
        page-break-inside: avoid;
        break-inside: avoid;
        border: 1px solid #ddd !important;
        margin: 6px 0 !important;
    }
    .semester-header .semester-toggle { display: none !important; }
    .semester-body { display: block !important; }

    /* ⑥ 表格：边框实线，避免跨页拆分行 */
    table.data-table,
    table.preview-table,
    .student-info-grid {
        border-collapse: collapse !important;
        page-break-inside: auto;
    }
    table.data-table thead,
    table.preview-table thead {
        display: table-header-group;
    }
    table.data-table tr,
    table.preview-table tr {
        page-break-inside: avoid;
    }
    table.data-table th,
    table.data-table td,
    table.preview-table th,
    table.preview-table td {
        border: 1px solid #999 !important;
        color: #000 !important;
        background: transparent !important;
        padding: 4px 6px !important;
        font-size: 12px !important;
    }
    .info-row {
        border-bottom: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
    .info-row label { color: #333 !important; }

    /* ⑦ 彩色徽章/卡片：去彩色背景，保留边框+文字黑白打印可读 */
    .badge, .status-badge, .dim-summary-card, .role-teacher, .role-middle, .role-admin, .role-danger, .role-student, .role-parent, .role-leader, .role-grade_leader {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #666 !important;
        box-shadow: none !important;
    }
    .dim-icon { color: #000 !important; }
    .text-success, .text-danger, .text-primary, .text-muted, .text-info {
        color: #000 !important;
    }

    /* ⑧ AI markdown 内容：去彩色，正常换行 */
    .ai-review-content, .review-markdown,
    .ai-review-content h1, .ai-review-content h2, .ai-review-content h3,
    .ai-review-content p, .ai-review-content li, .ai-review-content blockquote {
        color: #000 !important; background: #fff !important;
    }
    .ai-review-content blockquote {
        border-left: 2px solid #333 !important;
    }

    /* ⑨ 五维雷达/图表容器：防止折页 */
    .behaviorRadarBox, .dim-summary-grid, .dim-total-bar, .behavior-total-bar {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .dim-total-bar, .behavior-total-bar {
        background: #f0f0f0 !important;
        border: 1px solid #ccc !important;
        padding: 6px 8px !important;
    }
    /* ⑩ 历史成绩矩阵表和折线图容器：防止折页；表格允许横向缩放；Canvas转位图保留 */
    .score-history-matrix,
    .trend-chart-wrap,
    .matrix-table-wrap {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .matrix-table { font-size: 12px !important; }
    .matrix-table th, .matrix-table td { padding: 4px 6px !important; }
    .trend-canvas { min-height: 260px !important; }
    .score-toolbar { display: none !important; } /* 打印隐藏筛选工具栏 */
}

/* ================================================================
   历史成绩矩阵 & 折线图组件 (ScoreHistoryMatrix.js)
   ================================================================ */

/* 顶部筛选工具栏 */
.score-toolbar {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px; padding: 10px 12px;
    background: #f8fafc; border: 1px solid #e8ecf1; border-radius: 8px;
    margin-bottom: 14px;
}
.toolbar-label { font-size: 13px; color: #555; font-weight: 600; margin-right: 4px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; font-size: 12px;
    border: 1px solid #d1d5db; border-radius: 999px;
    background: #fff; color: #334155; cursor: pointer;
    transition: all .15s ease; user-select: none;
}
.chip:hover { background: #f1f5f9; border-color: #cbd5e1; }
.chip input[type="checkbox"] {
    display: none;
}
.chip-dot {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block;
    opacity: 0.85;
}
.chip-active {
    background: #eff6ff; border-width: 2px; font-weight: 500;
    padding: 3px 9px; /* 补偿加粗边框宽度差 */
}
.chip-toggle {
    background: #fff7ed; border-color: #fdba74; color: #c2410c;
}
.chip-toggle.chip-active {
    background: #ffedd5; border-width: 2px; padding: 3px 9px;
}

/* 趋势图容器 */
.trend-chart-wrap {
    background: #fff; border: 1px solid #e8ecf1; border-radius: 10px;
    padding: 10px 12px; position: relative;
}
.trend-chart-wrap.mt-20 { margin-top: 20px; }
.trend-chart-wrap.mb-20 { margin-bottom: 20px; }
.trend-canvas { display: block; width: 100%; background: #fff; }

/* 重排矩阵表格：图片格式（科目为行，考试为列组） */
.matrix-table-wrap {
    border: 1px solid #e8ecf1; border-radius: 8px;
    overflow: auto; max-width: 100%; background: #fff;
}
.matrix-table {
    width: 100%; min-width: 700px; border-collapse: collapse;
    font-size: 13px; table-layout: fixed;
}
.matrix-table th, .matrix-table td {
    border: 1px solid #e5e7eb; padding: 6px 8px; text-align: center;
    vertical-align: middle; background: #fff;
}
.matrix-table thead th {
    background: linear-gradient(135deg, #f8fafd, #eef2f8);
    color: #1f2937; font-weight: 600; font-size: 12px;
    position: sticky; top: 0; z-index: 1;
}
.matrix-table .col-subject {
    width: 90px; min-width: 90px; max-width: 90px;
    background: linear-gradient(135deg, #f6f8fb, #eef2f8);
    position: sticky; left: 0; z-index: 2;
}
.matrix-table tbody th.row-subject {
    text-align: left; font-weight: 500; padding: 6px 10px;
    background: #fafbfc;
    position: sticky; left: 0; z-index: 1;
}
.subject-legend-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    margin-right: 8px; vertical-align: middle;
}

/* 考试分组合并表头 */
.exam-group-head {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
    color: #1d4ed8 !important; font-weight: 700 !important;
    padding: 8px 4px !important;
}
.exam-group-name { font-size: 13px; line-height: 1.3; }
.exam-group-date { font-size: 10px; color: #64748b; font-weight: 400; margin-top: 2px; }
.exam-subhead { font-size: 11px; padding: 4px 2px !important; }
.score-head { background: #fefce8 !important; color: #92400e !important; }
.rank-head { background: #f0fdf4 !important; color: #166534 !important; }
.grade-head { background: #fff7ed !important; color: #9a3412 !important; }

/* 单元格：分数高亮 + 班排颜色区分 */
.cell-score { font-weight: 600; }
.cell-rank { font-size: 12px; color: #555; font-variant-numeric: tabular-nums; }
.cell-rank.grade { color: #8a4b08; }
.cell-absent { color: #9ca3af !important; font-weight: 400 !important; }
.total-row { background: linear-gradient(135deg, #f0f7ff, #dbeafe) !important; font-weight: 700 !important; }
.total-row th, .total-row td { background: inherit !important; }
.total-subject { color: #0f172a !important; font-size: 14px !important; border-left: 0; }
.total-score { color: #1d4ed8; font-size: 14px; }
.total-rank { color: #166534; font-weight: 600; }
.total-rank.grade { color: #9a3412; }

.score-positive { color: #166534 !important; }
.score-negative { color: #b91c1c !important; }
.score-absent { color: #9ca3af !important; font-weight: 400 !important; }

/* 响应式：小屏表格横向滚动 + Canvas 自适应最小高度 */
@media (max-width: 992px) {
    .matrix-table-wrap { -webkit-overflow-scrolling: touch; }
    .trend-canvas { height: 240px !important; }
}

/* ================================================================
   CR-013 交互美化：Tab 选中反馈 + 互评评分 Pill + 结果可见性卡片单选
   ================================================================ */

/* ========= 1. 全局 Tab 按钮增强（选中状态可视化）========= */
.tab-btn {
    position: relative;
    padding: 13px 22px;
    border-radius: 10px 10px 0 0;
    margin-right: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}
.tab-btn::before {
    /* 左竖条：默认透明，active 时高亮 */
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s, height 0.2s;
}
.tab-btn:hover:not(.active) {
    background: rgba(24, 144, 255, 0.06);
    color: var(--primary-dark);
    transform: translateY(-1px);
}
.tab-btn.active {
    background: linear-gradient(180deg, rgba(24, 144, 255, 0.10) 0%, rgba(24, 144, 255, 0.02) 100%);
    color: var(--primary-dark);
    font-weight: 600;
    border-bottom: 2.5px solid var(--primary-color);
    transform: translateY(0);
    box-shadow: inset 0 -2px 0 rgba(24, 144, 255, 0.25);
}
.tab-btn.active::before {
    background: var(--primary-gradient);
    height: 22px;
    box-shadow: 0 0 6px rgba(24, 144, 255, 0.35);
}
.tab-btn.active .tab-count {
    color: var(--primary-color);
    background: var(--primary-soft);
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 600;
}
/* Tab 选中状态小文字（当前选中提示，若JS层添加.tab-status则显示） */
.tab-status {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.5;
}

/* ========= 2. 学生互评评分区：ABCD 彩色 PIll 按钮（核心美化）========= */
.assignment-dimensions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0;
    width: 100%;
    box-sizing: border-box;
}
.assignments-container {
    width: 100%;
    box-sizing: border-box;
}
.dimension-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px 12px;
    background: #fafbfc;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}
.dimension-row:hover {
    border-color: rgba(24, 144, 255, 0.25);
    background: #f6faff;
    box-shadow: 0 2px 6px rgba(24, 144, 255, 0.06);
}
.dimension-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    padding: 4px 10px;
    background: linear-gradient(135deg, #eef6ff, #dbeafe);
    border-radius: var(--radius-sm);
    text-align: center;
    position: relative;
    border-left: 3px solid var(--primary-color);
}
.rating-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}
/* 评分按钮：pill 胶囊（ABCD 段） */
.rating-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px 8px 14px;
    border: 1.5px solid var(--neutral-200);
    background: #ffffff;
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    will-change: transform, box-shadow, border-color;
}
.rating-btn::before {
    /* 左色条：默认透明，选中对应等级颜色 */
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    border-radius: 0 4px 4px 0;
    transition: height 0.2s ease, background 0.2s ease;
}
.rating-level {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1;
}
.rating-label {
    font-size: 12.5px;
    white-space: nowrap;
}
/* 默认 hover */
.rating-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(24, 144, 255, 0.35);
    background: var(--primary-soft);
    color: var(--primary-dark);
    box-shadow: 0 3px 8px rgba(24, 144, 255, 0.10);
}
/* 等级 A：绿色（做得很好） */
.rating-btn.rating-A:hover {
    border-color: rgba(82, 196, 26, 0.45);
    background: var(--success-soft);
    color: var(--success-dark);
    box-shadow: 0 3px 8px rgba(82, 196, 26, 0.12);
}
.rating-btn.rating-A.selected {
    background: var(--success-gradient);
    color: #ffffff;
    border-color: var(--success-color);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.32), 0 2px 5px rgba(82, 196, 26, 0.15);
    transform: translateY(-1.5px);
}
.rating-btn.rating-A.selected::before {
    background: rgba(255, 255, 255, 0.88);
    height: 55%;
}
.rating-btn.rating-A.selected::after {
    content: "✓ A";
    position: absolute;
    top: -9px;
    right: -6px;
    background: var(--success-dark);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1.5px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    letter-spacing: 0.3px;
}
/* 等级 B：蓝色（较好） */
.rating-btn.rating-B:hover {
    border-color: rgba(47, 84, 235, 0.45);
    background: var(--info-soft);
    color: var(--info-color);
    box-shadow: 0 3px 8px rgba(47, 84, 235, 0.12);
}
.rating-btn.rating-B.selected {
    background: linear-gradient(135deg, #2f54eb 0%, #597ef7 100%);
    color: #ffffff;
    border-color: var(--info-color);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(47, 84, 235, 0.32), 0 2px 5px rgba(47, 84, 235, 0.15);
    transform: translateY(-1.5px);
}
.rating-btn.rating-B.selected::before {
    background: rgba(255, 255, 255, 0.88);
    height: 55%;
}
.rating-btn.rating-B.selected::after {
    content: "✓ B";
    position: absolute;
    top: -9px;
    right: -6px;
    background: var(--info-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1.5px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    letter-spacing: 0.3px;
}
/* 等级 C：黄色（一般） */
.rating-btn.rating-C:hover {
    border-color: rgba(250, 173, 20, 0.45);
    background: var(--warning-soft);
    color: var(--warning-dark);
    box-shadow: 0 3px 8px rgba(250, 173, 20, 0.12);
}
.rating-btn.rating-C.selected {
    background: var(--warning-gradient);
    color: #ffffff;
    border-color: var(--warning-color);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(250, 173, 20, 0.32), 0 2px 5px rgba(250, 173, 20, 0.15);
    transform: translateY(-1.5px);
    color: #5d3e00;
}
.rating-btn.rating-C.selected::before {
    background: rgba(93, 62, 0, 0.45);
    height: 55%;
}
.rating-btn.rating-C.selected::after {
    content: "✓ C";
    position: absolute;
    top: -9px;
    right: -6px;
    background: var(--warning-dark);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1.5px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    letter-spacing: 0.3px;
}
/* 等级 D：红色（待改进） */
.rating-btn.rating-D:hover {
    border-color: rgba(255, 77, 79, 0.45);
    background: var(--danger-soft);
    color: var(--danger-dark);
    box-shadow: 0 3px 8px rgba(255, 77, 79, 0.12);
}
.rating-btn.rating-D.selected {
    background: var(--danger-gradient);
    color: #ffffff;
    border-color: var(--danger-color);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.32), 0 2px 5px rgba(255, 77, 79, 0.15);
    transform: translateY(-1.5px);
}
.rating-btn.rating-D.selected::before {
    background: rgba(255, 255, 255, 0.88);
    height: 55%;
}
.rating-btn.rating-D.selected::after {
    content: "✓ D";
    position: absolute;
    top: -9px;
    right: -6px;
    background: var(--danger-dark);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1.5px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    letter-spacing: 0.3px;
}
/* 按下效果 */
.rating-btn:active {
    transform: translateY(0.5px) !important;
    box-shadow: var(--shadow-sm) !important;
}
/* 键盘聚焦 */
.rating-btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus) rgba(24, 144, 255, 0.28), var(--shadow-sm);
    border-color: var(--primary-color);
}
/* 已完成的评分显示胶囊（只读展示：绿色） */
.rating-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--success-soft), #d9f7be);
    border: 1.5px solid #b7eb8f;
    color: var(--success-dark);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
}
.rating-display::before {
    content: "✓";
    font-weight: 700;
    color: var(--success-color);
}

/* ========= 3. 互评卡底部：评语 + 提交按钮 ========= */
.assignment-comment {
    margin: 14px 0;
}
.comment-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 6px;
    padding-left: 6px;
    border-left: 3px solid #faad14;
    line-height: 1.4;
}
.comment-textarea {
    width: 100%;
    min-height: 72px;
    padding: 10px 14px;
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-md);
    background: #fdfdfd;
    font-size: 13.5px;
    font-family: inherit;
    line-height: 1.7;
    color: var(--text-color);
    resize: vertical;
    transition: all 0.2s ease;
}
.comment-textarea:hover {
    border-color: rgba(24, 144, 255, 0.22);
    background: #ffffff;
}
.comment-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-focus) rgba(24, 144, 255, 0.18);
    background: #ffffff;
}
.comment-textarea::placeholder {
    color: #b9b9b9;
}
.assignment-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--neutral-200);
}
.btn-submit-one {
    min-height: 42px;
    padding: 0 26px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 3px 10px rgba(24, 144, 255, 0.28) !important;
    position: relative;
    overflow: visible;
}
.btn-submit-one::after {
    content: "";
    display: inline-block;
    width: 8px;
}
.btn-submit-one::before {
    content: "📝 ";
    font-size: 15px;
    margin-right: 6px;
    vertical-align: -1px;
}
/* 已完成评价 banner */
.completed-banner {
    background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
    border: 1.5px solid #b7eb8f;
    border-left: 4px solid var(--success-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    color: var(--success-dark);
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(82, 196, 26, 0.08);
}
.completed-banner::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--success-color);
    color: white;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(82, 196, 26, 0.32);
    flex-shrink: 0;
}
/* 页脚提示 */
.evaluate-footer {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(240, 242, 245, 0.8) 0%, var(--bg-color) 60%);
    backdrop-filter: blur(6px);
    padding: 18px 16px 10px;
    margin: 12px -24px -24px;
    border-top: 1px solid rgba(24, 144, 255, 0.10);
    z-index: 10;
}
/* —— 用户管理：锁定状态筛选 Chip（CR-账号解锁新增） —— */
.lock-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #d9d9d9;
    background: #fafafa;
    color: #444;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: all .15s ease;
}
.lock-filter-chip:hover {
    background: #fff;
    border-color: #1677ff;
    color: #1677ff;
}
.lock-filter-chip.active {
    background: #1677ff;
    border-color: #1677ff;
    color: #fff;
    box-shadow: 0 2px 6px rgba(22,119,255,0.35);
}
.lock-filter-chip.danger {
    border-color: #ffcdd2;
    background: #fff;
    color: #c62828;
}
.lock-filter-chip.danger.active {
    background: #e53935;
    border-color: #e53935;
    color: #fff;
    box-shadow: 0 2px 6px rgba(229,57,53,0.35);
}
/* CR-018：底部统一批量提交条（更重，底部 sticky，不会被滚过） */
.evaluate-footer-fixed {
    position: sticky;
    bottom: -1px;
    padding: 20px 24px 18px;
    margin: 20px -24px -24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, #fff 100%);
    backdrop-filter: saturate(1.4) blur(10px);
    border-top: 1.5px solid rgba(24, 144, 255, 0.22);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
    z-index: 20;
}
.footer-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.07) 0%, rgba(82, 196, 26, 0.07) 100%);
    border: 1px solid rgba(24, 144, 255, 0.18);
    border-radius: var(--radius-md);
}
.footer-summary-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #444;
}
.summary-label {
    flex: 0 0 auto;
    color: #666;
    font-weight: 500;
}
.summary-value {
    flex: 1;
}
.summary-value.strong {
    color: #1677ff;
    font-weight: 700;
    font-size: 14px;
}
.num-pending {
    color: var(--danger-color);
    font-size: 15px;
    font-weight: 700;
}
.num-ready {
    color: #52c41a;
    font-size: 15px;
    font-weight: 700;
}
.batch-errors {
    margin: 10px 0 12px;
    padding: 12px 16px;
    background: var(--danger-soft);
    border: 1.5px solid #ffccc7;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--danger-color);
}
.batch-errors-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--danger-dark);
    margin-bottom: 8px;
}
.batch-errors-list {
    margin: 0;
    padding-left: 20px;
}
.batch-errors-list li {
    font-size: 12.5px;
    color: var(--danger-dark);
    line-height: 1.7;
}
.footer-submit-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 10px 0 2px;
    flex-wrap: wrap;
}
.btn-submit-all {
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    min-width: 280px;
    line-height: 1.2 !important;
    box-shadow: 0 6px 16px rgba(22, 119, 255, 0.35),
                0 2px 6px rgba(22, 119, 255, 0.2) !important;
    transition: all 0.2s var(--ease-out);
}
.btn-submit-all:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(22, 119, 255, 0.42),
                0 4px 10px rgba(22, 119, 255, 0.28) !important;
}
.btn-submit-all:active:not(:disabled) {
    transform: translateY(0);
}
.submit-all-count {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}
.loading-spinner-sm {
    display: inline-block;
    vertical-align: -2px;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2.5px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin-sm 0.7s linear infinite;
}
@keyframes spin-sm { to { transform: rotate(360deg); } }
.footer-tip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(24, 144, 255, 0.08);
    border: 1px solid rgba(24, 144, 255, 0.2);
    border-radius: var(--radius-pill);
    color: var(--primary-dark);
    font-size: 12.5px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}
.validation-error {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--danger-soft);
    border: 1.5px solid #ffccc7;
    border-left: 4px solid var(--danger-color);
    border-radius: var(--radius-md);
    color: var(--danger-dark);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.validation-error::before {
    content: "⚠";
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

/* ==================== 座次表管理 ==================== */
.seating-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.seating-toolbar label {
    font-weight: 600;
    white-space: nowrap;
}
.seating-select {
    padding: 6px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 160px;
}
.seating-num-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    text-align: center;
}
.seating-mode-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e8e8e8;
}
.seating-mode-tabs .peer-tab {
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    font-size: 14px;
    color: #666;
    border: 2px solid transparent;
    border-bottom: none;
    background: #f5f5f5;
}
.seating-mode-tabs .peer-tab.active {
    color: #1890ff;
    border-color: #e8e8e8;
    background: #fff;
    border-bottom: 2px solid #fff;
    margin-bottom: -2px;
}
.seating-layout-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.seating-layout-controls label {
    font-weight: 600;
    white-space: nowrap;
}
.seating-grid-wrapper {
    overflow-x: auto;
    padding: 10px 0;
}
table.seating-grid {
    border-collapse: collapse;
    margin: 0 auto;
}
.seating-cell {
    border: var(--border-width, 1px) var(--border-style, solid) var(--border-color, #bbb);
    width: var(--cell-w, 90px);
    height: var(--cell-h, 50px);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
    position: relative;
    padding: var(--cell-pad, 4px);
    font-family: var(--font-family, "Microsoft YaHei");
    font-size: var(--font-size, 13px);
}
.cell-seat {
    background: #fff;
}
.cell-seat:hover {
    background: #e6f7ff;
}
.cell-aisle {
    background: #f0f0f0;
    border-color: #ddd;
    cursor: default;
}
.cell-aisle .cell-type-label {
    color: #ccc;
    font-size: 11px;
}
.cell-podium {
    background: #ffe7ba;
    border-color: #ffd591;
}
.cell-podium .cell-type-label {
    color: #d46b08;
    font-weight: 600;
    font-size: 12px;
}
.cell-type-label {
    color: #999;
    font-size: 12px;
}
.seat-student-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: block;
    padding: 4px;
    cursor: grab;
}
.seat-student-name:active {
    cursor: grabbing;
}
.manual-cell.drag-over {
    background: #bae7ff !important;
    box-shadow: inset 0 0 0 2px #1890ff;
}
.unseated-chip.selected {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}
.unseated-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.unseated-chip {
    padding: 6px 12px;
    background: #f0f5ff;
    border: 1px solid #adc6ff;
    border-radius: 16px;
    font-size: 13px;
    cursor: grab;
    user-select: none;
    transition: all 0.15s;
}
.unseated-chip:hover {
    background: #d6e4ff;
}
.seating-arrange-controls,
.seating-manual-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.seating-arrange-hint {
    padding: 8px 12px;
    background: #e6f7ff;
    border-radius: 6px;
    color: #1890ff;
    font-size: 13px;
    margin-bottom: 12px;
}
.unseated-pool {
    margin-bottom: 16px;
}
.unseated-pool h4 {
    margin-bottom: 8px;
    color: #666;
}

/* ========= 座次表：text单元格 + 合并 + 信息区 ========= */
.cell-text {
    background: #f6f6f6;
    border-color: #d9d9d9;
}
.cell-text:hover {
    background: #e8e8e8;
}
.cell-text-content {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: block;
    padding: 4px;
    word-break: break-all;
    line-height: 1.4;
}
.cell-aisle .cell-type-label {
    white-space: pre;
    writing-mode: vertical-rl;
    letter-spacing: 6px;
    color: #bbb;
    font-size: 11px;
}
.seating-merge-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    padding: 8px 12px;
    background: #f0f7ff;
    border-radius: 6px;
    border: 1px solid #bae7ff;
}
.seating-merge-bar button.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}
/* 前后方向设置栏 */
.seating-direction-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    padding: 8px 12px;
    background: #fffbe6;
    border-radius: 6px;
    border: 1px solid #ffe58f;
}
.seating-direction-bar button.active {
    background: #fa8c16;
    color: #fff;
    border-color: #fa8c16;
}
/* 网格前后方向标识 */
.seating-direction-label {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 0;
    margin: 4px auto;
    width: 80%;
    border-radius: 4px;
}
.seating-direction-label.front {
    color: #fff;
    background: linear-gradient(90deg, #fa8c16, #ff7a45);
    box-shadow: 0 2px 6px rgba(250, 140, 22, 0.35);
}
.seating-direction-label.back {
    color: #8c8c8c;
    background: #f0f0f0;
    border: 1px dashed #d9d9d9;
}
.merge-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    color: #fff;
    background: #ff4d4f;
    border-radius: 3px;
    padding: 1px 4px;
    cursor: pointer;
    line-height: 1.2;
}
.merge-badge:hover {
    background: #cf1322;
}

/* 底部信息区编辑器 */
.seating-info-editor {
    margin-top: 20px;
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}
.seating-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.seating-info-header h4 {
    margin: 0;
    color: #666;
    font-size: 15px;
}
table.seating-info-table {
    width: 100%;
    border-collapse: collapse;
}
.seating-info-table th {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 6px 4px;
    font-size: 12px;
    color: #666;
    text-align: center;
}
.seating-info-table td {
    border: 1px solid #ddd;
    padding: 2px;
}
.info-input {
    width: 100%;
    border: none;
    padding: 6px 8px;
    font-size: 13px;
    background: transparent;
    outline: none;
}
.info-input:focus {
    background: #e6f7ff;
}
.info-gap {
    background: #fafafa !important;
    border: none !important;
    width: 3%;
}

/* ========= 座次表排版设置面板 ========= */
.seating-style-bar {
    margin: 8px 0;
}
.seating-style-panel {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}
.style-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.style-row:last-child {
    margin-bottom: 0;
}
.style-row label {
    font-size: 13px;
    white-space: nowrap;
    color: #666;
}
.style-num-input {
    width: 55px;
    padding: 3px 6px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
}
.style-select {
    padding: 3px 6px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    font-size: 13px;
}
.style-color-input {
    width: 36px;
    height: 28px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
}

/* ========= 离校签单 ========= */
.departure-preview {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}
.departure-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}
.departure-body {
    font-size: 15px;
    line-height: 1.8;
}
.departure-body p {
    margin-bottom: 12px;
}
.departure-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.departure-table td {
    border: 1px solid #333;
    padding: 8px 12px;
    font-size: 14px;
}
.departure-table td.label {
    font-weight: bold;
    background: #f5f5f5;
    width: 22%;
    text-align: center;
}
.departure-note {
    color: #666;
    font-size: 13px;
    margin: 15px 0;
}
.departure-signature {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    font-size: 14px;
}
.departure-date {
    text-align: right;
    margin-top: 15px;
    font-size: 14px;
}

/* ========= 班级记录表 ========= */
.record-preview {
    overflow-x: auto;
}
.record-table {
    width: 100%;
    border-collapse: collapse;
}
.record-table th,
.record-table td {
    border: 1px solid #999;
    padding: 6px 8px;
    text-align: center;
    font-size: 14px;
}
.record-table th {
    background: #f0f0f0;
    font-weight: bold;
}

/* ========= 班级课程表 ========= */
.schedule-config {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.schedule-config label {
    font-weight: 600;
    white-space: nowrap;
    font-size: 14px;
}
.schedule-grid-wrapper {
    overflow-x: auto;
    padding: 10px 0;
}
table.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.schedule-table th,
.schedule-table td {
    border: 1px solid #bbb;
    padding: 2px;
    text-align: center;
}
.schedule-corner {
    background: #f0f0f0;
    font-weight: bold;
    width: 70px;
}
.schedule-period {
    background: #f8f8f8;
    width: 60px;
}
.schedule-period-input {
    width: 100%;
    border: none;
    padding: 8px 4px;
    text-align: center;
    font-size: 13px;
    background: transparent;
    font-weight: 600;
    outline: none;
}
.schedule-cell-input {
    width: 100%;
    border: none;
    padding: 8px 4px;
    text-align: center;
    font-size: 14px;
    background: transparent;
    outline: none;
}
.schedule-cell-input:focus {
    background: #e6f7ff;
}

/* ========= 我的表册 ========= */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    border: 1px solid #e8e8e8;
    padding: 8px 10px;
    font-size: 14px;
    text-align: left;
}
.data-table th {
    background: #f5f5f5;
    font-weight: 600;
}
.data-table tr:hover {
    background: #fafafa;
}
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    border-radius: 22px;
    transition: 0.3s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.switch input:checked + .slider {
    background: #1890ff;
}
.switch input:checked + .slider:before {
    transform: translateX(18px);
}

/* ========= 通用表单行（班级表册组件复用） ========= */
.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}
.form-group label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 600;
}
.form-select {
    padding: 6px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
}
.form-input {
    padding: 6px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
}

/* ========= 4. 结果可见性 Switch：卡片式单选（教师端创建任务） ========= */
.peer-public-switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 6px;
}
.switch-item {
    position: relative;
    padding: 14px 14px 14px 18px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 96px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.switch-item::before {
    /* 左色条 */
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.2s;
}
.switch-item:hover {
    border-color: rgba(24, 144, 255, 0.4);
    background: var(--primary-soft);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 14px rgba(24, 144, 255, 0.14);
}
.switch-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.switch-item.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #e6f4ff 0%, #bae0ff 100%);
    box-shadow: 0 5px 18px rgba(24, 144, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}
.switch-item.active::before {
    background: var(--primary-gradient);
    box-shadow: 2px 0 10px rgba(24, 144, 255, 0.35);
}
.switch-label {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}
.switch-item.active .switch-label {
    color: var(--primary-dark);
    font-weight: 700;
}
.switch-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.55;
    padding-left: 2px;
}
.switch-item.active .switch-desc {
    color: #2c5282;
}
.switch-item.active .switch-label::after {
    content: "已选择";
    margin-left: auto;
    background: var(--primary-color);
    color: white;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.4px;
    box-shadow: 0 2px 4px rgba(24, 144, 255, 0.3);
}

/* ========= 5. 全局：选择状态可视化增强（复选/单选选中高亮） ========= */
/* 复选框包裹行（如：分管范围多选） */
.scope-checkbox-item:has(input[type="checkbox"]:checked) {
    background: linear-gradient(135deg, var(--primary-soft), #bae0ff);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(24, 144, 255, 0.16);
    transform: translateY(-0.5px);
    position: relative;
    overflow: hidden;
}
.scope-checkbox-item:has(input[type="checkbox"]:checked)::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-gradient);
}
.scope-checkbox-item:has(input[type="checkbox"]:checked) input[type="checkbox"] {
    accent-color: var(--primary-color);
}
/* 表格行选择：已选中的 checkbox 所在行视觉强化（配合 .row-selected 进一步加左条） */
tr.row-selected {
    position: relative;
}
tr.row-selected td:first-child::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 0 2px 2px 0;
}
/* 表单 input/select 聚焦：视觉加强（圆角 + 外环） */
.form-group input,
.form-group select,
.form-group textarea,
.search-input,
.filter-select {
    border-radius: var(--radius-md) !important;
    transition: all 0.2s ease !important;
    border: 1.5px solid var(--neutral-200) !important;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.search-input:focus,
.filter-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.18) !important;
    background: #ffffff !important;
    outline: none !important;
}
.form-group select option:checked {
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 600;
}
/* 单选按钮：自定义外观（配合 :has 语法） */
.form-group label:has(input[type="radio"]:checked) {
    background: var(--primary-soft);
    border: 1.5px solid rgba(24, 144, 255, 0.35);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(24, 144, 255, 0.10);
    transform: translateY(-0.5px);
}
.form-group label:has(input[type="radio"]:checked) input[type="radio"] {
    accent-color: var(--primary-color);
}
/* 多选复选框：自定义选中态（配合 :has 语法） */
.form-group label:has(input[type="checkbox"]:checked) {
    background: var(--success-soft);
    border: 1.5px solid rgba(82, 196, 26, 0.35);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--success-dark);
    box-shadow: 0 2px 6px rgba(82, 196, 26, 0.10);
    transform: translateY(-0.5px);
}
.form-group label:has(input[type="checkbox"]:checked) input[type="checkbox"] {
    accent-color: var(--success-color);
}

/* ========= 6. 移动端：评分按钮 + 结果可见性自适应 ========= */
@media (max-width: 600px) {
    .dimension-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .dimension-label {
        width: fit-content;
    }
    .rating-btn {
        padding: 7px 12px 7px 10px;
        font-size: 12px;
        gap: 4px;
    }
    .rating-level {
        font-size: 13px;
    }
    .rating-label {
        font-size: 11.5px;
    }
    .peer-public-switch {
        grid-template-columns: 1fr;
    }
    .switch-item {
        min-height: auto;
    }
    .evaluate-footer {
        margin: 0 -16px -24px;
        padding: 12px 12px 8px;
    }
}
@media (max-width: 380px) {
    .rating-btn {
        padding: 6px 10px 6px 8px;
        gap: 3px;
    }
    .rating-label { display: none; } /* 超小屏只显示字母 ABCD */
    .rating-level { font-size: 14px; }
}

/* ================================================================
   CR-015 问题B：教师端维度配置 UI（类型切换/自定义选项/文本placeholder）
   ================================================================ */

/* 维度配置总容器：多张卡片之间的间距 */
.dimension-configs { display: flex; flex-direction: column; gap: 14px; }

/* 单个维度配置卡片：白底浅边，视觉层次清晰 */
.dimension-config-card {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.dimension-config-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.06);
}

/* 卡片头部：维度名 + 类型切换 chips + 必填开关 */
.dim-config-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #eef0f6;
}
.dim-config-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    line-height: 1.4;
}
.dim-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.dim-config-type-switch {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* 类型 chip（可点击胶囊） */
.type-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 12.5px;
    border-radius: 999px;
    border: 1px solid #dfe3ea;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}
.type-chip > input { display: none; }
.type-chip:hover {
    border-color: #a5b4fc;
    color: #4338ca;
    background: #eef2ff;
}
.type-chip.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border-color: #4f46e5;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
    font-weight: 500;
}
/* 必填 chip 用独立的绿色强调 */
.type-chip-req.active {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #059669;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}
.type-chip-req:not(.active):hover {
    border-color: #6ee7b7;
    color: #047857;
    background: #ecfdf5;
}

/* 配置内容主体区域 */
.dim-config-body { margin-top: 4px; }
.dim-options-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    font-weight: 500;
    margin-bottom: 10px;
}
.dim-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dim-option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #eef0f6;
    border-radius: 8px;
}
.dim-option-order {
    width: 22px; height: 22px;
    border-radius: 6px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.form-input-sm { height: 30px !important; padding: 4px 10px !important; font-size: 13px !important; border-radius: 6px !important; }
.form-label-sm { font-size: 12.5px !important; margin-bottom: 4px !important; color: #475569; }
.form-grid-sm { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
@media (max-width: 520px) {
    .form-grid-sm { grid-template-columns: 1fr !important; }
}

/* ==================== 学生到家报到系统 ==================== */
.arrival-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 10px;
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
    margin-left: 6px;
    vertical-align: middle;
}
.arrival-tag.status-发布 { background: #f6ffed; color: #52c41a; border-color: #b7eb8f; }
.arrival-tag.status-取消 { background: #fff7e6; color: #fa8c16; border-color: #ffd591; }
.arrival-tag.status-已结束 { background: #f5f5f5; color: #999; border-color: #e8e8e8; }
.arrival-tag.tag-warn { background: #fff2f0; color: #ff4d4f; border-color: #ffccc7; }
.arrival-stat { font-size: 13px; color: #475569; display: flex; gap: 14px; flex-wrap: wrap; }
.arrival-stat > span { white-space: nowrap; }
.arrival-row-actions {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.arrival-row-actions .btn-link {
    background: none;
    border: none;
    color: #1890ff;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 13px;
}
.arrival-row-actions .btn-link:hover { color: #0050b3; text-decoration: underline; }
.arrival-row-actions .btn-danger-text { color: #ff4d4f; }
.arrival-row-actions .btn-danger-text:hover { color: #cf1322; text-decoration: underline; }
.class-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 10px;
    background: #fafafa;
}
.class-check-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}
.history-item {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: #fafafa;
}
.history-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    flex-wrap: wrap;
}
.history-diff {
    font-size: 12px;
    color: #475569;
    background: #fff;
    border: 1px dashed #e8e8e8;
    border-radius: 4px;
    padding: 6px 8px;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}
.arrival-monitor-stat {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.arrival-monitor-stat .stat-card {
    flex: 1;
    min-width: 120px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}
.arrival-monitor-stat .stat-card .num { font-size: 24px; font-weight: 700; color: #1890ff; }
.arrival-monitor-stat .stat-card .label { font-size: 12px; color: #999; margin-top: 2px; }
.arrival-monitor-stat .stat-card.danger .num { color: #ff4d4f; }
.arrival-monitor-stat .stat-card.success .num { color: #52c41a; }
.arrival-letter-group { margin-bottom: 12px; }
.arrival-letter-group > h5 {
    margin: 8px 0 4px 0;
    font-size: 13px;
    color: #475569;
    border-left: 3px solid #1890ff;
    padding-left: 8px;
}
.arrival-student-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 6px;
}
.arrival-student-row .stu-name { cursor: pointer; color: #1890ff; }
.arrival-student-row .stu-name:hover { text-decoration: underline; }
.arrival-student-row.contacted { background: #f6ffed; }
.arrival-student-row .contacted-tag { font-size: 12px; color: #52c41a; }
.arrival-photo { max-width: 160px; max-height: 160px; border-radius: 6px; border: 1px solid #e8e8e8; }
.arrival-countdown {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}
.arrival-countover { background: #fff2f0; color: #ff4d4f; border-color: #ffccc7; }
.arrival-cam-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #1890ff;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.arrival-cam-btn:hover { background: #0050b3; }
.arrival-photo-preview {
    max-width: 100%;
    max-height: 280px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    margin-top: 8px;
}
@media (max-width: 520px) {
    .arrival-monitor-stat .stat-card { min-width: 90px; }
}

.option-key-readonly {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 90px;
    min-width: 54px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    user-select: none;
}

/* 超小按钮（配置卡用） */
.btn-xs {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1.4;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
}
.btn-xs.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}
.btn-xs.btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}
.btn-xs.btn-text {
    background: transparent;
    padding: 4px 6px;
}
.btn-xs.btn-text.text-danger:hover { color: #b91c1c; background: #fef2f2; border-radius: 6px; }

/* ================================================================
   CR-015 问题B：学生端评价页按类型动态渲染（自定义选项/文本/both）
   ================================================================ */

/* 自定义选项按钮（非标准 ABCD 时）：用统一渐变，level 文字加 corner tag */
.rating-btn.rating-custom {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0c4a6e;
    border-color: #bae6fd;
}
.rating-btn.rating-custom.selected {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    border-color: #0369a1;
    box-shadow: 0 6px 14px rgba(14, 165, 233, 0.3);
}
.dim-textarea {
    width: 100%;
    min-height: 78px;
    margin-top: 10px;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #dbe0ea;
    font-size: 13.5px;
    line-height: 1.6;
    transition: border-color 0.15s, box-shadow 0.15s;
    resize: vertical;
    font-family: inherit;
    background: #fcfcfd;
}
.dim-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: #fff;
}
.dim-text-label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}
.text-display-readonly {
    padding: 8px 12px;
    background: #f5f7fa;
    border-radius: 8px;
    color: #555;
    font-size: 13px;
    white-space: pre-wrap;
    line-height: 1.6;
    margin-top: 8px;
    border-left: 3px solid #c7d2fe;
}
/* ========== CR-017：教师端多条文本字段配置列表 ========== */
.dim-textfields-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dim-textfield-row {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fcfdff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dim-textfield-row:hover {
    border-color: #a5b4fc;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}
.tf-order-col {
    flex: 0 0 auto;
    padding-top: 20px;
}
.tf-order-num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}
.tf-fields-col {
    flex: 1 1 auto;
    min-width: 0;
}
.tf-fields-col .form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}
.tf-fields-col .form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.text-danger { color: #ef4444 !important; }
.text-muted { color: #94a3b8 !important; }
.btn-text {
    background: transparent !important;
    border: none !important;
    padding: 4px 6px !important;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none !important;
}
.btn-text:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #dc2626 !important;
}
.btn-xs {
    padding: 4px 10px !important;
    font-size: 12px !important;
    height: 28px !important;
    line-height: 20px !important;
    border-radius: 7px !important;
}

/* ========== CR-015：学生端互评评价页 动态维度渲染样式 ========== */
/* 维度多行布局（维度标签 + 答案/输入块 分栏） */
.dimension-row-multi {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dimension-row-multi:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.08);
}

/* 维度标签块（名称、必填、类型徽章一行）—— 宽度自适应占满，避免内容集中缩小 */
.dimension-label-block {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}
.dimension-name {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
}
.required-star {
    color: #ef4444;
    font-weight: 700;
    margin-left: 2px;
}
.dim-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    font-weight: 500;
}

/* 维度输入块（选项 + 文本垂直排列）—— 宽度占满整行 */
.dimension-input-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
/* 维度答案块（已完成只读展示） */
.dimension-answer-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* 维度独立文本输入（text/both 型） */
.dim-text-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}
/* CR-017：多条文本字段输入（学生端）—— 宽度自适应整行 + 适当增大留边 */
.dim-text-input-multi {
    gap: 10px;
    padding: 10px 0 4px;
    width: 100%;
    box-sizing: border-box;
}
.dim-textfield-entry {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fcfdff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.dim-textfield-entry:hover {
    border-color: #c7d2fe;
}
.text-input-label {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}
.textarea-sm {
    width: 100% !important;
    min-height: 90px !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    box-sizing: border-box;
}

/* 自定义选项按钮的通用样式（A/B/C/D 之外的 key） */
.rating-btn.rating-default {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-color: #d5dae3;
    color: #334155;
}
.rating-btn.rating-default:hover {
    background: linear-gradient(180deg, #eef2ff, #e0e7ff);
    border-color: #a5b4fc;
    color: #4338ca;
    transform: translateY(-1px);
}
.rating-btn.rating-default.selected {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border-color: #4f46e5;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

/* 已完成评价的选项答案区/文本答案区 */
.completed-option-answer {
    padding: 4px 0;
}
.completed-text-answer {
    padding: 4px 0;
}
/* CR-017：已完成区多条文本字段分行展示 */
.text-field-answer-row {
    padding: 4px 0;
    border-bottom: 1px dashed #eef0f6;
}
.text-field-answer-row:last-child {
    border-bottom: none;
}
.text-answer-content {
    word-break: break-word;
}

/* 结果页：纯文字维度提示条 */
.text-dim-hint {
    border-left: 3px solid #fbbf24 !important;
    background: #fffbeb !important;
    color: #92400e !important;
}

/* ========= 离校签单全班总表 ========= */
.departure-roster-preview {
    overflow-x: auto;
}
.departure-roster-table {
    width: 100%;
    border-collapse: collapse;
}
.departure-roster-table th,
.departure-roster-table td {
    border: 1px solid #999;
    padding: 6px 8px;
    text-align: center;
    font-size: 14px;
}
.departure-roster-table th {
    background: #f0f0f0;
    font-weight: bold;
}
.departure-col-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.departure-head-wrap {
    display: flex;
    align-items: center;
    gap: 2px;
}
.departure-head-input {
    flex: 1;
    min-width: 40px;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 3px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    background: transparent;
}
.departure-head-input:focus {
    border-color: #1890ff;
    background: #fff;
    outline: none;
}
.departure-col-del {
    flex: none;
    width: 18px;
    height: 18px;
    line-height: 14px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}
.departure-col-del:hover {
    background: #cf1322;
}
.departure-cell-input {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 3px 4px;
    text-align: center;
    font-size: 13px;
    background: transparent;
    box-sizing: border-box;
}
.departure-cell-input:focus {
    border-color: #1890ff;
    background: #fff;
    outline: none;
}

/* ========= 课程表行操作（插入/删除/整行合并） ========= */
.schedule-row-ops {
    background: #fafafa;
    width: 96px;
    white-space: nowrap;
}
.schedule-row-ops button {
    margin: 0 1px;
    padding: 2px 6px;
    font-size: 12px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
}
.schedule-row-ops button:hover {
    border-color: #1890ff;
    color: #1890ff;
}
.schedule-break-cell {
    background: #f5f5f5;
}

/* ========= 课程表拍照OCR ========= */
.schedule-ocr-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.schedule-ocr-result {
    margin-top: 12px;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}
.schedule-ocr-textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 8px;
    font-size: 13px;
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

/* ========= 日常行为：姓名格子 + 高频排序 + 确认弹窗改分 ========= */
.student-name-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 12px;
}
.student-name-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    user-select: none;
    min-height: 60px;
}
.student-name-tile:hover {
    border-color: #1890ff;
    background: #f0f7ff;
}
.student-name-tile.selected {
    border-color: #1890ff;
    background: #1890ff;
    color: #fff;
}
.student-name-tile.selected .mini-score {
    color: rgba(255,255,255,0.9);
}
.tile-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.tile-scores {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: center;
}
.freq-badge {
    display: inline-block;
    font-size: 10px;
    color: #e74c3c;
    font-weight: bold;
    margin-left: 4px;
}
.behavior-type-card.high-freq {
    border-width: 2px;
    border-color: #f0a020;
}
.confirm-modal-content {
    width: 600px;
    max-width: 90vw;
}
.confirm-score-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.confirm-score-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #f9f9f9;
    border-radius: 6px;
}
.confirm-type-name {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    min-width: 120px;
}
.confirm-score-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}
.confirm-score-input {
    width: 70px;
    padding: 4px 6px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}
.confirm-remark-input {
    flex: 1;
    min-width: 150px;
    padding: 4px 8px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    font-size: 13px;
}
.share-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.share-school {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}
.share-specific {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}
.share-none {
    background: #f5f5f5;
    color: #999;
    border: 1px solid #e8e8e8;
}
.modal-box {
    background: #fff;
    border-radius: 8px;
    width: 500px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.share-modal-box {
    width: 600px;
}
.share-type-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}
.share-type-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}
.share-teacher-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 12px;
    background: #fafafa;
}
.teacher-select-box {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fafafa;
    max-height: 150px;
    overflow-y: auto;
}
.teacher-check-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    cursor: pointer;
    font-size: 14px;
}
.seating-info-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ========= 班级表册：通用方案管理工具条 FormPlanBar ========= */
.form-plan-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f8faff, #f3f6fd);
    border: 1px solid #e3e8f5;
    border-radius: 8px;
    margin-bottom: 14px;
}
.plan-bar-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}
.plan-bar-select {
    width: auto !important;
    min-width: 200px;
    max-width: 340px;
}
.form-plan-bar button {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}
.plan-btn-danger {
    color: #e74c3c !important;
}
.plan-btn-danger:hover:not(:disabled) {
    border-color: #ffa39e !important;
    background: #fff1f0 !important;
}
.plan-status {
    font-size: 12.5px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.plan-status.is-dirty {
    color: #d97706;
    font-weight: 600;
}
.plan-status.is-saved {
    color: #16a34a;
}
.plan-dot {
    animation: plan-blink 1.2s ease-in-out infinite;
}
@keyframes plan-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
/* 班级记录表：可编辑单元格 */
.record-cell-input {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 4px 6px;
    text-align: center;
    font-size: 13px;
    background: transparent;
    box-sizing: border-box;
}
.record-cell-input:focus {
    border-color: #1890ff;
    background: #fff;
    outline: none;
}



/* ==================== 移动端底部标签栏（组合导航） ==================== */
/* 设计依据：NN/g 研究显示纯汉堡菜单（隐藏导航）用户参与度低 20-50%，
 * 组合导航（底部Tab+侧边栏抽屉）兼顾核心功能可见性与扩展性。
 * 参考案例：Facebook / YouTube / LinkedIn / Airbnb 移动端均采用此模式。
 */

/* Tab 栏主体 - 默认隐藏，仅移动端显示 */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid #e4e7ed;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    z-index: 1500;
    transition: transform 0.25s ease-out;
    will-change: transform;
}

/* 滚动下滑时自动隐藏（保留上滑回显） */
.mobile-tab-bar.tab-bar-hidden {
    transform: translateY(100%);
}

/* 单个 Tab 项 */
.mobile-tab-bar .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #909399;
    font-size: 10px;
    line-height: 1.2;
    padding: 4px 0;
    min-width: 0;
    position: relative;
    /* 触控热区扩展：符合 WCAG 2.1 / Apple HIG ≥44×44px 标准 */
    min-height: 48px;
    /* 防止点击高亮闪黑 */
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
    user-select: none;
    -webkit-user-select: none;
}

/* 点击瞬间轻微缩放反馈 */
.mobile-tab-bar .tab-item:active {
    transform: scale(0.95);
}

/* 图标 */
.mobile-tab-bar .tab-icon {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 3px;
    display: block;
    transition: transform 0.2s ease;
}

/* 文字标签 */
.mobile-tab-bar .tab-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 激活态：主色调 + 加粗 + 图标轻微放大 */
.mobile-tab-bar .tab-item.active {
    color: var(--primary-color, #409eff);
    font-weight: 600;
}

.mobile-tab-bar .tab-item.active .tab-icon {
    transform: scale(1.1);
}

/* 「更多」按钮 */
.mobile-tab-bar .tab-item.tab-more {
    color: #606266;
}

.mobile-tab-bar .tab-item.tab-more.active {
    color: var(--primary-color, #409eff);
}

/* Tab 角标（右上角红点数字） */
.mobile-tab-bar .tab-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 22px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #f56c6c;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 0 1.5px #fff;
    pointer-events: none;
}

/* 移动端显示 + 内容区底部留白 + 安全区适配 */
@media (max-width: 768px) {
    .mobile-tab-bar {
        display: flex;
        /* iPhone X 及以后底部横条安全区适配 */
        padding-bottom: env(safe-area-inset-bottom, 0);
        height: calc(56px + env(safe-area-inset-bottom, 0));
    }

    /* 内容区底部留白，避免被固定 Tab 栏遮挡最后一行内容 */
    .page-content {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0) + 16px) !important;
    }
}

/* 桌面端始终隐藏 Tab 栏 */
@media (min-width: 769px) {
    .mobile-tab-bar {
        display: none !important;
    }
}

/* 深色侧边栏主题下的 Tab 栏（适配教师端） */
.teacher-sidebar ~ .main-content .mobile-tab-bar,
.admin-layout .mobile-tab-bar {
    /* 保持一致浅色背景，提升与深色侧边栏的对比 */
    background: #ffffff;
}

/* ==================== 汉堡菜单强化（提升可见性） ==================== */
/* NN/g 关键发现：纯 ☰ 图标用户识别度低，加文字标签「菜单」可提升 75% 点击率。
 * 此处仅调整移动端汉堡按钮的视觉表现，不改变行为逻辑。
 */
@media (max-width: 768px) {
    .btn-menu-toggle {
        /* 增大触控热区到 48×48px（Android Material 标准） */
        min-width: 48px;
        min-height: 48px;
        font-size: 22px;
        padding: 10px 14px;
        /* 加粗边框提升视觉显著性 */
        border: 1.5px solid rgba(255, 255, 255, 0.25);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.15);
        /* 文字与图标垂直居中 */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        /* 平滑过渡动效 */
        transition: background 0.2s ease, transform 0.15s ease;
        cursor: pointer;
    }

    .btn-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.22);
    }

    .btn-menu-toggle:active {
        background: rgba(255, 255, 255, 0.28);
        transform: scale(0.96);
    }

    /* 在按钮文字「菜单」与图标之间添加间距（如果按钮内容是纯图标则不影响） */
    .btn-menu-toggle .menu-label {
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.3px;
        margin-left: 2px;
    }
}

/* 无障碍：键盘焦点可见性 */
.mobile-tab-bar .tab-item:focus-visible,
.btn-menu-toggle:focus-visible {
    outline: 2px solid var(--primary-color, #409eff);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 科任老师工作台首页 (SubjectTeacherHome) */
.st-home { padding: 16px; max-width: 1400px; margin: 0 auto; }
.st-welcome { display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 16px 20px; border-radius: 10px; margin-bottom: 20px; }
.st-welcome-title { font-size: 20px; font-weight: 600; color: #1a237e; margin-bottom: 4px; }
.st-welcome-sub { font-size: 14px; color: #455a64; }

.st-loading, .st-error, .st-empty {
    text-align: center; padding: 60px 20px; color: #546e7a; font-size: 14px; }
.st-error button { margin-top: 12px; }

.st-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.st-section { display: flex; flex-direction: column; }
.st-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.st-section-header h3 { font-size: 16px; margin: 0; color: #263238; }
.st-section-sub { font-size: 13px; color: #78909c; }
.st-section-link { font-size: 13px; color: #1976d2; text-decoration: none; }
.st-section-link:hover { text-decoration: underline; }
.st-sub-empty { padding: 30px 12px; text-align: center; color: #90a4ae; font-size: 13px; }

/* 我的学科 */
.st-subject-list { display: flex; flex-direction: column; gap: 10px; }
.st-subject-card { background: #fafbfc; border: 1px solid #eceff3; border-radius: 8px; padding: 14px 16px; }
.st-subject-name { font-size: 15px; font-weight: 600; color: #263238; margin-bottom: 6px; }
.st-subject-meta { font-size: 13px; color: #546e7a; margin-bottom: 6px; }
.st-subject-rank { font-size: 13px; color: #37474f; }

/* 任教班级表格 */
.st-class-table-wrap { overflow-x: auto; }
.st-class-table th, .st-class-table td { font-size: 13px; padding: 8px 10px; }
.st-class-table th { background: #f5f7fa; font-weight: 600; color: #455a64; }
.st-num { text-align: right; font-variant-numeric: tabular-nums; }

/* 排名徽章 */
.st-rank-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; white-space: nowrap; }
.rank-gold { background: #fff8e1; color: #f57f17; }
.rank-silver { background: #e8f5e9; color: #2e7d32; }
.rank-warn { background: #ffebee; color: #c62828; }
.rank-normal { background: #eceff1; color: #546e7a; }

/* 重点关注 */
.st-focus-card { cursor: pointer; transition: box-shadow .2s; }
.st-focus-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.st-focus-body { display: flex; align-items: center; gap: 20px; padding: 10px 0; }
.st-focus-number { display: flex; align-items: baseline; }
.st-focus-num { font-size: 48px; font-weight: 700; color: #e53935; line-height: 1; }
.st-focus-unit { font-size: 16px; color: #78909c; margin-left: 4px; }
.st-focus-tip { font-size: 14px; color: #455a64; line-height: 1.6; }
.st-focus-sub { font-size: 12px; margin-top: 6px; }

/* 待办/提醒 */
.st-notif-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.st-notif-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #fafbfc; border-left: 3px solid #eceff3; }
.st-notif-item:hover { background: #f0f4f8; }
.st-notif-status { font-size: 11px; padding: 1px 8px; border-radius: 10px; height: fit-content; flex-shrink: 0; }
.st-notif-status.is-unread { background: #ffebee; color: #c62828; }
.st-notif-status.is-read { background: #eceff1; color: #78909c; }
/* 大屏作业动态（科任首页）：动作徽章 + 提示行 */
.st-screen-tip { font-size: 12px; margin: -4px 0 8px; }
.st-notif-status.fb-done { background: #e8f5e9; color: #2e7d32; }
.st-notif-status.fb-submitted { background: #e3f2fd; color: #1565c0; }
.st-notif-status.fb-note { background: #fff3e0; color: #ef6c00; }
.st-feed-list { max-height: 320px; }
.st-notif-body { flex: 1; min-width: 0; }
.st-notif-title { font-size: 14px; font-weight: 500; color: #263238; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-notif-content { font-size: 12px; color: #78909c; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-notif-time { font-size: 12px; color: #90a4ae; flex-shrink: 0; white-space: nowrap; }

/* 平板适配（≤1100px）：2列 → 1列 */
@media (max-width: 1100px) {
    .st-grid { grid-template-columns: 1fr; }
}
/* 手机适配 */
@media (max-width: 640px) {
    .st-home { padding: 12px; }
    .st-welcome { flex-direction: column; align-items: flex-start; gap: 10px; }
    .st-welcome-title { font-size: 17px; }
    .st-focus-body { flex-direction: column; align-items: flex-start; gap: 6px; }
    .st-focus-num { font-size: 40px; }
    .st-class-table-wrap { font-size: 12px; }
    .st-class-table th:nth-child(3), .st-class-table td:nth-child(3) { display: none; }
}

/* 减少动画偏好用户的无障碍适配 */
@media (prefers-reduced-motion: reduce) {
    .mobile-tab-bar,
    .mobile-tab-bar .tab-item,
    .mobile-tab-bar .tab-icon,
    .btn-menu-toggle {
        transition: none !important;
        animation: none !important;
    }
}

/* ==================== 行为计分分析 ==================== */
.ba-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e6e9ef;
    margin-bottom: 12px;
}
.ba-filter-bar > label { font-weight: 600; font-size: 13px; }
.ba-range-tabs { display: inline-flex; gap: 4px; }
.ba-range-tabs button {
    padding: 5px 14px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
}
.ba-range-tabs button.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

/* 加载状态 */
.ba-loading { text-align: center; padding: 60px 0; color: #888; }
.ba-spinner {
    width: 38px; height: 38px;
    border: 4px solid #e8e8e8;
    border-top-color: #1890ff;
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: ba-spin 0.8s linear infinite;
}
@keyframes ba-spin { to { transform: rotate(360deg); } }
.ba-loading-small { text-align: center; padding: 30px; color: #999; }

/* 汇总卡片 */
.ba-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.ba-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e6e9ef;
    transition: transform .2s, box-shadow .2s;
}
.ba-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.ba-card-value { font-size: 28px; font-weight: bold; color: #1890ff; }
.ba-card.reward .ba-card-value { color: #52c41a; }
.ba-card.punish .ba-card-value { color: #f5222d; }
.ba-card-label { font-size: 12px; color: #888; margin-top: 4px; }

/* 空状态 */
.ba-empty { text-align: center; padding: 50px 0; }
.ba-empty-icon { font-size: 48px; margin-bottom: 10px; }
.ba-empty p { font-size: 16px; margin-bottom: 6px; }
.ba-empty-small { text-align: center; padding: 20px; color: #aaa; font-size: 13px; }

/* 柱状图 */
.ba-chart-section h3 { margin: 0 0 4px 0; }
.ba-bar-chart {
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    border: 1px solid #e6e9ef;
}
.ba-bar-row {
    display: grid;
    grid-template-columns: 180px 1fr 110px;
    gap: 12px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}
.ba-bar-row:hover { background: #f0f7ff; }
.ba-bar-row.top { background: #fff7e6; }
.ba-bar-label {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ba-crown { margin-right: 2px; }
.ba-dim-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: normal;
    background: #f0f0f0;
    color: #888;
    border-radius: 3px;
    padding: 0 4px;
    margin-left: 4px;
}
.ba-bar-track { position: relative; height: 26px; background: #f5f5f5; border-radius: 4px; }
.ba-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .5s cubic-bezier(.22,.61,.36,1);
    min-width: 3px;
}
.ba-bar-fill.reward { background: linear-gradient(90deg, #73d13d, #52c41a); }
.ba-bar-fill.punish { background: linear-gradient(90deg, #ff7875, #f5222d); }
.ba-bar-fill.top { background: linear-gradient(90deg, #ffc53d, #fa8c16); }
.ba-bar-count {
    position: absolute;
    left: 8px; top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    line-height: 26px;
}
.ba-bar-fill.punish ~ .ba-bar-count,
.ba-bar-fill.top ~ .ba-bar-count { color: #fff; }
.ba-bar-score { font-size: 12px; color: #888; }
.ba-net { margin-left: 6px; font-weight: 600; }
.ba-net.pos { color: #52c41a; }
.ba-net.neg { color: #f5222d; }

/* 详情布局 */
.ba-detail-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ba-detail-header h3 { margin: 0; }
.ba-detail-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 14px;
}
.ba-students-panel, .ba-records-panel {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e6e9ef;
    padding: 14px;
}
.ba-panel-title { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.ba-search-box { margin-bottom: 10px; }
.ba-student-list { max-height: 480px; overflow-y: auto; }
.ba-student-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 6px;
    border-radius: 5px;
    font-size: 13px;
}
.ba-student-item:hover { background: #f5f8ff; }
.ba-rank {
    width: 22px; height: 22px;
    line-height: 22px;
    text-align: center;
    background: #f0f0f0;
    color: #888;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}
.ba-rank.top3 { background: #fa8c16; color: #fff; }
.ba-student-name { flex: 1; }
.ba-student-count { color: #1890ff; font-weight: 600; font-size: 12px; }

/* 记录表 */
.ba-records-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ba-records-table th {
    background: #fafafa;
    padding: 9px 8px;
    text-align: left;
    border-bottom: 2px solid #e8e8e8;
    font-weight: 600;
    white-space: nowrap;
}
.ba-records-table td {
    padding: 9px 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}
.ba-records-table tr:hover td { background: #fafcff; }
.ba-time { white-space: nowrap; color: #666; font-size: 12px; }
.ba-reason { max-width: 260px; }
.ba-remark { font-size: 11px; color: #999; margin-top: 2px; }
.pos { color: #52c41a; font-weight: 600; }
.neg { color: #f5222d; font-weight: 600; }

/* 分页 */
.ba-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}
.ba-page-info { font-size: 13px; color: #666; }

/* 过渡动画 */
.ba-fade-enter-active, .ba-fade-leave-active { transition: opacity .25s, transform .25s; }
.ba-fade-enter-from { opacity: 0; transform: translateX(15px); }
.ba-fade-leave-to { opacity: 0; transform: translateX(-15px); }

/* 移动端适配 */
@media (max-width: 768px) {
    .ba-detail-body { grid-template-columns: 1fr; }
    .ba-bar-row { grid-template-columns: 110px 1fr 70px; gap: 6px; }
    .ba-bar-label { font-size: 12px; }
    .ba-records-table { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .ba-bar-fill, .ba-fade-enter-active, .ba-fade-leave-active { transition: none !important; }
    .ba-spinner { animation: none !important; }
}

/* ==================== 考勤管理 ==================== */
.attendance-management .tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}
.attendance-management .tabs button {
    padding: 10px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    position: relative;
}
.attendance-management .tabs button.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
    font-weight: 600;
}
.attendance-management .tab-panel {
    padding: 16px 0;
}
/* 学生多选框（提交请假） */
.attendance-management .stu-multi-box {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    overflow: hidden;
}
.attendance-management .stu-multi-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}
.attendance-management .stu-multi-search {
    flex: 1;
    padding: 4px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
}
.attendance-management .btn-mini {
    padding: 4px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
}
.attendance-management .btn-mini:hover { border-color: #1890ff; color: #1890ff; }
.attendance-management .stu-multi-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 8px 12px;
}
.attendance-management .stu-multi-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
}
.attendance-management .stu-multi-item:hover { background: #f0f7ff; }
.attendance-management .stu-multi-empty {
    color: #999;
    font-size: 13px;
    padding: 8px 0;
}
.attendance-management .card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.attendance-management .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.attendance-management .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
}
.attendance-management .form-group .required {
    color: #e74c3c;
}
.attendance-management .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}
.attendance-management .form-actions {
    margin-top: 8px;
}
.attendance-management .request-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.attendance-management .request-card.pending {
    border-left: 4px solid #f39c12;
}
.attendance-management .request-card.approved {
    border-left: 4px solid #27ae60;
}
.attendance-management .request-card.rejected {
    border-left: 4px solid #e74c3c;
}
.attendance-management .request-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.attendance-management .request-student {
    font-weight: 600;
    color: #2c3e50;
}
.attendance-management .request-class {
    color: #888;
    font-size: 13px;
}
.attendance-management .request-body {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}
.attendance-management .request-meta {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}
.attendance-management .request-actions {
    display: flex;
    gap: 8px;
}
.attendance-management .badge.leave-type.personal {
    background: #fff3cd;
    color: #856404;
}
.attendance-management .badge.leave-type.sick {
    background: #d1ecf1;
    color: #0c5460;
}
.attendance-management .filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.attendance-management .filter-bar .form-control {
    width: auto;
    min-width: 140px;
}
.attendance-management .stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}
.attendance-management .empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    background: #fafafa;
    border-radius: 8px;
}
.attendance-management .reminder-modal {
    max-width: 480px;
    padding: 24px;
}
.attendance-management .reminder-modal h3 {
    margin-top: 0;
    color: #e74c3c;
}
.attendance-management .reminder-student {
    font-weight: 600;
    margin-bottom: 8px;
}
.attendance-management .reminder-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}
.attendance-management .reminder-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 768px) {
    .attendance-management .reminder-actions {
        grid-template-columns: 1fr;
    }
    .attendance-management .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 行政会议考勤 ==================== */
table.meeting-grid {
    border-collapse: collapse;
    margin: 0 auto;
}
.meeting-grid .mcell, .meeting-grid .acell {
    border: 1px solid #bbb;
    width: 80px;
    height: 50px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
    padding: 4px;
    font-size: 13px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.meeting-grid .type-seat { background: #fff; }
.meeting-grid .type-seat:hover { background: #e6f7ff; }
.meeting-grid .type-excluded { background: #f5f5f5; border-color: #ddd; cursor: default; }
.meeting-grid .type-aisle { background: #fafafa; border-color: #eee; cursor: default; color: #ccc; }
.meeting-grid .type-podium { background: #ffe7ba; border-color: #ffd591; }
.meeting-grid .type-text { background: #e8f4f8; border-color: #b3d9e6; font-weight: 600; }
.meeting-grid .cell-text { font-size: 12px; word-break: break-word; }
.meeting-grid .cell-label { color: #999; font-size: 11px; }

/* 考勤模式座位 */
.meeting-grid .acell.type-seat.st-late,
.meeting-grid .acell.type-seat.st-absent,
.meeting-grid .acell.type-seat.st-sick_leave,
.meeting-grid .acell.type-seat.st-personal_leave,
.meeting-grid .acell.type-seat.st-business_trip,
.meeting-grid .acell.type-seat.st-official_duty,
.meeting-grid .acell.type-seat.st-dual_staff,
.meeting-grid .acell.type-seat.st-grade_duty,
.meeting-grid .acell.type-seat.st-maternity_leave,
.meeting-grid .acell.type-seat.st-bereavement_leave,
.meeting-grid .acell.type-seat.st-on_duty {
    color: #fff;
    font-weight: 600;
}
.meeting-grid .acell.batch-selected {
    outline: 3px solid #409eff;
    outline-offset: -3px;
}
.meeting-grid .seat-info { line-height: 1.3; }
.meeting-grid .seat-name { font-size: 13px; }
.meeting-grid .seat-status { font-size: 11px; opacity: 0.9; margin-top: 2px; }

/* ==================== 家长到家报到（免登录分享页） ==================== */
.arrival-share-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 14px 28px;
    background: linear-gradient(160deg, #eef4ff 0%, #f7fafc 55%, #e8f5e9 100%);
    box-sizing: border-box;
}
.arrival-share-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 40, 80, .10);
    padding: 24px 22px 26px;
    box-sizing: border-box;
}
.arrival-share-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}
.arrival-share-title {
    font-size: 21px;
    line-height: 1.4;
    color: #1f2d3d;
    margin: 14px 0 6px;
}
.arrival-share-desc {
    font-size: 14px;
    color: #607d8b;
    line-height: 1.65;
    margin-bottom: 10px;
    white-space: pre-wrap;
}
.arrival-share-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
    color: #8a99a8;
    margin: 8px 0;
}
.arrival-share-over { color: #e65100; }
.arrival-share-progress {
    font-size: 13px;
    color: #2e7d32;
    background: #f1f8e9;
    border-radius: 8px;
    padding: 7px 10px;
    margin: 10px 0 4px;
}
.arrival-share-form { margin-top: 14px; }
.arrival-share-label {
    display: block;
    font-size: 14px;
    color: #37474f;
    font-weight: 600;
    margin-bottom: 8px;
}
.arrival-share-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    font-size: 17px;
    border: 1px solid #cfd8dc;
    border-radius: 10px;
    outline: none;
    transition: border-color .2s;
}
.arrival-share-input:focus { border-color: #42a5f5; box-shadow: 0 0 0 3px rgba(66,165,245,.15); }
.arrival-share-btn {
    width: 100%;
    margin-top: 16px;
    padding: 15px 16px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: #2e7d32;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s;
}
.arrival-share-btn:hover:not(:disabled) { background: #256428; }
.arrival-share-btn:disabled { background: #a5d6a7; cursor: not-allowed; }
.arrival-share-hint, .arrival-share-tip {
    font-size: 12px;
    color: #90a4ae;
    line-height: 1.7;
    margin-top: 10px;
}
.arrival-share-formerr {
    margin-top: 10px;
    font-size: 13px;
    color: #c62828;
    background: #ffebee;
    border-radius: 8px;
    padding: 9px 12px;
    line-height: 1.6;
}
.arrival-share-candidates {
    margin-top: 12px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 10px 12px;
}
.arrival-share-cand-title { font-size: 13px; color: #8d6e63; margin-bottom: 8px; }
.arrival-share-cand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    font-size: 15px;
    color: #37474f;
    cursor: pointer;
}
.arrival-share-success { text-align: center; padding: 18px 4px 6px; }
.arrival-share-emoji { font-size: 46px; line-height: 1; }
.arrival-share-success-title { font-size: 21px; font-weight: 700; color: #2e7d32; margin: 12px 0 6px; }
.arrival-share-success-sub { font-size: 16px; color: #37474f; }
.arrival-share-success-time { font-size: 13px; color: #90a4ae; margin-top: 8px; }
.arrival-share-loading, .arrival-share-error { text-align: center; padding: 30px 6px; }
.arrival-share-error-text { margin-top: 12px; font-size: 15px; color: #c62828; line-height: 1.7; }
.arrival-share-footer { margin-top: 16px; font-size: 12px; color: #9fb0bd; text-align: center; }

/* ==================== 通知发布（分享给家长） ==================== */
/* 教师端列表 */
.notice-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    vertical-align: middle;
}
.notice-tag.tag-on { background: #e8f5e9; color: #2e7d32; }
.notice-tag.tag-off { background: #eceff1; color: #607d8b; }
.notice-tag.tag-share { background: #e3f2fd; color: #1565c0; }
.notice-tag.tag-warn { background: #fff3e0; color: #e65100; }
.notice-thumb img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border: 1px solid #e6ebf0;
    border-radius: 8px;
    background: #fafafa;
}
.notice-qr-pick img {
    width: 132px;
    height: 132px;
    object-fit: contain;
    border: 1px solid #e6ebf0;
    border-radius: 8px;
    background: #fafafa;
}

/* 家长端免登录页 */
.notice-share-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 14px 28px;
    background: linear-gradient(160deg, #eef4ff 0%, #f7fafc 55%, #eef7f1 100%);
    box-sizing: border-box;
}
.notice-share-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 40, 80, .10);
    padding: 24px 22px 26px;
    box-sizing: border-box;
}
.notice-share-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}
.notice-share-title {
    font-size: 21px;
    line-height: 1.4;
    color: #1f2d3d;
    margin: 14px 0 8px;
    word-break: break-word;
}
.notice-share-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    color: #90a4ae;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f5;
}
.notice-share-content {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.8;
    color: #37474f;
    white-space: pre-wrap;
    word-break: break-word;
}
.notice-share-amount {
    margin-top: 16px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    background: #fff8e6;
    border: 1px solid #ffe1a8;
    border-radius: 10px;
    padding: 12px 14px;
}
.notice-share-amount-label { font-size: 13px; color: #8d6e63; }
.notice-share-amount-value { font-size: 26px; font-weight: 700; color: #d84315; }
.notice-share-amount-due { font-size: 12px; color: #8d6e63; }
.notice-share-pay {
    margin-top: 16px;
    text-align: center;
    border: 1px dashed #d7e3ee;
    border-radius: 12px;
    padding: 14px 12px 16px;
    background: #fafcff;
}
.notice-share-pay-title { font-size: 15px; font-weight: 600; color: #1f2d3d; margin-bottom: 10px; }
.notice-share-qr {
    width: 220px;
    height: 220px;
    max-width: 72vw;
    max-height: 72vw;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    cursor: zoom-in;
}
.notice-share-payee { margin-top: 10px; font-size: 15px; color: #37474f; }
.notice-share-payee strong { color: #d84315; }
.notice-share-pay-hint { margin-top: 8px; font-size: 12px; color: #78909c; line-height: 1.7; }
.notice-share-expire { margin-top: 14px; font-size: 12px; color: #90a4ae; text-align: center; }
.notice-share-loading, .notice-share-error { text-align: center; padding: 34px 6px; color: #78909c; }
.notice-share-error { color: #c62828; font-size: 15px; line-height: 1.7; }
.notice-share-emoji { font-size: 34px; margin-bottom: 10px; }
.notice-share-footer { margin-top: 16px; font-size: 12px; color: #9fb0bd; text-align: center; line-height: 1.7; }
.notice-share-zoom {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
}
.notice-share-zoom img {
    width: min(78vw, 78vh);
    height: min(78vw, 78vh);
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
}
.notice-share-zoom-tip { font-size: 13px; color: #cfd8dc; }


/* 状态色板 */
.status-palette { margin: 8px 0; }
.status-chip {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 14px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.15s;
    min-width: 0;
}
.status-chip:hover { transform: scale(1.05); opacity: 1 !important; }

/* 状态弹窗 */
.status-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.status-popup {
    background: #fff;
    border-radius: 8px;
    width: 320px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}
.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}
.popup-status-list { padding: 8px 0; }
.popup-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    border-left: 4px solid #ccc;
    transition: background 0.15s;
    min-width: 0;
}
.popup-status-item:hover { background: #f0f7ff; }
.popup-status-item .color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}
.popup-custom { font-size: 12px; }

/* 缺勤拍照区域 */
.popup-capture { border-top: 1px solid #eee; }
.capture-area video { display: block; margin: 0 auto; }
.capture-preview { padding: 8px; text-align: center; }
.capture-preview img { display: block; margin: 0 auto; }

/* 图例 */
.legend .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 3px;
    vertical-align: middle;
}
.legend .dot.seat { background: #fff; border: 1px solid #bbb; }
.legend .dot.excluded { background: #f5f5f5; border: 1px solid #ddd; }
.legend .dot.aisle { background: #fafafa; border: 1px solid #eee; }
.legend .dot.podium { background: #ffe7ba; border: 1px solid #ffd591; }
.legend .dot.text { background: #e8f4f8; border: 1px solid #b3d9e6; }

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.status-tag.st-draft { background: #95a5a6; }
.status-tag.st-in_progress { background: #f39c12; }
.status-tag.st-completed { background: #27ae60; }

/* 移动端适配 */
@media (max-width: 768px) {
    .meeting-grid .mcell, .meeting-grid .acell {
        width: 60px;
        height: 44px;
        font-size: 11px;
        padding: 2px;
    }
    .meeting-grid .seat-status { font-size: 9px; }
    .status-popup { width: 100%; }
    .attendance-stats { font-size: 12px !important; gap: 10px !important; }
    .status-palette { gap: 4px !important; }
    .status-chip { padding: 4px 8px; font-size: 11px; }
}

/* 行列号表头 */
.meeting-grid .grid-corner {
    background: #f0f0f0;
    border: 1px solid #ddd;
    width: 28px;
    min-width: 28px;
    height: 24px;
}
.meeting-grid .grid-header {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    width: 80px;
    min-width: 80px;
    height: 24px;
    padding: 2px;
}
.meeting-grid .grid-header-row {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    width: 28px;
    min-width: 28px;
    padding: 2px;
}
.meeting-grid .cell-coord {
    color: #bbb;
    font-size: 10px;
    line-height: 1.2;
}
.meeting-grid .cell-coord.empty-seat {
    color: #ccc;
}
/* 双职工/产假长期状态小字标识 */
.meeting-grid .seat-status.long-term {
    font-size: 9px;
    opacity: 0.85;
}
@media (max-width: 768px) {
    .meeting-grid .grid-header { width: 60px; min-width: 60px; }
    .meeting-grid .cell-coord { font-size: 9px; }
    .meeting-grid .seat-status.long-term { font-size: 8px; }
}


/* ============ 科任老师端·成绩记录布局 ============ */
.score-layout { display: flex; gap: 16px; align-items: flex-start; }
.score-layout .table-wrap { flex: 1 1 auto; min-width: 0; }
.score-layout .trend-panel { flex: 0 0 380px; background: #fff; border: 1px solid #e0e6ed; border-radius: 8px; padding: 12px; }
.score-layout .trend-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.score-layout .trend-title { font-size: 14px; font-weight: 600; color: #1e293b; }
.score-layout .trend-empty { padding: 30px 16px; }
.score-layout .col-mine { background: #e8f4fd; color: #1e88e5; }
.score-layout tbody tr.active { background: #fff7e6; }
.score-layout tbody tr:hover { background: #f8fafc; }
.score-positive { color: #16a34a; }
.score-negative { color: #dc2626; }
@media (max-width: 900px) {
    .score-layout { flex-direction: column; }
    .score-layout .trend-panel { flex: 1 1 auto; width: 100%; }
}

/* ================================================================
   成绩对比分析模块（GradeAnalysis / SubjectSelectionSim）
   ================================================================ */
.ga-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ga-tab {
    padding: 8px 18px; border: 1px solid #d9e2ec; border-radius: 20px;
    background: #fff; color: #52606d; font-size: 14px; cursor: pointer;
    transition: all .15s ease;
}
.ga-tab:hover { border-color: #1e88e5; color: #1e88e5; }
.ga-tab.active { background: #1e88e5; border-color: #1e88e5; color: #fff; font-weight: 600; }
.ga-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: end; }
.ga-cat-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.ga-rule-tip { font-size: 13px; color: #7b8794; font-weight: normal; }
.ga-cat-select { min-width: 130px; padding: 4px 8px; }
.ga-snap-tip { margin-top: 8px; font-size: 12px; color: #7b8794; background: #f0f7ff; border-left: 3px solid #1e88e5; padding: 6px 10px; border-radius: 4px; }
.ga-cat-section h3 { margin-bottom: 8px; }
.ga-teachers-cell { font-size: 12px; color: #52606d; max-width: 260px; }
.ga-prev-name { font-size: 11px; color: #9aa5b1; }
.ga-trend-cell { font-size: 12px; color: #52606d; max-width: 320px; }
.ga-snap-modal { max-width: 960px; width: 95%; max-height: 85vh; overflow-y: auto; }
.ga-print-title { display: none; }
/* 学科行结构报表 */
.ga-subject-table td { vertical-align: middle; }
.ga-class-cell { background: #f8fafc; border-right: 1px solid #e4e7eb; white-space: nowrap; }
.ga-total-cell { background: #fffbeb; text-align: center; border-left: 1px solid #e4e7eb; border-right: 1px solid #e4e7eb; }
.ga-total-row td { background: #f0f7ff; border-top: 2px solid #d9e2ec; font-size: 13px; }
.ga-avg-cell { line-height: 1.8; }
.ga-avg-label { color: #8492a6; font-size: 12px; margin-left: 4px; }
.ga-avg-arrow { color: #c0c4cc; margin: 0 6px; }

/* 年级成绩对比报表：手机端卡片式布局（≤768px 用卡片替代宽表，保证完整呈现） */
.ga-mobile-report { display: none; }
.ga-m-card { border: 1px solid #e4e7ed; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.ga-m-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; color: #323f4b; }
.ga-m-teacher { color: #52606d; font-size: 13px; flex-shrink: 0; }
.ga-m-totals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ga-m-total-chip { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.ga-m-sub-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 7px 0; border-top: 1px dashed #eef2f7; font-size: 13px; }
.ga-m-sub-row:first-of-type { border-top: none; }
.ga-m-sub-name { min-width: 42px; font-weight: 600; color: #323f4b; }
.ga-m-sub-chips { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.ga-m-chip { background: #f0f7ff; border-radius: 4px; padding: 1px 6px; font-size: 12px; color: #334e68; white-space: nowrap; }
.ga-m-sub-teacher { color: #7b8794; font-size: 12px; flex-shrink: 0; }
.ga-m-avg { margin-top: 6px; padding-top: 7px; border-top: 1px solid #eef2f7; font-size: 13px; color: #52606d; line-height: 1.7; }
.ga-m-empty { color: #9aa5b1; font-size: 12px; margin-top: 6px; }
@media (max-width: 768px) {
    .ga-desktop-report { display: none !important; }
    .ga-mobile-report { display: block; }
}

/* 重点关注标识：按连续标记次数颜色递进（1次浅黄 → 2次橙 → 3次及以上红） */
tr.focus-row-1 > td { background-color: #fffbe6 !important; }
tr.focus-row-2 > td { background-color: #ffeccc !important; }
tr.focus-row-3 > td { background-color: #ffdddd !important; }
.focus-badge { display: inline-block; font-size: 11px; line-height: 1.6; padding: 1px 8px; border-radius: 4px; margin-top: 3px; font-weight: 500; }
.focus-badge-1 { background: #fef3c7; color: #92400e; }
.focus-badge-2 { background: #fed7aa; color: #9a3412; }
.focus-badge-3 { background: #fecaca; color: #991b1b; }

/* 选科模拟 */
.xk-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: end; }
.xk-tip { margin-top: 8px; font-size: 12px; color: #7b8794; }
.xk-combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.xk-combo {
    padding: 12px 8px; border: 1px solid #d9e2ec; border-radius: 8px;
    background: #f8fafc; font-size: 14px; cursor: pointer; text-align: center;
    transition: all .15s ease;
}
.xk-combo:hover { border-color: #1e88e5; color: #1e88e5; background: #f0f7ff; }
.xk-combo.active { background: #1e88e5; border-color: #1e88e5; color: #fff; font-weight: 600; }
.xk-total-cell { text-align: center; vertical-align: middle; background: #f0f7ff; min-width: 110px; }
.xk-total-score { font-size: 24px; font-weight: 700; color: #1e88e5; }
.xk-total-rank { font-size: 13px; color: #52606d; margin-top: 4px; }
.xk-ai-card { border-left: 4px solid #7c3aed; }
.xk-ai-text { white-space: pre-wrap; line-height: 1.8; font-size: 14px; color: #334; }

/* 选科模拟：下拉面板加高（学生名单较长，默认320px可见选项太少） */
.xk-page .ac-dropdown { max-height: min(56vh, 480px); }
/* 全班最优组合一览 */
.xk-best-stat { margin: 4px 0 10px; font-size: 13px; color: #52606d; }
.xk-phy-text { color: #1565c0; }
.xk-his-text { color: #e65100; }
.xk-track-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 12px; margin-right: 6px; }
.xk-track-tag.phy { background: #e3f2fd; color: #1565c0; }
.xk-track-tag.his { background: #fff3e0; color: #e65100; }
.xk-best-row { cursor: pointer; }
.xk-best-row:hover { background: #f5f9ff; }
.xk-best-active { background: #f0f7ff; }
.xk-ineligible { margin-top: 10px; font-size: 13px; color: #7b8794; }
.xk-ineligible summary { cursor: pointer; }
.xk-ineligible-list { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; line-height: 1.6; }

/* 成绩对比打印：只保留报表区，隐藏菜单/按钮/筛选，表格强制100%宽防止右侧裁切 */
@media print {
    .admin-layout .sidebar,
    .admin-layout .top-bar,
    .mobile-tab-bar,
    .ga-tabs,
    .no-print,
    .sidebar-overlay { display: none !important; }
    html, body { width: 100% !important; overflow: visible !important; }
    .admin-layout,
    .admin-layout .main-content,
    .admin-layout .content-wrapper,
    .admin-layout .page-container {
        margin: 0 !important; padding: 0 !important;
        width: 100% !important; max-width: 100% !important;
        flex: none !important; display: block !important;
    }
    .ga-print-title {
        display: block !important; text-align: center; font-size: 18px; font-weight: 700;
        margin-bottom: 12px; color: #000;
    }
    .print-area,
    .print-area .card,
    .print-area .table-container {
        width: 100% !important; max-width: 100% !important;
        overflow: visible !important;
    }
    .print-area .card { border: none !important; box-shadow: none !important; padding: 0 !important; margin-bottom: 14px !important; }
    .print-area table { width: 100% !important; table-layout: auto !important; font-size: 11px !important; }
    .print-area th, .print-area td {
        white-space: normal !important;
        word-break: break-word !important;
        padding: 4px 6px !important;
        max-width: none !important;
    }
}

/* ================================================================
   移动端统一适配区块（2026-10 增补）
   说明：本区块全部规则仅在小屏/横屏生效，不改变 PC 端（>768px）任何表现；
   依靠层叠顺序覆盖前文同名规则，前文既有媒体块保持不动。
   ================================================================ */

/* ==================== 移动端统一适配（≤768px 主档） ==================== */
@media (max-width: 768px) {
    /* ScoreShare 成绩分享页自定义弹窗兜底：这批类名此前在全站样式中无定义，
       此处仅移动端补齐遮罩/居中/宽度，PC 端维持原状不做改动 */
    .modal-mask {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        padding: 12px;
        box-sizing: border-box;
    }
    .modal-card {
        background: #fff;
        border-radius: var(--radius);
        width: 92%;
        max-height: 88vh;
        overflow-y: auto;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        box-sizing: border-box;
    }
    .modal-card .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 18px;
        border-bottom: 1px solid var(--border-color);
    }
    .modal-card .modal-header h3 { margin: 0; font-size: 16px; }
    .modal-card .modal-body { padding: 16px 18px; }
    .modal-card .modal-footer {
        padding: 12px 18px;
        border-top: 1px solid var(--border-color);
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }
    .modal-card .modal-close {
        background: none; border: none; font-size: 22px; cursor: pointer;
        color: #888; line-height: 1; padding: 4px 8px;
    }

    /* iOS Safari 输入框字号 <16px 时聚焦会自动放大页面，统一提升到 16px */
    input, select, textarea { font-size: 16px; }
    /* 例外：成绩录入等表格内控件保持 14px 紧凑网格（取舍：表格内聚焦仍可能缩放，优先保全表格布局密度） */
    .data-table input, .data-table select, .data-table textarea { font-size: 14px; }

    /* 触控目标补足到 40px（移动端交互规范） */
    .pagination button { min-height: 40px; padding: 8px 16px; }
    .role-tab { min-height: 40px; }

    /* 统计卡片：覆写前文 ≤768px 单列规则，手机端两列提升信息密度（≤360px 回到单列，见下方小屏档） */
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    /* 表格横滚容器启用 iOS 惯性滚动，滑动更顺滑 */
    .table-wrap, .table-container, .st-class-table-wrap { -webkit-overflow-scrolling: touch; }
}

/* ==================== 紧凑档（≤430px：主流手机宽度） ==================== */
@media (max-width: 430px) {
    .card { padding: 14px; }
    .stat-card { padding: 16px; gap: 12px; }
    .stat-icon { font-size: 32px; }
    .stat-value { font-size: 24px; }
    .page-header h2 { font-size: 17px; }
    .modal-content { padding: 14px; }
    .modal-card .modal-header,
    .modal-card .modal-body { padding-left: 14px; padding-right: 14px; }
}

/* ==================== 学生互评：统计弹窗样式补齐 ====================
   背景：TeacherPeerReviews.js 统计弹窗（汇总/维度分布/评价详情/评语审核）使用的
   这些类此前未在 style.css 定义 → 汇总数字挤成纵向一列、维度占比条与雷达卡片无结构，
   统计内容「显示不全/看不出结构」。此处按既有视觉规范（蓝色主色 / 8-10px 圆角）补齐。
   .dim-name 已在 L2291 定义（此处仅补充行内布局所需规则）。 */

/* 汇总数字行：一行多列自适应（此前容器无 display，子项纵向堆叠成一列） */
.class-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}

/* 弹窗内子 Tab：比整页 Tab 更紧凑 */
.peer-tabs-sm { flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.peer-tabs-sm .peer-tab { padding: 8px 16px; font-size: 13px; }

/* 等级四色：A/B/C/D 全局统一（分布条、柱状图、详情表格共用） */
.bar-a { background: #52c41a; }
.bar-b { background: #1677ff; }
.bar-c { background: #faad14; }
.bar-d { background: #ff4d4f; }
.lvl-a { color: #389e0d; font-weight: 600; }
.lvl-b { color: #096dd9; }
.lvl-c { color: #d48806; }
.lvl-d { color: #cf1322; font-weight: 600; }

/* 班级各维度等级分布：堆叠占比条 */
.dist-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dist-label { font-size: 13px; color: #333; }
.dist-bars { flex: 1; display: flex; height: 22px; border-radius: 4px; overflow: hidden; background: #f0f2f5; }
.dist-bar {
    display: flex; align-items: center; justify-content: center;
    min-width: 0; color: #fff; font-size: 11px; white-space: nowrap;
    overflow: hidden; transition: width .3s;
}
.dist-bar-label { padding: 0 4px; }

/* 维度分布 Tab：柱状图 */
.dist-chart { margin-bottom: 20px; }
.dist-chart-title { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 8px; }
.dist-chart-bars { display: flex; align-items: flex-end; gap: 18px; height: 160px; padding: 0 4px; }
.dist-chart-bar-wrap { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.dist-chart-bar {
    width: 46px; min-height: 4px; border-radius: 6px 6px 0 0;
    display: flex; align-items: flex-start; justify-content: center;
}
.dist-chart-num { padding-top: 4px; font-size: 12px; color: #fff; }
.dist-chart-lvl { margin-top: 6px; font-size: 12px; color: #666; text-align: center; }
.dist-chart-lvl small { display: block; font-size: 10px; color: #999; }

/* 汇总 Tab：每位学生统计卡片（雷达图 + 维度得分条） */
.student-stats-list { display: flex; flex-direction: column; gap: 16px; }
.student-stats-card { padding: 16px; background: #fff; border: 1px solid #eee; border-radius: 10px; }
.student-stats-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.student-stats-body { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 24px; margin-top: 12px; }
.radar-canvas { flex: 0 0 auto; width: 260px; height: 260px; max-width: 100%; }
.dimension-scores { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 10px; }
.dimension-score-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dimension-score-row .dim-name { flex: 0 0 auto; margin: 0; font-size: 13px; }
.dim-bar { flex: 1; height: 8px; background: #f0f2f5; border-radius: 4px; overflow: hidden; }
.dim-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4096ff, #1677ff); transition: width .3s; }
.dim-value { flex: 0 0 auto; color: #333; font-variant-numeric: tabular-nums; }

/* 评语审核 Tab：评语卡片列表 */
.comment-review-list { display: flex; flex-direction: column; gap: 12px; }
.comment-review-item { padding: 12px; background: #fff; border: 1px solid #eee; border-radius: 8px; }
.comment-review-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.comment-review-who { font-size: 14px; color: #333; }
.comment-review-body { padding: 8px; margin-bottom: 8px; font-size: 13px; line-height: 1.6; color: #444; background: #f8fafc; border-radius: 6px; }
.comment-review-actions { display: flex; gap: 8px; }

/* 评价详情表格：小字号档 */
.data-table.small-font { font-size: 12px; }

@media (max-width: 768px) {
    .class-stats-summary { grid-template-columns: repeat(2, 1fr); }
    .student-stats-body { flex-direction: column; }
    .radar-canvas { width: 100%; height: auto; }
    .dist-chart-bars { gap: 10px; }
    .dist-chart-bar { width: 34px; }
}

/* ==================== 小屏档（≤360px：老款小屏机） ==================== */
@media (max-width: 360px) {
    .card { padding: 12px; }
    .stats-grid { grid-template-columns: 1fr; }
    .st-home { padding: 10px; }
}

/* ==================== 横屏档（手机横持，视口高度受限） ==================== */
@media (max-height: 480px) and (orientation: landscape) {
    .modal-content, .modal-card { max-height: 94vh; }
    .mobile-tab-bar { height: 48px; }
}

/* ==================== 增值评价 · 科任老师卡片化布局 ==================== */
.va-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: #262626;
}

.va-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.va-class-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e6e9ef;
    padding: 14px 16px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.va-class-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }

.va-class-card.va-card-warn { border-color: #ffccc7; background: linear-gradient(180deg, #fff 0%, #fff7f7 100%); }
.va-class-card.va-card-prog { border-color: #b7eb8f; background: linear-gradient(180deg, #fff 0%, #f6ffed 100%); }

.va-card-summary {
    font-size: 13px;
    color: #595959;
    line-height: 1.5;
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 3px solid #1890ff;
}
.va-card-warn .va-card-summary { border-left-color: #ff4d4f; background: #fff1f0; }
.va-card-prog .va-card-summary { border-left-color: #52c41a; background: #f6ffed; }

.va-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.va-class-name { font-size: 17px; font-weight: 700; color: #262626; }
.va-subject { font-size: 12px; color: #8c8c8c; }

.va-card-growth {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    background: #f5f7fa;
    border-radius: 8px;
    margin-bottom: 10px;
}
.va-arrow { font-size: 20px; font-weight: 700; line-height: 1; }
.va-arrow-up { color: #389e0d; }
.va-arrow-down { color: #f5222d; }
.va-arrow-flat { color: #8c8c8c; }
.va-arrow-gray { color: #bfbfbf; }

.va-growth-val { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.va-growth-label { font-size: 13px; font-weight: 500; }

.va-card-stats { display: flex; gap: 10px; margin-bottom: 12px; }
.va-stat { flex: 1; text-align: center; padding: 8px; background: #fafafa; border-radius: 6px; }
.va-stat-label { font-size: 12px; color: #8c8c8c; margin-bottom: 4px; display: block; }
.va-stat-val { font-size: 14px; font-weight: 600; }

.va-badge {
    display: inline-block; padding: 2px 10px; border-radius: 10px;
    font-size: 12px; font-weight: 600;
}
.va-badge-green { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }
.va-badge-red   { background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; }
.va-badge-gray  { background: #f5f5f5; color: #8c8c8c; border: 1px solid #d9d9d9; }

.va-card-levels {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-top: 1px dashed #e8e8e8;
    font-size: 12px;
}
.va-level-item { display: flex; flex-direction: column; gap: 2px; }
.va-level-label { color: #8c8c8c; }
.va-level-val { font-size: 15px; font-weight: 600; color: #262626; }
.va-level-arrow { color: #bfbfbf; font-size: 14px; }

/* --- 进步榜 / 掉队榜 --- */
.va-lists-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
.va-list-card { background: #fff; border-radius: 10px; border: 1px solid #e6e9ef; padding: 14px 16px; }
.va-list-green { border-color: #b7eb8f; }
.va-list-red   { border-color: #ffa39e; }
.va-list-head { font-size: 15px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.va-list-icon { font-size: 16px; }
.va-list-empty { font-size: 13px; color: #8c8c8c; padding: 12px; text-align: center; background: #fafafa; border-radius: 6px; }
.va-list-ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.va-list-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 10px; align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 13px;
}
.va-list-item-green { background: #f6ffed; border-left: 3px solid #52c41a; }
.va-list-item-red   { background: #fff7f7; border-left: 3px solid #ff4d4f; }
.va-li-name { font-weight: 600; color: #262626; }
.va-li-meta { color: #8c8c8c; font-size: 12px; }
.va-li-pct { color: #595959; font-size: 12px; white-space: nowrap; }
.va-li-delta { font-weight: 700; font-size: 13px; }
.va-li-delta-pos { color: #389e0d; }
.va-li-delta-neg { color: #cf1322; }

/* --- 分数段流向（折叠） --- */
.va-flow-details {
    background: #fff; border-radius: 10px; border: 1px solid #e6e9ef;
    padding: 10px 14px; margin-bottom: 20px;
}
.va-flow-summary {
    cursor: pointer; font-weight: 600; font-size: 14px; color: #1890ff;
    user-select: none; padding: 4px 0;
}
.va-flow-summary:hover { color: #096dd9; }
.va-flow-wrap { margin-top: 12px; }
.va-flow-cell-good { background: #f6ffed; color: #389e0d; font-weight: 700; }
.va-flow-cell-bad  { background: #fff1f0; color: #cf1322; font-weight: 700; }
.va-flow-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: #595959; }
.va-legend { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.va-legend-good { background: #f6ffed; border: 1px solid #b7eb8f; }
.va-legend-bad  { background: #fff1f0; border: 1px solid #ffa39e; }

/* --- 响应式：小屏堆叠 --- */
@media (max-width: 900px) {
    .va-lists-row { grid-template-columns: 1fr; }
    .va-card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .va-card-grid { grid-template-columns: 1fr; }
    .va-list-item { grid-template-columns: 1fr 1fr; }
    .va-li-pct, .va-li-delta { grid-column: 1 / -1; }
}

/* ==================== 常规检查：视图切换 / 附件审阅 / 班级汇总 ==================== */
.mi-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.mi-tab {
    padding: 8px 18px; border: 1px solid #d9d9d9; background: #fff; border-radius: 6px;
    cursor: pointer; font-size: 14px; color: #595959;
}
.mi-tab.on { background: #1890ff; border-color: #1890ff; color: #fff; font-weight: 600; }

.mi-att-cell { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mi-att-thumb {
    width: 40px; height: 40px; object-fit: cover; border-radius: 4px;
    border: 1px solid #e8e8e8; cursor: zoom-in; transition: transform .15s;
}
.mi-att-thumb:hover { transform: scale(1.08); }
.mi-att-file {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; border-radius: 4px; border: 1px solid #e8e8e8;
    background: #fafafa; text-decoration: none; font-size: 18px;
}
.mi-att-file-lg {
    width: auto; height: 34px; padding: 0 10px; font-size: 13px; color: #1890ff; white-space: nowrap;
}
.mi-att-more {
    border: none; background: #e6f7ff; color: #1890ff; border-radius: 4px;
    padding: 4px 8px; font-size: 12px; cursor: pointer;
}

.mi-class-summary {
    display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 12px; margin: 10px 0;
    background: #fafafa; border-radius: 6px; font-size: 13px; color: #595959;
}
.mi-records { max-height: 58vh; overflow-y: auto; }
.mi-record { border: 1px solid #eee; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.mi-record-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mi-record-date { font-weight: 700; color: #262626; font-size: 14px; }
.mi-record-time { color: #8c8c8c; font-size: 12px; }
.mi-record-deduct { color: #cf1322; font-size: 12px; }
.mi-record-content {
    margin-top: 8px; padding: 8px 10px; background: #fafafa; border-radius: 6px;
    font-size: 13px; color: #333; white-space: pre-wrap; line-height: 1.5;
}
.mi-record-atts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }

/* 班主任端：附件文件卡片 */
.attachment-file {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; height: 100%; text-decoration: none; color: #1890ff; overflow: hidden;
}
.attachment-file-name {
    font-size: 11px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 768px) {
    .mi-tabs { flex-direction: column; }
    .mi-tab { width: 100%; }
}

.mi-record-task {
    font-size: 12px; color: #1890ff; background: #e6f7ff;
    padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}

/* ================================================================
   全局移动端自适应加固（所有端通用，覆盖各视图 injectStyle 硬编码）
   原则：不改变桌面端样式，仅在小屏兜底
   ================================================================ */

/* —— 主移动端断点（≤768px，手机+小平板竖屏） —— */
@media (max-width: 768px) {
    /* 1. 弹窗/模态框：统一限制在视口内，可滚动 */
    .modal-content,
    .cd-modal, .cm-modal, .status-popup,
    .cd-import-modal, .modal-punishment,
    [class*="modal-content"] {
        width: 94% !important;
        max-width: 94vw !important;
        max-height: 88vh !important;
        overflow: auto !important;
        box-sizing: border-box;
    }

    /* 2. 表格容器：移动端必须可横向滚动（覆盖视图内 overflow:hidden） */
    .table-container,
    [class*="table-container"],
    [class*="data-table-wrap"],
    [class*="score-table-wrap"],
    [class*="matrix-wrap"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .data-table {
        min-width: 720px;
    }

    /* 3. 输入/选择器：放宽 min-width，避免溢出 */
    select, input[type="text"], input[type="number"], input[type="search"],
    input[type="date"], input[type="datetime-local"], textarea {
        min-width: 0 !important;
        max-width: 100%;
    }
    .cd-select, .cm-select, .cst-select,
    .cd-week-select, .cd-task-select, .cd-member-select {
        min-width: 120px !important;
        width: 100%;
    }

    /* 4. 页面容器与内边距 */
    .page-content {
        padding: 12px;
    }
    .page-container {
        padding: 0;
    }

    /* 5. 按钮：保证触控尺寸，避免文字被挤 */
    .btn-primary, .btn-secondary, .btn-danger,
    .btn-success, .btn-warning {
        min-height: 40px;
    }
    .btn-sm {
        min-height: 32px;
    }

    /* 6. 顶栏：隐藏次要元素，保证菜单/通知/退出可见 */
    .top-bar-right .user-role,
    .top-bar-right .btn-change-pwd {
        display: none !important;
    }
    .top-bar-right {
        gap: 6px;
    }
    .user-name {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 7. 表单行纵向排列，避免并排溢出 */
    .form-row, .filter-bar, .toolbar {
        flex-wrap: wrap;
    }
    .form-group {
        min-width: 0;
    }

    /* 8. 大屏端相关弹窗的 min-width 放宽 */
    .cs-clean-modal, .cs-modal {
        min-width: 0 !important;
        width: 94vw !important;
        max-width: 94vw !important;
    }
}

/* —— 超小屏（≤480px，如 iPhone SE） —— */
@media (max-width: 480px) {
    .data-table {
        min-width: 600px;
    }
    .data-table th, .data-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    .modal-content,
    .cd-modal, .cm-modal, .status-popup {
        width: 96% !important;
        max-width: 96vw !important;
    }
    .page-content {
        padding: 10px;
    }
    .page-header h2 {
        font-size: 17px;
    }
    .stat-value {
        font-size: 22px;
    }
}

/* ================================================================
   部门端 · 随机点名（MiddleRollCall）
   结构：Tab 切换 → 左侧筛选卡 + 右侧抽取舞台 / 批量导入
   ================================================================ */
.rollcall-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.rollcall-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border: 1px solid #d9e2ec;
    border-radius: var(--radius-pill);
    background: #fff;
    color: #52606d;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-base);
}
.rollcall-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.rollcall-tab.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(24, 144, 255, .26);
}
.rollcall-tab-badge {
    min-width: 18px;
    padding: 0 5px;
    height: 18px;
    line-height: 18px;
    border-radius: 9px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}
.rollcall-tab.active .rollcall-tab-badge {
    background: rgba(255, 255, 255, .3);
}

/* 两栏布局：筛选卡固定宽度，舞台自适应 */
.rollcall-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.rollcall-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rollcall-side-title {
    margin: 0 0 2px;
    font-size: 15px;
    color: #1f2d3d;
}
.rollcall-label {
    margin-top: 2px;
    font-size: 13px;
    color: #7b8794;
}
.rollcall-side .form-input {
    width: 100%;
    box-sizing: border-box;
}
.rollcall-count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
    padding: 12px 8px;
    border-radius: var(--radius-lg);
    background: #f0f7ff;
    border: 1px solid #d6e9ff;
    font-size: 13px;
    color: #52606d;
}
.rollcall-count b {
    font-size: 26px;
    line-height: 1;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}
.rollcall-count-note {
    margin-top: -4px;
    text-align: center;
    font-size: 12px;
    color: #8d6e63;
}
.rollcall-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius);
    background: #fafafa;
    font-size: 13px;
    color: #52606d;
    cursor: pointer;
    user-select: none;
}
.rollcall-switch input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}
.rollcall-side-tip {
    font-size: 12px;
    line-height: 1.7;
    color: #9aa5b1;
    border-left: 3px solid #e4e7eb;
    padding-left: 8px;
}

/* 抽取舞台 */
.rollcall-stage {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    background: linear-gradient(160deg, #f7fbff 0%, #eef5ff 55%, #e8f1ff 100%);
    border: 1px solid #dbe9f7;
}
.rollcall-stage-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.rollcall-pill {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: rgba(24, 144, 255, .12);
    color: #1565c0;
    font-size: 13px;
    font-weight: 500;
}
.rollcall-pill.ghost {
    background: rgba(255, 255, 255, .85);
    border: 1px solid #d6e9ff;
    color: #52606d;
}
.rollcall-name {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 10px;
    min-height: 150px;
    margin: 14px 0 6px;
    font-size: 64px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 2px;
    color: #12447d;
    text-align: center;
    word-break: break-all;
    transition: color .2s ease;
}
.rollcall-main {
    display: inline-block;
}
.rollcall-grade {
    display: inline-block;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #1565c0;
    opacity: .92;
}
.rollcall-name.empty .rollcall-grade {
    display: none;
}
.rollcall-name.rolling {
    color: var(--primary-color);
    animation: rollcall-shake .18s linear infinite;
}
.rollcall-name.empty {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0;
    color: #9aa5b1;
    animation: none;
}
@keyframes rollcall-shake {
    0%   { transform: translateY(0) scale(1); opacity: 1; }
    50%  { transform: translateY(-4px) scale(1.03); opacity: .78; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
.rollcall-sub {
    min-height: 22px;
    text-align: center;
    font-size: 14px;
    color: #52606d;
    word-break: break-word;
}
.rollcall-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 18px 0 4px;
}
.rollcall-draw {
    min-width: 176px;
    height: 52px;
    padding: 0 32px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--primary-gradient);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(24, 144, 255, .3);
    transition: var(--transition-base);
}
.rollcall-draw:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(24, 144, 255, .38);
}
.rollcall-draw:active:not(:disabled) {
    transform: translateY(0);
}
.rollcall-draw:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}
.rollcall-round {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #cfdff0;
}
.rollcall-round-title {
    margin-bottom: 8px;
    font-size: 13px;
    color: #7b8794;
}
.rollcall-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rollcall-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid #d6e9ff;
    color: #1565c0;
    font-size: 13px;
    animation: rollcall-chip-in .25s ease both;
}
@keyframes rollcall-chip-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rollcall-empty {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .8);
    border: 1px dashed #c9d9ea;
    font-size: 13px;
    line-height: 1.7;
    color: #7b8794;
    text-align: center;
}

/* 批量导入 */
.rollcall-hint {
    margin: 4px 0 12px;
    font-size: 13px;
    line-height: 1.8;
    color: #7b8794;
}
.rollcall-hint code {
    padding: 1px 6px;
    border-radius: 4px;
    background: #f0f7ff;
    color: #1565c0;
    font-size: 12px;
}
.rollcall-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d9e2ec;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.8;
    color: #33475b;
    resize: vertical;
    transition: var(--transition-base);
}
.rollcall-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, .12);
}
.rollcall-import-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.rollcall-msg {
    font-size: 13px;
    line-height: 1.6;
    color: #52606d;
}
.rollcall-import-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.rollcall-import-head h3 {
    margin: 0;
}
.rollcall-dup-hint {
    font-size: 12px;
    font-weight: 500;
    color: #fa8c16;
    margin-left: 10px;
}

/* —— 停止按钮（滚动中显示） —— */
.rollcall-stop {
    background: linear-gradient(135deg, #ff4d4f 0%, #e74c3c 100%);
    box-shadow: 0 6px 18px rgba(231, 76, 60, .35);
}
.rollcall-stop:hover:not(:disabled) {
    box-shadow: 0 8px 22px rgba(231, 76, 60, .45);
    transform: translateY(-1px);
}

/* —— 全屏展示 —— */
.rollcall-fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 40px 60px !important;
    border-radius: 0 !important;
    border: none !important;
    overflow: auto;
    box-shadow: 0 0 0 9999px rgba(240, 247, 255, .95);
    background: linear-gradient(160deg, #eaf3ff 0%, #dbe9ff 60%, #c7dfff 100%) !important;
}
.rollcall-fullscreen .rollcall-stage-top {
    margin-bottom: 20px;
}
.rollcall-fullscreen .rollcall-name {
    min-height: 38vh;
    font-size: 140px;
    gap: 24px 14px;
    margin: 20px 0 14px;
}
.rollcall-fullscreen .rollcall-grade {
    font-size: 84px;
}
.rollcall-fullscreen .rollcall-sub {
    min-height: 36px;
    font-size: 22px;
    color: #1565c0;
}
.rollcall-fullscreen .rollcall-draw {
    min-width: 240px;
    height: 76px;
    font-size: 24px;
    letter-spacing: 2px;
    border-radius: var(--radius-lg);
}
.rollcall-fullscreen .rollcall-round {
    padding-top: 24px;
}
.rollcall-fullscreen .rollcall-chip {
    font-size: 18px;
    padding: 8px 20px;
}

/* 响应式：中小屏改单栏 */
@media (max-width: 900px) {
    .rollcall-layout {
        grid-template-columns: 1fr;
    }
    .rollcall-stage {
        min-height: 320px;
    }
    .rollcall-name {
        font-size: 44px;
        min-height: 110px;
    }
}
@media (max-width: 480px) {
    .rollcall-tab {
        flex: 1;
        justify-content: center;
        padding: 9px 12px;
    }
    .rollcall-name {
        font-size: 34px;
        letter-spacing: 1px;
    }
    .rollcall-draw {
        width: 100%;
        min-width: 0;
    }
    .rollcall-btns .btn-secondary {
        width: 100%;
    }
}

