﻿body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.nav-link {
    position: relative;
    overflow: hidden;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #3E92CC;
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

.service-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .service-card:hover {
        transform: translateY(-10px) scale(1.02);
    }

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.progress-bar {
    height: 3px;
    background: linear-gradient(90deg, #0A2463, #3E92CC);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transform-origin: left;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(62, 146, 204, 0.6);
    pointer-events: none;
}

/* 新增动画效果 */
.slide-in {
    animation: slideIn 0.8s ease forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
    transform: scale(0.8);
    opacity: 0;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 时间线样式 */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #3E92CC;
}

.timeline-item {
    position: relative;
    z-index: 1;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    border: 4px solid #3E92CC;
    z-index: 2;
}

/* 导航栏滚动效果 */
.header-scrolled {
    background-color: rgba(10, 36, 99, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 数字增长动画 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
