* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

header h1 {
    text-align: center;
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: 300;
}

.version {
    font-size: 0.4em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    margin-left: 10px;
    font-weight: 500;
    vertical-align: middle;
}

nav {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: #e2e8f0;
    color: #4a5568;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

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

.panel {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.panel.active {
    display: block;
}

.panel h2 {
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 400;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

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

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary:hover {
    background: #4a5568;
    transform: translateY(-2px);
}

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

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

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

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.4);
}

/* 考试管理样式 */
.exam-management {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.exam-management h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.exam-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.exam-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.exam-info p {
    margin-bottom: 8px;
    color: #4a5568;
}

.exam-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exam-actions input {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.exam-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .exam-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px 0;
    }
    
    .exam-item {
        min-height: 180px;
        padding: 25px 20px;
    }
    
    .exam-item h3 {
        font-size: 1.3em;
    }
    
    .student-details {
        gap: 20px;
        padding: 12px 20px;
    }
    
    .student-name, .student-id, .exam-code {
        font-size: 0.85em;
    }
    
    .student-name span, .student-id span, .exam-code span {
        font-size: 1em;
    }
}

@media (min-width: 1200px) {
    .exam-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 30px;
    }
    
    .exam-item {
        min-height: 240px;
    }
}

.exam-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exam-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.exam-item.active {
    border-color: #667eea;
    background: #ebf4ff;
}

.exam-item h4 {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.exam-item p {
    color: #718096;
    font-size: 14px;
    margin-bottom: 5px;
}

/* 考试选择样式 */
.exam-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.exam-selection-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.exam-selection-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.exam-selection-item h4 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.exam-selection-item p {
    color: #718096;
    font-size: 14px;
}

.exam-info-display {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.exam-info-display p {
    margin-bottom: 8px;
    color: #4a5568;
}

.student-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 结果筛选样式 */
.results-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* 分析界面样式 */
.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.analysis-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.analysis-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #718096;
    transition: all 0.3s ease;
}

.analysis-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 500;
}

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

.analysis-content {
    display: none;
}

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

/* 统计信息样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.stat-card .stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: #718096;
    font-size: 14px;
}

/* 题目分析表格样式 */
.question-analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.question-analysis-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    position: sticky;
    top: 0;
}

.student-header {
    min-width: 80px;
    text-align: center;
    font-size: 0.9em;
}

.student-header small {
    display: block;
    font-size: 0.8em;
    color: #718096;
    margin-top: 2px;
}

.question-analysis-table tr:hover {
    background: #f7fafc;
}

.question-cell {
    max-width: 300px;
    word-wrap: break-word;
}

.answer-cell {
    text-align: center;
    font-weight: 500;
}

.answer-cell.correct {
    color: #22543d;
    background: #c6f6d5;
}

.answer-cell.incorrect {
    color: #742a2a;
    background: #fed7d7;
}

.answer-cell.no-answer {
    color: #4a5568;
    background: #e2e8f0;
}

/* 学生分析表格样式 */
.student-analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.student-analysis-table th,
.student-analysis-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.student-analysis-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 10;
}

.student-analysis-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 11;
    min-width: 120px;
}

.student-analysis-table td:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
    font-weight: 500;
    text-align: left;
}

.student-analysis-table tr:hover td:first-child {
    background: #f7fafc;
}

.answer-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
}

.answer-indicator.correct {
    background: #48bb78;
}

.answer-indicator.incorrect {
    background: #f56565;
}

.answer-indicator.no-answer {
    background: #e2e8f0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .analysis-tabs {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .question-analysis-table,
    .student-analysis-table {
        font-size: 14px;
    }
    
    .question-analysis-table th,
    .question-analysis-table td,
    .student-analysis-table th,
    .student-analysis-table td {
        padding: 8px 10px;
    }
}

.form-control {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    min-width: 150px;
}

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

/* Excel导入样式 */
.excel-import {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.excel-import h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.import-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.import-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.import-info p {
    margin-bottom: 10px;
    color: #4a5568;
}

.import-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.import-info li {
    margin-bottom: 5px;
    color: #718096;
}

.import-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.import-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
}

.import-result.success {
    background: #c6f6d5;
    border: 1px solid #48bb78;
    color: #22543d;
}

.import-result.error {
    background: #fed7d7;
    border: 1px solid #f56565;
    color: #742a2a;
}

.import-result.info {
    background: #bee3f8;
    border: 1px solid #4299e1;
    color: #2a4365;
}

/* 固定选项样式 */
.fixed-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.option-item {
    padding: 12px 15px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #4a5568;
}

/* 题目列表样式 */
.questions-list {
    margin-top: 30px;
}

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

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

/* 状态标签样式 */
.status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.published {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.unpublished {
    background: #fed7d7;
    color: #742a2a;
}

.status-badge.unknown {
    background: #e2e8f0;
    color: #4a5568;
}

/* 考试状态样式 */
.exam-item .exam-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 5px;
    display: inline-block;
}

