﻿.index-tb-banner-logo{
    display: block;
    text-align: center;
    position: fixed;
    top: 15px;
    z-index: 9;
    width: 100%;
}
.index-banner-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
}
.index-banner-box,
.index-video-box,
.index-video,
.index-video-bg,
.index-banner-img-list,
.index-banner-icon-list{
     height: 100vh;
}
.index-banner-img-list-box{
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}
.index-banner-icon-list-box{
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}
.index-banner-img-list,
.index-banner-icon-list{
    width: 100%;
    display: block;
    position: relative;
}

.index-banner{
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    pointer-events: none;
}


.index-video-mask{
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000;
    opacity: 0.4;
    z-index: 5;
}
.index-video-box{
    width: 100%;
    display: block;
    position: relative;
}
.index-video{
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
    display: block;
}

.index-video-bg{
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.index-video-open{
    display: none;
}
.index-scroll-box{
    width: 100%;
    position: absolute;
    z-index: 9;
    bottom: 0;
    left: 0;
    text-align: center;
}

.index-scroll-line{
    width: 1px;
    height: 20px;
    display: block;
    background-color: #FFF;
    margin: 0 auto;
}
.index-scroll-p{
    font-size: 12px;
    color: #FFF;
    font-family: "Lato";
    letter-spacing: 1px;
    transition: all .5s ease;
}
 a:hover .index-scroll-p{
    letter-spacing: 3px;
}
/*-------------------------------------------------------*/

.index-banner-icon-block{
    width: 600px;
    max-width: 100%;
    display: none;
    position: absolute;
    z-index: 6;
    top: calc(50% - 300px);
    left: calc(50% - 300px);
}
.index-banner-icon-taiwan{
    width: 100%;
    position: relative;
    z-index: 4;
    pointer-events: none;
}
.index-banner-icon-circle-box{
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.index-banner-icon-circle-img{
    width: 100%;
    display: block;
}
.index-banner-icon-circle-inset{
    width: 402px;
    max-width: 100%;
    height: 402px;
    display: block;
    position: absolute;
    top: calc(50% - 201px);
    left:calc(50% - 201px);
    z-index: 2;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.4);
    box-sizing: border-box;
}
#m {
    overflow: hidden;
    margin-left: 201px;
    position: relative;
    width: 201px;
    height:402px;
    border-radius: 200px 200px 0;
    opacity: 0.4;
}
#m:before, #m:after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    width: 402px;
    height: 201px;
    background: #898989;
    transform-origin: 201px 201px;
    opacity: 1;
    border-radius: 201px 201px 0 0;
}
#m:before {
    z-index: 1;
    transform: rotate(-90deg);
}
#m:after {
    opacity: 0;
    z-index: 2;
    transform: rotate(90deg);
}


.index-banner-plan-box{
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    transform: rotate(-59.5deg);
    pointer-events: none;
}
.index-banner-plan{
    width: 100%;
    display: block;
}

/*--------------------------動畫-------------------------------*/
.slick-active .index-banner-plan{
    animation: earth-rotate 23.6s linear 0s 1 both;
}
.slick-active .index-banner-icon-block{
    display: block;
}

.slick-active #m{
    -webkit-animation: a  23.6s 1 linear forwards;
}
.slick-active #m:before{
    -webkit-animation:a1  23.6s 1 linear forwards;
}
.slick-active #m:after{
    -webkit-animation:a2  23.6s 1 linear forwards;
}



/*旋轉*/
@-webkit-keyframes earth-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}




@-webkit-keyframes a1{
  0%{ 
    transform:rotate(-90deg);
  }
  100%{ 
    transform:rotate(270deg);
  }
}
@-webkit-keyframes a2{
  0%{
    opacity:0;
  }
  49.99%{
    opacity:0;
  }
  50%{
    opacity:1;
  }
  100%{
    opacity:1;
  }
}
@-webkit-keyframes a{
  0%{
    margin-left:201px;
    width:201px;
    border-radius:0 201px 201px 0;
  }
  49.99%{
    margin-left:201px;
    width:201px;
    border-radius:0 201px 201px 0;
  }
  50%{
    margin-left:0;
    width:402px;
    border-radius:0;
  }
  100%{
    margin-left:0;
    width:402px;
    border-radius:0;
  }
}



/*----------------------rwd------------------------*/
@media only screen and (max-width: 1366px){
    .index-banner-icon-block{
        width: 400px;
        top: calc(50% - 200px);
        left: calc(50% - 200px);
    }
    .index-banner-icon-circle-inset{
        width: 262px;
        height: 262px;
        top: calc(50% - 131px);
        left: calc(50% - 131px);
    }
    #m{
        width: 131px;
        height: 262px; 
        margin-left: 131px;
    }
    #m:before, #m:after {
        width:  262px; 
        height: 131px;
        transform-origin: 131px 131px;
        border-radius: 131px 131px 0 0;
    }

    @-webkit-keyframes a{
      0%{
        margin-left:131px;
        width:131px;
        border-radius:0 131px 131px 0;
      }
      49.99%{
        margin-left:131px;
        width:131px;
        border-radius:0 131px 131px 0;
      }
      50%{
        margin-left:0;
        width:262px;
        border-radius:0;
      }
      100%{
        margin-left:0;
        width:262px;
        border-radius:0;
      }
    }
    .index-tb-banner-logo{
        box-sizing: border-box;
        padding: 0  100px;
    }
}

@media only screen and (max-width: 500px){
    .index-banner-icon-block{
        width: 300px;
        top: calc(50% - 170px);
        left: calc(50% - 150px);
    }
    .index-banner-icon-circle-inset{
        width: 202px;
        height: 202px;
        top: calc(50% - 101px);
        left: calc(50% - 101px);
    }
    #m{
        width: 101px;
        height: 202px; 
        margin-left: 101px;
    }
    #m:before, #m:after {
        width:  202px; 
        height: 101px;
        transform-origin: 101px 101px;
        border-radius: 101px 101px 0 0;
    }

    @-webkit-keyframes a{
      0%{
        margin-left:101px;
        width:101px;
        border-radius:0 101px 101px 0;
      }
      49.99%{
        margin-left:101px;
        width:101px;
        border-radius:0 101px 101px 0;
      }
      50%{
        margin-left:0;
        width:202px;
        border-radius:0;
      }
      100%{
        margin-left:0;
        width:202px;
        border-radius:0;
      }
    }
    .index-tb-banner-logo{
        box-sizing: border-box;
        padding: 0  70px;
    }
}

.slick-active .main-bg{
    animation: animation_fade 1s linear ;
}