/* 优化"典型服务场景"动画效果 */

/* 移除生硬的 animation，改为平滑的 transition */
.case-copy {
    animation: none !important;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-media {
    animation: none !important;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 切换时的淡入效果 */
.case-copy.entering {
    opacity: 0;
    transform: translateX(-20px);
}

.case-media.entering {
    opacity: 0;
    transform: translateX(20px);
}

/* 确保图片切换时不会抖动 */
.case-inner {
    will-change: transform, opacity;
}

.case-media > img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 优化箭头按钮动画 */
.case-arrow {
    transition: background-color 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease,
                opacity 0.3s ease;
}

/* 添加平滑的计数器切换 */
.case-facts > div {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 确保切换时布局稳定 */
.case-section {
    overflow: hidden;
}

.case-inner {
    min-height: 350px;
}

/* 移动端优化 */
@media (max-width: 680px) {
    .case-copy {
        min-height: 450px;
    }

    .case-inner {
        min-height: auto;
    }
}
