/* 首页入场动画 - 极简风格 */

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features-container {
    will-change: opacity;
}

.features-container.animate-enter {
    opacity: 0;
}

.features-container.animate-enter .feature-item {
    opacity: 0;
    transform: translateY(10px);
}

.features-container.animating {
    animation: fadeSlideIn 0.4s ease-out forwards;
}

.features-container.animating .feature-item {
    animation: fadeSlideIn 0.4s ease-out forwards;
}

.features-container.animating .feature-item:nth-child(1) { animation-delay: 0.05s; }
.features-container.animating .feature-item:nth-child(2) { animation-delay: 0.10s; }
.features-container.animating .feature-item:nth-child(3) { animation-delay: 0.15s; }
.features-container.animating .feature-item:nth-child(4) { animation-delay: 0.20s; }
.features-container.animating .feature-item:nth-child(5) { animation-delay: 0.25s; }
.features-container.animating .feature-item:nth-child(6) { animation-delay: 0.30s; }
.features-container.animating .feature-item:nth-child(7) { animation-delay: 0.35s; }
.features-container.animating .feature-item:nth-child(8) { animation-delay: 0.40s; }

.features-container.animating .feature-icon {
    animation: fadeSlideIn 0.4s ease-out forwards;
}

.features-container.animating .feature-item:nth-child(1) .feature-icon { animation-delay: 0.10s; }
.features-container.animating .feature-item:nth-child(2) .feature-icon { animation-delay: 0.15s; }
.features-container.animating .feature-item:nth-child(3) .feature-icon { animation-delay: 0.20s; }
.features-container.animating .feature-item:nth-child(4) .feature-icon { animation-delay: 0.25s; }
.features-container.animating .feature-item:nth-child(5) .feature-icon { animation-delay: 0.30s; }

.features-container.animating .feature-glow {
    animation: fadeSlideIn 0.4s ease-out forwards;
}

.features-container.animating .feature-item:nth-child(1) .feature-glow { animation-delay: 0.15s; }
.features-container.animating .feature-item:nth-child(2) .feature-glow { animation-delay: 0.20s; }
.features-container.animating .feature-item:nth-child(3) .feature-glow { animation-delay: 0.25s; }
.features-container.animating .feature-item:nth-child(4) .feature-glow { animation-delay: 0.30s; }
.features-container.animating .feature-item:nth-child(5) .feature-glow { animation-delay: 0.35s; }

.feature-item,
.feature-icon {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.features-container.animating .feature-item,
.features-container.animating .feature-icon {
    will-change: transform, opacity;
}

.features-container:not(.animating) .feature-item,
.features-container:not(.animating) .feature-icon {
    will-change: auto;
}

.features-container.animating .feature-item,
.features-container.animate-enter .feature-item {
    transition: none !important;
}

.features-container:not(.animating):not(.animate-enter) .feature-item {
    transition: none;
}
