/* 基础组件样式 */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover:not(:disabled) {
    background: #667eea;
    color: white;
}

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

.btn-icon {
    padding: 8px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #dee2e6;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: #f8f9fa;
    color: #495057;
}

/* 智能组卷页面样式 */
.paper-generator-content {
    max-width: 1000px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #7f8c8d;
    font-size: 16px;
}

.paper-form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.knowledge-points {
    margin-bottom: 20px;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.knowledge-item {
    padding: 10px 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.knowledge-item:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.knowledge-item.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.paper-preview {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.preview-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.preview-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.preview-info {
    color: #7f8c8d;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.preview-knowledge-points {
    margin-bottom: 20px;
}

.knowledge-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.knowledge-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.knowledge-tag.strong {
    background: #e8f5e8;
    color: #2e7d32;
}

.knowledge-tag.weak {
    background: #ffebee;
    color: #d32f2f;
}

.preview-questions .question-item {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.question-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.question-number {
    font-weight: bold;
    color: #667eea;
}

.question-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.question-points {
    color: #f39c12;
    font-weight: 500;
}

.question-difficulty {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.difficulty-easy {
    background: #d4edda;
    color: #155724;
}

.difficulty-medium {
    background: #fff3cd;
    color: #856404;
}

.difficulty-hard {
    background: #f8d7da;
    color: #721c24;
}

.question-content {
    margin: 10px 0;
    line-height: 1.6;
}

.question-options {
    margin: 10px 0;
}

.question-options .option {
    margin: 5px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.question-options .option.correct {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.question-options .option.wrong {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.question-answer {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e8;
    border-radius: 4px;
    font-size: 14px;
}

.preview-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #7f8c8d;
    font-size: 14px;
}

/* 题库管理样式 */
.question-bank-content {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-bar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.search-box {
    position: relative;
}

.search-input {
    padding-right: 45px;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.question-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.question-card .question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.question-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.question-meta span {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.question-type {
    background: #e3f2fd;
    color: #1976d2;
}

.question-usage {
    background: #f3e5f5;
    color: #7b1fa2;
}

.question-correct-rate {
    background: #e8f5e8;
    color: #2e7d32;
}

.question-actions {
    display: flex;
    gap: 8px;
}

.question-footer {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.question-info {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #7f8c8d;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #495057;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pagination-info {
    color: #7f8c8d;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.pagination-ellipsis {
    padding: 8px 12px;
    color: #7f8c8d;
}

/* 模态框样式 */
.modal-overlay {
    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;
    backdrop-filter: blur(4px);
}

.modal-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-dialog.large {
    max-width: 900px;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 智能批改样式 */
.grading-content {
    max-width: 1000px;
    margin: 0 auto;
}

.upload-area {
    background: white;
    border: 3px dashed #dee2e6;
    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.upload-area.drag-over {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-icon {
    font-size: 48px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 18px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 10px;
}

.upload-hint {
    color: #7f8c8d;
    font-size: 14px;
}

.uploaded-files {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.file-list {
    margin: 20px 0;
}

.file-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.file-icon {
    font-size: 24px;
    color: #667eea;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 4px;
}

.file-size {
    font-size: 12px;
    color: #7f8c8d;
}

.upload-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.grading-progress {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.grading-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}

.step-item.active::after {
    background: #667eea;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-item.active .step-icon {
    background: #667eea;
    color: white;
}

.step-item.processing .step-icon {
    background: #f39c12;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.step-text {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 8px;
}

.step-item.active .step-text,
.step-item.processing .step-text {
    color: #495057;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
}

.grading-results {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.summary-card {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-number {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
}

.summary-label {
    color: #7f8c8d;
    font-size: 14px;
}

.results-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 25px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

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

.analysis-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.analysis-table th,
.analysis-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.correct-rate-high {
    color: #28a745;
    font-weight: 600;
}

.correct-rate-medium {
    color: #ffc107;
    font-weight: 600;
}

.correct-rate-low {
    color: #dc3545;
    font-weight: 600;
}

.error-tips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.error-tag {
    background: #ffebee;
    color: #d32f2f;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

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

.class-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.class-name {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.class-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
}

.stat-value {
    font-weight: 600;
    color: #495057;
}

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

.knowledge-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.knowledge-point {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.knowledge-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-circle {
    width: 80px;
    height: 80px;
}

.circle-progress {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle-inner {
    font-weight: bold;
    color: #2c3e50;
}

.knowledge-info {
    flex: 1;
}

.difficulty-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    display: inline-block;
}

.difficulty-简单 {
    background: #d4edda;
    color: #155724;
}

.difficulty-中等 {
    background: #fff3cd;
    color: #856404;
}

.difficulty-困难 {
    background: #f8d7da;
    color: #721c24;
}

.student-count,
.avg-score {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* 学情分析样式 */
.analytics-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.analytics-filters {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
    width: 100%;
}

.analytics-grid:last-child {
    margin-bottom: 0;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.chart-placeholder {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #7f8c8d;
    position: relative;
    overflow: hidden;
}

.chart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.chart-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    width: 100%;
    height: 100%;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    position: relative;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.bar-label {
    width: 80px;
    font-size: 14px;
    color: #495057;
    text-align: right;
    flex-shrink: 0;
}

.bar-container {
    flex: 1;
    height: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.8s ease;
    position: relative;
}

.bar-value {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.knowledge-radar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    width: 100%;
    position: relative;
}

.knowledge-item {
    text-align: center;
    position: relative;
}

.knowledge-label {
    font-size: 14px;
    color: #495057;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.knowledge-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.progress-circle {
    width: 60px;
    height: 60px;
    position: relative;
}

.circle-fill {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f0f0f0;
}

.circle-text {
    font-size: 12px;
    font-weight: bold;
    color: #2c3e50;
    z-index: 1;
    position: relative;
}

.knowledge-level {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.level-excellent {
    background: #e8f5e8;
    color: #2e7d32;
}

.level-good {
    background: #e3f2fd;
    color: #1976d2;
}

.level-average {
    background: #fff3e0;
    color: #f57c00;
}

.level-poor {
    background: #ffebee;
    color: #d32f2f;
}

.class-comparison {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    padding: 20px;
    width: 100%;
    position: relative;
}

.class-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.class-bar-container {
    width: 40px;
    height: 150px;
    position: relative;
    display: flex;
    align-items: flex-end;
    background: #f8f9fa;
    border-radius: 4px;
}

.class-bar-fill {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: height 0.8s ease;
    position: relative;
    min-height: 10px;
}

.class-score {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: #2c3e50;
    white-space: nowrap;
}

.class-name {
    font-size: 14px;
    color: #495057;
    text-align: center;
    word-wrap: break-word;
}

.class-rank {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
}

.trend-chart {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    width: 100%;
    position: relative;
    flex-wrap: wrap;
    gap: 10px;
}

.trend-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.trend-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.trend-indicator {
    font-size: 14px;
}

.trend-label {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    word-wrap: break-word;
}

.student-list {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

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

.ranking-controls {
    display: flex;
    gap: 8px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.student-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.student-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.student-card.detailed {
    padding: 20px;
}

.student-rank {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-info {
    flex: 1;
    min-width: 0;
}

.student-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.student-class {
    font-size: 12px;
    color: #7f8c8d;
}

.student-details {
    flex: 2;
    min-width: 0;
}

.student-subjects {
    display: flex;
    gap: 15px;
    margin: 8px 0;
    font-size: 12px;
    color: #495057;
    flex-wrap: wrap;
}

.student-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #7f8c8d;
    flex-wrap: wrap;
}

.student-score {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.score-value {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.score-trend {
    font-size: 14px;
}

.score-trend.up {
    color: #28a745;
}

.score-trend.down {
    color: #dc3545;
}

.ranking-footer {
    text-align: center;
    margin-top: 20px;
}

.student-list-modal {
    max-height: 500px;
    overflow-y: auto;
}

.student-row {
    display: grid;
    grid-template-columns: 60px 200px 1fr 80px 60px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.3s ease;
    gap: 10px;
}

.student-row:hover {
    background: #f8f9fa;
}

.student-basic {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.student-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.student-scores {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #495057;
    flex-wrap: wrap;
}

.student-average {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    text-align: center;
}

.student-trend {
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-detail-report {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .chart-container {
        padding: 20px;
        min-height: 250px;
    }

    .knowledge-radar {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .class-comparison {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }

    .class-bar-container {
        width: 30px;
        height: 120px;
    }

    .trend-chart {
        padding: 15px;
    }

    .student-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .student-score {
        align-self: flex-end;
    }

    .student-row {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
}

/* 防止学情分析页面图表元素溢出的重要修复 */
.analytics-content * {
    box-sizing: border-box;
}

.analytics-content .chart-placeholder,
.analytics-content .chart-content,
.analytics-content .bar-chart,
.analytics-content .knowledge-radar,
.analytics-content .class-comparison,
.analytics-content .trend-chart {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.analytics-content .chart-placeholder {
    contain: layout style paint;
}

.analytics-content .bar-fill,
.analytics-content .class-bar-fill,
.analytics-content .circle-fill {
    max-width: 100%;
    max-height: 100%;
}

.analytics-content .legend-item,
.analytics-content .knowledge-item,
.analytics-content .class-bar,
.analytics-content .trend-point {
    flex-shrink: 0;
}

/* 确保图表元素不会绝对定位到错误位置 */
.analytics-content .bar-value,
.analytics-content .class-score,
.analytics-content .circle-text {
    position: absolute;
    z-index: 2;
}

/* 防止图表动画导致的布局跳动 */
.analytics-content .bar-fill,
.analytics-content .class-bar-fill {
    transition: width 0.8s ease, height 0.8s ease;
    will-change: width, height;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.summary-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.report-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.report-section h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.subject-scores {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subject-score {
    display: flex;
    align-items: center;
    gap: 15px;
}

.subject-name {
    width: 60px;
    font-size: 14px;
    color: #495057;
}

.score-bar {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.8s ease;
}

.score-text {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.knowledge-status {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.strong-points,
.weak-points {
    padding: 15px;
    border-radius: 8px;
}

.strong-points {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
}

.weak-points {
    background: #ffebee;
    border: 1px solid #f5c6cb;
}

.strong-points h5,
.weak-points h5 {
    margin-bottom: 10px;
    font-size: 14px;
}

.learning-suggestions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #e3f2fd;
    border-radius: 8px;
}

.suggestion-item i {
    color: #1976d2;
    margin-top: 2px;
}

/* 错题本样式 */
.error-book-content {
    max-width: 1200px;
    margin: 0 auto;
}

.error-filters {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.error-statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
}

.error-actions-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.error-questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.error-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.error-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.error-card .error-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.error-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.error-meta span {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.error-subject {
    background: #e3f2fd;
    color: #1976d2;
}

.error-type {
    background: #f3e5f5;
    color: #7b1fa2;
}

.error-status {
    color: white;
    font-weight: 600;
}

.error-date {
    font-size: 12px;
    color: #7f8c8d;
}

.error-content {
    margin-bottom: 20px;
}

.question-text {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 15px;
}

.error-analysis {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.analysis-item {
    margin-bottom: 8px;
    font-size: 14px;
}

.analysis-text,
.suggestion-text {
    margin-top: 12px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.analysis-text {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.suggestion-text {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.error-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.mastery-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.mastery-label {
    font-size: 14px;
    color: #495057;
    white-space: nowrap;
}

.mastery-bar {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.mastery-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
}

.mastery-text {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.practice-info {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #7f8c8d;
}

.error-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 练习模态框样式 */
.practice-modal {
    z-index: 1100;
}

.practice-progress {
    margin-bottom: 25px;
}

.practice-question {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.practice-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.practice-option {
    padding: 12px 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.practice-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.practice-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.practice-input {
    margin-top: 15px;
}

.practice-input textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

.practice-hint {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.hint-content {
    color: #856404;
    font-size: 14px;
}

.practice-result {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.result-correct {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
}

.result-wrong {
    background: #ffebee;
    border: 1px solid #f5c6cb;
}

.result-icon {
    text-align: center;
    font-size: 48px;
    margin-bottom: 15px;
}

.result-correct .result-icon {
    color: #28a745;
}

.result-wrong .result-icon {
    color: #dc3545;
}

.result-text {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.result-correct .result-text {
    color: #155724;
}

.result-wrong .result-text {
    color: #721c24;
}

.result-details {
    font-size: 14px;
    line-height: 1.6;
}

.result-details div {
    margin-bottom: 8px;
}

/* 相似题目模态框样式 */
.similar-questions {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.original-question {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.original-question h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.similar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.similar-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.similar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.similar-number {
    width: 24px;
    height: 24px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.similar-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.similar-content {
    margin: 10px 0;
    line-height: 1.6;
}

.similar-options {
    margin: 10px 0;
}

.similar-answer {
    margin-top: 10px;
    padding: 8px 12px;
    background: #e8f5e8;
    border-radius: 4px;
    font-size: 14px;
}

/* 题目详情模态框样式 */
.error-detail {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.detail-section h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-grid div {
    padding: 8px;
    background: white;
    border-radius: 4px;
    font-size: 14px;
}

.question-content-detail {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 15px;
}

.options-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.option-detail {
    padding: 10px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.answer-analysis {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 6px;
}

.answer-item.correct {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
}

.answer-item.wrong {
    background: #ffebee;
    border: 1px solid #f5c6cb;
}

.answer-label {
    font-weight: 600;
}

.answer-value {
    font-weight: 500;
}

.analysis-content,
.suggestion-content {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
}

.knowledge-points-detail {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-dialog {
        width: 95%;
        margin: 20px;
    }
    
    .student-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .knowledge-status {
        grid-template-columns: 1fr;
    }
    
    .error-progress {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .practice-info {
        flex-direction: column;
        gap: 8px;
    }
} 

/* 组件样式文件 - 教师专用界面优化 */

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 90%;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
}

/* 加载状态 */
.loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 500;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, .2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, .2) 50%,
        rgba(255, 255, 255, .2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-animation 1s linear infinite;
}

@keyframes progress-animation {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* 标签和徽章 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.badge.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.badge.warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.badge.error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.badge.info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.badge.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 160px;
}

.dropdown-trigger:hover {
    border-color: #667eea;
}

.dropdown-trigger.active {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f7fafc;
    color: #4a5568;
}

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

.dropdown-item:hover {
    background: #f8fafc;
}

.dropdown-item.selected {
    background: #edf2f7;
    color: #667eea;
    font-weight: 500;
}

/* 切换开关 */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: .3s;
    border-radius: 12px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .switch-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.switch input:checked + .switch-slider:before {
    transform: translateX(24px);
}

/* 主选项卡样式 */
.main-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
}

.main-tab-btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.main-tab-btn i {
    font-size: 20px;
    margin-bottom: 4px;
}

.main-tab-btn .tab-desc {
    font-size: 12px;
    color: #8b949e;
}

.main-tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.main-tab-btn.active .tab-desc {
    color: #667eea;
}

.main-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
    color: #495057;
}

/* 内容区域 */
.tab-content {
    display: none;
}

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

/* 校本题库样式 */
.school-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

.school-tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.school-tab-btn i {
    font-size: 16px;
}

.school-tab-btn .tab-count {
    font-size: 12px;
    color: #8b949e;
}

.school-tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.1);
}

.school-tab-btn.active .tab-count {
    color: #667eea;
}

.school-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
    color: #495057;
}

/* 校本题目卡片样式 */
.school-question-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #667eea;
}

.school-question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.school-usage-info {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.school-usage-info h5 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.usage-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.usage-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
}

.usage-item .teacher-name {
    font-weight: 500;
    color: #667eea;
    min-width: 60px;
}

.usage-item .paper-name {
    flex: 1;
    color: #495057;
}

.usage-item .usage-date {
    color: #8b949e;
    font-size: 12px;
}

.usage-more {
    text-align: center;
    margin-top: 8px;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
}

.btn-link:hover {
    color: #5a6fd8;
}

/* 校本试卷卡片样式 */
.school-paper-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #28a745;
}

.school-paper-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

.paper-info {
    flex: 1;
}

.paper-title {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.paper-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}

.paper-meta span {
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #6c757d;
}

.paper-subject {
    background: #e7f3ff !important;
    color: #0056b3 !important;
}

.paper-grade {
    background: #fff3cd !important;
    color: #856404 !important;
}

.paper-type {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
}

.paper-actions {
    display: flex;
    gap: 8px;
}

.paper-content {
    margin: 15px 0;
}

.paper-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.paper-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #8b949e;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.paper-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.paper-creator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
}

.paper-creator i {
    color: #667eea;
}

/* 使用历史样式 */
.usage-history-detail {
    max-height: 300px;
    overflow-y: auto;
}

.usage-history-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fafbfc;
}

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

.usage-header .teacher-name {
    font-weight: 500;
    color: #667eea;
}

.usage-header .usage-date {
    font-size: 12px;
    color: #8b949e;
}

.usage-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #6c757d;
}

.usage-details div {
    display: flex;
    gap: 8px;
}

/* 试卷详情样式 */
.paper-detail .detail-section {
    margin-bottom: 25px;
}

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

.paper-info-grid div {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
}

.paper-description-detail {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    line-height: 1.6;
    margin-top: 10px;
}

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

.stat-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.stat-card .stat-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.paper-usage-history {
    max-height: 300px;
    overflow-y: auto;
}

.paper-usage-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fafbfc;
}

.modal-dialog.large {
    max-width: 900px;
}

.school-usage {
    background: #e8f5e8 !important;
    color: #155724 !important;
}

/* 分页器 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    margin: 0 16px;
    color: #718096;
    font-size: 14px;
}

/* 搜索框 */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 14px;
    color: #a0aec0;
    font-size: 16px;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 14px;
    color: #a0aec0;
    cursor: pointer;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-box.has-value .search-clear {
    opacity: 1;
}

.search-clear:hover {
    color: #718096;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f7fafc;
}

.table th {
    background: #f8fafc;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table td {
    color: #4a5568;
    font-size: 14px;
}

.table tbody tr:hover {
    background: #f8fafc;
}

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

/* 选项卡 */
.tabs {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.tab-nav {
    display: flex;
    gap: 0;
}

.tab-item {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    color: #718096;
    font-weight: 500;
    position: relative;
}

.tab-item:hover {
    color: #667eea;
}

.tab-item.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

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

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    pointer-events: none;
    z-index: 1001;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #2d3748;
}

.tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* 折叠面板 */
.accordion {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

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

.accordion-header {
    padding: 16px 20px;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: #edf2f7;
}

.accordion-header.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.accordion-title {
    font-weight: 600;
    margin: 0;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
}

.accordion-body {
    padding: 20px;
    background: white;
}

/* 步骤指示器 */
.steps {
    display: flex;
    align-items: center;
    margin: 32px 0;
}

.step {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.step.completed .step-number {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.step-label {
    margin-left: 12px;
    font-weight: 500;
    color: #718096;
}

.step.active .step-label {
    color: #667eea;
}

.step.completed .step-label {
    color: #48bb78;
}

.step-line {
    height: 2px;
    background: #e2e8f0;
    flex: 1;
    margin: 0 16px;
}

.step.completed .step-line {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.step:last-child .step-line {
    display: none;
}

/* 卡片列表 */
.card-list {
    display: grid;
    gap: 16px;
}

.card-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.card-item.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-icon {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 16px;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.empty-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* 快速操作浮动按钮 */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

/* 成功/错误状态指示 */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-indicator.success {
    background: #d4f4dd;
    color: #22543d;
}

.status-indicator.error {
    background: #fed7d7;
    color: #822727;
}

.status-indicator.warning {
    background: #faf089;
    color: #744210;
}

.status-indicator.processing {
    background: #bee3f8;
    color: #2a4365;
}

/* 文件上传区域 */
.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8fafc;
}

.upload-area:hover {
    border-color: #667eea;
    background: #edf2f7;
}

.upload-area.dragover {
    border-color: #667eea;
    background: linear-gradient(135deg, #edf2f7 0%, #e6fffa 100%);
}

.upload-icon {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: #718096;
}

/* 响应式网格 */
.grid {
    display: grid;
    gap: 20px;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 16px;
        flex-direction: column;
    }
    
    .dropdown-trigger {
        min-width: auto;
    }
    
    .fab {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
    
    .steps {
        flex-direction: column;
        align-items: stretch;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .step-line {
        width: 2px;
        height: 20px;
        margin: 8px auto;
    }
    
    .step:last-child .step-line {
        display: block;
        opacity: 0;
    }
}

/* 动画类 */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* 智能组卷特定样式 */
.steps-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.steps-indicator .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.steps-indicator .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.steps-indicator .step.active:not(:last-child)::after {
    background: #667eea;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.steps-indicator .step.active .step-number {
    background: #667eea;
    color: white;
}

.step-title {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.steps-indicator .step.active .step-title {
    color: #667eea;
    font-weight: 600;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.form-step.active {
    display: block;
}

.step-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.subsection-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin: 25px 0 15px 0;
}

.step-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.required {
    color: #dc3545;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-item:hover {
    background-color: #f8f9fa;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.generation-status {
    text-align: center;
    padding: 40px 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.recommendation-result {
    margin: 30px 0;
}

.result-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.recommendation-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.recommendation-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.recommendation-header h4 {
    margin: 0;
    font-size: 16px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-content {
    padding: 20px;
}

.recommendation-content p {
    margin: 0;
    line-height: 1.6;
    color: #495057;
}

.focus-areas {
    margin-bottom: 15px;
}

.focus-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin: 4px 8px 4px 0;
}

.focus-description {
    margin-top: 10px !important;
    font-style: italic;
    color: #6c757d;
}

.structure-info {
    display: grid;
    gap: 10px;
}

.structure-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.structure-item .label {
    font-weight: 500;
    color: #495057;
}

.structure-item .value {
    color: #667eea;
    font-weight: 500;
}

.preview-actions-top {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.question-item.editable {
    position: relative;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.question-item.editable:hover {
    border-color: #667eea;
}

.question-item.editable .question-header {
    position: relative;
    padding-right: 120px;
}

.question-actions {
    position: absolute;
    top: 0;
    right: 15px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.question-item.editable:hover .question-actions {
    opacity: 1;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.question-item.edit-mode {
    border-color: #28a745;
    background: #f8fff8;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover:not(:disabled) {
    background: #138496;
    transform: translateY(-1px);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .steps-indicator {
        flex-direction: column;
        gap: 20px;
    }
    
    .steps-indicator .step:not(:last-child)::after {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .preview-actions-top {
        flex-direction: column;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .question-item.editable .question-header {
        padding-right: 15px;
    }
    
    .question-actions {
        position: static;
        opacity: 1;
        justify-content: center;
        margin-top: 10px;
    }
} 

/* 教师错题本样式优化 */
.teacher-error-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 25px;
    padding: 4px;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-tab {
    background: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
    color: #64748b;
    position: relative;
    flex: 1;
    justify-content: center;
    min-height: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.view-tab:hover:not(.active)::before {
    opacity: 0.1;
}

.view-tab:hover:not(.active) {
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.view-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.view-tab.active::before {
    opacity: 0 !important;
}

.view-tab.active:hover {
    color: white;
    transform: translateY(-1px);
}

.view-tab.active:hover::before {
    opacity: 1;
}

.view-tab i {
    font-size: 16px;
}

.teacher-error-filters {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: 0.025em;
}

.form-select {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

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

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.teacher-error-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

/* 学生错题卡片样式优化 */
.student-errors-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.student-error-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.student-error-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.student-error-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.student-error-card:hover::before {
    transform: scaleX(1);
}

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

.student-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.student-name {
    font-weight: 700;
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 4px;
}

.student-class {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.error-subject {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.error-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    color: #64748b;
}

.error-date {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.error-status {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.error-content {
    margin-bottom: 20px;
}

.question-preview {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.error-details {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.error-type-tag {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.difficulty-tag {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.difficulty-tag.difficulty-1 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.difficulty-tag.difficulty-2 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.difficulty-tag.difficulty-3 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.error-analysis-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.analysis-item {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.analysis-item strong {
    color: #374151;
    font-weight: 600;
}

.error-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.mastery-display {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.mastery-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.mastery-bar-small {
    width: 120px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mastery-bar-small .mastery-fill {
    height: 100%;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    position: relative;
}

.mastery-bar-small .mastery-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.mastery-bar-small .mastery-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    z-index: 2;
}

.practice-info {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    text-align: right;
}

.teacher-error-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn-sm {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.025em;
}

.btn-sm:hover {
    transform: translateY(-2px);
}

.btn-sm.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-sm.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-sm.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-sm.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.btn-sm.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-sm.btn-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-sm.btn-outline {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.btn-sm.btn-outline:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 共性错题样式优化 */
.common-error-overview {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.overview-card h3 {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.overview-stat {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.overview-stat .stat-number {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
}

.overview-stat .stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.common-error-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.common-errors-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.common-error-item {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ef4444;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.common-error-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-left-width: 6px;
}

.common-error-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.error-rank {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    flex-shrink: 0;
}

.error-info h4 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
}

.error-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.subject-tag {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.knowledge-tag {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.error-rate {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.common-error-content {
    margin-bottom: 20px;
}

.question-content {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid #e2e8f0;
}

.error-analysis {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.error-analysis strong {
    color: #374151;
    font-weight: 600;
}

.affected-students {
    margin-bottom: 20px;
}

.students-header {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
}

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

.student-tag {
    background: #f1f5f9;
    color: #374151;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid #d1d5db;
    font-weight: 500;
    transition: all 0.3s ease;
}

.student-tag:hover {
    background: #e2e8f0;
    border-color: #9ca3af;
}

.more-students {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.common-error-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* 分页样式优化 */
.error-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0;
    padding: 20px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.pagination-info {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.pagination-controls .btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-controls .btn:hover {
    transform: translateY(-2px);
}

/* 空状态样式优化 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.empty-state i {
    font-size: 72px;
    margin-bottom: 24px;
    color: #d1d5db;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state h3 {
    margin-bottom: 12px;
    color: #374151;
    font-size: 20px;
    font-weight: 700;
}

.empty-state p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.5;
}

/* 班级分析样式优化 */
.class-analysis-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.analysis-overview h3 {
    margin-bottom: 24px;
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
}

.class-comparison,
.subject-analysis,
.knowledge-point-analysis,
.trend-analysis {
    margin-bottom: 32px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.comparison-header,
.subject-header,
.knowledge-header,
.trend-header {
    margin-bottom: 20px;
}

.comparison-header h4,
.subject-header h4,
.knowledge-header h4,
.trend-header h4 {
    color: #1e293b;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-bar-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.bar-label {
    min-width: 120px;
    font-weight: 600;
    color: #374151;
}

.bar-container {
    flex: 1;
    height: 32px;
    background: #e2e8f0;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 16px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

.bar-value {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

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

.subject-stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subject-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.subject-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.subject-name {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 16px;
}

.subject-count {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.subject-percentage {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
}

.subject-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.subject-fill {
    height: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.knowledge-stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.knowledge-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.knowledge-rank {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    flex-shrink: 0;
}

.knowledge-info {
    flex: 1;
}

.knowledge-name {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 16px;
}

.knowledge-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.error-count {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.difficulty-level {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.difficulty-level.difficulty-high {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.difficulty-level.difficulty-medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.difficulty-level.difficulty-low {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.trend-chart-container {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.trend-bars {
    display: flex;
    align-items: end;
    gap: 24px;
    height: 220px;
    justify-content: space-around;
    padding: 20px;
}

.trend-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.trend-bar {
    width: 48px;
    background: #e2e8f0;
    border-radius: 6px 6px 0 0;
    position: relative;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trend-fill {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 6px 6px 0 0;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.trend-value {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 16px;
}

.trend-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* 教师错题详情模态框样式优化 */
.teacher-error-detail {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0 4px;
}

.student-basic-info,
.question-info,
.error-detail-content,
.answer-comparison,
.error-analysis-detail,
.progress-tracking,
.teacher-actions-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.teacher-actions-section:last-child {
    border-bottom: none;
    background: white;
}

.student-basic-info h4,
.question-info h4,
.error-detail-content h4,
.answer-comparison h4,
.error-analysis-detail h4,
.progress-tracking h4,
.teacher-actions-section h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.info-grid div {
    padding: 12px;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
}

.answer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 12px;
}

.answer-item {
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.answer-item.student-answer {
    background: linear-gradient(135deg, #fef2f2 0%, #fef7f7 100%);
    border-color: #ef4444;
}

.answer-item.correct-answer {
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fef9 100%);
    border-color: #10b981;
}

.answer-label {
    font-weight: 700;
    display: inline-block;
    margin-right: 12px;
    color: #374151;
}

.answer-value.wrong {
    color: #ef4444;
    font-weight: 700;
}

.answer-value.correct {
    color: #10b981;
    font-weight: 700;
}

.mastery-bar-detail {
    width: 240px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* 响应式样式优化 */
@media (max-width: 768px) {
    .teacher-error-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .teacher-error-statistics {
        grid-template-columns: 1fr 1fr;
    }
    
    .teacher-error-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .answer-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .comparison-bar-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .bar-label {
        min-width: auto;
    }
    
    .subject-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .knowledge-stat-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .trend-bars {
        gap: 16px;
        height: 180px;
        padding: 16px;
    }
    
    .trend-bar {
        width: 36px;
    }

    .student-error-card {
        padding: 20px;
    }
    
    .student-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .error-progress-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .mastery-bar-small {
        width: 100%;
    }
    
    .teacher-error-actions {
        justify-content: center;
    }
}