﻿.index-news-box{
    width: 100%;
    display: block;
    position: relative;
    box-sizing: border-box;
    padding: 130px 0;
    background-color: #f5f5f5;
}
.index-news-all-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
}
.index-news-title-box{
    text-align: center;
}
.index-news-info-box{
    margin-top: 80px;
    box-sizing: border-box;
    padding-bottom: 120px;
}
.index-news-info{
    width: 400px;
    display: inline-block;
    vertical-align: top;
    position: relative;
    box-sizing: border-box;
    padding-left: 20px;
    box-shadow: 20px 25px 20px rgba(0, 0, 0, 0.1);
    margin-right: 40px;
}
.index-news-info:nth-child(3n + 2){
    top: 60px;
}
.index-news-info:nth-child(3n){
    top: 120px;
    margin-right: 0;
}
.index-news-info:nth-child(n + 4){
    margin-top: 80px;
}
.index-news-info-img-box{
    width: 100%;
    height: 240px;
    display: block;
    position: relative;
    overflow: hidden;
}
.index-news-info-text-box{
    width: 100%;
    height: 260px;
    display: block;
    background-color: #fff;
    box-sizing: border-box;
    padding: 30px;
    padding-top: 45px;
    position: relative;
    transition: all .3s linear;
}
.index-news-info-text-date{
    font-size: 18px;
    letter-spacing: 0.1em;
    font-family: 'Roboto';
    font-weight: 700;
    color: #666;
    line-height: 30px;
}
.index-news-info-text{
    font-size: 22px;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.1em;
    color: #000;
    line-height: 30px;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-top: 15px;
    margin-bottom: 20px;
}
.index-news-info-text-search{
    font-size: 16px;
    line-height: 30px;
    color: #ea6e37;
    display: block;
}
.index-news-info-tag{
    width: 180px;
    position: absolute;
    top: -18px;
    left: -20px;
    font-size: 16px;
    line-height: 36px;
    letter-spacing: 0.1em;
    color: #fff;
    background-color: #234a35;
    text-align: center;
}
.index-news-info-tag::after{
    content: '';
    width: 0;
    height: 0;
    border-top: 20px solid #173124;
    border-left: 20px solid transparent;
    position: absolute;
    top: 100%;
    left: 0;
}
.index-news-info-more-box{
    margin-top: 105px;
}
.index-news-info-more{
    width: 300px;
    display: block;
    margin: 0 auto;
    line-height: 80px;
    text-align: center;
    background-color: #234a35;
    box-shadow: 20px 25px 20px rgba(0, 0, 0, 0.05);
    font-size: 22px;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.1em;
    color: #fff;
    box-sizing: border-box;
    padding-left: 0.1em;
    transition: all .3s linear;
}



@media only screen and (max-width: 1280px){
    .index-news-all-box{
        width: 1200px;
    }
    .index-news-info{
        width: 380px;
        margin-right: 30px;
    }
    .index-news-info-img-box{
        height: calc((240 / 400) * 360px);
    }
}
@media only screen and (max-width: 1200px){
    .index-news-all-box{
        width: 1000px;
    }
    .index-news-info{
        width: 320px;
        margin-right: 20px;
    }
    .index-news-info-img-box{
        height: calc((240 / 400) * 300px);
    }
    .index-news-info-text-box{
        height: 200px;
        padding: 20px;
        padding-top: 35px;
    }
    .index-news-info-text{
        font-size: 20px;
        margin-top: 10px;
        margin-bottom: 15px;
        -webkit-line-clamp: 2;
        line-height: 28px;
    }
}
@media only screen and (max-width: 1000px){
    .index-news-box{
        padding: 100px 0;
    }
    .index-news-all-box{
        width: 750px;
    }
    .index-news-info-box{
        margin-top: 60px;
        padding-bottom: 80px;
    }
    .index-news-info{
        width: 240px;
        margin-right: 15px;
        padding-left: 10px;
    }
    .index-news-info:nth-child(3n + 2) {
        top: 40px;
    }
    .index-news-info:nth-child(3n) {
        top: 80px;
        margin-right: 0;
    }
    .index-news-info-img-box{
        height: calc((240 / 400) * 230px);
    }
    .index-news-info-tag{
        width: 140px;
        top: -15px;
        line-height: 30px;
        left: -10px;
    }
    .index-news-info-tag::after{
        border-top-width: 10px;
        border-left-width: 10px;
    }
}
@media only screen and (max-width: 768px){
    .index-news-box{
        padding: 40px 0;
    }
    .index-news-all-box{
        width: 550px;
    }
    .index-news-info-box {
        margin-top: 40px;
        padding-bottom: 60px;
    }
    .index-news-info:nth-child(n){
        width: 270px;
        margin-right: 10px;
        margin-top: 0;
        padding-left: 0;
        top: 0;
    }
    .index-news-info:nth-child(2n){
        margin-right: 0;
    }
    .index-news-info:nth-child(n + 3){
        margin-top: 20px;
    }
    .index-news-info-img-box{
        height: calc((240 / 400) * 270px);
    }
    .index-news-info-text-box{
        height: 150px;
        padding: 10px;
        padding-top: 45px;
    }
    .index-news-info-tag{
        /* width: 120px; */
        position: absolute;
        top: 10px;
        left: 10px;
        font-size: 14px;
        line-height: 26px;
    }
    .index-news-info-tag::after{
        display: none;
    }
    .index-news-info-text-date{
        font-size: 14px;
        line-height: 1.2;
    }
    .index-news-info-text{
        font-size: 16px;
        margin-top: 5px;
        margin-bottom: 10px;
        line-height: 20px;
        letter-spacing: 0.06em;
    }
    .index-news-info-text-search{
        font-size: 14px;
        line-height: 24px;
    }
    .index-news-info-more-box {
        margin-top: 25px;
    }
    .index-news-info-more{
        width: 200px;
        line-height: 60px;
        font-size: 18px;
    }
}
@media only screen and (max-width: 550px){
    .index-news-box{
        padding: 20px 0;
    }
    .index-news-all-box{
        width: 95vw;
    }
    .index-news-info-box {
        margin-top: 20px;
        padding-bottom: 30px;
    }
    .index-news-info:nth-child(n){
        width: calc((100% - 10px) / 2);
    }
    .index-news-info:nth-child(n + 3){
        margin-top: 10px;
    }
    .index-news-info-img-box{
        height: calc((240 / 400) * ((95vw - 10px) / 2));
    }
    .index-news-info-more-box {
        margin-top: 15px;
    }
    .index-news-info-more{
        width: 140px;
        font-size: 16px;
        line-height: 40px;
    }
}
@media only screen and (max-width: 400px){
    .index-news-info:nth-child(n){
        width: 100%;
        margin-right: 0;
        margin-top: 0;
    }
    .index-news-info:nth-child(n + 2){
        margin-top: 10px;
    }
    .index-news-info-img-box{
        height: calc((240 / 400) * 95vw);
    }
}


/* 
@media only screen and (min-width: 769px){
    .index-news-info:hover .main-bg{
        transform: scale(1.1);
    }
    .index-news-info:hover .index-news-info-text-box{
        background-color: rgba(74, 141, 47, 0.2);
    }
    .index-news-info-more:hover{
        background-color: #32611f;
        color: #fff;
    }


    .index-news-info,
    .index-news-info-more{
        opacity: 0;
    }
    .index-news-info.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .index-news-info-more.anima{
        animation: fade 1s ease 0s 1 both;
    }
} */