/**
 * FitMate Motion - CSS 动画样式
 *
 * 仅包含 CSS 层面的动画效果
 * 所有复杂动画由 GSAP JS 模块管理
 */

/* ========================================
   Ripple Effect - 按钮点击波纹
   ======================================== */
.ripple {
    pointer-events: none;
}

/* ========================================
   Mouse Glow - 鼠标光晕
   ======================================== */
.mouse-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.12) 0%,
        rgba(59, 130, 246, 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    filter: blur(20px);
    will-change: transform;
    transition: opacity 0.3s ease;
}

.hero-section:hover .mouse-glow {
    opacity: 1;
}

/* ========================================
   Nav Underline - 导航下滑线
   ======================================== */
.nav-underline {
    position: fixed;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    will-change: transform, left;
}

/* ========================================
   Scroll Indicator - 滚动指示器
   ======================================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    z-index: 10;
}

.scroll-arrow {
    font-size: 20px;
    color: var(--text-secondary);
}

.scroll-text {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ========================================
   Hero Background - 背景效果
   ======================================== */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.12) 0%,
        rgba(59, 130, 246, 0.04) 50%,
        transparent 70%
    );
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   Decorative Rings - 装饰圆环
   ======================================== */
.hero-visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.1);
    pointer-events: none;
}

.hero-visual-ring.ring-1 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-visual-ring.ring-2 {
    width: 160px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-visual-ring.ring-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ========================================
   AI Avatar Pulse - AI 头像脉冲
   ======================================== */
.ai-avatar-small {
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.35);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

/* ========================================
   Progress Bar Shine - 进度条光泽
   ======================================== */
.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: progressShine 2.5s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ========================================
   Text Gradient - 渐变文字
   ======================================== */
.text-gradient {
    background: linear-gradient(
        90deg,
        var(--primary) 0%,
        var(--success) 50%,
        var(--primary) 100%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }

    .hero-visual {
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
