@charset "utf-8";

.rylist {
    /*max-width: 1240px;*/
    overflow: hidden;
    padding: 80px 0 20px;
    margin: 0 auto;
}

.rylist li {
    float: left;
    width: 25%;
    margin-bottom: 40px;
}

.rylist li .lin {
    padding: 0 25px;
}

.rylist li a {
    display: block;
    position: relative;
}

.rylist li a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 0;
    height: 1px;
    background-color: transparent;
}

.rylist li a:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 1px;
    background-color: #e6e6e6;
}

.rylist li .pic {
    width: 100%;
    height: 0;
    padding-bottom: 140%;
    position: relative;
    overflow: hidden;
}

.rylist li .pic .wrap {
    /*background-color: #efefef;*/
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    font-size: 0;
    text-align: center;
}

.rylist li .pic .wrap i {
    display: inline-block;
    width: 0;
    height: 100%;
    vertical-align: middle;
}

.rylist li img {
    max-width: 95%;
    max-height: 95%;
}

.rylist li h3 {
    font-size: 14px;
    line-height: 40px;
    text-align: center;
    height: 40px;
    overflow: hidden;
    color: #666;
}

.rylist li h3, .rylist li a:after {
    -webkit-transition: .6s;
    -moz-transition: .6s;
    -ms-transition: .6s;
    -o-transition: .6s;
    transition: .6s;
}

.rylist li:hover h3 {
    color: #d10d1d;
}

.rylist li:hover a:after {
    width: 100%;
    background-color: #d10d1d;
}

@media screen and (max-width: 1240px) {
    .rylist {
        padding: 70px 20px 30px;
    }

    .rylist li .lin {
        padding: 0 15px;
    }
}

@media screen and (max-width: 1100px) {
    .rylist li {
        width: 33.3%;
    }

    .rylist li h3 {
        line-height: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 900px) {
    .rylist li {
        width: 50%;
    }
}

@media screen and (max-width: 750px) {
    .rylist li h3 {
        font-size: 24px;
        padding: 5px;
    }
}