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

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce-slow-delay {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 为动画添加延迟效果 */
.animate-bounce-slow {
    animation: bounce-slow 3s infinite;
}

.animate-bounce-slow-delay {
    animation: bounce-slow-delay 3s infinite 1s;
}

/* 添加滚动触发动画效果 */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 服务卡片的交错动画 */
.service-card:nth-child(1) { animation: fadeInUp 0.5s ease 0.1s forwards; }
.service-card:nth-child(2) { animation: fadeInUp 0.5s ease 0.2s forwards; }
.service-card:nth-child(3) { animation: fadeInUp 0.5s ease 0.3s forwards; }
.service-card:nth-child(4) { animation: fadeInUp 0.5s ease 0.4s forwards; }
.service-card:nth-child(5) { animation: fadeInUp 0.5s ease 0.5s forwards; }
.service-card:nth-child(6) { animation: fadeInUp 0.5s ease 0.6s forwards; }

/* 数字增长动画 */
@keyframes countUp {
    from { opacity: 0; }
    to { opacity: 1; }
}

.count-animate {
    animation: countUp 1s ease-out forwards;
}

/* 平滑过渡效果 */
.transition-all {
    transition: all 0.3s ease;
}

/* 悬停效果增强 */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* 按钮点击效果 */
.btn-press:active {
    transform: scale(0.98);
}

/* 导航栏滚动动画 */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* 加载动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* 阴影效果 */
.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

/* 边框动画 */
@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 100, 150, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(42, 100, 150, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(42, 100, 150, 0);
    }
}

.border-pulse {
    animation: borderPulse 2s infinite;
}