﻿.index-products-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    padding: 200px 0;
}
.index-products-all-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    font-size: 0;
}
.index-products-info{
    width: 380px;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin-right: 70px;
    margin-top: 70px;
}
.index-products-info:nth-child(1){
    width: 605px;
}
.index-products-info:nth-child(2){
    width: 605px;
    margin-right: 0;
}
.index-products-info:nth-child(5){
    margin-right: 0;
}
.index-products-info-img{
    box-sizing: border-box;
    padding-bottom: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.index-products-info-img .main-bg{
    position: absolute;
    top: 0;
    left: 0;
}
.index-products-info-text{
    width: calc(100% - 30px);
    position: absolute;
    bottom: 30px;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    box-sizing: border-box;
    padding: 16px 0;
    font-family: "Noto Sans TC";
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    letter-spacing: 0.06em;
    transition: all .3s linear;
}



@media only screen and (max-width: 1280px){
    .index-products-box{
        padding: 150px 0;
    }
    .index-products-all-box{
        width: 1000px;
    }
    .index-products-info{
        width: 300px;
        margin-right: 50px;
        margin-top: 50px;
    }
    .index-products-info:nth-child(1),
    .index-products-info:nth-child(2){
        width: 475px;
    }
}
@media only screen and (max-width: 1000px){
    .index-products-box{
        padding: 100px 0;
    }
    .index-products-all-box{
        width: 750px;
    }
    .index-products-info{
        width: 230px;
        margin-right: 30px;
        margin-top: 30px;
    }
    .index-products-info:nth-child(1),
    .index-products-info:nth-child(2){
        width: 360px;
    }
}
@media only screen and (max-width: 768px){
    .index-products-box{
        padding: 60px 0;
    }
    .index-products-all-box{
        width: 550px;
    }
    .index-products-info:nth-child(n){
        width: 100%;
        margin-right: 0;
        margin-top: 30px;
    }
}
@media only screen and (max-width: 550px){
    .index-products-box{
        padding: 40px 0;
    }
    .index-products-all-box{
        width: calc(100vw - 40px);
    }
    .index-products-info:nth-child(n){
        margin-top: 10px;
    }
    .index-products-info-text{
        width: 100%;
        bottom: 0px;
        padding: 11px 10px;
        font-size: 16px;
    }
}



@media only screen and (min-width: 769px){
    .index-products-info:hover .index-products-info-text{
        width: 100%;
        bottom: 0;
        background-color: #000;
    }
    .index-products-info:hover .main-bg{
        transform: scale(1.1);
    }

    .index-products-info{
        opacity: 0;
    }
    .index-products-info.anima{
        animation: fadeInUp 1.2s ease 0s 1 both;
    }
}