.mainWrap{
    background: url(../images/pc/inner/ny_yewu_bg.jpg) no-repeat;
    background-size: 100% 100%;
}

.ywbm{
    flex-wrap: wrap;
}

.dept{
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 24.7%;
    height: 317px;
    margin-right: 0.3%;
    margin-bottom: 0.3%;
    background: rgba(255,255,255,0.6);
    transition: all .5s;
    box-sizing: border-box;
    text-align: center;
    padding: 0 3%;
    position: relative;
}

.dept::after{
    content: "";
    width: 100%;
    height: 3px;
    background: #E40000;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: all 0.2s ease-out 0s;
    transform: scaleX(0);
    transform-origin: center top;
}

.dept img{
    width: 60px;
    height: 60px;
}

.dept img:nth-child(2){
    display: none;
}

.dept p{
    font-size: 20px;
    color: #333333;
    line-height: 23px;
    height: 46px;
    margin-top: 30px;
}

.dept:hover{
    background: url(../images/pc/inner/ny_tu33.png) no-repeat;
    background-size: cover;
    background-position: center center;
}

.dept:hover img:nth-child(2){
    display: block;
}
.dept:hover img:first-child{
    display: none;
}
.dept:hover p{
    color: white;
}

.dept:hover::after{
    transform: none;
}

@media screen and (max-width: 1400px){
    .dept{
        height: 280px;
    }
}

@media screen and (max-width: 998px){
    .dept{
        height: 210px;
    }
}

@media screen and (max-width: 768px){
    .dept{
        height: 160px;
    }

    .dept img{
        width: 40px;
        height: 40px;
    }

    .dept p{
        font-size: 18px;
        margin-top: 15px;
    }
}

@media screen and (max-width: 540px){
    .mainWrap{
        background: url(../images/mo/mo_index_bg1.jpg) no-repeat;
        background-size: 100% 100%;
    }

    .dept{
        width: 49.7%;
        padding: 0 10%;
    }

    .dept:first-child, .dept:nth-child(5){
        background-color: white !important;
    }

    .dept:nth-child(4n){
        background-color: white !important;
    }

    .dept img{
        width: 30px;
        height: 30px;
    }

    .dept p{
        font-size: 14px;
    }

    .dept::after{
        height: 2px;
    }
}