@charset "utf-8";
/* ============================================
   三优网络 - 动画样式表
   宁波网站建设公司 | AI建站1999全包
   ============================================ */

/* ============================================
   Task 5: CSS 动画关键帧
   ============================================ */

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes typing {
    from { width: 0; opacity: 0.3; }
    to { opacity: 0.6; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.8); }
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}


/* ============================================
   元素动画应用
   ============================================ */

/* Logo图标脉冲动画 */
.logo-icon {
    animation: pulse 2s infinite;
}

/* Hero徽章淡入 */
.hero-badge {
    animation: fadeInUp 0.6s ease;
}

/* Hero标题淡入 */
.hero h1 {
    animation: fadeInUp 0.6s ease 0.1s both;
}

/* Hero高亮底线展开 */
.hero .highlight::after {
    animation: expand 1s ease 0.5s both;
}

@keyframes expand {
    from { width: 0; }
    to { width: 100%; }
}

/* Hero副标题淡入 */
.hero-subtitle {
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* 价格区域淡入 + 光效 */
.hero-price {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-price::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

/* CTA按钮组淡入 */
.hero-cta-group {
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* 统计数据淡入 */
.hero-stats {
    animation: fadeInUp 0.6s ease 0.5s both;
}


/* ============================================
   服务卡片入场动画（交错延迟）
   ============================================ */

.service-card:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.service-card:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.service-card:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.3s both;
}


/* ============================================
   卡片悬停光效
   ============================================ */

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover::after {
    opacity: 1;
}


/* ============================================
   滚动显示动画
   ============================================ */

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   数字滚动动画
   ============================================ */

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number.animated,
.why-number.animated {
    animation: countUp 0.8s ease forwards;
}


/* ============================================
   按钮点击波纹效果
   ============================================ */

.btn-primary::after,
.plan-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after,
.plan-cta:active::after {
    width: 300px;
    height: 300px;
}


/* ============================================
   加载动画
   ============================================ */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ============================================
   渐变文字工具
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ============================================
   玻璃拟态工具
   ============================================ */

.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}


/* ============================================
   霓虹边框效果
   ============================================ */

.neon-border {
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-tech);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    filter: blur(8px);
}

.neon-border:hover::before {
    opacity: 0.6;
}


/* ============================================
   减少动画偏好
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #particles-canvas {
        display: none;
    }
}


/* ============================================
   打印样式
   ============================================ */

@media print {
    .navbar,
    #particles-canvas,
    .hero-visual,
    .mobile-menu-btn,
    .btn-primary,
    .btn-secondary,
    .plan-cta,
    .contact-cta {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .section {
        padding: 2rem 1rem;
        max-width: 100%;
    }
}
