﻿.index-articles-box{
    width: 100%;
    display: block;
    position: relative;
    box-sizing: border-box;
    padding: 100px 0;
}
.index-articles-all-box{
    width: 1660px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
}
.index-articles-info-box{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 60px;
    row-gap: 60px;
}
.index-articles-info{
    display: block;
    width: calc((1660px - (60px * 2)) / 3);
}
.index-articles-info-img{
    position: relative;
    padding-bottom: calc((240 / 420) * 100%);
}
.index-articles-info-img img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.index-articles-info-category{
    width: 120px;
    height: 30px;
    line-height: 30px;
    display: block;
    background-color: #8f8681;
    border-radius: 5px;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: #fff;
    text-align: center;
    margin-top: 15px;
    font-family: "Noto Sans TC";
}
.index-articles-info-name{
    width: 100%;
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #323c53;
    letter-spacing: 0.1em;
    font-family: "Noto Sans TC";
    /* overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical; */
    margin-top: 10px;
    margin-bottom: 8px;
    transition: all .3s linear;
}
.index-articles-info-text{
    font-size: 16px;
    color: #323c53;
    font-family: 'Roboto';
    letter-spacing: 0.06em;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 76.78px;
}



@media only screen and (max-width: 1660px){
    .index-articles-all-box{
        width: 1400px;
    }
    .index-articles-info{
    	width: calc((1400px - (60px * 2)) / 3);
    }
}
@media only screen and (max-width: 1400px){
    .index-articles-all-box{
        width: 1200px;
    }
    .index-articles-info-box{
        gap: 40px;
    }
    .index-articles-info{
    	width: calc((1200px - (40px * 2)) / 3);
    }
}
@media only screen and (max-width: 1200px){
    .index-articles-box{
        padding: 80px 0;
    }
    .index-articles-all-box{
        width: 1000px;
    }
    .index-articles-info{
    	width: calc((1000px - (40px * 2)) / 3);
    }
}
@media only screen and (max-width: 1000px){
    .index-articles-box{
        padding: 60px 0;
    }
    .index-articles-all-box{
        width: 750px;
    }
    .index-articles-info-box{
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .index-articles-info{
    	width: calc((750px - (20px * 2)) / 2);
    }
}
@media only screen and (max-width: 768px){
    .index-articles-box{
        padding: 40px 0;
    }
    .index-articles-all-box{
        width: 550px;
    }
    .index-articles-info{
    	width: calc((550px - (20px * 2)) / 2);
    }
}
@media only screen and (max-width: 550px){
    .index-articles-box{
        padding: 20px 0;
    }
    .index-articles-all-box{
        width: calc(100vw - 40px);
    }
    .index-articles-info-box{
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
    .index-articles-info{
    	display: block;
        width: calc(100vw - 40px);
    }
    .index-articles-info-name{
        font-size: 16px;
        letter-spacing: 0.06em;
        margin-top: 5px;
        margin-bottom: 4px;
    }
    .index-articles-info-text{
        line-height: 1.4;
        max-height: 67.17px;
    }
}
@media only screen and (max-width: 320px){
    .index-articles-info-box{
        grid-template-columns: repeat(1, 1fr);
    }
}



/*animation*/
/*<-------------動畫------------->*/
@media only screen and (min-width: 1001px){
    .index-articles-info,
    .articles-info{
        opacity: 0;
    }
    .index-articles-info.anima,
    .articles-info.anima{
        animation: fade 1s linear 0s 1 both;
    }
}