/* ========================================
   FusionAI v2 - Utilities & Animations
   工具类 + 微动效 + 辅助样式
   ======================================== */

/* ============================================
   入场动画
   ============================================ */

/* 淡入上移 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 淡入 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 缩放淡入 */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 脉冲光晕 */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 35px rgba(0, 212, 255, 0.2);
    }
}

/* Hero 网格线浮动 */
@keyframes gridShift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 60px 60px, 60px 60px; }
}

/* 进度条扫描线 */
@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* ============================================
   动画应用类
   ============================================ */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease forwards;
}

/* 交错延迟 - 列表项逐个出现 */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ============================================
   Hero 网格装饰动画
   ============================================ */
.hero-grid-animated::before {
    animation: gridShift 20s linear infinite;
}

/* ============================================
   发光脉冲
   ============================================ */
.glow-pulse {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ============================================
   卡片 hover 提升效果
   ============================================ */
.hover-lift {
    transition: transform var(--transition-normal),
                box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   渐变文字
   ============================================ */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   品牌色底边滑入
   ============================================ */
.border-slide {
    position: relative;
}

.border-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-brand);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.border-slide:hover::after {
    width: 100%;
}

/* ============================================
   响应式断点适配
   ============================================ */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .stats-bar {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    :root {
        --section-gap: 50px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.7rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .hero-section::before {
        background-size: 40px 40px;
    }

    .stats-bar {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    :root {
        --section-gap: 40px;
    }

    /* 移动端卡片间距 */
    .row.g-4 {
        --bs-gutter-y: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .stats-bar {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   打印样式
   ============================================ */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .navbar, footer, .btn, .hero-section {
        display: none !important;
    }
}
