﻿.news-box{
    width: 100%;
    position: relative;
    display: block;
    min-height: calc(100vh - 584px);
}
.news-all-box{
    width: 1600px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding-top: 40px;
    padding-bottom: 10px;
}
.news-title-box{
    font-size: 28px;
    font-weight: bold;
    color: #162148;
    letter-spacing: 2px;
}
.news-tag-box{
    display: block;
    margin-top: 25px;
    margin-bottom: 15px;
}
.news-path-tag-list{
    width: 160px;
    height: 36px;
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    color: #333;
    letter-spacing: 2px;
    text-align: center;
    background-color: #ddd;
    line-height: 36px;
    margin-left: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all .3s linear;
}
.news-path-tag-list:nth-child(9n + 1){
    margin-left: 0;
}
.news-info{
    width: 420px;
    display: inline-block;
    vertical-align: top;
    margin-left: 170px;
    margin-bottom: 70px;
}
.news-info:nth-child(3n + 1){
    margin-left: 0;
}
.news-info-img-box{
    width: 100%;
    height: 240px;
    display: block;
    overflow: hidden;
}
.news-info-img{
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    display: block;
    transition: all .3s linear;
}
.news-info-img-mask{
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    background-color: rgba(22,33,72,0.7);
    top: 0;
    left: 0;
    opacity: 0;
    transition: all .3s linear;
}
.news-info-text-box{
    box-sizing: border-box;
    padding-top: 20px;
}
.news-info-tag{
    width: 120px;
    height: 30px;
    line-height: 30px;
    display: block;
    background-color: #ae8c4f;
    border-radius: 5px;
    font-size: 14px;
    letter-spacing: 2px;
    color: #fff;
    text-align: center;
}
.news-info-title{
    width: 100%;
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #162148;
    letter-spacing: 2px;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 10px;
    margin-bottom: 8px;
    word-break: break-all;
    transition: all .3s linear;
}
.news-info-data{
    font-size: 14px;
    color: #333;
    font-family: 'Roboto';
    font-weight: 100;
    letter-spacing: 1px;
}

/*<---------hover-------->*/

.news-info:hover .news-info-title{
    color: #ae8c4f;
}
.news-info:hover .news-info-img{
    transform: scale(1.1);
}
.news-path-tag-list:hover,
.news-path-tag-list.active{
    background-color: #fff;
    color: #ae8c4f;
}

@media only screen and (max-width: 1600px){
    .news-all-box{
        width: 1400px;
    }
    .news-info{
        margin-left: 70px;
    }
    .news-path-tag-list{
        width: 140px;
        margin-left: 17px;
    }
}
@media only screen and (max-width: 1400px){
    .news-all-box{
        width: 1200px;
    }
    .news-info{
        width: 353px;
    }
    .news-info-img-box{
        height: 202px;
    }
    .news-path-tag-list{
        width: 135px;
    }
    .news-path-tag-list:nth-child(n) {
        margin-left: 17px;
    }
    .news-path-tag-list:nth-child(8n + 1) {
        margin-left: 0;
    }
}
@media only screen and (max-width: 1200px){
    .news-all-box{
        width: 1000px;
    }
    .news-info{
        width: 306.5px;
        margin-left: 40px;
        margin-bottom: 40px;
    }
    .news-info-img-box{
        height: 175px;
    }
    .news-info-text-box{
        padding-top: 10px;
    }
    .news-info-title{
        margin-top: 6px;
        margin-bottom: 4px;
    }
    .news-path-tag-list{
        width: 130px;
    }
    .news-path-tag-list:nth-child(n) {
        margin-left: 15px;
    }
    .news-path-tag-list:nth-child(7n + 1) {
        margin-left: 0;
    }
}
@media only screen and (max-width: 1000px){
    .news-all-box{
        width: 750px;
    }
    .news-info{
        width: 340px;
        margin-left: 70px;
    }
    .news-info-img-box{
        height: 195px;
    }
    .news-info:nth-child(n) {
        margin-left: 70px;
    }
    .news-info:nth-child(2n + 1) {
        margin-left: 0;
    }
    .rwd-news-path-tag-list-box{
        width: 100%;
        height: 46px;
        border: 1px solid #ddd;
        font-size: 16px;
        letter-spacing: 1px;
        text-align: center;
        display: block;
        line-height: 46px;
        position: relative;
        box-sizing: border-box;
        background-color: #fff;
        color: #333;
    }
    .rwd-news-path-tag-list-box:after {
        content: '';
        width: 0px;
        height: 0px;
        margin: 0 auto;
        border-right: 5px solid transparent;
        border-top: 8px solid #888;
        border-left: 5px solid transparent;
        display: block;
        position: absolute;
        bottom: calc(50% - 5px);
        right: 5%;
        box-sizing: border-box;
    }
    .news-path-tag-list{
        width: 100%;
        margin-bottom: 0;
        background-color: #fff;
    }
    .news-path-tag-list:nth-child(n) {
        margin-left: 0;
    }
    .news-tag-box{
        position: relative;
        width: 100%;
    }
    .news-path-tag-list-box{
        width: 100%;
        position: absolute;
        display: none;
        background-color: #fff;
        z-index: 999;
        border: 1px solid #ddd;
        box-sizing: border-box;
        box-shadow: 0 3px 3px #ddd;
    }
}
@media only screen and (max-width: 750px){
    .news-all-box{
        width: 550px;
    }
    .news-info{
        width: 260px; 
    }
    .news-info-img-box{
        height: 149px;
    }
    .news-info:nth-child(n){
        margin-left: 30px;
    }
    .news-info:nth-child(2n + 1) {
        margin-left: 0;
    }
    .news-info-tag{
        width: 100px;
        letter-spacing: 1px;
    }
    .news-info-title{
        font-size: 14px;
    }
    .news-info-data{
        font-size: 12px;
    }
}
@media only screen and (max-width: 550px){
    .news-all-box{
        width: 400px;
        padding-top: 20px;
    }
    .news-tag-box{
        margin-top: 20px;
    }
    .news-info-title{
        font-size: 14px;
    }
    .news-info-data{
        font-size: 12px;
    }
    .news-info{
        width: 100%; 
        margin-bottom: 20px;
    }
    .news-info-img-box{
        height: 229px;
    }
    .news-info:nth-child(n){
        margin-left: 0;
    }
    .news-title-box{
        font-size: 20px;
    }
}
@media only screen and (max-width: 400px){
    .news-all-box{
        width: 300px;
    }
    .news-info-img-box{
        height: 171px;
    }
    .news-info{ 
        margin-bottom: 10px;
    }
    .news-title-box{
        font-size: 18px;
    }
    .rwd-news-path-tag-list-box{
        line-height: 36px;
        height: 36px;
        font-size: 14px;
    }
    .news-path-tag-list{
        font-size: 14px;
    }
    .news-info-tag{
        line-height: 24px;
        height: 24px;
        font-size: 12px;
    }
}


/*animation*/

@media only screen and (min-width: 1001px){
    .news-title-box,
    .news-tag-box,
    .news-info{
        opacity: 0;
    }
    .news-title-box.active{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .news-tag-box.active{
        animation: fade 1s ease 0s 1 both;
    }
    .news-info.active{
        animation: fadeInUp 1s ease 0s 1 both;
    }
}


