/* 琳凯蒂亚语练习系统样式 - 简洁版 */

/* 重用主站的CSS变量 */
:root {
    --primary-blue: #1a237e;
    --star-gold: #ffd700;
    --crystal-cyan: #00bcd4;
    --text-light: #ffffff;
}

.exercise-navigation {
    margin-bottom: 25px;
}

.exercise-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.exercise-tab-btn {
    padding: 12px 20px;
    border: 2px solid #007bff;
    background: transparent;
    color: #007bff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.exercise-tab-btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

.exercise-tab-btn.active {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.exercise-type-section {
    display: none;
}

.exercise-type-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.exercise-progress {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    color: #666;
    min-width: 50px;
}

.exercise-container {
    min-height: 200px;
    margin-bottom: 20px;
}

.exercise-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 按钮样式 - 与主页保持完全一致 */
.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

/* 确保小按钮样式与主站一致 */
.btn-small {
    padding: 0.4rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 25px !important;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #4ecdc4) !important;
    color: #1a1a2e !important;
    font-weight: 600 !important;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(45deg, #ffd700, #4ecdc4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4) !important;
    filter: brightness(1.1) !important;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-outline {
    background: transparent !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffd700 !important;
    color: #ffd700 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2) !important;
}

/* 选择题专用样式 */
#choiceOptions label {
    transition: all 0.3s ease;
}

#choiceOptions label:hover {
    border-color: #007bff !important;
    background-color: #f0f7ff !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .exercise-tabs {
        flex-direction: column;
    }
    
    .exercise-tab-btn {
        text-align: center;
    }
    
    .exercise-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}