/* 动画关键帧 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(26, 35, 126, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 10px 30px rgba(26, 35, 126, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(26, 35, 126, 0.3);
    }
}

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

@keyframes printPaper {
    0% {
        bottom: -180px;
    }
    100% {
        bottom: 10px;
    }
}

@keyframes lightBlink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 20px #4caf50;
    }
    50% {
        opacity: 0.5;
        box-shadow: 0 0 10px #4caf50;
    }
}

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

/* 动画类 */
.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* 打印机动画 */
.printer-animation {
    animation: float 3s ease-in-out infinite;
}

.printer-paper {
    animation: printPaper 2s ease-in-out infinite alternate;
}

.printer-light {
    animation: lightBlink 1.5s infinite;
}

/* 品牌卡片悬停效果 */
.brand-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* 下载按钮悬停效果 */
.main-download-btn {
    position: relative;
    overflow: hidden;
}

.main-download-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s;
}

.main-download-btn:hover::after {
    left: 100%;
}

/* 数字计数器动画 */
.stat-number {
    display: inline-block;
}

.stat-number.animating {
    animation: countUp 0.3s ease-out;
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b00, #ff3d00);
    z-index: 1001;
    transition: width 0.1s;
}