/* 用户数量动画效果 */
.user-count-number {
    position: relative;
    display: inline-block;
}

.user-count-number.updating {
    animation: countUpdate 0.5s ease-in-out;
}

.count-indicator {
    position: absolute;
    top: -10px;
    right: -20px;
    background: #28a745;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    animation: indicatorPop 2s ease-out forwards;
    z-index: 10;
}

@keyframes countUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #28a745; }
    100% { transform: scale(1); }
}

@keyframes indicatorPop {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translateY(-5px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-15px) scale(0.8);
    }
}

/* 支付按钮动画 */
.payment-btn {
    transition: all 0.3s ease;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 加载动画增强 */
.payment-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.payment-loading .spinner-border {
    border-width: 3px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* QR码容器动画 */
.qr-code-container {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 成功状态动画 */
.payment-success {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 倒计时动画 */
.countdown-warning {
    animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 1; }
    to { opacity: 0.6; }
}

/* 价格卡片悬停效果 */
.pricing-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* 特色卡片动画 */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card .feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* 导航栏滚动效果 */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 响应式动画禁用 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 