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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-20px) rotate(10deg) scale(1.1);
    }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    font-size: 2rem;
    animation: float 3s infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

.element:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.element:nth-child(2) { top: 30%; right: 20%; animation-delay: 0.5s; }
.element:nth-child(3) { bottom: 30%; left: 30%; animation-delay: 1s; }
.element:nth-child(4) { bottom: 20%; right: 30%; animation-delay: 1.5s; }

.element:hover {
    animation: pulse 1s infinite;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
}

/* 添加新的动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 添加页面加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .games-section, .about-section {
    animation: fadeIn 1s ease-out;
} 