﻿/*--------------header-style1-----------------*/
.header-style1{
    position: fixed;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    background-color: #252532;
}
.header-style1 .header-box{
    width: 95%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
}
.header-style1 .header-logo{
    width: 300px;
    max-width: 100%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    padding: 10px 0;
}
.header-style1 .header-menu-box{
    width: calc(100% - 300px);
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    text-align: right;
}

.header-style1 .header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-right: 30px;
}
.header-style1 .header-menu> li.header-tips{
    position: static;
}
.header-style1 .header-menu> li:last-child{
    margin-right: 0;
}
.header-link-box{
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

.header-menu-knowledge-list-box{
    width: 100%;
    display: block;
    position: absolute;
    background-color: #181821;
    padding: 10px 0;
    left: 0;

}
.header-menu-knowledge-list-block{
    width: 95%;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    font-size: 0;
}

.header-menu-knowledge-list-class{
    width: calc(100% / 7);
    display: inline-block;
    vertical-align: top;
}
.header-menu-knowledge-list-title{
    font-size: 28px;
    font-weight: bold;
    color: #FFF;
}

.header-menu-knowledge-list a{
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
    padding-top: 10px;
    color: #FFF;
    transition: all .3s linear;
}

.header-knowledge.open .header-menu-knowledge-list-box{
    display: block;
}
.header-language .header-menu-title{
    padding: 0 5px;
    box-sizing: border-box;
}
.header-language-list-box{
    position: absolute;
    width: 100%;
    margin-top: 5px;
    transform: scale(1,0);
    transform-origin: top;
    transition: all .5s ease;
    padding: 10px 0;
    background-color: #252532;
}

.header-language-list{
    font-size: 16px;
    transition: all .5s ease;
}

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

.header-menu-block{
    width: 100%;
    height: 100vh;
    display: block;
    position: fixed;
    top: -100%;
    left: 0;
    z-index: 99999;
    background-color: rgba(37, 37, 50,0.9);
    overflow: auto;
    padding-top: 50px;
    box-sizing: border-box;
    transition: all .4s ease;
}
.header-menu-block.active{
    top: 0;
}


.header-menu-out{
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 30px;
    color: #FFF;
    cursor: pointer;
    transition: all .5s ease;
}
.header-menu-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
}
.header-menu-box2{
    width: 95%;
    display: block;
    margin: 0 auto;
}
.header-menu-list-title2{
    font-size: 30px;
    color: #FFF;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
    transition: all .5s ease;
}
.header-menu-s-list-box{
    display: block;
}
.header-menu-list-box{
    font-size: 0;
}
.header-menu-list{
    width: calc(100% / 7);
    display: inline-block;
    vertical-align: top;
    border-right: 1px solid #FFF;
    box-sizing: border-box;
    font-size: 20px;
    color: #FFF;
    padding: 5px 15px;
    padding-left: 25px;
    margin-bottom: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.language-icon{
    position: relative;
}
.language-icon:after{
    content: '▼';
    font-size: 12px;
    display: block;
    position: absolute;
    right: -15px;
    top: 2px;
    color: #FFF;
}
.header-tips-icon{
    font-size: 12px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    position: relative;
    bottom: 1px;
}

/*------------------------------------------*/
.header-style1 .header-menu> li{
    color: #FFF;
    text-align: center;
}
.rwd{
    display: none;
}

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

.header-menu-list-box li{
    margin-bottom: 30px
}

.header-menu-title{
    font-size: 16px;
    position: relative;
    letter-spacing: 1px;
    color: #FFF;
    transition: all .5s ease;
}
div.header-menu-title{
    cursor: pointer;
}
.header-menu-title:after{
    content: 'none';
    font-size: 0;
    width: 100%;
    height: 1px;
    display: block;
    background-color: #FFF;
    position: absolute;
    left: 0;
    bottom: -2px;
    transition: all .5s ease;
    transform: scale(0,1);
    transform-origin: left;
}

.rwd-menu-list-back{
    display: none;
}
.mask{
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.mask.active{
    display: block;
}

.rwd-menu{
    width: 30px;
    max-width: 100%;
    position: absolute;
    right: 20px;
    z-index: 99999;
    display: none;
    top: calc(50% - 7px);
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color: #FFF;
    position: relative;
}




/*漢堡樣式1*/
.rwd-menu-style1> span:nth-child(even){
    margin: 4px auto;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(1){
    transform: scale(1);
    transform-origin: left;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(3){
    transform: scale(1);
    transform-origin: right;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(4){
    top: -19px;
    transform:  scale(0,1) rotate(-45deg);
}
.rwd-menu-style1> span:nth-child(4){
    display: none;
}
.rwd-menu-style1 .rwd-menu-bth-line{
    transform: rotate(-45deg);
}
.rwd-menu-style1 .rwd-menu-bth-line2{
    transform: rotate(45deg);
}
.rwd-menu-style1 .rwd-menu-bth-line,
.rwd-menu-style1 .rwd-menu-bth-line2{
    position: absolute;
    top: 6px;
    left:0;
    width: 100%;
}
.rwd-menu-style1 .rwd-menu-bth-line span,
.rwd-menu-style1 .rwd-menu-bth-line2 span{
    transform:  scale(0,1);
    transition: all .5s ease;
    position: relative;
}
.rwd-menu-style1.active .rwd-menu-bth-line span,
.rwd-menu-style1.active .rwd-menu-bth-line2 span{
    transform:  scale(1,1) ;
    transition-delay: .1s;
}
.rwd-menu-style1.active> span:nth-child(1),
.rwd-menu-style1.active> span:nth-child(2),
.rwd-menu-style1.active> span:nth-child(3){
    transform: scale(0,1);
}
.rwd-menu-style1.active> span:nth-child(odd){
    transform: scale(0);
    transition: all .4s linear;
    transition-delay: 0s;
}

/*漢堡樣式2*/

.rwd-menu-style2> span:nth-child(4){
    display: none;
}
.rwd-menu-style2> span:nth-child(2){
    display: block;
    margin: 4px auto;
}
.rwd-menu-style2{
    width: 25px;
}
.rwd-menu-style2> span{
    transition: all 0.3s ease-in-out;
}
.rwd-menu-style2 .rwd-menu-bth-line,
.rwd-menu-style2 .rwd-menu-bth-line2{
    display: none;
}
.rwd-menu-style2.active{
    animation: smallbig 0.6s forwards;
}
.rwd-menu-style2.active> span:nth-child(1){
    -webkit-transform: translateY(7px) rotate(45deg);
    -ms-transform: translateY(7px) rotate(45deg);
    -o-transform: translateY(7px) rotate(45deg);
    transform: translateY(7px) rotate(45deg);
}
.rwd-menu-style2.active> span:nth-child(2){
    opacity: 0;
}
.rwd-menu-style2.active> span:nth-child(3){
    -webkit-transform: translateY(-5px) rotate(-45deg);
    -ms-transform: translateY(-5px) rotate(-45deg);
    -o-transform: translateY(-5px) rotate(-45deg);
    transform: translateY(-5px) rotate(-45deg);
}

.rwd-menu-style2.active> span:nth-child(1), 
.rwd-menu-style2.active> span:nth-child(2), 
.rwd-menu-style2.active> span:nth-child(3) {
    -webkit-transition-delay: 0.2s;
    -o-transition-delay: 0.2s;
    transition-delay: 0.2s;
}



@keyframes smallbig{
  0%, 100%{
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }

  50%{
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
  }
}


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

@media only screen and (min-width: 1000px){
    .header-menu-knowledge-list-box{
        transition: all .5s ease;
        transform: scale(1,0);
        transform-origin: top;
    }
    .header-tips:hover  .header-menu-knowledge-list-box{
        transform: scale(1,1);
    }
    .header-style1 .header-menu> li:hover .header-menu-title:after,
    .header-style1 .header-menu> li.active .header-menu-title:after{
        transform: scale(1,1);
    }
    .header-menu-knowledge-list a:hover{
        color: #008cd6;
    }
    .header-menu-list-title{
        display: none;
    }
    .header-menu-list-title.rwd{
        display: block;
    }
    .header-menu-list{
        font-size: 16px;
    }
    .header-language:hover .header-language-list-box{
        transform: scale(1,1);
    }
    .header-language{
        width: 50px;
    }
    .header-language-list:hover{
        background-color: #008cd6;
    }
    .header-menu-list-title2:hover{
        color: #FFF;
    }
    .header-menu-list a{
        transition: all .5s ease;    
    }
    .header-menu-list a:hover{
        color: #008cd6;
    }
    .header-menu-out:hover{
        color:  #008cd6;
    }
    .header-tips .header-menu-title{
        height: 88px;
        line-height: 88px;
    }
}
@media only screen and (max-width: 1200px){
    .header-style1 .header-box{
        width: 95%;
        margin: 0 auto;
    
    }
    .header-style2 .header-menu ul{
        width: 100%;
    }
    .header-menu-box{
        width: 95%;
    }
    .header-style1 .header-menu> li{

        margin-right: 20px;
    }
    .header-style1 .header-logo{
        width: 280px;
    }
    .header-style1 .header-menu-box {
        width: calc(100% - 280px);
    }
    .header-menu-title {
        font-size: 14px;
    }
}

@media only screen and (max-width: 1000px){
  
    .header-style1 .header-menu-box{
        width: 300px;
        max-width: 100%;
        display: block;
        position: absolute;
        left: -120%;
        transition: all .5s ease;
    }
    .header-style1 .header-menu-box.active{
        left: 0;
    }
    .rwd-menu{
        display: block;
    }
    .header-style1 .rwd-menu{
        display: block;
    }
    .header-menu-knowledge-list-box{
        z-index: 9;
    }
    .rwd-header-menu-sytle1 .header-menu{
        width: 100%;
        height: calc(100vh - 88px);
        position: absolute;
        top: 0;
        left: 0;
        z-index: 3;
        display: block;
        background-color: #eeeeee;
        transition: none;
        text-align: left;
        padding: 20px;
        box-sizing: border-box;
    }
    .header-menu-title{
        color: #000;
        font-size: 18px;
    }
   
    .rwd-header-menu-sytle1.header2 .header-menu{
        width: 100%;
    }
    
    .rwd-header-menu-sytle1 .header-menu> li{
        display: block;
        margin: 0;
        margin-bottom: 20px;
        text-align: left;
    }
    .rwd-header-menu-sytle1 .header-menu> li:last-child{
        margin-bottom: 0;
     }
      .rwd-header-menu-sytle2 .header-menu-box.active .header-menu{
        top: 0;
    }
    .rwd-header-menu-sytle2 .header-menu{
        width: 100%;
        height: 100vh;
        position: fixed;
        top: calc(-100% - 100px);
        left: 0;
        z-index: 3;
        display:         flex;
        display: -webkit-flex;
        align-items: center;
        -webkit-align-items: center;
        justify-content: center;
        -webkit-justify-content: center;
        flex-direction:column;
        background-color: #f5f5f5;
        transition: all .5s ease;
    }
    .header-menu-box {
        width: 300px;
        left: -300px;
        transition: all .3s linear;
        position: absolute;
     
        background-color: #EEE;
    }
    .header-style1 .header-menu-box.active {
        left: 0;
    }
    .header-style1 .header-menu {
        
        position: relative;
        width: 300px;
        float: none;
        transition: all .3s linear;
        z-index: 9;
    }
    .header-menu-knowledge-list-icon {
        display: none;
        font-size: 16px;
        position: absolute;
        right: 10px;
        top: 5px;
        transform: rotate(-90deg);
    }
    .header-menu-knowledge-list-box {
        width: 300px;
        max-width: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: -300px;
        background-color: #000;
        transition: all .3s linear;
        height: calc(100vh - 88px);
        z-index: 9;
        box-sizing: border-box;
        padding: 0;
    }
    .header-menu-knowledge-list-box.active{
        left: 0;
    }


    .rwd-menu-list-back {
        display: block;
        color: #FFF;
        text-align: right;
        padding: 20px 0;
        border-bottom: 1px solid #EEE;
        width: 100%;
        box-sizing: border-box;
        padding-right: 20px;
        font-size: 16px;
    }
    .header-menu-knowledge-list a, 
    .header-menu-knowledge-list-title {
        box-sizing: border-box;
        padding-left: 20px;
        margin-bottom: 10px;
    }
    .header-menu-knowledge-list-block{
        width: 100%;
    }
    .header-menu-knowledge-list-class{
        width: 100%;
        display: block;
    }
    .header-menu-knowledge-list{
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
        transition: all .5s ease;
        left: -100%;
    }
    .header-menu-knowledge-list-title{
        font-size: 24px;
        margin-top: 10px;
    }
    .header-menu-knowledge-list.open{
        left: 0%;
        background-color: #000;
    }
    .header-language .header-menu-title{
        padding: 0;
        display: none;
    }
    .header-language-list-box{
        position: static;
        margin-top: 0;
        transform: scale(1,1);
        padding: 0;
        background-color: transparent;
    }
    .header-language-list{
        display: inline-block;
        margin-right:  20px;
        background-color: transparent;
        color: #000;
        font-size: 18px;
    }
    .header-language-list:last-child{
        margin-right: 0;

    }

}
@media only screen and (max-width: 750px){

  .header-style1 .header-logo{
    width: 150px;
  }
  .rwd-header-menu-sytle1 .header-menu{
    height: calc(100vh - 54px)
  }
  .header-menu-knowledge-list-box{
    top: 0;
    height: calc(100vh - 54px);
    overflow: auto;
  }
}
@media only screen and (max-width: 550px){
    .header-menu-list-title2{
        display: none;
    }
    .header-menu-list-title2.rwd{
        display: block;
    }
    .header-menu-list-box li.header-menu-list {
        margin-bottom: 5px;
        font-size: 16px;
        border-right: 0;
        padding-left: 0;
    }
    .header-menu-list-title2{
        font-size: 20px;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .header-menu-s-list-box{
        display: none;
    }
    .header-menu-list{
        padding-right: 0;
    }
    .header-menu-list:after{
        display: none;
    }
    .header-menu-list{
        width: 100%;
        display: block;
    }
    .header-menu-list-box{
        padding-bottom: 0;
        border-bottom: 1px solid #FFF;
        margin-top: 10px;
    }
    .header-menu-out{
        top: 5px;
        right: 15px;
    }
    .header-menu-list-title2{
        position: relative;
    }
    .header-menu-list-title2:after{
        content: '＋';
        font-size: 18px;
        font-weight: bold;
        height: 32px;
        line-height: 32px;
        position: absolute;
        right: 0;
        top: 0;
    }
   
    .header-menu-list-title{
        font-size: 20px;
    }
    .header-menu-list a{
        display: block;
    }

}