﻿.news-box{
    width: 100%;
    display: block;
    position: relative;
    background-color: #f5f5f5;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}
.news-all-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
    padding: 80px 0;
}
.news-title-box{
    text-align: center;
    margin-bottom: 65px;
}
.news-title-en{
    font-size: 26px;
    font-family: "Oswald";
    font-weight: 700;
    letter-spacing: 2px;
}
.news-title-ch{
    display: inline-block;
    width: 210px;
    font-size: 24px;
    color: #25262d;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 15px;
    position: relative;
}
.news-title-ch:after{
    content: '';
    width: 1px;
    height: 11px;
    display: block;
    background-color: #25262d;
    position: absolute;
    bottom: calc(50% - 6px);
    left: 0;
}
.news-title-ch:before{
    content: '';
    width: 1px;
    height: 11px;
    display: block;
    background-color: #25262d;
    position: absolute;
    bottom: calc(50% - 6px);
    right: 0;
}
.news-class-box{
    display: block;
    text-align: center;
    margin-bottom: 65px;
}
.news-class{
    font-size: 20px;
    color: #25262d;
    letter-spacing: 1px;
    font-family: "Roboto","微軟正黑體";
    font-weight: 500;
    margin: 0 35px;
    position: relative;
    transition: all .3s linear;
}
.news-class:after{
    content: '';
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    position: absolute;
    display: block;
    background-color: #a62a32;
    transition: all .3s linear;
}
.news-info{
    width: 380px;
    display: inline-block;
    vertical-align: top;
    margin-left: 70px;
    margin-bottom: 40px;
    border-top: 1px solid #d1d1d1;
    border-bottom: 1px solid #d1d1d1;
    box-sizing: border-box;
    padding: 25px 0;
}
.news-info:nth-child(3n + 1){
    margin-left: 0;
}
.news-info-img-box{
    width: 100%;
    height: 260px;
    display: block;
    overflow: hidden;
    margin-bottom: 15px;
}
.news-info-img{
    width: 100%;
    height: 100%;
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: all .3s linear;
}
.news-info-tag{
    width: 60px;
    font-size: 14px;
    font-family: "Oswald";
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    background-color: #25262d;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    line-height: 30px;
    margin-right: 8px;
}
.news-info-data{
    font-size: 14px;
    color: #888;
    font-family: "roboto";
    font-weight: 300;
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: middle;
}
.news-info-title-ch{
    font-size: 18px;
    color: #25262d;
    font-family: "roboto","微軟正黑體";
    font-weight: bold;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 10px;
}
.news-info-title-en{
    font-size: 18px;
    color: #a62a32;
    font-family: "roboto","微軟正黑體";
    font-weight: 700;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 5px;
    min-height: 28px;
}
.news-info-text-box{
    font-size: 14px;
    color: #555;
    letter-spacing: 1px;
    margin-top: 10px;
    line-height: 1.8;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 75px;
    max-height: 75px;
    transition: all .3s linear;
}
#news .page{
    margin: 0;
    margin-top: 40px;
}
#news .page a{
    font-family: "Roboto";
    font-weight: 500;
    font-size: 20px;
    margin: 0 10px;
}
#news .page .select{
    color: #a62a32;
    position: relative;
}
#news .page .select:after{
    content: '';
    width: 100%;
    height: 2px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #a62a32;
}
#news .page .prev, 
#news .page .next{
    font-size: 20px;
    color: #25262d;
    margin: 0 5px;
}
#news .page .prev{
    padding-right: 0;
}
#news .page .next{
    padding-left: 0;
}


