/* ========================================
   诊断页报告区 UI 增强样式
   紫色渐变主题 + 微动画效果
   只追加增强样式，不覆盖已有CSS
   ======================================== */

/* ===== 报告卡片悬浮上浮动画 + 紫色左边框 ===== */
.report-card {
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.report-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}

/* ===== 评分圆圈渐变光晕 + 旋转入场动画 ===== */
.score-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4), 
                0 0 40px rgba(118, 75, 162, 0.2);
    animation: rotateIn 0.8s ease-out;
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

/* ===== 总分卡片数字跳动动画 + 背景流光 ===== */
.total-score-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite, numberBounce 0.6s ease-out;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes numberBounce {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== 报告提示卡片左侧渐变条 + hover变色 ===== */
.report-text-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.report-text-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.report-text-card:hover::before {
    width: 8px;
}

.report-text-card:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

/* ===== 通用淡入上浮动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-card, .score-circle, .total-score-card, .report-text-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== 移动端适配（max-width: 768px）===== */
@media (max-width: 768px) {
    .report-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    }
    
    .score-circle {
        box-shadow: 0 0 12px rgba(102, 126, 234, 0.3);
    }
    
    .total-score-card {
        background-size: 150% 150%;
    }
    
    .report-text-card::before {
        width: 3px;
    }
    
    .report-text-card:hover::before {
        width: 5px;
    }
}