.exam-item .exam-status.published {
    background: #c6f6d5;
    color: #22543d;
}

.exam-item .exam-status.unpublished {
    background: #fed7d7;
    color: #742a2a;
}

.question-item {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.question-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.question-item h4 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.question-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0;
}

.option {
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.correct-answer {
    background: #c6f6d5;
    border-color: #48bb78;
    color: #22543d;
    font-weight: 500;
}

.question-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* 考试界面样式 */
.exam-header {
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
}

.exam-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: #718096;
}

.exam-question {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.exam-question h3 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.exam-options {
    display: grid;
    gap: 12px;
}

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

.exam-option:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.exam-option.selected {
    border-color: #667eea;
    background: #ebf4ff;
    color: #2b6cb0;
}

.exam-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* 结果界面样式 */
.results-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.result-item {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

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

.student-info {
    font-weight: 500;
    color: #4a5568;
}

.score {
    font-size: 1.2em;
    font-weight: bold;
}

.score.pass {
    color: #48bb78;
}

.score.fail {
    color: #f56565;
}

.result-details {
    font-size: 14px;
    color: #718096;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 200px;
    }
    
    .question-options {
        grid-template-columns: 1fr;
    }
    
    .exam-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .exam-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .results-controls {
        flex-direction: column;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel.active {
    animation: fadeIn 0.5s ease;
}

.question-item {
    animation: fadeIn 0.3s ease;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* 考试端专用样式 */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.welcome-content h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 300;
}

.welcome-content p {
    font-size: 1.2em;
    opacity: 0.9;
}

.exam-item {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.exam-item:hover::before {
    transform: scaleY(1);
}

.exam-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.exam-item h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.4;
    flex-grow: 1;
}

.exam-item p {
    color: #718096;
    margin-bottom: 10px;
    font-size: 1em;
    line-height: 1.5;
}

.exam-item .exam-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.exam-item .exam-meta p {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.exam-item .exam-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 10px;
}

.exam-item .exam-status.published {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
}

.exam-item .exam-status.unpublished {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #742a2a;
}

.no-exams {
    text-align: center;
    color: #718096;
    font-size: 1.1em;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 步骤指示器 */
.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

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

.step.completed {
    background: #48bb78;
    color: white;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.step-line.completed {
    background: #48bb78;
}

.step-header h2 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 600;
}

.step-header p {
    color: #718096;
    font-size: 1.1em;
}

.verification-form, .student-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #f1f5f9;
}

.exam-header {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.exam-info h2 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 600;
    text-align: center;
}

.student-info {
    margin-bottom: 25px;
}

.student-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    padding: 15px 25px;
    border: 1px solid #e2e8f0;
}

.student-name, .student-id, .exam-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: #4a5568;
}

.student-name::before {
    content: "👤";
    font-size: 1.2em;
}

.student-id::before {
    content: "🎓";
    font-size: 1.2em;
}

.exam-code::before {
    content: "🔢";
    font-size: 1.2em;
}

.student-name span, .student-id span, .exam-code span {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1em;
}

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

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

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

.progress-text {
    color: #4a5568;
    font-weight: 600;
    font-size: 1.1em;
}

.exam-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

.exam-question h3 {
    color: #2d3748;
    margin-bottom: 30px;
    font-size: 1.3em;
    line-height: 1.7;
    font-weight: 500;
}

.exam-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exam-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    font-weight: 500;
    color: #4a5568;
    position: relative;
    overflow: hidden;
}

.exam-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.exam-option:hover::before {
    left: 100%;
}

.exam-option:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.exam-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.exam-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    gap: 15px;
}

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

.result-icon {
    margin-bottom: 20px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(72, 187, 120, 0.3);
}

.icon {
    font-size: 2.5em;
    color: white;
    font-weight: bold;
}

.result-header h2 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 2em;
    font-weight: 600;
}

.result-header p {
    color: #718096;
    font-size: 1.2em;
}

.result-summary {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #f1f5f9;
}

.result-summary h3 {
    color: #2d3748;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.6em;
    font-weight: 600;
}

.result-details p {
    margin-bottom: 18px;
    font-size: 1.1em;
    color: #4a5568;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.result-details p:last-child {
    border-bottom: none;
}

.result-details strong {
    color: #2d3748;
    font-weight: 600;
}

.score {
    font-weight: bold;
    font-size: 1.3em;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

.score.pass {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    box-shadow: 0 2px 8px rgba(34, 84, 61, 0.2);
}

.score.fail {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #742a2a;
    box-shadow: 0 2px 8px rgba(116, 42, 42, 0.2);
}

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

/* 消息提示样式 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

.message-success {
    background: #48bb78;
}

.message-error {
    background: #f56565;
}

.message-info {
    background: #4299e1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
