body {
    background-color: #f0f2f5;
    font-family: 'Noto Sans SC', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    padding: 20px 0;
    /* 禁止选择文本 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 1000px;
    padding: 20px;
}

header {
    margin-bottom: 2rem;
    position: relative;
    padding: 1rem 0;
}

header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #4361ee, #3a56d4);
    border-radius: 3px;
}

h1 {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

h2.h4 {
    color: #6c757d;
    font-weight: 400;
}

.card {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
    background-color: #fff;
}

.card-footer {
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.5rem;
}

.btn {
    border-radius: 8px;
    padding: 0.6rem 1.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #4361ee, #3a56d4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a56d4, #2a46c4);
}

.btn-success {
    background: linear-gradient(135deg, #38b000, #2d9000);
}

.btn-success:hover {
    background: linear-gradient(135deg, #2d9000, #1d8000);
}

.btn-warning {
    background: linear-gradient(135deg, #ff9e00, #e68a00);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e68a00, #d67a00);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #e63946, #d62b39);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d62b39, #c61b29);
}

.btn-outline-primary {
    color: #4361ee;
    border-color: #4361ee;
}

.btn-outline-primary:hover {
    background-color: #4361ee;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

.badge {
    padding: 0.5em 1em;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
}

.bg-primary {
    background: linear-gradient(135deg, #4361ee, #3a56d4) !important;
}

.bg-success {
    background: linear-gradient(135deg, #38b000, #2d9000) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ff9e00, #e68a00) !important;
}

.option-label {
    display: block;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.option-label:hover {
    background-color: #f8f9fa;
    border-color: #cbd5e0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.option-input:checked + .option-label {
    background-color: #ebf4ff;
    border-color: #4361ee;
    box-shadow: 0 3px 8px rgba(67, 97, 238, 0.1);
}

.option-input {
    display: none;
}

.correct-answer {
    background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
    border-color: #28a745 !important;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.1) !important;
    position: relative;
}

.wrong-answer {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb) !important;
    border-color: #dc3545 !important;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.1) !important;
    position: relative;
}

.correct-answer:before, .wrong-answer:before {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "bootstrap-icons";
    font-size: 1.2rem;
}

.correct-answer:before {
    content: "\F26B"; /* Bootstrap Icons check-circle */
    color: #28a745;
}

.wrong-answer:before {
    content: "\F623"; /* Bootstrap Icons x-circle */
    color: #dc3545;
}

#resultContainer {
    padding: 1.25rem;
    border-radius: 10px;
    margin: 1rem 0;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

#startContainer {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

#startContainer h3 {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.form-check-input {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #4361ee;
    border-color: #4361ee;
}

.form-check-label {
    cursor: pointer;
    font-weight: 500;
}

.progress {
    height: 0.8rem;
    border-radius: 5px;
    background-color: #e2e8f0;
    margin-bottom: 1.5rem;
}

.progress-bar {
    border-radius: 5px;
    background: linear-gradient(135deg, #38b000, #2d9000);
}

footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    color: #718096;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

/* 计时器样式 */
#timer {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
}

/* 标记按钮样式 */
#markBtn {
    transition: all 0.3s ease;
}

#markBtn:hover {
    transform: translateY(-2px);
}

/* Toast 提示样式 */
.toast {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    background-color: #fff;
}

.toast-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.toast-body {
    padding: 1rem;
}

/* 学习建议样式 */
#studySuggestion {
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 加载动画样式 */
.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #4361ee;
}

/* 图标样式 */
.bi {
    margin-right: 0.25rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#questionContainer, #summaryContainer {
    animation: fadeIn 0.5s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .d-flex.justify-content-center {
        flex-wrap: wrap;
    }
    
    .btn {
        margin-bottom: 0.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .option-label {
        padding: 0.75rem 1rem;
    }
    
    #timer {
        font-size: 0.9rem;
    }
}

