/* css/style.css */

/* 基础重置与全局设置 */
html {
    scroll-behavior: smooth;
}

/* 导航栏滚动后的样式（玻璃拟态 + 阴影） */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* 自定义动画关键帧 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

/* 应用动画 */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* 点阵背景图案 */
.pattern-dots {
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 滚动揭示动画的基础状态 */
.reveal-left, .reveal-right, .reveal-bottom {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-bottom { transform: translateY(30px); }

/* 激活状态（由 JS 添加） */
.active-reveal {
    opacity: 1;
    transform: translate(0, 0);
}

/* 移动端菜单链接样式 */
.mobile-link {
    display: block;
    transition: all 0.2s;
}