/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 思政主题红色系 */
    --primary-color: #c8102e;
    --primary-hover: #a00d25;
    --primary-light: #e63946;
    --primary-dark: #8b0a1a;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --bg-color: #fef2f2;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #fecaca;
    --shadow: 0 1px 3px 0 rgba(200, 16, 46, 0.1), 0 1px 2px 0 rgba(200, 16, 46, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(200, 16, 46, 0.1), 0 4px 6px -2px rgba(200, 16, 46, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative; /* 为水印定位提供参考 */
}

/* 页面背景图（老师端 & 管理端） */
.teacher-page,
.admin-page {
    background-image: url('/assets/sz-kv.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.teacher-page .dashboard-container,
.teacher-page .login-container,
.admin-page .dashboard-container,
.admin-page .login-container {
    background: transparent;
}

/* 内页顶部导航磨玻璃效果 */
.teacher-page .dashboard-header .header-content,
.admin-page .dashboard-header .header-content {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 12px 24px;
}

/* 内页主内容区 — 移除磨玻璃包裹，改为单个卡片独立效果 */
.teacher-page .dashboard-main,
.admin-page .dashboard-main {
    padding: 8px;
}

/* 内页卡片磨玻璃效果（老师端 & 管理端） */
.teacher-page .course-card,
.teacher-page .todo-section,
.teacher-page .review-card,
.teacher-page .review-status-bar,
.teacher-page .card,
.teacher-page .chart-section,
.teacher-page .report-section,
.teacher-page .report-header,
.teacher-page .archive-section,
.teacher-page .data-source-card,
.teacher-page .data-fusion-note,
.admin-page .stat-card,
.admin-page .stats-group,
.admin-page .chart-section,
.admin-page .teacher-table-wrap,
.admin-page .table-container,
.admin-page .card,
.admin-page .report-section,
.admin-page .report-header,
.admin-page .archive-section,
.admin-page .data-source-card {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 8px 32px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

/* 管理端表格容器已设置 overflow: hidden，需要恢复 border-radius 显示 */
.admin-page .teacher-table-wrap,
.admin-page .table-container {
    border-radius: 12px;
}

/* review-card 高亮/警告变体也应用磨玻璃 */
.teacher-page .review-card.review-card-highlight,
.teacher-page .review-card.review-card-warning {
    background: rgba(255, 255, 255, 0.6) !important;
}

/* 水印样式 */
#watermark-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* 登录页面样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border-top: 4px solid var(--primary-color);
    position: relative;
}

/* 页面背景下的登录框磨玻璃效果 */
.teacher-page .login-box,
.admin-page .login-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 登录框文字在磨玻璃背景上更清晰 */
.teacher-page .login-box .form-group label,
.admin-page .login-box .form-group label {
    color: var(--text-primary);
    font-weight: 600;
}

.teacher-page .login-box .login-header h1,
.admin-page .login-box .login-header h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.teacher-page .login-box .login-header p,
.admin-page .login-box .login-header p {
    color: rgba(30, 41, 59, 0.75);
}

/* 管理端登录页：紫色主题，与老师端红色区分 */
.admin-page .login-container .login-box {
    border-top-color: #7c3aed;
}

.admin-page .login-container .login-box::before {
    background: linear-gradient(90deg, #6b21a8, #8b5cf6);
}

.admin-page .login-container .login-header h1 {
    color: #6b21a8;
    text-shadow: 0 2px 4px rgba(107, 33, 168, 0.12);
}

.admin-page .login-container .form-group input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.admin-page .login-container .btn-primary {
    background-color: #7c3aed;
}

.admin-page .login-container .btn-primary:hover {
    background-color: #6d28d9;
}

.admin-page .login-container .link-text {
    color: #7c3aed;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header .system-name {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(200, 16, 46, 0.1);
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-block {
    width: 100%;
    display: block;
}

.error-message {
    margin-top: 16px;
    padding: 12px;
    background-color: #fee2e2;
    color: var(--danger-color);
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

/* 通用组件 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

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

/* 响应式工具类 */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* 工作台样式 */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    /* 报告页要求：不再固定在顶部，跟随页面滚动 */
    background: transparent;
    box-shadow: none;
    padding: 16px 0;
    border-bottom: none;
    position: static;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto 8px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between; /* 标题在左，按钮在右 */
    align-items: center;
}

.header-content h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumb a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #ccc;
    font-size: 12px;
}

.breadcrumb > span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.user-info {
    color: var(--text-secondary);
    font-size: 14px;
}

.logout-link {
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
}

.logout-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-secondary:hover {
    background-color: #475569;
}

.dashboard-main {
    flex: 1;
    padding: 12px 0;
}

.welcome-section {
    margin-bottom: 20px;
}

.welcome-section h2 {
    font-size: 28px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 4px;
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.course-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-left-color: var(--primary-color);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.course-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    margin-right: 16px;
}

.course-score {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.course-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-teacher {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 教师端课程列表：学时文字更小且灰色，时间文字更醒目 */
.course-credit-hours {
    font-size: 12px;
    color: var(--text-secondary);
}

.course-date {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* 课程详情页样式 */
.course-header-info {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.course-header-info h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.course-meta-info {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 标签页样式 */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    border-bottom-width: 3px;
    font-weight: 600;
}

.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 转写文本样式 */
.transcript-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.transcript-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    max-height: 600px;
    overflow-y: auto;
}

.transcript-segment {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.transcript-segment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.segment-time {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    cursor: pointer;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.segment-time:hover {
    background-color: rgba(200, 16, 46, 0.1);
}

.segment-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

/* 关键词高亮样式 */
mark.keyword-value {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
    border-left: 2px solid var(--primary-color);
}

mark.keyword-theory {
    background-color: #fef2f2;
    color: #991b1b;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
    border-left: 2px solid var(--primary-light);
}

mark.search-highlight {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    border-left: 2px solid var(--primary-color);
}

/* 数据来源页面样式 */
.data-source-section {
    padding: 24px 0;
}

.data-source-section h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.data-source-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.data-source-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.data-source-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 16, 46, 0.1);
    border-radius: 50%;
}

.data-source-title {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-source-title h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
}

.data-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(100, 116, 139, 0.1);
    color: var(--secondary-color);
}

.data-status.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.data-source-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
}

.info-label {
    color: var(--text-secondary);
    font-size: 14px;
    min-width: 100px;
}

.info-value {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

.info-value.status-success {
    color: var(--success-color);
    font-weight: 600;
}

.dimensions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.dimension-tag {
    padding: 4px 12px;
    background: rgba(200, 16, 46, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.dimension-tag.inactive {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
}

.data-info-note {
    margin-top: 8px;
    padding: 12px;
    background: rgba(200, 16, 46, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.data-info-note small {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.data-fusion-note {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.05), rgba(200, 16, 46, 0.02));
    border-radius: 12px;
    padding: 24px;
    border: 2px solid rgba(200, 16, 46, 0.1);
    margin-top: 24px;
}

.data-fusion-note h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.data-fusion-note p {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* 报告页样式 */
.report-header {
    background: linear-gradient(135deg, var(--card-bg) 0%, #fff5f5 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.report-header h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.report-score {
    margin-left: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.score-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.score-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.report-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 课程详情页内嵌报告 iframe */
.report-iframe {
    width: 100%;
    height: 800px; /* 初始高度，将由 JavaScript 动态调整 */
    border: none;
    background: transparent;
    overflow: hidden; /* 隐藏 iframe 自身的滚动条 */
}

.report-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s;
}

.report-section:hover {
    box-shadow: var(--shadow-lg);
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.section-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.analysis-card {
    padding: 16px;
    background: var(--bg-color);
    border-radius: 8px;
}

.analysis-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.score-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.score-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.keyword-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.keyword-name {
    font-weight: 500;
    color: var(--text-primary);
}

.keyword-count {
    color: var(--text-secondary);
    font-size: 14px;
}

.coverage-item {
    margin-bottom: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
}

.coverage-item.warning {
    background: #fef3c7;
    border-left: 3px solid var(--warning-color);
}

.match-item {
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 12px;
}

.match-case {
    font-weight: 500;
    margin-bottom: 4px;
}

.match-theory {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.match-score {
    color: var(--primary-color);
    font-weight: 600;
}

.resonance-item {
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 12px;
}

.resonance-time {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.resonance-content {
    margin-bottom: 4px;
}

.resonance-emotion {
    color: var(--text-secondary);
    font-size: 14px;
}

.strengths-list,
.issues-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.strength-item,
.issue-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 8px;
}

.strength-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.issue-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--danger-color), #b91c1c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.strength-content,
.issue-content {
    flex: 1;
}

.strength-description,
.issue-description {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.strength-basis,
.issue-basis {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.strength-time {
    color: var(--primary-color);
    font-size: 14px;
}

.issue-details {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    align-items: center;
}

.issue-time {
    color: var(--text-secondary);
    font-size: 14px;
}

.issue-severity {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.severity-high {
    background: #fee2e2;
    color: var(--danger-color);
}

.severity-medium {
    background: #fef3c7;
    color: var(--warning-color);
}

.severity-low {
    background: #dbeafe;
    color: var(--primary-color);
}

.suggestions-short,
.suggestions-long {
    margin-bottom: 24px;
}

.suggestions-short h4,
.suggestions-long h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.suggestion-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 8px;
    margin-bottom: 12px;
}

.suggestion-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(200, 16, 46, 0.2);
}

.suggestion-content {
    flex: 1;
}

.suggestion-description {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.suggestion-basis {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.suggestion-effect {
    color: var(--success-color);
    font-size: 14px;
    font-weight: 500;
}

/* 讲授结构分析样式 */
.segment-item {
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary-color);
}

.segment-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.segment-type {
    font-weight: 600;
    color: var(--primary-color);
    padding: 4px 8px;
    background: rgba(200, 16, 46, 0.1);
    border-radius: 4px;
}

.segment-time {
    color: var(--text-secondary);
    font-size: 14px;
}

.segment-duration {
    color: var(--text-secondary);
    font-size: 14px;
    margin-left: auto;
}

.segment-content {
    color: var(--text-primary);
    font-size: 14px;
}

/* 语言表达分析样式 */
.metric-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.metric-value {
    color: var(--primary-color);
    font-weight: 600;
}

.metric-analysis {
    margin-top: 12px;
    padding: 12px;
    background: rgba(200, 16, 46, 0.05);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
}

/* 行为-内容关联分析样式 */
.correlation-item {
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary-light);
}

.correlation-time {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.correlation-content {
    color: var(--text-primary);
    margin-bottom: 4px;
}

.correlation-metric {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.correlation-analysis {
    color: var(--text-primary);
    font-size: 14px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* 纵向对比样式 */
.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
}

.comparison-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.comparison-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}

.comparison-value.current {
    color: var(--primary-color);
    font-size: 20px;
}

.comparison-diff {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.comparison-diff.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.comparison-diff.negative {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger-color);
}

.trend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.trend-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.trend-value {
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.trend-value.improving {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.trend-value.declining {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger-color);
}

.trend-value.stable {
    background: rgba(100, 116, 139, 0.1);
    color: var(--secondary-color);
}

.trend-analysis {
    padding: 12px;
    background: rgba(200, 16, 46, 0.05);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
}

/* 档案页样式 */
.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.archive-header h2 {
    font-size: 24px;
    color: var(--text-primary);
}

.filter-controls {
    display: flex;
    gap: 12px;
}

.filter-select {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* 筛选按钮组样式 */
.filter-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 12px;
}

.filter-btn {
    position: relative;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: space-between;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    background: rgba(200, 16, 46, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(200, 16, 46, 0.1);
}

.filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

.filter-btn.active .filter-btn-check {
    display: inline-block;
}

.filter-btn:not(.active) .filter-btn-check {
    display: none;
}

.filter-btn-text {
    flex: 1;
    text-align: left;
}

.filter-btn-check {
    font-size: 16px;
    font-weight: bold;
    color: white;
}

/* 职称筛选链接组样式 */
.filter-link-group {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 0 4px;
    border-bottom: 2px solid var(--border-color);
}

.filter-link {
    position: relative;
    padding: 12px 0;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.filter-link:hover {
    color: var(--primary-color);
}

.filter-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.filter-link-text {
    flex: 0 0 auto;
}

.filter-link-count {
    padding: 2px 8px;
    background: rgba(200, 16, 46, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.filter-link.active .filter-link-count {
    background: var(--primary-color);
    color: white;
}

.archive-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.archive-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    box-sizing: border-box;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

/* 雷达图容器：保持正方形比例 */
.radar-chart-container {
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    min-height: 300px;
    max-height: 600px;
}

/* 确保雷达图在不同屏幕尺寸下都能正确显示 */
@media (min-width: 768px) {
    .radar-chart-container {
        max-width: 600px;
        margin: 20px auto 0;
    }
}

@media (max-width: 767px) {
    .radar-chart-container {
        max-width: 100%;
        min-height: 250px;
    }
}

.chart-container canvas {
    max-width: 100% !important;
    height: 100% !important;
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-detail {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.4;
}

/* 管理端样式 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.teachers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.teacher-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.teacher-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.teacher-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.teacher-card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    margin-right: 16px;
}

.teacher-card-score {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.teacher-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.teacher-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary);
}

.teacher-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.teacher-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: inline;
    margin-right: 12px;
}

.teacher-title-dept {
    color: var(--text-secondary);
    font-size: 14px;
    display: inline;
}

.teacher-meta {
    color: var(--text-secondary);
    font-size: 14px;
}

.teacher-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* 统计分组容器：两个框并排 */
.stats-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.stats-group {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 18px 20px 20px;
}

.stats-group-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-color);
}

.stats-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stats-group-grid .stat-card {
    margin: 0;
    padding: 12px 10px;
    border-left-width: 3px;
}

.stats-group-grid .stat-card .stat-value {
    font-size: 22px;
}

@media (max-width: 900px) {
    .stats-group-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .stats-group-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-group-grid .stat-card .stat-value {
        font-size: 18px;
    }
}

.chart-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    min-height: 320px;
    position: relative;
}

.login-footer {
    margin-top: 16px;
    text-align: center;
}

.link-text {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.link-text:hover {
    text-decoration: underline;
}

/* 上传按钮样式 */
.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary-hover);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.form-hint {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 12px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

/* 教学复盘样式 */
.review-section {
    padding: 24px 0;
}

.review-section h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.review-section .section-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

/* 复盘状态栏 */
.review-status-bar {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.review-status-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.status-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-draft {
    background: rgba(100, 116, 139, 0.1);
    color: var(--secondary-color);
}

.status-badge.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.completeness-bar {
    width: 150px;
    height: 8px;
    background: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
}

.completeness-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.3s;
}

.completeness-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    min-width: 40px;
}

.review-quality {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quality-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.quality-score {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.review-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.review-card.review-card-highlight {
    border-left-width: 6px;
    background: linear-gradient(135deg, var(--card-bg) 0%, #fff5f5 100%);
}

.review-card.review-card-warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #fffbf0 0%, #fff5f2 100%);
}

.review-card-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-card-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.review-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* AI分析摘要样式 */
.ai-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.ai-summary-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 8px;
}

.ai-summary-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ai-summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.ai-summary-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.ai-summary-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

.ai-summary-list li {
    padding: 8px 0;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

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

/* AI摘要项行样式 */
.ai-summary-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-summary-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f7fdf9;
    border: 1px solid #e6f7ea;
    border-radius: 8px;
    transition: all 0.3s;
    gap: 15px;
}

.ai-summary-item-row:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ai-summary-item-row.helpful-active {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
    border-left: 4px solid var(--success-color);
}

.ai-summary-item-content {
    flex: 1;
    min-width: 0;
}

.ai-summary-item-text {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    display: block;
}

.helpful-btn {
    min-width: 100px;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.helpful-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .ai-summary-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .helpful-btn {
        width: 100%;
        min-width: auto;
    }
    
    .ai-summary-item-content {
        width: 100%;
    }
}

/* 表单样式 */
.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

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

.radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.review-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.review-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

/* 改进计划样式 */
.improvement-section {
    margin-bottom: 24px;
}

.improvement-section h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.improvements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.improvement-item {
    background: #fff7f7;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #ffefef;
    transition: all 0.3s;
}

.improvement-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* 已采纳状态 — 深红色系 */
.improvement-item.adopted {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #fca5a5;
    border-left: 4px solid var(--primary-color);
}

.improvement-item.adopted:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.2);
}

label.improvement-item.adopted-review-todo {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

label.improvement-item.adopted-review-todo input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.improvement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.improvement-adopt-btn {
    min-width: 100px;
    transition: all 0.2s;
}

.improvement-adopt-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.improvement-timeline-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(200, 16, 46, 0.1);
    color: var(--primary-color);
}

.improvement-content {
    margin-top: 8px;
}

.improvement-description {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.improvement-basis {
    color: var(--text-secondary);
    font-size: 12px;
    font-style: italic;
}

.improvement-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.improvement-actions .form-group {
    margin-bottom: 12px;
}

.improvement-actions label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.improvement-actions textarea,
.improvement-actions input,
.improvement-actions select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
}

.improvement-actions textarea:focus,
.improvement-actions input:focus,
.improvement-actions select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.1);
}

.custom-improvement {
    border-left: 3px solid var(--primary-light);
}

.custom-improvement .improvement-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.key-points-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.key-point-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.key-point-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.key-point-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.review-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
    flex-wrap: wrap;
}

/* AI预警提醒样式 */
.warning-section {
    margin-bottom: 24px;
}

.warning-section:last-child {
    margin-bottom: 0;
}

.warning-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.warning-section-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.warning-count {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(200, 16, 46, 0.1);
    color: var(--primary-color);
}

.warning-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.warning-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid var(--warning-color);
    transition: all 0.2s;
}

.warning-item:hover {
    box-shadow: var(--shadow);
}

.warning-item.warning-high {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, #fff5f5 0%, #fffbf0 100%);
}

.warning-item.warning-medium {
    border-left-color: var(--warning-color);
}

.warning-item.warning-vocabulary {
    border-left-color: var(--primary-color);
}

.warning-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.warning-time {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.warning-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.warning-item.helpful-active {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: var(--success-color);
}

.helpful-btn-warning {
    min-width: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 只读模式的状态标签 */
.helpful-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.helpful-status-badge.status-helpful {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.helpful-status-badge.status-not-helpful {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.improvement-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.improvement-status-badge.status-adopted {
    background: rgba(200, 16, 46, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(200, 16, 46, 0.3);
}

.improvement-status-badge.status-not-adopted {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.warning-text {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.warning-suggestion {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 8px 12px;
    background: rgba(200, 16, 46, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

/* 词汇错误样式 */
.vocabulary-error {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.vocabulary-word {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.vocabulary-incorrect {
    font-size: 13px;
    color: var(--danger-color);
    text-decoration: line-through;
    padding: 2px 8px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 4px;
}

.vocabulary-correct {
    font-size: 13px;
    color: var(--success-color);
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
}

.vocabulary-context {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

.vocabulary-frequency {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 管理端复盘状态样式 */
.course-review-status {
    margin: 12px 0;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.review-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.review-status-badge.review-status-none {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
}

.review-status-badge.review-status-draft {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.review-status-badge.review-status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.review-quality-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(200, 16, 46, 0.1);
    color: var(--primary-color);
}

/* 打印样式 */
@media print {
    .dashboard-header,
    .header-actions,
    .btn {
        display: none !important;
    }
    
    .report-section {
        margin-bottom: 20px;
    }
    
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .modal {
        display: none !important;
    }
}

/* 待办任务列表样式 */
.todo-section {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-top: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.todo-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.todo-section .section-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.todo-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.todo-item:last-child {
    border-bottom: none;
}

.todo-item:hover {
    background: rgba(200, 16, 46, 0.02);
}

.todo-content-wrapper {
    flex: 1;
    min-width: 0;
}

.todo-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    display: block;
}

.todo-content.completed {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.todo-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.todo-complete-btn {
    flex-shrink: 0;
    min-width: 70px;
}

.todo-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.todo-course {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary-color);
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    align-self: flex-start;
}

.todo-course:hover {
    text-decoration: underline;
}

.todo-text-block {
    min-width: 0;
}

.todo-summary-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.todo-summary-row.is-expandable {
    cursor: pointer;
    border-radius: 6px;
    padding: 2px 4px;
    margin: -2px -4px;
    transition: background 0.15s;
}

.todo-summary-row.is-expandable:hover {
    background: rgba(200, 16, 46, 0.04);
}

.todo-content-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

.todo-chevron {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-top: 6px;
    border-right: 1.5px solid var(--text-secondary);
    border-bottom: 1.5px solid var(--text-secondary);
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.15s;
}

.todo-summary-row.is-expandable:hover .todo-chevron {
    border-color: var(--primary-color);
}

.todo-item.is-expanded .todo-chevron {
    transform: rotate(-135deg);
    margin-top: 8px;
}

.todo-content-detail {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.todo-detail-body {
    font-size: 13px;
    line-height: 1.65;
    max-height: 280px;
    overflow-y: auto;
}

.todo-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.todo-link-btn {
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.todo-link-btn:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.todo-content-text strong {
    color: var(--primary-color);
}

.todo-type {
    padding: 2px 8px;
    background: rgba(200, 16, 46, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
}

/* 待办任务子区域 */
.todo-subsection {
    margin-bottom: 25px;
}

.todo-subsection:last-child {
    margin-bottom: 0;
}

.todo-subsection-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.todo-subsection-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
}

.todo-count {
    padding: 2px 8px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* 已完成任务样式 */
.completed-todo-list {
    max-height: 500px;
    overflow-y: auto;
}

.todo-item-completed {
    opacity: 0.7;
}

.todo-item-completed:hover {
    opacity: 1;
    background: rgba(16, 185, 129, 0.05);
}

.todo-completed-time {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.completed-label {
    color: var(--success-color);
}

.completed-time-value {
    color: var(--text-secondary);
}

/* 添加改进项控制按钮 */
.todo-add-controls {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.todo-add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--primary-color);
    font-size: 14px;
    border: 1px dashed var(--primary-color);
    border-radius: 6px;
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.todo-add-btn:hover {
    background: rgba(200, 16, 46, 0.05);
    border-color: var(--primary-color);
    border-style: solid;
}

.todo-add-icon {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

/* 添加改进项输入框样式 */
.todo-add-form {
    margin-top: 15px;
    padding: 15px;
    background: #f9fafb;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
}

.todo-add-form:focus-within {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.todo-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--text-primary);
    transition: all 0.2s;
    box-sizing: border-box;
}

.todo-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.1);
}

.todo-input::placeholder {
    color: var(--text-secondary);
}

.todo-add-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

/* "对我有帮助"选项样式 */
.helpful-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s;
    margin-top: 10px;
}

.helpful-checkbox:hover {
    background: #f3f4f6;
    border-color: var(--primary-color);
}

.helpful-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.helpful-checkbox span {
    font-size: 14px;
    color: var(--text-primary);
}

.strength-actions,
.issue-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

/* 时间段显示样式 */
.strength-time-section,
.issue-time-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.strength-time-label,
.issue-time-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.strength-time-value,
.issue-time-value {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 15px;
    padding: 4px 10px;
    background: rgba(200, 16, 46, 0.1);
    border-radius: 4px;
}

.issue-time-section {
    border-left-color: #f59e0b;
}

.issue-time-value {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.demo-badge {
    display: inline;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    background: #f5f5f5;
    color: #999;
    margin-left: 4px;
    vertical-align: middle;
}

/* 轻提示弹层（自动消失） */
.app-toast-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10050;
}

.app-toast {
    pointer-events: auto;
    min-width: 200px;
    max-width: min(360px, 88vw);
    padding: 18px 28px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #fecaca;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.app-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.app-toast.hide {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
}

.app-toast--success {
    border-color: #86efac;
    background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
}

.app-toast--error {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff 0%, #fef2f2 100%);
    color: #991b1b;
}

.app-toast--info {
    border-color: #fecaca;
}

/* 确认弹窗 */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.confirm-overlay.show { opacity: 1; }
.confirm-overlay.hide { opacity: 0; }

.confirm-dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 340px;
  max-width: 90vw;
  overflow: hidden;
  animation: confirm-in 0.2s ease;
}
.confirm-overlay.hide .confirm-dialog {
  animation: confirm-out 0.15s ease forwards;
}
@keyframes confirm-in {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes confirm-out {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.92); opacity: 0; }
}

.confirm-body {
  padding: 28px 24px 20px;
  text-align: center;
}
.confirm-icon {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}
.confirm-message {
  font-size: 15px;
  color: var(--text-primary, #1e293b);
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  border-top: 1px solid #f1f5f9;
}
.confirm-actions .btn {
  flex: 1;
  border-radius: 0;
  padding: 14px;
  font-size: 14px;
  border: none;
}
.confirm-actions .btn-secondary {
  background: #f8fafc;
  color: var(--text-primary, #1e293b);
}
.confirm-actions .btn-secondary:hover {
  background: #f1f5f9;
}
.confirm-actions .btn-primary {
  background: var(--primary-color, #c8102e);
  color: #fff;
}
.confirm-actions .btn-primary:hover {
  background: var(--primary-hover, #a00d25);
}

/* 教师列表表格 */
.teacher-table-wrap {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 32px;
}

.teacher-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.teacher-table thead th {
  background: var(--bg-color);
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
  user-select: none;
}

.teacher-table thead th.sortable {
  cursor: pointer;
  transition: background 0.15s;
}

.teacher-table thead th.sortable:hover {
  background: #fee2e2;
}

.teacher-table .sort-icon {
  display: inline-block;
  width: 12px;
  margin-left: 4px;
  vertical-align: middle;
}

.teacher-table .sortable.asc .sort-icon::after {
  content: '▲';
  font-size: 10px;
  color: var(--primary-color);
}

.teacher-table .sortable.desc .sort-icon::after {
  content: '▼';
  font-size: 10px;
  color: var(--primary-color);
}

.teacher-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}

.teacher-table tbody tr:hover {
  background: rgba(200, 16, 46, 0.04);
}

.teacher-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-primary);
}

.teacher-table tbody tr:last-child td {
  border-bottom: none;
}

.teacher-table .teacher-name {
  font-weight: 600;
  color: var(--primary-color);
}

.teacher-table .course-title-cell {
  font-weight: 500;
  color: var(--primary-color);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-table td.num {
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.teacher-table thead th:nth-child(4),
.teacher-table thead th:nth-child(5) {
  text-align: center;
}