/* 标记题目容器样式 */
#markedCountContainer {
    border-radius: 8px;
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(54, 185, 204, 0.3);
    transition: all 0.3s ease;
}

#markedCountContainer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(54, 185, 204, 0.4);
}

/* 标记按钮样式 */
#markBtn.btn-warning {
    color: #fff;
}

/* 未答题目样式 */
.bg-light-warning {
    background-color: #fff3cd !important;
    border-color: #ffeaa7;
}

.border-warning {
    border-color: #ffc107 !important;
}

/* 分享模态框样式 */
#shareModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#shareModal .modal-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    border-bottom: none;
}

#shareModal .modal-title {
    font-weight: 600;
}

#shareModal .btn-close {
    color: white;
    filter: brightness(0) invert(1);
}

#shareModal .modal-body {
    padding: 2rem;
}

#shareModal .bi-star-fill {
    font-size: 1.5rem;
    margin: 0 3px;
}

#shareModal #shareToQQBtn {
    background: linear-gradient(135deg, #18BFFF 0%, #0080FF 100%);
    border: none;
    padding: 10px 20px;
}

#shareModal #copyLinkBtn {
    padding: 10px 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .d-flex.justify-content-center {
        flex-wrap: wrap;
    }
    
    .btn {
        margin-bottom: 10px;
    }
    
    #shareModal .modal-body {
        padding: 1rem;
    }
    
    #shareModal .d-flex.justify-content-center {
        flex-direction: column;
    }
    
    #shareModal .btn {
        margin: 5px 0;
    }
}

/* 暗号验证模态框样式 */
#passwordModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

#passwordModal .modal-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

#passwordModal .modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#passwordModal .modal-title i {
    margin-right: 10px;
    font-size: 1.2em;
}

#passwordModal .modal-body {
    padding: 2rem;
}

#passwordModal .form-floating {
    margin-bottom: 1.5rem;
}

#passwordModal .form-control:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 0.25rem rgba(106, 17, 203, 0.25);
}

#passwordModal .alert-info {
    background-color: #e8f4fd;
    border-color: #c5e7fd;
    color: #0c63e4;
}

#passwordModal #joinQQGroupBtn {
    background: linear-gradient(135deg, #18BFFF 0%, #0080FF 100%);
    border: none;
}

#passwordModal #verifyPasswordBtn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
}

/* 震动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .d-flex.justify-content-center {
        flex-wrap: wrap;
    }
    
    .btn {
        margin-bottom: 10px;
    }
    
    #shareModal .modal-body {
        padding: 1rem;
    }
    
    #shareModal .d-flex.justify-content-center {
        flex-direction: column;
    }
    
    #shareModal .btn {
        margin: 5px 0;
    }
    
    #passwordModal .modal-body {
        padding: 1rem;
    }
    
    #passwordModal .modal-footer {
        flex-direction: column;
    }
    
    #passwordModal .modal-footer .btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* 水印样式 */
.watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.08;
    transform: rotate(-30deg);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
}

.watermark-content {
    font-size: 1.2rem;
    color: #4e73df;
    text-align: center;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 1px;
    padding: 10px;
    border: 1px dashed rgba(78, 115, 223, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(78, 115, 223, 0.1);
}

@media (max-width: 768px) {
    .watermark-content {
        font-size: 0.9rem;
    }
}

/* 防止复制题目内容 */
#questionContent, .option-label {
    position: relative;
}

#questionContent::before, .option-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
}

/* 禁止开发者工具检测的样式 */
.devtools-detected {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .d-flex.justify-content-center {
        flex-wrap: wrap;
    }
    
    .btn {
        margin-bottom: 10px;
    }
    
    #shareModal .modal-body {
        padding: 1rem;
    }
    
    #shareModal .d-flex.justify-content-center {
        flex-direction: column;
    }
    
    #shareModal .btn {
        margin: 5px 0;
    }
    
    #passwordModal .modal-body {
        padding: 1rem;
    }
    
    #passwordModal .modal-footer {
        flex-direction: column;
    }
    
    #passwordModal .modal-footer .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .watermark {
        font-size: 2rem;
    }
}

