/* 自定义动画和过渡效果 */
.hero-parallax {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.slide-image {
    transition: opacity 1s ease-in-out;
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.scenario-card {
    transition: all 0.3s ease;
}

.scenario-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.scenario-card img {
    transition: transform 0.5s ease;
}

.scenario-card:hover img {
    transform: scale(1.1);
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    will-change: transform;
}

/* 视差区域样式优化 */
#parallax-section {
    position: relative;
    min-height: 400px;
}

#parallax-section .absolute.inset-0 {
    position: absolute;
    top: -100px; /* 延伸背景以避免滚动时出现空白 */
    left: 0;
    right: 0;
    bottom: -100px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    
    #parallax-section {
        min-height: 300px;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* 服务类型手机端优化 - 6列布局 */
    @media (max-width: 767px) {
        #services .service-card {
            padding: 0.5rem !important;
            min-height: auto !important;
            border-radius: 0.5rem !important;
        }
        
        #services .service-card .text-red-600 {
            font-size: 0.875rem !important;
            margin-bottom: 0.125rem !important;
        }
        
        #services .service-card h3 {
            font-size: 0.625rem !important;
            margin: 0 !important;
            line-height: 1 !important;
            font-weight: 400 !important;
        }
        
        /* 手机端网格间距更紧凑 */
        #services .grid {
            gap: 0.25rem !important;
        }
    }
    
    /* 服务类型桌面端一行四个 */
    @media (min-width: 1024px) {
        #services .grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }
}