/* 自定义悬停动画 */
.hover-animation {
    transition: all 0.4s ease-in-out;
}

.hover-animation:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 进一步动画细节（如：提升科技感） */
.module-card:hover .module-description {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}

/* 自定义动画和过渡效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hoverGrow {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.02);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-hoverGrow {
    animation: hoverGrow 0.3s ease-in-out;
}

.pagebody{width:1200px !important;margin:50px auto;}
.centertxt{text-align: center !important;}

.homecontact *{
    text-align: center;
}
.homecontact img{
    /* 水平居中 */
    display: block; /* 将图片转为块级元素 */
    margin: 0 auto; /* 左右自动外边距实现水平居中 */
    
    /* 可选：限制图片大小，防止溢出 */
    max-width: 100%;
    height: auto;
}