﻿.index-news-box{
    width: 100%;
    display: block;
    position: relative;
}
.index-news-all-box{
    width: 1000px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    font-size: 0;
    box-sizing: border-box;
}
.index-news-title-box{
    border-bottom: 1px solid #d1d1d1;
    box-sizing: border-box;
    padding-bottom: 10px;
}
.index-news-title{
    font-size: 48px;
    font-family: "Noto Sans TC";
    font-weight: 700;
    color: #000;
    letter-spacing: 2px;
    display: inline-block;
    vertical-align: middle;
}
.index-news-btn-box{
    width: calc(100% - 138px);
    display: inline-block;
    vertical-align: middle;
    text-align: right;
}
.index-news-btn{
    width: 80px;
    line-height: 40px;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    color: #888;
    background-color: #fff;
    border: 1px solid #d1d1d1;
    letter-spacing: 1px;
    margin-left: 25px;
    cursor: pointer;
    transition: all .3s linear;
}
.index-news-info{
    display: block;
    box-sizing: border-box;
    padding: 20px 0;
    border-bottom: 1px solid #d1d1d1;
}
.index-news-info-data{
    font-family: "Roboto";
    font-size: 14px;
    color: #888;
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: middle;
}
.index-news-info-tag{
    font-size: 12px;
    color: #905e27;
    text-align: center;
    border: 1px solid #905e27;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    letter-spacing: 5px;
    padding: 0 8px;
    padding-left: 13px;
    margin: 0 30px;
    transition: all .3s linear;
}
.index-news-info-text{
    width: calc(100% - 200px);
    display: inline-block;
    vertical-align: middle;
}
.index-news-info-text span{
    color: #000;
    font-size: 14px;
    max-width: 100%;
    display: inline-block;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.index-news-info-text span:after{
    content: '';
    width: 0%;
    height: 1px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: all .3s linear;
}
.index-news-more-box{
    width: 100%;
    text-align: center;
    margin-top: 60px;
}
.index-news-more{
    display: inline-block;
    font-family: "Roboto";
    font-size: 14px;
    color: #888;
    letter-spacing: 1px;
    text-align: center;
    width: 150px;
    line-height: 60px;
    border: 1px solid #d1d1d1;
    transition: all .3s linear;
}



/*---------------------hover-----------------------*/
.index-news-btn:hover,
.index-news-btn.active{
    background-color: #905e27;
    color: #fff;
    border-color: #905e27;
}
.index-news-info:hover .index-news-info-tag{
    background-color: #905e27;
    color: #fff;
}
.index-news-info:hover .index-news-info-text span:after{
    width: 100%;
}
.index-news-more:hover{
    background-color: #905e27;
    color: #fff;
    border-color: #905e27;
}




@media only screen and (max-width: 1300px){
    .index-news-title {
        font-size: 44px;
    }
    .index-news-btn-box{
        width: calc(100% - 127px);
    }
}
@media only screen and (max-width: 1200px){
    .index-news-title {
        font-size: 40px;
    }
    .index-news-btn-box{
        width: calc(100% - 117px);
    }
}
@media only screen and (max-width: 1000px){
    .index-news-all-box{
        width: 750px;
    }
    .index-news-title {
        font-size: 36px;
    }
    .index-news-btn-box{
        width: calc(100% - 105px);
    }
}
@media only screen and (max-width: 750px){
    .index-news-all-box{
        width: 550px;
    }
    .index-news-title {
        font-size: 32px;
    }
    .index-news-btn-box{
        width: calc(100% - 94px);
    }
    .index-news-more{
        width: 130px;
        line-height: 50px;
    }
    .index-news-more-box{
        margin-top: 40px;
    }
}
@media only screen and (max-width: 550px){
    .index-news-all-box{
        width: 400px;
    }
    .index-news-title {
        font-size: 28px;
    }
    .index-news-btn-box{
        width: calc(100% - 94px);
    }
    .index-news-btn{
        width: 50px;
        line-height: 20px;
        font-size: 12px;
    }
    .index-news-info-data{
        font-size: 12px;
    }
    .index-news-info-tag{
        letter-spacing: 2px;
        margin: 0 10px;
        padding: 0 3px;
        padding-left: 5px;
    }
    .index-news-info-text{
        width: calc(100% - 130px);
    }
    .index-news-info-text span{
        font-size: 12px;
    }
    .index-news-more{
        width: 100px;
        line-height: 40px;
    }
    .index-news-more-box{
        margin-top: 20px;
    }
}
@media only screen and (max-width: 400px){
    .index-news-all-box{
        width: 300px;
    }
    .index-news-title {
        font-size: 24px;
    }
    .index-news-btn-box{
        width: calc(100% - 94px);
    }
    .index-news-btn{
        margin-left: 10px;
    }
    .index-news-info{
        padding: 10px 0;
    }
}




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

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