/**
 * ================================================================
 *  home.css — 首页专属样式（精美动画版）
 * ================================================================
 */

/* 首页Hero特殊处理 */
.hero {
    background: linear-gradient(135deg, #008800 0%, #006600 50%, #004400 100%);
    min-height: 520px;
}

/* 浮动动画增强 */
.hero::before {
    animation: floatSlow 8s ease-in-out infinite;
}

.hero::after {
    animation: floatMedium 6s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes floatMedium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* 数据条动画 */
.trust-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.trust-item:nth-child(1) { animation-delay: 0.1s; }
.trust-item:nth-child(2) { animation-delay: 0.2s; }
.trust-item:nth-child(3) { animation-delay: 0.3s; }

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

/* 服务卡片入场动画 */
.services-grid .service-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }

/* 优势区动画 */
.advantage-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.advantage-item:nth-child(1) { animation-delay: 0.1s; }
.advantage-item:nth-child(2) { animation-delay: 0.2s; }
.advantage-item:nth-child(3) { animation-delay: 0.3s; }

/* 社区卡片动画 */
.community-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.community-card:nth-child(1) { animation-delay: 0.1s; }
.community-card:nth-child(2) { animation-delay: 0.2s; }
.community-card:nth-child(3) { animation-delay: 0.3s; }

/* CTA按钮脉冲动画 */
.cta-section .btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* 导航按钮悬停效果增强 */
.nav-btn {
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before {
    left: 100%;
}
