/* 淡入动画 */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 向上滑动动画 */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

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

/* 导航栏动画 */
.nav-hidden {
    transform: translateY(-100%);
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* 特性卡片动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 按钮悬停动画 */
.primary-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* 菜单图标动画 */
.menu-toggle {
    cursor: pointer;
}

.menu-icon rect {
    transition: all 0.3s ease;
}

.menu-toggle.active rect:nth-child(1) {
    transform: rotate(45deg) translate(20px, 20px);
}

.menu-toggle.active rect:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active rect:nth-child(3) {
    transform: rotate(-45deg) translate(-20px, 20px);
}

/* 特性卡片悬停效果 */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card.hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* 链接悬停动画 */
.footer-links a {
    position: relative;
    transition: all 0.3s ease;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* 按钮点击动画 */
@keyframes btnClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.btn-clicked {
    animation: btnClick 0.3s ease;
    pointer-events: none;
} 