/* ===========================================
   数字培训考核 - 解决方案详情页专属样式
   =========================================== */

/* ---------- 培训主题Hero ---------- */
.training-hero {
    background: linear-gradient(135deg, #fef7e6 0%, #fef3c7 100%);
}

.training-hero::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.05) 100%);
}

/* ---------- 培训Dashboard模拟 ---------- */
.training-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.training-stats {
    display: flex;
    gap: 1rem;
}

.stat-card {
    flex: 1;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    text-align: center;
}

.stat-title {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-trend {
    font-size: 0.7rem;
    font-weight: 600;
}

.stat-trend.up {
    color: #10b981;
}

.course-list {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.course-header {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.course-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.course-item:hover {
    background: #f8fafc;
}

.course-item.active {
    background: rgba(245, 158, 11, 0.05);
}

.course-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #f59e0b;
}

.course-info {
    flex: 1;
}

.course-info h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.course-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 3px;
}

.progress-text {
    font-size: 0.7rem;
    color: #64748b;
    min-width: 60px;
}

/* ---------- 课程缩略图 ---------- */
.course-thumbnails {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.thumbnail {
    width: 40px;
    height: 30px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
}

/* ---------- 学习路径 ---------- */
.path-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.path-node {
    padding: 0.25rem 0.5rem;
    background: #f1f5f9;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    color: #64748b;
}

.path-arrow {
    margin: 0 0.25rem;
    color: #cbd5e1;
}

/* ---------- 练习题目 ---------- */
.question-box {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    margin-top: 0.5rem;
    width: 160px;
}

.question {
    font-size: 0.75rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.option {
    padding: 0.25rem 0.5rem;
    background: #f8fafc;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    color: #64748b;
    border: 1px solid transparent;
}

.option.correct {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-color: #86efac;
}

/* ---------- 考试计时器 ---------- */
.exam-timer {
    background: #1e293b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

/* ---------- 认证徽章 ---------- */
.cert-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ---------- 流程步骤（培训页专用） ---------- */
.process-steps {
    max-width: 64rem;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.process-step.active {
    opacity: 1;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #111827;
}

.step-content p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-tag {
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.feature-tag.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.feature-tag.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.feature-tag.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.step-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.step-stat {
    text-align: center;
}

.step-stat .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7c3aed;
    line-height: 1;
}

.step-stat .label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.step-visual {
    display: flex;
    justify-content: center;
}

.visual-placeholder {
    width: 200px;
    height: 150px;
    background: white;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #7c3aed;
    border: 2px dashed #e5e7eb;
}

.visual-placeholder.course-build {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    border-color: #f59e0b;
}

.visual-placeholder.learning-path {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.1));
    border-color: #3b82f6;
}

.visual-placeholder.practice {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(79, 70, 229, 0.1));
    border-color: #7c3aed;
}

.visual-placeholder.exam {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(245, 158, 11, 0.1));
    border-color: #ef4444;
}

.visual-placeholder.certification {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 197, 94, 0.1));
    border-color: #10b981;
}

/* ---------- 投资回报分析 ---------- */
.roi-analysis {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.roi-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.roi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.roi-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(79, 70, 229, 0.1));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #7c3aed;
    margin: 0 auto 1.5rem;
}

.roi-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #111827;
}

.roi-value {
    font-size: 3rem;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.roi-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.roi-details {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.roi-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
    font-size: 0.875rem;
}

.roi-details li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
}

/* ROI计算器 */
.roi-calculator {
    margin-top: 4rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.roi-calculator h3 {
    font-size: 1.5rem;
    color: #111827;
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.form-group input[type="range"] {
    width: 100%;
    accent-color: #7c3aed;
}

.form-group span {
    font-size: 1rem;
    font-weight: 600;
    color: #7c3aed;
    text-align: center;
}

.calculator-result {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    color: white;
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.result-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-note {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ---------- 案例对比图（培训页专用） ---------- */
.chart-metric {
    margin-bottom: 1.25rem;
}

.chart-metric .metric-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.metric-bar {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.metric-bar .bar {
    height: 32px;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    transition: width 1s ease;
}

.metric-bar .bar.before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.metric-bar .bar.after {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.metric-bar .bar .bar-label {
    font-size: 0.75rem;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ---------- 案例特性列表 ---------- */
.case-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.case-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.case-features .feature-item i {
    color: #10b981;
    font-size: 0.75rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .process-step {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .calculator-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .training-stats {
        flex-direction: column;
    }

    .roi-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .roi-calculator {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .process-step {
        margin-bottom: 3rem;
    }

    .step-features {
        justify-content: center;
    }

    .roi-calculator {
        padding: 1.5rem;
    }
}
