/* 练习页面专用样式 */
.practice-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 175px; /* 提供充足的顶部间距，确保完美显示 */
    padding-top: 2rem;  /* 额外的上边距 */
}

.question-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.question-counter {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
}

.question-difficulty {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.difficulty-1 { background: #d4edda; color: #155724; }
.difficulty-2 { background: #fff3cd; color: #856404; }
.difficulty-3 { background: #f8d7da; color: #721c24; }
.difficulty-4 { background: #d1ecf1; color: #0c5460; }

.question-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.options-container {
    margin: 1.5rem 0;
}

.option-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.option-item.selected {
    background: #e8f5e8;
    border-color: #28a745;
    color: #155724;
}

.fill-input {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 1rem;
    width: 100%;
    margin: 1rem 0;
}

.essay-textarea {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    width: 100%;
    min-height: 150px;
    margin: 1rem 0;
    resize: vertical;
}

.control-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timer {
    background: #fff3cd;
    color: #856404;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.result-modal .modal-content {
    border-radius: 15px;
}

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

.result-wrong {
    color: #dc3545;
}

.explanation-box {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0 8px 8px 0;
}