﻿.news-box{
    width: 100%;
    min-height: calc(100vh - 380px);
    display: block;
    position: relative;
    font-size: 0;
    background-color: #f5f5f5;
}
.news-info-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 115px 0;
}
.news-info{
    width: 380px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 30px;
}
.news-info:nth-child(3n + 1){
    margin-left: 0;
}
.news-info-img-box{
    width: 100%;
    height: 260px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: block;
    overflow: hidden;
}
.news-info-img{
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: block;
    transition: all .3s linear; 
}
.news-info-bottom{
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 0 30px;
    position: relative;
    top: -50px;
    transition: all .3s linear; 
}
.news-info-text-box{
    width: 100%;
    display: block;
    background-color: #fff;
    box-sizing: border-box;
    padding: 15px 20px;
    min-height: 186px;
}
.news-info-text-title{
    font-size: 16px;
    font-weight: bold;
    color: #64bcc1;
    letter-spacing: 1px;
    line-height: 1.8;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.news-info-text-data{
    font-family: 'Poppins', "微軟正黑體";
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #61942d;
    margin: 3px 0;
}
.news-info-text{
    font-size: 14px;
    font-weight: lighter;
    color: #888;
    letter-spacing: 1px;
    line-height: 1.8;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
/*----------hover----------*/
.news-info:hover .news-info-bottom{
    top: 0;
}
.news-info:hover .news-info-img{
    transform: scale(1.1);
}






@media only screen and (max-width: 1200px){
    .news-info-box{
        width: 1000px;
    }
    .news-info{
        width: 320px;
        margin-left: 20px;
    }
    .news-info-img-box{
        height: 219px;
    }
    .news-info-bottom{
        padding: 0 20px;
        top: -40px;
    }
}
@media only screen and (max-width: 1000px){
    .news-box{
        min-height: calc(100vh - 370px);
    }
    .news-info-box{
        width: 800px;
        padding: 85px 0;
    }
    .news-info{
        width: 385px;
    }
    .news-info-img-box{
        height: 263px;
    }
    .news-info-bottom{
        padding: 0 30px;
    }
    .news-info:nth-child(n) {
        margin-left: 30px;
    }
    .news-info:nth-child(2n + 1) {
        margin-left: 0;
    }
}
@media only screen and (max-width: 800px){
    .news-info-box{
        width: 600px;
        padding: 55px 0;
    }
    .news-info{
        width: 285px;
    }
    .news-info-img-box{
        height: 195px;
    }
    .news-info-text-box{
        padding: 10px 15px;
    }
    .news-info-bottom{
        padding: 0 20px;
    }
}
@media only screen and (max-width: 600px){
    .news-box{
        min-height: calc(100vh - 245px);
    }
    .news-info-box{
        width: 400px;
        padding: 25px 0;
        padding-bottom: 0;
    }
    .news-info{
        width: 100%;
        margin-bottom: 25px;
    }
    .news-info-img-box{
        height: 273px;
    }
    .news-info-text-box{
        padding: 5px 10px;
        min-height: 113px;
    }
    .news-info-bottom{
        padding: 0;
        top: 0;
    }
    .news-info:nth-child(n) {
        margin-left: 0;
    }
    .news-info-text{
        -webkit-line-clamp: 2;
    }
    .news-info-text-title{
        -webkit-line-clamp: 1;
    }
}
@media only screen and (max-width: 400px){
    .news-info-box{
        width: 300px;
        padding: 20px 0;
        padding-bottom: 0;
    }
    .news-info-img-box{
        height: 205px;
    }
    .news-info-text-box{
        padding: 5px 10px;
        min-height: 81px;
    }
    .news-info-text-title{
        font-size: 14px;
    }
    .news-info-text{
        font-size: 12px;  
    }
    .news-info{
        margin-bottom: 20px;
    }
}

/*animation*/
/*<-------------動畫------------->*/

@media only screen and (min-width: 1001px){
    .news-info{
        opacity: 0;
    }
    .news-info.active{
        animation: animation_btot 1s ease both;
    }
}

