/* WFD练习页面样式 */

.wfd-container {
    max-width: 800px;
    margin-top: 8rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.wfd-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wfd-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.wfd-header p {
    color: #666;
    font-size: 1rem;
}

.audio-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.play-button-container {
    margin: 1rem 0;
}

#play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #4d90fe;
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#play-button:hover {
    background-color: #3a78d4;
    transform: scale(1.05);
}

#play-button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
    transform: none;
}

#play-button.played {
    background-color: #46b946;
}

.audio-info {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-style: italic;
}

.input-section {
    margin-bottom: 2rem;
}

.input-container {
    position: relative;
    margin-bottom: 1rem;
}

#answer-input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    min-height: 100px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#answer-input:focus {
    outline: none;
    border-color: #4d90fe;
    box-shadow: 0 0 0 3px rgba(77, 144, 254, 0.2);
}

.controls-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.navigation-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.btn-primary {
    background-color: #4d90fe;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #3a78d4;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #e9ecef;
}

.btn-warning {
    background-color: #ffc107;
    color: #333;
}

.btn-warning:hover:not(:disabled) {
    background-color: #e0a800;
}

.btn-warning.active {
    background-color: #e0a800;
    color: white;
}

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

.btn-success:hover:not(:disabled) {
    background-color: #218838;
}

.info-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

#question-counter {
    color: #666;
    font-size: 0.9rem;
}

#score-display {
    color: #4d90fe;
    font-weight: bold;
    font-size: 1rem;
}

.feedback-section {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.success-message {
    color: #28a745;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 6px;
}

.feedback-message {
    color: #333;
}

.missing-words {
    color: #dc3545;
    font-weight: bold;
}

.correct-answer {
    color: #28a745;
    font-weight: bold;
}

.info-message {
    color: #17a2b8;
    text-align: center;
    padding: 1rem;
    background-color: rgba(23, 162, 184, 0.1);
    border-radius: 6px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wfd-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .controls-section {
        flex-direction: column;
        gap: 1rem;
    }

    .navigation-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    #play-button {
        width: 70px;
        height: 70px;
        font-size: 1.7rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wfd-container {
    animation: fadeIn 0.5s ease-out;
} 