/* ============================================
   易站模块官网 - 自定义样式
   黑底 + 科技蓝 主题
   ============================================ */

/* --- 滚动条 --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* --- 导航链接 --- */
.nav-link {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #94A3B8;
    transition: all 0.3s ease;
    position: relative;
}
.nav-link:hover {
    color: #60A5FA;
    background: rgba(59, 130, 246, 0.08);
}
.nav-link.active {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.12);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #3B82F6;
    border-radius: 1px;
}

/* --- 淡入动画（滚动触发） --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 页面切换淡入 --- */
.page-transition {
    animation: pageFadeIn 0.5s ease-out;
}
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 通用的 fade-in 工具类 --- */
.animate-fade-in {
    animation: fadeInUp 0.6s ease-out both;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 脉冲动画 --- */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* --- 发光效果 --- */
.glow-blue {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15),
                0 0 40px rgba(59, 130, 246, 0.05);
}
.glow-blue:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.25),
                0 0 60px rgba(59, 130, 246, 0.1);
}

/* --- 卡片悬浮微动效 --- */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lift:hover {
    transform: translateY(-4px);
}

/* --- 计数器数字动画 --- */
.counter {
    display: inline-block;
}

/* --- 底部渐变分隔线 --- */
.gradient-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #1E293B, #3B82F6, #1E293B, transparent);
}

/* --- 移动端响应式导航（折叠菜单用） --- */
@media (max-width: 767px) {
    .nav-container {
        flex-wrap: wrap;
    }
    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding: 8px 0;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .nav-link {
        font-size: 0.8rem;
        padding: 6px 12px;
        white-space: nowrap;
    }
}
