/* 动画效果样式 */

/* 页面加载动画 */
.page-loaded {
    animation: fadeInPage 0.8s ease-out;
}

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

/* 波纹效果 */
button {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 滚动动画 */
.scroll-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* 拖拽上传动画 */
.upload-area {
    transition: all 0.3s ease;
}

.drag-over {
    background-color: rgba(126, 182, 227, 0.1) !important;
    border: 2px dashed #7eb6e3 !important;
    transform: scale(1.02);
}

/* 浮动动画 */
.floating-element {
    animation: float 3s ease-in-out infinite;
}

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

/* 粒子效果 */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #7eb6e3, #6ba5d8);
    border-radius: 50%;
    animation: particleFloat linear infinite;
    opacity: 0.6;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 增强的滚动动画 */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 卡片悬停效果 */
.stBlock:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 输入框聚焦动画 */
.stTextInput input:focus,
.stNumberInput input:focus {
    animation: inputGlow 0.3s ease;
}

@keyframes inputGlow {
    0% { box-shadow: 0 0 0 0 rgba(126, 182, 227, 0.4); }
    100% { box-shadow: 0 0 0 4px rgba(126, 182, 227, 0.1); }
}

.drag-over {
    transform: scale(1.02);
    border-color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}