/**
 * 登科督学班 - 模考专用样式
 * 蓝色主题#1E88E5
 */

/* ===== 模考列表页 ===== */
.dk-exam-card {
    margin-bottom: 12px;
}

.dk-exam-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1565C0;
    margin-bottom: 8px;
}

.dk-exam-card-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
}

.dk-exam-card-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dk-exam-score {
    font-size: 16px;
    font-weight: 600;
    color: #4CAF50;
}

.dk-exam-empty {
    text-align: center;
    padding: 40px;
}

.dk-exam-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.dk-exam-empty-text {
    font-size: 14px;
    color: #999;
}

.dk-exam-start-btn {
    min-width: 100px;
}

/* ===== 模考答题页 ===== */
.dk-exam-do-page {
    padding-bottom: 70px;
}

.dk-exam-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 8px;
}

.dk-exam-top-title {
    font-size: 14px;
    font-weight: 600;
    color: #1565C0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-exam-top-timer {
    font-size: 18px;
    font-weight: 700;
    color: #F44336;
    font-family: monospace;
}

.dk-exam-card-btn {
    padding: 6px 12px;
    border: 1px solid #1E88E5;
    color: #1E88E5;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

/* ===== 进度条 ===== */
.dk-exam-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.dk-exam-progress-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

.dk-exam-progress-fill {
    height: 100%;
    background: #1E88E5;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s;
}

.dk-exam-progress-text {
    font-size: 13px;
    color: #666;
    min-width: 40px;
}

/* ===== 题目区域 ===== */
.dk-exam-question-area {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.dk-exam-q-type {
    font-size: 12px;
    color: #1E88E5;
    background: #E3F2FD;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.dk-exam-q-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
}

/* 题目图片自适应 */
.dk-exam-q-content img, .dk-exam-q-options img { max-width: 100%; height: auto; border-radius: 4px; margin: 4px 0; }

.dk-exam-q-options {
    margin-bottom: 8px;
}

/* ===== 选项 ===== */
.dk-exam-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.dk-exam-option:hover {
    border-color: #1E88E5;
    background: #E3F2FD;
}

.dk-exam-option-selected {
    border-color: #1E88E5;
    background: #1E88E5;
    color: #fff;
}

.dk-exam-option-selected .dk-exam-option-letter {
    background: #1565C0;
    color: #fff;
}

.dk-exam-option-selected .dk-exam-option-text {
    color: #fff;
}

.dk-exam-option-letter {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: #E3F2FD;
    color: #1E88E5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.dk-exam-option-text {
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.dk-exam-option-judge {
    padding: 12px 24px;
    text-align: center;
    font-size: 16px;
    justify-content: center;
}

/* ===== 底部操作栏 ===== */
.dk-exam-bottom-bar {
    display: flex;
    gap: 8px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 8px 16px;
    z-index: 50;
    max-width: 480px;
    margin: 0 auto;
}

.dk-btn-prev, .dk-btn-next {
    padding: 8px 16px;
    border: 1px solid #1E88E5;
    color: #1E88E5;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.dk-exam-submit-btn {
    flex: 1;
}

.dk-exam-handin-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* ===== 答题卡弹窗 ===== */
.dk-exam-card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dk-exam-card-popup {
    width: 320px;
    max-width: 90vw;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
}

.dk-exam-card-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1565C0;
}

.dk-exam-card-popup-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.dk-exam-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.dk-exam-card-cell {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #333;
}

.dk-exam-card-cell-answered {
    background: #E8F5E9;
    border-color: #4CAF50;
    color: #2E7D32;
}

.dk-exam-card-cell-current {
    border-color: #1E88E5;
    border-width: 2px;
    background: #E3F2FD;
}

.dk-exam-card-stats {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.dk-exam-card-handin {
    width: 100%;
    cursor: pointer;
}

/* ===== 模考成绩页 ===== */
.dk-exam-result-overview {
    text-align: center;
    padding: 24px;
}

.dk-exam-result-score {
    margin-bottom: 16px;
}

.dk-exam-result-score-num {
    font-size: 48px;
    font-weight: 700;
    color: #1E88E5;
    line-height: 1;
}

.dk-exam-result-score-label {
    font-size: 14px;
    color: #999;
}

.dk-exam-result-info {
    display: flex;
    justify-content: space-around;
}

.dk-exam-result-info-item {
    text-align: center;
}

.dk-exam-result-info-label {
    font-size: 12px;
    color: #999;
}

.dk-exam-result-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ===== 答题明细 ===== */
.dk-exam-detail-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.dk-exam-detail-item:last-child {
    border-bottom: none;
}

.dk-exam-detail-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dk-exam-detail-num {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: #4CAF50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.dk-exam-detail-num-wrong {
    background: #F44336;
}

.dk-exam-detail-type {
    font-size: 12px;
    color: #1E88E5;
    background: #E3F2FD;
    padding: 2px 6px;
    border-radius: 4px;
}

.dk-exam-detail-content {
    font-size: 14px;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-exam-detail-answers {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.dk-exam-detail-my-answer {
    color: #F44336;
}

.dk-exam-detail-correct-answer {
    color: #4CAF50;
}

.dk-exam-detail-expand {
    display: none;
    padding: 12px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.dk-exam-detail-expand-show {
    display: block;
}

.dk-exam-detail-full-content {
    margin-bottom: 8px;
}

.dk-exam-detail-analysis {
    background: #E3F2FD;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #1565C0;
}

/* ===== 警告按钮 ===== */
.dk-btn-warning {
    background: #FF9800;
    color: #fff;
    cursor: pointer;
}
