﻿main{
    padding-top: 200px;
    display: block;
    min-height: 100vh;
    box-sizing: border-box;
}
.products-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    min-height: calc(100vh - 68px);
    padding-bottom: 1px;
    /* padding-top: 200px; */
}
.products-b-list-box{
    background-color: #FFF;
}
.products-b-list{
    margin-bottom: 10px;
    display: block;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}
.products-b-list:after{
    content: 'none';
    font-size: 0;
    width: 100%;
    height: 100%;
    display: block;
    box-sizing: border-box;
    border: 5px solid  #2ea9df;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all .5s ease; 

}


.products-b-list:last-child{
    margin-bottom: 0;
}
.products-s-list-box{
    font-size: 0;
    width: 100%;
    /* margin: 40px 0; */
    /* margin-bottom: 40px;
    padding-top: 40px; */
}
.products-s-list{
    width: calc(25% - 10px);
    display: inline-block;
    vertical-align: top;
    background-color: #FFF;
    margin-right: calc(40px / 3);
    margin-top: 13px;
}
.products-s-list:nth-child(4n){
    margin-right: 0;
}
.products-s-list-img{
    width: 100%;
    height: 180px;
    display: block;
    overflow: hidden;
    position: relative;
}
.products-s-list-img:after{
    content: 'none';
    font-size: 0;
    width: 100%;
    height: 100%;
    display: block;
    box-sizing: border-box;
    border: 3px solid  #2ea9df;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all .5s ease; 
}
.products-s-list-img img{
    transition: all .5s ease;
}

.products-s-list-title{
    font-size: 14px;
    color: #2ea9df;
    width: 100%;
    display: block;
    text-overflow : ellipsis;
    white-space: nowrap;
    transition: all .5s ease;
    overflow: hidden;
}
.products-s-list-p{
    font-size: 12px;
    color: #555555;
    height: 38px;
    overflow: hidden;
    transition: all .5s ease;
}

