﻿
.index-products-box{
    font-size: 0;
}

.index-products-slong-title{
    font-size: 24px;
    color: #661118;
    font-weight: bold;
    font-family: "Times New Roman","Arial";
}
.index-products-slong-title2{
    font-size: 14px;
    color: #FFF;
}
.index-products-slong-link-box{
    width: 100%;
    text-align: right;
}
.index-products-slong-link{
    width: 100px;
    max-width: 100%;
    display: inline-block;
    background-color: #FFF;
    margin-top: 10px;
    text-align: center;
    color: #661118;
    height: 30px;
    line-height: 30px;
    outline: none;
    border: 1px solid #661118;
    position: relative;

}
.index-products-slong-link span{
    font-size: 14px;
    color: #661118;
}
.index-products-list{
    width: 50%;
    display: inline-block;
    vertical-align: top;
    padding-bottom: 42%;
    position: relative;
    overflow: hidden;
}
.index-products-img-box{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.index-products-info-box{
    width: 45%;
    position: absolute;
    right: 5%;
    top: 5%;
    text-align: right;
    z-index: 6;
}
.index-products-video-box{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0;
}

.index-products-video-box > span {
  width: 100%;
  height: 100%;
  position: absolute;
  text-align: center;
}
.index-products-video-box > span:before {
  content: ' ';
  display: inline-block;
  height: 100%;
  width: 0;
  vertical-align: middle;
}
.index-products-video-box > span > img,
.index-products-video-box > span > iframe {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
.index-products-video-box > span > iframe {
  width: 100%;
  height: 100%;
}


.index-products2-box{
    font-size: 0;
}
.index-products2-list{
    display: inline-block;
    width: calc(100% / 3);
    padding: 20px;
    box-sizing: border-box;
    vertical-align: top;
    transition: all .5s ease;
}

.index-products2-img-box{
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background-color: #fff;
}
.index-products2-info-box{
    background-color: #FFF;
    padding: 20px;
    box-sizing: border-box; 
    height: 240px;
    display:         flex;
    display: -webkit-flex;
          align-items: center;
    -webkit-align-items: center;
          justify-content: center;
    -webkit-justify-content:center;
     flex-direction:column;
    -webkit-flex-direction:column;
    transition: all .5s ease;
}

.index-products2-info-title{
    font-size: 24px;
    color: #661118;
    font-weight: bold;
    font-family: "Times New Roman","Arial";
    margin-bottom: 20px;
     height: 38px;
}
.index-products2-info-p{
    font-size: 14px;
    color: #888888;
    max-height:92px;
    width: 100%;
    overflow: hidden;
    text-align: center;
}
.index-products3-box{
    position: relative;
    width: 100%;
}
.index-products3-list{
    width: 55%;
    height: 800px;
    display: block;
    position: relative;
    overflow: hidden;
}
.index-products3-list:nth-child(even){
    position: absolute;
    top: 0;
    right: 0;
    -webkit-clip-path: polygon(17% 0, 100% 0, 100% 100%, 0% 100%);
    clip-path: polygon(17% 0, 100% 0, 100% 100%, 0% 100%);
    text-align: right;
}
.index-products3-list-img-box{
    width: 100%;
    height: 100%;
    display: block;
}
.index-products3-info-box{
    position: absolute;
    bottom: 40px;
    
}
.index-products3-list:nth-child(odd) .index-products3-info-box{
    left: 5%;
}
.index-products3-list:nth-child(odd) .index-products-slong-link-box{
    text-align: left;
}
.index-products3-list:nth-child(even) .index-products3-info-box{
    right: 5%;
}
.index-products3-info-title{

    font-family: "Times New Roman","Arial";
    color: #661118;
    font-weight: bold;
}
.index-products3-list:nth-child(odd) .index-products3-info-p{
    color: #FFF;
    text-shadow: rgba(0,0,0,0.9)0px 0px 5px;
}
.index-products3-list:nth-child(even) .index-products3-info-p{
   
    text-shadow: rgba(255,255,255,0.9)0px 0px 5px;
}


/*過場動畫*/

.dt-loading-2 {
    width: 100%;
    height: 100vh;
    display: table;
    position: fixed;
    top: 0;
    z-index: 99999;
    transition: all .4s linear;
    background-color: #FFF;
}

.laying-2 {
   display: table-cell;
   vertical-align: middle;
}

.loading-logo-box{
    width: 154px;
    display: block;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}
.loading-log{
    width: 100%;
    display: block;
    position: relative;
 
}
.loading-mask{
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    background: #FFF;
    right: 0%;
    animation:  right2 2s linear 0s 1 forwards;

}

/*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-----------------------*/

.index-products2-list img{
    transition: all .5s ease;
}
.index-products2-list:hover img{
    transform: scale(1.1);
}



@media only screen and (min-width: 1000px){

    .index-products-slong-link span{
        position: relative;
        z-index: 1;
        transition: all .5s ease;
    }

    .index-products-slong-link:after{
        content: 'none';
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        background-color: #661118;
        transition: all .5s ease;
        transform: scale(0,1);
    }

    .index-products-list:hover .index-products-slong-link:after,
    .index-products3-list:hover .index-products-slong-link:after{
        transform: scale(1,1);
    }

    .index-products-list:hover .index-products-slong-link span,
    .index-products3-list:hover .index-products-slong-link span {
        color: #FFF;
    }
    .index-products-list:hover .main-bg{
        transform: scale(1.1);
    }

 
  
    .index-products3-list:hover .main-bg{
        transform: scale(1.1);
    }
    /*----------------動畫-------------------*/
    .index-products-list,
    .index-products2-box,
    .index-products3-list{
        opacity: 0;
    }
    .index-products-box.active .index-products-list:nth-child(1){
        animation: fadeInRight .8s ease 0s 1 both;
    }
    .index-products-box.active .index-products-list:nth-child(2){
        animation: fadeInLeft .8s ease 0s 1 both;
    }
    .index-products2-box.active{
        animation: fadeInUp .8s ease 0s 1 both;
    }
    .index-products3-list:nth-child(odd).active{
        animation: fadeInRight .8s ease .2s 1 both;
    }
    .index-products3-list:nth-child(even).active{
         animation: fade .5s ease 0s 1 both;
    }



}

@media only screen and (max-width: 1600px){
 
    .index-products3-info-box{
        width: 565px;
    }
}
@media only screen and (max-width: 1366px){
    .index-products2-info-box{
        height: 200px;
    }
    .index-products3-list{
        height: 550px;
    }
  
}
@media only screen and (max-width: 1280px){
    .index-products3-info-box{
        width: 70%;
    }
    .index-products2-img-box span img{
        max-width: 90%;
    }
  

}
@media only screen and (max-width: 1000px){
    .index-products2-list{
        width: 50%;
    }
    
}
@media only screen and (max-width: 800px){
    .index-products2-info-title{
        margin-bottom: 10px;
    }
    .index-products2-info-p{
        max-height: 106px;
        overflow: hidden;
    }
    .index-products-info-box{
        width: 90%;
    }
  
    .index-products3-list{
        width: 100%;
    }
    .index-products3-list:nth-child(even){
        position: relative;
        -webkit-clip-path:none;
        clip-path: none;
    }
    .index-products3-list {
        height: 445px;
    }
    .index-products3-info-box{
        width: 90%;
    }
    .footer-link-box{
        margin-top: 10px;
    }
}