﻿/* 公共部分 */
.index_tit {
    width: 100%;
    text-align: center;
    font-size: 20px;
}

.index_tit p {
    font-size: 2em;
    color: #2b2b2b;
}

.index_tit i {
    display: block;
    background-color: #ff4229;
    height: 2px;
    width: 3em;
    margin: 1em auto;
}

.index_tit span {
    font-size: 0.7em;
    color: #2b2b2b;
}

/* banner */
.case_banner {
    width: 100%;
    position: relative;
    height: 250px;
    background-image: url('../images/case_banner.jpg');
    background-repeat: no-repeat;
    background-size: 100% 250px;
    background-position: center center;
}

/* .case_banner img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
} */

/* 案例 */
.index_case {
    position: relative;
    z-index: 1;
    width: 100%;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.index_case li {
    flex: 0 1 25%;
    height: 16.6vw;
    position: relative;
    overflow: hidden;
}

.index_case li img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
    transform: scale(1) translateY(0);
    opacity: 1;
}

.index_case li .tit {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    transition: 0.6s;
    opacity: 0;
    overflow: hidden;
}
.index_case li .tit i{
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    height: 40%;
    background-color: rgba(242, 20, 47, 0.9);
    opacity: 0;
    transition: 0.5s;
    transition-delay: 0.1s;
}

.index_case li .tit p {
    font-size: 30px;
    color: #fff;
    line-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    position: relative;
    z-index: 1;
}

.index_case li .tit span {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    display: block;
    width: 100%;
    line-height: 1.5em;
    color: #fff;
    font-size: 14px;
    padding: 1em 0;
}

.index_case li:hover img {
    transform: scale(1) translateY(-40%);
    opacity: 0;
    -webkit-filter: blur(3px);
    -moz-filter: blur(3px);
    -ms-filter: blur(3px);
    -o-filter: blur(3px);
    filter: blur(3px);
    filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius=4, MakeShadow=false);
}

.index_case li:hover .tit {
    opacity: 1;
}
.index_case li:hover .tit i{
    opacity: 1;
    height: 100%;
}

/* 互联网定制服务专家 */
.index_ad {
    width: 100%;
    background-image: url(../images/index_ad_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    padding: 6% 3%;
}

.index_ad .text {
    padding-top: 4%;
}

.index_ad .t1 {
    font-size: 18px;
    line-height: 2em;
    text-align: center;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.index_ad .t3 {
    font-size: 30px;
    color: #000000;
    line-height: 2em;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.index_ad .t2 {
    font-size: 18px;
    text-align: center;
    width: 200px;
    height: 44px;
    line-height: 44px;
    color: #ff4229;
    border: 1px solid #ff4229;
    display: block;
    margin: 3% auto 0 auto;
    position: relative;
    transition: 0.2s;
}

.index_ad .t2:after {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    width: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    background-color: #ff4229;
    transition: 1s;
    opacity: 0;
}


.index_ad .t2:after {
    right: 0;
    bottom: 0;
}

.index_ad .t2:hover {
    background: none;
    color: #fff;
}

.index_ad .t2:hover:after {
    width: 100%;
    opacity: 1;
}

@media screen and (max-width: 1200px) {
    .index_tit {
        font-size: 16px;
    }

    .index_case {
        height: auto;
    }

    .index_case li {
        flex: 0 1 50%;
        height: 33.3vw;
    }

    .index_case li .tit p {
        font-size: 20px;
    }

    .index_case li .tit span {
        font-size: 12px;
    }
}