.index-people-fixed-box{
    min-width: 200px;
    width: max-content;
    display: block;
    position: fixed;
    top: 30%;
    left:4%;
    padding: 30px;
    box-sizing: border-box;
    border-top: 1px solid #2ea9df;
    background-color: #FFF;
}
.index-people-fixed-list{
    margin-bottom: 20px;
}
.index-people-fixed-list:last-child{
    margin-bottom: 0;
}
.index-people-fixed-list-title{
    font-size: 14px;
    color: #2ea9df;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}
.index-people-fixed-list-title> span{
    font-weight: bold;
}
.index-people-fixed-list-p{
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}
/*fancy-box*/

.fancybox-table{
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}
.fancybox-table.active{
    display: table;
}
.fancybox-table-mid{
    display: table-cell;
    vertical-align: middle;
}
.fancybox-box{
    width: 800px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}
.fancybox-img-box{
    width: 100%;
    height: 600px;
    display: block;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}
.fancybox-article{
    max-height: calc(100vh - 700px);
    overflow: auto;
}
.fancybox-article-title{
    font-size: 20px;
    color: #FFF;
    letter-spacing: 2px;
}
.fancybox-article-p{
    font-size: 16px;
    display: block;
    color: #FFF;
}

.fancybox-mask-box{
    width: 100%;
    height: 100%;
    display: block;
    background-color: rgba(0,0,0,0.6);
    position: fixed;
    top: 0;
    left: 0;
}
.fancybox-close{
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    color: #000;
    text-align: center;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ddd;
    cursor: pointer;
    z-index: 3;
}
.body-close{
    overflow: hidden;

}
.body-close::-webkit-scrollbar{
    display:none;
}

.fancybox-link{
    position: fixed;
    text-align: center;
    top: calc(50% - 31px);
}
.news-prev{
    right: calc(50% + 427px);
}
.news-next{
    left: calc(50% + 427px);
}
.fancybox-link i{
    font-size: 24px;
    color: #FFF;
    display: block;
    margin-bottom: 10px;
}
.fancybox-link p{
    font-size: 18px;
    color: #FFF;
}
.fancybox-block{
    width: 100%;
    max-height: 100vh;
    overflow: auto;

}
.fancybox-block::-webkit-scrollbar{
    display:none;
}


/*----------------------------*/

.rwd-menu-class-list{
    width: 100%;
    height: 46px;
    border: 1px solid #888;
    font-size: 16px;
    letter-spacing: 1px;
    text-align: center;
    display: none;
    line-height: 46px;
    position: relative;
    box-sizing: border-box;
}
.rwd-menu-class-list:after {
    content: '';
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-right: 10px solid transparent;
    border-top: 10px solid #888;
    border-left: 10px solid transparent;
    display: block;
    position: absolute;
    bottom: calc(50% - 5px);
    right: 5%;
    box-sizing: border-box;
}



/*------------------hover----------------------*/
.products-b-list img{
    transition: all .5s ease;
}
.products-b-list:hover img{
    transform: scale(1.1);
}
.products-b-list:hover:after{
    opacity: 1;
}

.products-s-list:hover .products-s-list-img img{
    transform: scale(1.1);
}
.products-s-list:hover .products-s-list-img:after{
    opacity: 1;
}

.products-s-list:hover .products-s-list-title{
    color: #d20600;
}

.products-s-list:hover .products-s-list-p{
    color: #000;
}


/*----------------------動畫---------------------------*/
.products-b-list,
.products-s-list{
    opacity: 0;
}
.products-b-list.active{
    animation: fadeInUp .8s ease 0s 1 both;
}
.index-people-fixed-box{
    animation: fadeInLeft .8s ease 0s 1 both;
}
.products-s-list.active{
    animation: fadeInUp .8s ease 0s 1 both;
}

.propaganda-box.active{
    animation: fade .8s ease .2s 1 both;
}

@media only screen and (max-width: 1800px){
    .index-people-fixed-box{
        left: 2%;
    }
}
@media only screen and (max-width: 1680px){
    .index-people-fixed-box{
        left: 2%;
    }
    .products-box{
        width: 1000px;
    }
    .products-s-list-img{
        height: calc( ( 18 / 29 ) * ((1000px * 0.25) - 10px) );
    }
}

@media only screen and (max-width: 1480px){
    .index-people-fixed-box{
        min-width: 150px;
        padding: 10px;
    }
    .index-people-fixed-list-p{
        font-size: 14px;
    }
}


@media only screen and (max-width: 1400px){
    .index-people-fixed-box{
        left: 1%;
    }
    .products-box{
        width: 900px;
    }
    .products-s-list-img{
        height: calc( ( 18 / 29 ) * ((900px * 0.25) - 10px) );
    }
}
@media only screen and (max-width: 1280px){
    .products-box{
        width: 800px;
    }
    .products-s-list-img{
        height: calc( ( 18 / 29 ) * ((800px * 0.25) - 10px) );
    }
}

@media only screen and (max-width: 1200px){
    .products-box{
        width: 700px;
    }
    .products-s-list-img{
        height: calc( ( 18 / 29 ) * ((700px * 0.25) - 10px) );
    }
}
@media only screen and (max-width: 1000px){
    .index-people-fixed-box{
        position: static;
        width: 100%;
        text-align: center;
        animation: none;
        border-top: 2px solid #2ea9df;
    }
    .index-people-fixed-list{
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 0;

    }
    .index-people-fixed-list:last-child{
        margin-left: 20px;
    }
    .products-b-list,
    .products-s-list{
        opacity: 1;
        animation: none!important;
    }
   
    main{
        padding-top: 80px;
    }
    .products-box{
        width: 95%;
        padding-top: 80px;
    }
    .products-s-list-img{
        height: calc( ( 18 / 29 ) * ((95vw * 0.25) - 10px) );
    }
}

@media only screen and (max-width: 750px){
    .products-box{
        width: 95%;
    }
    
}
@media only screen and (max-width: 550px){
    main{
        /* padding-top: 100px; */
    }
    .products-s-list{
        width: calc((100% / 2 ) - 10px );
        margin-bottom: 15px;
    }
    .products-s-list:nth-child(5n+5),
    .products-s-list,
    .products-s-list:nth-child(3n+3){
        margin-right: 15px;
    }
    .products-s-list:nth-child(even){
        margin-right: 0;
    }
    .products-s-list-img{
        height: calc( ( 18 / 29 ) * ((95vw * 0.5) - 10px) );
    }
}