@media only screen and (max-width: 1280px){
    .news-all-box{
        width: 1000px;
    }
    .news-info{
        width: 300px;
        margin-left: 50px;
        margin-bottom: 50px;
    }
    .news-info-img-box{
        height: 205px;
    }
}
@media only screen and (max-width: 1000px){
    .news-box{
        margin-top: 64px;
        min-height: calc(100vh - 64px);
    }
    .news-all-box{
        width: 750px;
        padding: 40px 0;
    }
    .news-info{
        width: 240px;
        margin-left: 15px;
        margin-bottom: 30px;
        padding: 20px 0;
    }
    .news-info-img-box{
        height: 164px;
    }
    .news-info-tag{
        font-size: 12px;
        width: 50px;
        line-height: 24px;
    }
    .news-info-data{
        font-size: 12px;
    }
    .news-info-title-ch{
        font-size: 16px;
        margin-top: 5px;
    }
    .news-info-title-en{
        font-size: 16px;
        min-height: 25px;
    }
    .news-info-text-box{
        font-size: 12px;
        margin-top: 5px;
        min-height: 63px; 
        max-height: 63px; 
    }
    .news-title-box{
        margin-bottom: 50px;
    }
    .rwd-news-class-box{
        width: 100%;
        height: 46px;
        border: 1px solid #25262d;
        font-size: 20px;
        letter-spacing: 1px;
        text-align: center;
        display: block;
        line-height: 46px;
        position: relative;
        z-index: 2;
        box-sizing: border-box;
        font-family: "Roboto","微軟正黑體";
        font-weight: 500;
        cursor: pointer;
        background-color: #fff;
    }
    .rwd-news-class-box:after {
        content: '';
        width: 0px;
        height: 0px;
        margin: 0 auto;
        border-right: 8px solid transparent;
        border-top: 10px solid #25262d;
        border-left: 8px solid transparent;
        display: block;
        position: absolute;
        bottom: calc(50% - 5px);
        right: 5%;
        box-sizing: border-box;
    }
    .news-class-all-box{
        width: 100%;
        background-color: #fff;
        box-sizing: border-box;
        padding: 10px 0;
        position: absolute;
        box-shadow: 0 3px 5px rgba(0,0,0,0.5);
        z-index: 1;
        display: none;
    }
    .news-class{
        display: block;
        width: 100%;
        margin: 0;
        margin-bottom: 10px;
    }
    .news-class:last-child{
        margin-bottom: 0;
    }
    .news-class.active,
    .news-class:hover{
        color: #fff;
        background-color: #a62a32;
    }
}
@media only screen and (max-width: 750px){
    .news-all-box{
        width: 550px;
        padding: 20px 0;
    }
    .news-info{
        width: 100%;
        margin-bottom: 0;
        padding: 20px 0;
        border: none;
    }
    .news-info:nth-child(n){
        margin-left: 0;
    }
    .news-info:last-child{
        border-bottom: 1px solid #d1d1d1;
    }
    .news-title-en{
        font-size: 22px;
    }
    .news-title-ch{
        font-size: 20px;
        width: 160px;
        margin-top: 10px;
    }
    .news-title-box{
        margin-bottom: 30px;
    }
    .news-info-img-box{
        height: 376px;
    }
    .news-class-box{
        margin-bottom: 20px;
    }
    .news-info-title-en{
        min-height: initial;
    }
    .news-info-text-box{
        min-height: initial;
        max-height: initial;
    }
}
@media only screen and (max-width: 550px){
    .news-box{
        margin-top: 50px;
        min-height: calc(100vh - 50px);
    }
    .news-all-box{
        width: 95%;
    }
    .news-title-en{
        font-size: 18px;
    }
    .news-title-ch{
        font-size: 16px;
        width: 130px;
        margin-top: 0;
    }
    .news-title-ch:before,
    .news-title-ch:after{
        display: none;
    }
    .news-title-box{
        margin-bottom: 15px;
    }
    .news-info-title-ch{
        font-size: 14px;
    }
    .news-info-title-en{
        font-size: 14px;
        margin-top: 0;
    }
    .news-info-text-box{
        margin-top: 0;
    }
    .news-info{
        padding: 20px 0;
    }
    .news-info-more-box{
        font-size: 16px;
        margin-top: 15px;
    }
    .news-info-img-box{
        height: calc(100vw * 0.685);
    }
    .rwd-news-class-box{
        font-size: 16px;
        line-height: 36px;
        height: 36px;
    }
    .rwd-news-class-box:after{
        border-right: 5px solid transparent;
        border-top: 8px solid #25262d;
        border-left: 5px solid transparent;
    }
    .news-class{
        font-size: 16px;
    }
    .news-class-box{
        margin-bottom: 0;
    }
    #news .page{
        margin-top: 20px;
    }
    #news .page .prev, 
    #news .page .next,
    #news .page a{
        font-size: 16px;
    }
}


/*hover*/
.news-info:hover .news-info-img{
    transform: scale(1.1);
}
.news-info:hover .news-info-text-box{
    color: #a62a32;
}
#news .page a:hover{
    color: #a62a32;
}
@media only screen and (min-width: 1001px){
    .news-class.active,
    .news-class:hover{
        color: #a62a32;
    }
    .news-class.active:after,
    .news-class:hover:after{
        width: 100%;
    }
}

/*animation*/

@media only screen and (min-width: 1001px){
    .news-title-en,
    .news-title-ch,
    .news-title-ch:before,
    .news-title-ch:after,
    .news-class-box,
    .news-info,
    #news .page{
        opacity: 0;
    }
    .news-title-en.anima{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .news-title-ch.anima{
        animation: fade 1s ease .4s 1 both;
    }
    .news-title-ch.anima:before{
        animation: title_b_fadeInLeft 1s ease .5s 1 both;
    }
    .news-title-ch.anima:after{
        animation: title_b_fadeInRight 1s ease .5s 1 both;
    }
    .news-class-box.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .news-info.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    #news .page.anima{
        animation: fade 1s ease 0s 1 both;
    }
}

