/* 交互式演练样式 */

.interactive-training {
    max-width: 100%;
    font-family: inherit;
}

.training-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.training-header h2 {
    color: #0d4f3c;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.training-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.training-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.9rem;
}

.time-estimate, .difficulty {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #1e3a8a;
}

/* 进度条 */
.training-progress {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d4f3c, #f59e0b);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #0d4f3c;
}

/* 步骤内容 */
.training-step {
    margin-bottom: 30px;
}

.step-header {
    margin-bottom: 25px;
}

.step-header h3 {
    color: #0d4f3c;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.step-description {
    color: #666;
    font-size: 1rem;
}

/* 问题选项 */
.question h4 {
    color: #1e3a8a;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-label:hover {
    border-color: #0d4f3c;
    background: #f0f9ff;
}

.option-label input[type="checkbox"],
.option-label input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.option-text {
    flex: 1;
    font-size: 1rem;
}

/* 输入表单 */
.input-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #0d4f3c;
    margin-bottom: 8px;
}

.input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: #0d4f3c;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.input-unit {
    padding: 12px;
    background: #f8fafc;
    color: #666;
    font-weight: 600;
    border-left: 1px solid #e5e7eb;
}

/* 参数选择 */
.parameter-selection {
    display: grid;
    gap: 25px;
}

.parameter-group h5 {
    color: #0d4f3c;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.parameter-options {
    display: grid;
    gap: 10px;
}

.parameter-option {
    display: block;
    cursor: pointer;
}

.parameter-option input[type="radio"] {
    display: none;
}

.option-content {
    padding: 15px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.parameter-option input[type="radio"]:checked + .option-content {
    border-color: #0d4f3c;
    background: #f0f9ff;
}

.option-value {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.option-quality {
    font-size: 0.9rem;
    color: #f59e0b;
    font-weight: 600;
}

/* 计算练习 */
.calculation-exercise {
    display: grid;
    gap: 25px;
}

.calculation-item {
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #0d4f3c;
}

.calculation-item h5 {
    color: #0d4f3c;
    margin-bottom: 15px;
}

.formula-display {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-family: monospace;
    border: 1px solid #e5e7eb;
}

.variables h6 {
    color: #1e3a8a;
    margin-bottom: 10px;
}

.variables ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.variables li {
    padding: 5px 0;
    color: #555;
}

.calculation-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calculation-input label {
    font-weight: 600;
    color: #0d4f3c;
}

.calculation-input input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
}

.calculation-input input:focus {
    outline: none;
    border-color: #0d4f3c;
}

/* 分析练习 */
.analysis-exercise {
    display: grid;
    gap: 20px;
}

.analysis-task {
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #1e3a8a;
}

.analysis-task h5 {
    color: #1e3a8a;
    margin-bottom: 15px;
}

/* 反馈样式 */
.step-feedback {
    margin-top: 25px;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-feedback.correct {
    background: #dcfce7;
    border: 2px solid #16a34a;
}

.step-feedback.incorrect {
    background: #fef2f2;
    border: 2px solid #dc2626;
}

.feedback-icon {
    font-size: 1.5rem;
}

.step-feedback.correct .feedback-icon {
    color: #16a34a;
}

.step-feedback.incorrect .feedback-icon {
    color: #dc2626;
}

.feedback-content h5 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-feedback.correct .feedback-content h5 {
    color: #15803d;
}

.step-feedback.incorrect .feedback-content h5 {
    color: #b91c1c;
}

.feedback-content p {
    margin: 0;
    color: #374151;
}

/* 控制按钮 */
.training-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #0d4f3c;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #1a5f4a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #4b5563;
    transform: translateY(-2px);
}

/* 完成页面 */
.training-complete {
    text-align: center;
    padding: 40px 20px;
}

.completion-header {
    margin-bottom: 30px;
}

.completion-header h2 {
    color: #0d4f3c;
    margin-top: 15px;
    font-size: 2rem;
}

.completion-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #f59e0b;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.completion-message {
    margin-bottom: 30px;
    color: #374151;
}

.completion-message p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.completion-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .training-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .completion-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .training-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .completion-actions {
        flex-direction: column;
        align-items: center;
    }
}