.practice-navbar { background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%); box-shadow: 0 2px 8px rgba(22,119,255,0.3); }
.practice-container { max-width: 1100px; margin: 0 auto; padding: 24px 20px; min-height: calc(100vh - 140px); }
.practice-main { min-height: 400px; }
.practice-footer { background: #f5f5f5; border-top: 2px solid #1677ff; padding: 10px 0; }

/* === 首页 === */
.practice-welcome { background: linear-gradient(135deg, #e6f4ff 0%, #f0f5ff 100%); border-radius: 16px; border: 1px solid #bae0ff; }
.practice-welcome h3 { color: #1677ff; font-weight: 700; }
.practice-card { border: none; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: all 0.3s ease; overflow: hidden; }
.practice-card:hover { box-shadow: 0 6px 20px rgba(22,119,255,0.18); transform: translateY(-3px); }
.practice-card .card-body { padding: 20px 20px 12px; }
.practice-card .card-title { font-size: 16px; font-weight: 600; color: #262626; }
.practice-card .card-text { font-size: 13px; color: #8c8c8c; line-height: 1.5; min-height: 40px; }
.practice-card .card-footer { border-top: 1px solid #f0f0f0; padding: 12px 20px; background: #fafafa; }
.practice-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.practice-meta .badge { font-size: 11px; font-weight: 500; padding: 4px 8px; border-radius: 4px; }
.btn-start { border-radius: 8px !important; font-weight: 500 !important; }

/* === 答题页 === */
.practice-take .practice-header { background: #fff; padding: 14px 20px; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.practice-take .practice-header h5 { font-weight: 600; color: #262626; }
.practice-timer { font-size: 18px; font-weight: 700; color: #1677ff; background: #e6f4ff; padding: 4px 14px; border-radius: 20px; }
.practice-timer.text-warning { color: #faad14 !important; background: #fffbe6 !important; }
.practice-timer.text-danger { color: #ff4d4f !important; background: #fff1f0 !important; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.5; } }

.practice-question-panel { border-radius: 12px; border: none; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.question-header { padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.question-content { font-size: 15px; line-height: 1.8; color: #262626; padding: 8px 0; }
.question-options .form-check { padding: 10px 14px; border-radius: 8px; transition: all 0.15s; margin-bottom: 4px; border: 1px solid transparent; }
.question-options .form-check:hover { background: #e6f4ff; border-color: #91caff; }
.practice-option-row { padding: 10px 14px; border-radius: 8px; transition: all 0.15s; margin-bottom: 4px; border: 2px solid #e8e8e8; cursor: pointer; display: flex; align-items: flex-start; }
.practice-option-row:hover { background: #e6f4ff; border-color: #91caff; }
.practice-option-row.selected { background: #e6f4ff; border-color: #1677ff; }
.practice-option-row.selected .form-check-input { accent-color: #1677ff; }
.practice-option-row .form-check-input { margin-top: 0.15em; flex-shrink: 0; }
.practice-option-row .form-check-label { padding-left: 8px; cursor: pointer; flex: 1; }
.question-analysis { font-size: 13px; line-height: 1.6; background: #e6f4ff; border-left: 3px solid #1677ff; padding: 10px 14px; border-radius: 0 8px 8px 0; margin-top: 12px; }

.practice-nav .btn { border-radius: 8px !important; padding: 8px 20px; font-weight: 500; }
#btnSubmit { box-shadow: 0 2px 4px rgba(22,119,255,0.25); }

.practice-answer-card { border-radius: 12px; border: none; box-shadow: 0 1px 4px rgba(0,0,0,0.06); position: sticky; top: 20px; }
.practice-answer-card .card-header { background: #fafafa; border-bottom: 1px solid #f0f0f0; border-radius: 12px 12px 0 0 !important; }
.sheet-group { margin-bottom: 10px; }
.sheet-group-title { font-size: 12px; color: #666; margin-bottom: 6px; font-weight: 600; }
.answer-card-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.answer-card-item { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 2px solid #e8e8e8; border-radius: 8px; font-size: 13px; cursor: pointer; background: #fff; transition: all 0.15s; font-weight: 500; }
.answer-card-item:hover { border-color: #1677ff; color: #1677ff; }
.answer-card-item.answered { background: #1677ff; color: #fff; border-color: #1677ff; }
.answer-card-item.current { border-color: #0958d9; box-shadow: 0 0 0 3px rgba(22,119,255,0.12); font-weight: 700; }

/* 手机端练习答题卡抽屉 */
.practice-sheet-toggle-btn {
    display: none;
    position: fixed;
    right: 15px;
    bottom: 20px;
    z-index: 200;
    height: 40px;
    padding: 0 14px;
    border-radius: 20px;
    background: #1677ff;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(22,119,255,0.4);
    font-size: 14px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.practice-sheet-toggle-btn:active { transform: scale(0.92); }

.practice-sheet-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 250;
}

.practice-sheet-overlay.active { display: block; }

.practice-sheet-drawer {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 260;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    max-height: 60vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 15px;
}

.practice-sheet-drawer.active {
    display: block;
    transform: translateY(0);
}

.practice-sheet-drawer-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 auto 12px;
}

/* === 结果页 === */
.result-summary { border-radius: 16px; border: none; box-shadow: 0 4px 16px rgba(0,0,0,0.08); overflow: hidden; }
.result-summary .card-body { background: linear-gradient(180deg, #e6f4ff 0%, #ffffff 40%); }
.result-stat { text-align: center; padding: 10px 4px; }
.result-stat-value { font-size: 30px; font-weight: 800; line-height: 1.2; }
.result-stat-sep { font-size: 18px; color: #bfbfbf; margin: 0 2px; }
.result-stat-small { font-size: 18px; color: #8c8c8c; }
.result-stat-label { font-size: 13px; color: #8c8c8c; margin-top: 6px; }
.result-progress { height: 22px; max-width: 480px; margin: 0 auto; border-radius: 11px; background: #f0f0f0; }
.result-progress .progress-bar { border-radius: 11px; font-size: 12px; font-weight: 600; line-height: 22px; }

.result-detail { border-radius: 12px; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.result-detail .card-header { background: #fafafa; border-bottom: 1px solid #f0f0f0; border-radius: 12px 12px 0 0 !important; padding: 14px 20px; }
.result-detail .card-header h6 { font-weight: 600; color: #262626; }
.result-detail .card-body { padding: 16px 20px; }

.result-question { border: 1px solid #f0f0f0; transition: all 0.15s; }
.result-question:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.result-correct { border-left: 3px solid #1677ff; background: #fff; }
.result-wrong { border-left: 3px solid #ff4d4f; background: #fff7f6; }
.result-q-header { display: flex; justify-content: space-between; align-items: center; }
.result-q-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #e6f4ff; font-size: 12px; font-weight: 600; color: #1677ff; margin-right: 8px; }
.result-q-content { font-size: 14px; line-height: 1.7; color: #262626; }
.result-q-status { font-size: 13px; font-weight: 600; }
.status-correct { color: #1677ff; }
.status-wrong { color: #ff4d4f; }

.result-options { margin-left: 32px; margin-bottom: 8px; }
.result-opt { padding: 5px 8px; font-size: 13px; line-height: 1.6; display: flex; align-items: center; border-radius: 6px; margin-bottom: 3px; }
.opt-key { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; font-size: 12px; font-weight: 600; margin-right: 8px; flex-shrink: 0; }
.opt-text { flex: 1; }
.opt-normal .opt-key { background: #f5f5f5; color: #8c8c8c; }
.opt-user-only .opt-key { background: #e6f4ff; color: #1677ff; border: 1px solid #91caff; }
.opt-user-only .opt-text { color: #0958d9; font-weight: 500; }
.opt-correct .opt-key { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.opt-correct .opt-text { color: #389e0d; font-weight: 500; }
.opt-wrong .opt-key { background: #fff1f0; color: #ff4d4f; border: 1px solid #ffa39e; }
.opt-wrong .opt-text { color: #ff4d4f; }
.opt-user-correct .opt-key { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.opt-user-correct .opt-text { color: #389e0d; font-weight: 600; }
.opt-user-wrong .opt-key { background: #fff1f0; color: #ff4d4f; border: 1px solid #ffa39e; }
.opt-user-wrong .opt-text { color: #ff4d4f; font-weight: 500; }
.opt-icon-correct { color: #52c41a; margin-left: 6px; font-size: 12px; }
.opt-icon-wrong { color: #ff4d4f; margin-left: 6px; font-size: 12px; }
.opt-tag { font-size: 11px; padding: 1px 6px; border-radius: 3px; margin-left: 8px; font-weight: 500; }
.opt-tag-user { background: #e6f4ff; color: #1677ff; }
.opt-tag-correct { background: #f6ffed; color: #52c41a; }

.result-answer-line { margin: 8px 0 0 32px; font-size: 13px; }
.result-answer-label { color: #8c8c8c; }
.result-answer-value { color: #1677ff; font-weight: 600; }
.result-analysis { margin: 8px 0 0 32px; font-size: 12px; color: #8c8c8c; background: #fafafa; padding: 6px 10px; border-radius: 4px; display: inline-block; }

.result-btn { border-radius: 10px !important; padding: 10px 36px; font-weight: 600; box-shadow: 0 2px 6px rgba(22,119,255,0.3); }

/* === 空题目页 === */
.practice-take .fa-exclamation-circle { font-size: 52px !important; }

/* === 响应式 === */
@media (max-width: 768px) {
    .practice-container { padding: 12px; padding-bottom: 80px; }
    .practice-welcome h3 { font-size: 20px; }
    .practice-card { margin-bottom: 12px; }
    .practice-take .practice-header { flex-direction: column; gap: 8px; align-items: flex-start; }
    .answer-card-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
    .answer-card-item { width: 30px; height: 30px; font-size: 12px; }
    .question-content { font-size: 14px; }
    .result-stat-value { font-size: 24px; }
    .result-options { margin-left: 0; }
    .result-answer-line, .result-analysis { margin-left: 0; }
    .practice-answer-card { display: none; }
    .practice-sheet-toggle-btn { display: flex; bottom: 70px; }
    .practice-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 8px 10px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    }
    .practice-nav .btn { flex: 1; min-width: 0; font-size: 13px; padding: 8px 6px; }
    .practice-footer { display: none; }
}
