/* 动画效果样式 */

/* 基础动画效果 */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.animate-bounce-in {
    opacity: 0;
    animation: bounceIn 0.8s forwards;
}

.animate-zoom-in {
    opacity: 0;
    animation: zoomIn 0.5s forwards;
}

.hover-float {
    transition: transform 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-5px);
}

/* 打字机效果 */
.typewriter-effect {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.typewriter-effect::after {
    content: '|';
    position: absolute;
    right: -2px;
    animation: blink 1s infinite;
}

/* 脉冲效果 */
.pulse {
    animation: pulse-animation 2s infinite;
}

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

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 页面过渡动画 */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    z-index: 9998;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.page-transition.fade-out {
    opacity: 0;
}

/* 页面加载进度条 */
.page-load-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    width: 0%;
    z-index: 9999;
    transition: width 0.2s, opacity 0.3s;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.7);
}

/* 按钮波纹效果 */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: 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-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

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

/* 霓虹灯闪烁效果 */
.neon-flicker {
    animation: flicker 2s infinite alternate;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 0 0 4px #fff, 0 0 11px #fff, 0 0 19px #fff, 0 0 40px var(--neon-blue), 0 0 80px var(--neon-blue), 0 0 90px var(--neon-blue), 0 0 100px var(--neon-blue), 0 0 150px var(--neon-blue);
    }
    20%, 24%, 55% {        
        text-shadow: none;
    }
}

/* 渐变文字动画 */
.gradient-text {
    background-size: 200% 200%;
    background-image: linear-gradient(to right, var(--neon-blue), var(--neon-purple), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 下拉刷新动画 */
.pull-icon i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* 加载中动画 */
.loading-dots:after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

/* 滚动到顶部按钮动画 */
.scroll-top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-text);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.scroll-top-button:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .scroll-top-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

/* 触摸反馈优化 */
@media (hover: none) {
    .nav-link:active, .blacklist-card:active, .neon-button:active {
        transform: scale(0.95);
    }
}