/* 标记功能验证模态框样式 */
#markFeaturePasswordModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

#markFeaturePasswordModal .modal-header {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

#markFeaturePasswordModal .modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#markFeaturePasswordModal .modal-title i {
    margin-right: 10px;
    font-size: 1.2em;
}

#markFeaturePasswordModal .modal-body {
    padding: 2rem;
}

#markFeaturePasswordModal .form-floating {
    margin-bottom: 1.5rem;
}

#markFeaturePasswordModal .form-control:focus {
    border-color: #f6c23e;
    box-shadow: 0 0 0 0.25rem rgba(246, 194, 62, 0.25);
}

#markFeaturePasswordModal .alert-info {
    background-color: #fff8e6;
    border-color: #ffeeba;
    color: #856404;
}

#markFeaturePasswordModal #verifyMarkFeatureBtn {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
    border: none;
}

/* 考试相关样式 */
.exam-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.exam-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.exam-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.exam-info h5 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.exam-info ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.exam-info li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.exam-timer {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    backdrop-filter: blur(10px);
}

.exam-progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.exam-progress-text {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.exam-result-card {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(17, 153, 142, 0.3);
}

.exam-score {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.exam-grade {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    display: inline-block;
    width: 100%;
}

.exam-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.exam-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.exam-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.exam-detail-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.exam-detail-value {
    font-weight: 700;
    color: white;
}

/* 考试历史记录样式 */
.exam-history-list {
    max-height: 70vh;
    overflow-y: auto;
}

.exam-history-list::-webkit-scrollbar {
    width: 6px;
}

.exam-history-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.exam-history-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.exam-history-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.exam-history-list .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exam-history-list .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

#examHistoryContainer .card-header {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

/* 考试详情样式 */
.bg-light-success {
    background-color: #d1edff !important;
}

.bg-light-danger {
    background-color: #f8d7da !important;
}

.option {
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
}

.option.text-success {
    background-color: #d1edff;
    border-left: 4px solid #198754;
}

.option.text-danger {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

@media (max-width: 768px) {
    .exam-history-list .card-body .row {
        text-align: center;
    }
    
    .exam-history-list .card-body .col-lg-3,
    .exam-history-list .card-body .col-lg-2 {
        margin-bottom: 10px;
    }
    
    #examDetailQuestions .card {
        margin-bottom: 1rem;
    }
    
    .option {
        font-size: 0.9rem;
    }
}

.grade-excellent {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.grade-good {
    background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
}

.grade-pass {
    background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
}

.grade-fail {
    background: linear-gradient(135deg, #a55eea 0%, #26de81 100%);
}

/* 考试导航样式 */
.exam-progress-grid {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

.progress-section {
    margin-bottom: 1.5rem;
}

.progress-section:last-child {
    margin-bottom: 0;
}

.progress-section h6 {
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.progress-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.progress-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-btn:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.progress-btn.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.progress-btn.answered {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.progress-btn.unanswered {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.exam-actions {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.exam-stats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .exam-timer {
        position: static;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .exam-score {
        font-size: 2.5rem;
    }
    
    .exam-detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .exam-detail-value {
        margin-top: 0.3rem;
    }
    
    .exam-progress-grid {
        gap: 1rem;
    }
    
    .progress-section h6 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .progress-buttons {
        justify-content: center;
        gap: 0.3rem;
    }
    
    .progress-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
        min-width: 32px;
        touch-action: manipulation;
    }
    
    .exam-actions {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .exam-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.75rem;
        font-size: 1rem;
        touch-action: manipulation;
    }
    
    .exam-stats {
        font-size: 0.9rem;
    }
    
    /* 优化选项按钮的触摸体验 */
    .option-label {
        padding: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
    
    /* 优化题目导航按钮 */
    .btn-group .btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        touch-action: manipulation;
    }
    
    /* 优化考试导航按钮 */
    .exam-nav-buttons .btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        touch-action: manipulation;
    }
    
    /* 移动端答题详情优化 */
    .exam-detail-analysis {
        max-height: 300px;
        padding: 0.75rem;
    }
    
    .question-detail-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 0.5rem;
    }
    
    .question-detail-number {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .question-detail-content {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .question-detail-status {
        margin-left: 0;
        align-self: flex-end;
    }
    
    /* 考试模式下的特殊样式 */
    .exam-mode .question-container {
        border: 2px solid #007bff;
        box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
    }
    
    .exam-mode .option-label:active {
        background: #e3f2fd;
        transform: scale(0.98);
    }
}

/* 考试模式全局样式 */
.exam-mode {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.exam-mode .container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 答案选择动画效果 */
.option-input:checked + .option-label {
    animation: selectAnswer 0.3s ease;
}

@keyframes selectAnswer {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* 进度按钮点击效果 */
.progress-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* 提交按钮特殊样式 */
.exam-actions .btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.exam-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* 考试导航按钮样式 */
.exam-nav-buttons .btn {
    font-weight: 500;
    transition: all 0.2s ease;
}

.exam-nav-buttons .btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.exam-nav-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 答题详情分析样式 */
.exam-detail-analysis {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: #f8f9fa;
}

.question-detail-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    background-color: white;
    border-left: 4px solid #6c757d;
}

.question-detail-item.correct {
    border-left-color: #198754;
    background-color: #d1e7dd;
}

.question-detail-item.wrong {
    border-left-color: #dc3545;
    background-color: #f8d7da;
}

.question-detail-item.unanswered {
    border-left-color: #ffc107;
    background-color: #fff3cd;
}

.question-detail-number {
    font-weight: bold;
    margin-right: 0.75rem;
    min-width: 3rem;
}

.question-detail-content {
    flex: 1;
    font-size: 0.9rem;
}

.question-detail-status {
    margin-left: auto;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.status-correct {
    background-color: #198754;
    color: white;
}

.status-wrong {
    background-color: #dc3545;
    color: white;
}

.status-unanswered {
    background-color: #ffc107;
    color: #000;
}

/* 答题详情页面样式 */
#answerDetailContainer {
    animation: fadeIn 0.3s ease-in-out;
}

#answerDetailContainer .card-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-bottom: none;
}

#answerDetailContainer .card {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: none;
}

.exam-detail-analysis {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.exam-detail-analysis::-webkit-scrollbar {
    width: 8px;
}

.exam-detail-analysis::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.exam-detail-analysis::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

.exam-detail-analysis::-webkit-scrollbar-thumb:hover {
    background: #218838;
}

/* 答题详情项目样式增强 */
.exam-detail-analysis .question-detail-item {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.exam-detail-analysis .question-detail-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.exam-detail-analysis .question-detail-item.correct {
    border-left-color: #28a745;
    background: linear-gradient(90deg, rgba(40,167,69,0.05), transparent);
}

.exam-detail-analysis .question-detail-item.wrong {
    border-left-color: #dc3545;
    background: linear-gradient(90deg, rgba(220,53,69,0.05), transparent);
}

.exam-detail-analysis .question-detail-item.unanswered {
    border-left-color: #ffc107;
    background: linear-gradient(90deg, rgba(255,193,7,0.05), transparent);
}

.question-detail-number {
    flex: 0 0 80px;
    font-weight: bold;
}

.question-detail-content {
    flex: 1;
}

.question-detail-status {
    flex: 0 0 60px;
    text-align: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .exam-detail-analysis {
        max-height: 60vh;
        padding-right: 5px;
    }
    
    #answerDetailContainer .card-header h4 {
        font-size: 1.1rem;
    }
    
    #answerDetailContainer .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}
 