﻿.index-products-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}
.index-products-all-box{
    width: 1360px;
    max-width: 100%;
    display: block;
    position: relative;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 70px 0;
    z-index: 1;
}
.index-products-info{
    width: 400px;
    display: inline-block;
    vertical-align: top;
    margin-right: 80px;
}
.index-products-info:nth-child(3n){
    margin-right: 0;
}
.index-products-info:nth-child(n + 4){
    margin-top: 80px;
}
.index-products-info-img{
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    transition: all .3s linear;
}
.index-products-info-text-box{
    width: calc(100% - 60px);
    display: block;
    margin: 0 auto;
    margin-top: -40px;
    background-color: #fff;
    z-index: 1;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    padding: 20px 40px;
    padding-top: 15px;
    position: relative;
    z-index: 1;
}
.index-products-info-name{
    font-size: 18px;
    line-height: 1.4;
    color: #000;
    letter-spacing: 0.1em;
    font-family: "Noto Sans TC";
    font-weight: 700;
    margin-bottom: 10px;
}
.index-products-info-text{
    font-size: 16px;
    color: #666;
    letter-spacing: 0.06em;
    line-height: 30px;
    font-family: "Noto Sans TC";
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.index-products-info-more-box{
    width: 100px;
    display: block;
    text-align: center;
    background-color: #ffcd1e;
    margin-top: 15px;
}
.index-products-info-more-box i{
    font-size: 14px;
    color: #000;
    letter-spacing: 0.2em;
    line-height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}
.index-products-info-more-box p{
    font-size: 14px;
    color: #000;
    letter-spacing: 0.2em;
    line-height: 24px;
    font-family: "Noto Sans TC";
    display: inline-block;
    vertical-align: middle;
}
.index-products-more-box{
    margin-top: 100px;
    display: block;
}
.index-products-more{
    width: 340px;
    line-height: 60px;
    background-color: #ffcd1e;
    font-size: 24px;
    color: #000;
    letter-spacing: 0.2em;
    font-family: "Roboto";
    text-align: center;
    margin: 0 auto;
    display: block;
    border-radius: 5px;
    box-sizing: border-box;
    padding-left: 0.2em;
    transition: all .3s linear;
}


@media only screen and (max-width: 1360px){
    .index-products-all-box{
        width: 1200px;
    }
    .index-products-info{
        width: 360px;
        margin-right: 60px;
    }
    .index-products-info-img{
        height: calc((280 / 400) * 360px);
    }
}
@media only screen and (max-width: 1200px){
    .index-products-all-box{
        width: 1000px;
    }
    .index-products-info{
        width: 300px;
        margin-right: 50px;
    }
    .index-products-info-img{
        height: calc((280 / 400) * 300px);
    }
}
@media only screen and (max-width: 1000px){
    .index-products-all-box{
        width: 750px;
    }
    .index-products-info{
        width: 230px;
        margin-right: 30px;
    }
    .index-products-info-img{
        height: calc((280 / 400) * 230px);
    }
    .index-products-info-text-box{
        width: calc(100% - 40px);
        padding: 10px 20px;
    }
    
}
@media only screen and (max-width: 768px){
    .index-products-all-box{
        width: 550px;
        padding: 40px 0;
    }
    .index-products-info:nth-child(n){
        width: 260px;
        margin-right: 30px;
        margin-top: 0;
    }
    .index-products-info:nth-child(2n){
        margin-right: 0;
    }
    .index-products-info:nth-child(n + 3){
        margin-top: 30px;
    }
    .index-products-info-img{
        height: calc((280 / 400) * 260px);
    }
}
@media only screen and (max-width: 550px){
    .index-products-all-box{
        width: calc(100vw - 40px);
        padding: 20px 0;
    }
    .index-products-info:nth-child(n){
        width: calc((100vw - 40px - 10px) / 2);
        margin-right: 10px;
        margin-top: 0;
    }
    .index-products-info:nth-child(2n){
        margin-right: 0;
    }
    .index-products-info:nth-child(n + 3){
        margin-top: 10px;
    }
    .index-products-info-img{
        height: calc((280 / 400) * ((100vw - 40px - 10px) / 2));
    }
    .index-products-info-text-box{
        width: 100%;
        padding: 10px 10px;
        display: block;
        margin-top: 0;
    }
    .index-products-info-name{
        font-size: 16px;
        margin-bottom: 5px;
    }
    .index-products-info-text{
        font-size: 14px;
        line-height: 22px;
    }
    .index-products-info-more-box{
        margin-top: 10px;
    }
    .index-products-more-box{
        margin-top: 40px;
    }
    .index-products-more{
        width: 200px;
        line-height: 40px;
        font-size: 18px;
        letter-spacing: 0.06em;
        padding-left: 0.06em;
    }
}
@media only screen and (max-width: 400px){
    .index-products-info:nth-child(n){
        width: calc((100vw - 40px));
        margin-right: 10px;
        margin-top: 0;
    }
    .index-products-info:nth-child(n + 2){
        margin-top: 10px;
    }
    .index-products-info-img{
        height: calc((280 / 400) * (100vw - 40px));
    }
}




@media only screen and (min-width: 769px){
    .index-products-info:hover .main-bg{
        transform: scale(1.1);
    }
    .index-products-info:hover .index-products-info-img{
        box-shadow: 0 3px 20px rgba(0, 0, 0, 0.15);
    }
    .index-products-more:hover{
        background-color: #000;
        color: #fff;
    }
    .index-products-info,
    .index-products-more{
        opacity: 0;
    }
    .index-products-info.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .index-products-info.anima .index-products-info-text-box{
        animation: fadeInDown 1s ease 0.4s 1 both;
    }
    .index-products-more.anima{
        animation: fade 1s ease 0s 1 both;
    }
}