﻿.index-products-box{
    width: 100%;
    display: block;
    position: relative;
    box-sizing: border-box;
    margin-top: 150px;
    margin-bottom: 100px;
    padding: 155px 0;
}
.index-products-all-box{
    width: 100%;
    display: block;
    font-size: 0;
    position: relative;
    overflow: hidden;
}
.index-products-bg-box{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #f5f5f5;
}
.index-products-bg-box span::before,
.index-products-bg-box span::after{
    content: '';
    position: absolute;
}
.index-products-bg-box span:nth-child(1)::before{
    left: 0;
    top: 0;
    border-top: 90px solid #fff;
    border-right: 90px solid transparent;
}
.index-products-bg-box span:nth-child(1)::after{
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    border-top: 90px solid #fff;
    border-left: 90px solid transparent;
}
.index-products-bg-box span:nth-child(2)::before{
    left: 0;
    bottom: 0;
    border-bottom: 90px solid #fff;
    border-right: 90px solid transparent;
}
.index-products-bg-box span:nth-child(2)::after{
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    border-bottom: 90px solid #fff;
    border-left: 90px solid transparent;
}
.index-products-title-box{
    text-align: center;
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding-right: 10vw;
}
.index-products-title-box p{
    font-size: 60px;
    font-family: 'roboto';
    font-weight: 500;
    letter-spacing: 0.06em;
    display: inline-block;
    color: #371268;
    line-height: 50px;
}
.index-products-title-box p>span{
    font-size: 16px;
    font-family: '微軟正黑體';
    letter-spacing: 0.06em;
    display: block;
    color: #555555;
}
.index-products-info{
    width: calc((360 / 1920) * 100vw);
    display: inline-block;
    vertical-align: top;
    margin: 0 30px;
    box-sizing: border-box;
}
.index-products-info-img{
    width: 100%;
    height: calc((240 / 360) * ((360 / 1920) * 100vw));
    display: block;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    border-bottom: none;
    overflow: hidden;
}
.index-products-info-text{
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 0 10px;
    background-color: #371268;
    text-align: center;
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.06em;
    line-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


@media only screen and (max-width: 1200px){
    .index-products-info{
        margin: 0 20px;
    }
}
@media only screen and (max-width: 1000px){
    .index-products-box{
        margin-top: 0;
        margin-bottom: 0;
        padding: 40px 0;
    }
    .index-products-title-box{
        position: relative;
        z-index: 2;
        top: inherit;
        left: inherit;
        padding-right: 0;
        margin-bottom: 20px;
    }
    .index-products-title-box p {
        font-size: 50px;
        line-height: 30px;
    }
    .index-products-title-box p>span {
        font-size: 14px;
    }
    .index-products-bg-box span{
        display: none;
    }
    .index-products-info{
        width: calc((360 / 1000) * 100vw);
    }
    .index-products-info-img{
        width: 100%;
        height: calc((240 / 360) * ((360 / 1000) * 100vw));
    }
}
@media only screen and (max-width: 550px){
    .index-products-box{
        padding: 20px 0;
    }
    .index-products-title-box p {
        font-size: 30px;
        line-height: 30px;
        letter-spacing: 0.03em;
    }
    .index-products-title-box p>span {
        font-size: 12px;
        line-height: 20px;
    }
    .index-products-info{
        width: calc((360 / 550) * 100vw);
        margin: 0 10px;
    }
    .index-products-info-img{
        width: 100%;
        height: calc((240 / 360) * ((360 / 550) * 100vw));
    }
    .index-products-info-text{
        font-size: 14px;
        line-height: 36px;
    }
}




@media only screen and (min-width: 1001px){
    .index-products-title-box p,
    .index-products-title-box p>span,
    .index-products-all-box{
        opacity: 0;
    }

    .index-products-box.anima .index-products-title-box p{
        animation: fadeInRight 1s ease 0s 1  both;
    }
    .index-products-box.anima .index-products-title-box p>span{
        animation: fadeInUp 1s ease 0.7s 1  both;
    }
    .index-products-box.anima .index-products-all-box{
        animation: fade 1s ease 0s 1  both;
    }

    .index-products-info:hover .index-products-info-img span{
        transform: scale(1.1);
    }
}