﻿.news-box{
    width: 100%;
    position: relative;
    display: block;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}
.news-line-box{
    width: 1000px;
    max-width: 100%;
    margin: 80px auto;
    display:block; 
    box-sizing: border-box;
    position: relative;
    font-size: 0;
}
.news-line{
    width: 1px;
    height: calc(100% - 120px);
    display: block;
    position: absolute;
    left: 0;
    top: 30px;
    background-color: #ccc;
}
.news-top-box{
    box-sizing: border-box;
    padding-left: 25px;
    position: relative;
}
.news-top-box>span{
    width: 100%;
    height: 1px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #888;
}
.news-title-box{
    text-align: left;
    position: relative;
}
.news-title-box:before{
    content: '';
    width: 9px;
    height: 9px;
    display: block;
    position: absolute;
    top: calc(50% - 3px);
    left: -29px;
    background-color: #bf1925;
}
.news-title-ch{
    display: inline-block;
    font-size: 36px;
    color: #555;
    font-weight: lighter;
    letter-spacing: 1px;
}
.news-title-ch span{
    color: #bf1925;
    font-weight: lighter;
}
.news-title-en{
    margin-left: 5px;
    display: inline-block;
    font-size: 16px;
    font-weight: lighter;
    color: #333;
    letter-spacing: 1px;
}

.news-path-box{
    box-sizing: border-box;
    padding-top: 5px;
    padding-bottom: 15px;
}
.news-path{
    display: inline-block;
    font-size: 14px;
    font-family: "微軟正黑體";
    letter-spacing: 1px;
    color: #888888;
    transition: all .5s ease;
    position: relative;
    padding: 0 10px;
}
.news-path:after{
    content: '>';
    font-size: 14px;
    color: #888;
    position: absolute;
    top: 0;
    right: -5px;
}
.news-path:nth-child(1){
    padding-left: 0;
}
.news-path:nth-child(2){
    color: #000;
}
.news-path:nth-child(2):after{
    content: '';
}
.news-article-box{
    display: block;
    padding-left: 25px;
    padding-top: 50px;
    min-height: 50vh;
    box-sizing: border-box;
}
.news-article{
    margin-bottom: 40px;
}
.news-article:last-child{
    margin-bottom: 0;
}
.news-article-list{
    width: 100%;
    display: block;
    position: relative;
    transition: all .3s linear;
}
.news-article-list:before{
    content: '';
    width: 9px;
    height: 9px;
    display: block;
    position: absolute;
    top: calc(50% - 9px);
    left: -29px;
    background-color: #bf1925;
}
.news-article-img-box{
    width: 200px;
    height: 180px;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    overflow: hidden;
}
.news-article-img{
    width: 100%;
    height: 100%;
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: all .3s linear;
}
.news-article-text-box{
    width: calc(100% - 225px);
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    padding-left: 25px;
}
.news-article-text-data{
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: lighter;
    color: #555;
}
.news-article-text-title{
    font-size: 16px;
    color: #000;
    margin: 5px 0;
    width: 100%;
    letter-spacing: 1px;
    font-weight: bold;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.news-article-text-edit{
    max-height: 105px;
    font-size: 14px;
    color: #555;
    letter-spacing: 1px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    min-height: 105px;
}
/*<---------------------hover----------------------->*/

.news-article-list:hover .news-article-img{
    transform: scale(1.1);
}
.news-article-list:hover{
    background-color: #eee;
}
.news-article-list:hover .news-article-list:before{
    background-color: #eee;
}


@media only screen and (max-width: 1000px){
    .news-line-box{
        width: 95%;
        margin: 0 auto;
        box-sizing: border-box;
        padding: 40px 0;
    }
    .news-line,
    .news-title-box:before,
    .news-article-list:before{
        display: none;
    }
    .news-top-box,
    .news-article-box{
        padding-left: 0;
    }
    .news-article-text-edit{
        max-height: 90px;
        -webkit-line-clamp: 4;
        min-height: 90px;
    }
    .news-path-box{
        display: none;
    }
    .news-article-box{
        padding-top: 20px;
    }
}

@media only screen and (max-width: 700px){
    
    .news-article-text-edit{
        max-height: 70px;
        -webkit-line-clamp: 3;
        min-height: 70px;
    }
}
@media only screen and (max-width: 600px){
    .news-line-box{
        padding: 20px 0;
    }
    .news-article-img-box{
        width: 100px;
        height: 90px;
    }
    .news-article-text-box{
        width: calc(100% - 110px);
        padding-left: 10px;
    }
    .news-article-text-data{
        font-size: 12px;
    }
    .news-article-text-title{
        font-size: 14px;
        margin: 0;
    }
    .news-article-text-edit{
        font-size: 12px;    
        max-height: 40px;
        -webkit-line-clamp: 2;
        min-height: 40px;
    }
    .news-title-ch{
        font-size: 32px;
    }
    .news-title-en{
        font-size: 14px;
    }
}
@media only screen and (max-width: 550px){
    .news-box{
        margin-top: 58px;
        min-height: calc(100vh - 58px);
    }
}
@media only screen and (max-width: 400px){

    .news-title-ch{
        font-size: 28px;
    }
    .news-title-en{
        font-size: 12px;
    }
}

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

@keyframes news_title_ch_all {
    0%{
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes news_title_en_all {
    0%{
        transform: translateX(200px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes news_cube {
    0%{
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes news_path_all {
    0%{
        transform: translateX(-200px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes news_article_frombottom{
    0%{
        transform: translateY(200px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes news_leftline_all {
    0%{
        height: 0;
    }
    to {

    }
}
@keyframes news_topline_all {
    0%{
        width: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@media only screen and (min-width: 1001px){
    .news-title-ch{
        animation: news_title_ch_all 1s ease both;
    }
    .news-title-en{
        animation: news_title_en_all .8s ease .8s both;
    }
    .news-path-box{
        animation: news_path_all 1s ease both;
    }
    .news-line{
        animation: news_leftline_all 1s ease 1s both;
    }
    .news-top-box>span{
        animation: news_topline_all 1s ease 1s both;
    }
    .news-article{
        opacity: 0;
    }
    .news-article.anima{
        animation: news_article_frombottom 1s ease both;
    }
    .news-title-box:before{
        animation: news_cube .8s ease 1s both;
    }
}