﻿.header-style5{
    width: 100%;
    display: block;
    position: fixed;
    padding: 10px 30px;
    box-sizing: border-box;
    z-index: 9999;
    background-color: transparent;
    transition: all .5s ease;
    top: 0;
    left: 0;
}


.header-style5 .header-box{
    width: 100%;
    text-align: center;
    position: relative;
}
.header-style5 .header-logo{
    position: absolute;
    left: 0;
    top: 12px;
}
.header-style5  .header-member-box{
    position: absolute;
    right: 0;
    top: 12px;
    width: 70px;
    max-width: 100%;
    transition: all .5s ease;
}
.header-style5.header2  .header-member-icon-box{
    padding:2px 0;
}
.header-style5 .header-menu{
    text-align: center;
    font-size: 0;
    padding: 15px 0;
    transition: all .5s ease;
}
.header-style5 .header-menu-list{
    display: inline-block;
    position: relative;
    font-weight: bold;
}
.header-style5 .header-menu .header-menu-list:nth-child(2){
    margin: 0 50px;
}
.header-style5 .header-menu-title{
    color: #FFF;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: bold;
}
.header-style5 .header-s-menu{
    position: absolute;
    left: 0;
    text-align: left;
    padding-top: 20px;
    transition: all .5s ease;
    pointer-events: none;
    transform: scale(1,0);
    transform-origin: top;
}
.header-style5 .header-menu-list:hover .header-s-menu{
    transform: scale(1,1);
    pointer-events: auto;
} 
.header-style5 .header-s-menu li{
    display: block;
    font-size: 16px;
    color: #888888;
    padding: 0px 10px;
    letter-spacing: 2px;
    transition: all .3s ease;
    overflow: hidden;
    height: 41px;
    line-height: 41px;
    box-sizing: border-box;
    min-width: 150px;
}
.header-style5 .header-s-menu li a{
    transition: all .5s ease;

    display: block;
    overflow: hidden;
}
.header-menu-list-ch,
.header-menu-list-en{
    font-weight: bold;
}
.header-menu-list-en{
    position: relative;
    top: 41px;
}
.header-menu-list-ch{
    position: absolute;
    top: 0px;
}
.header-style5 .header-menu-s-list-box{
    background-color: #FFF;
    padding: 10px 0;
    width: max-content;
}
.header-style5 .header-cn-title{
    padding-left: 10px;
    display: inline-block;
    font-weight: bold;
}
.header-style5 .header-s-menu-icon{
    width: 15px;
    height: 14px;
    display: block;
    position: absolute;
    top: 13px;
    background-color: #FFF;
    transform: rotate(45deg);
    left: 12px;
    transition: all .5s ease;
}


.header-menu-title{
    font-size: 18px;
    overflow: hidden;
    position: relative;
}

.header-menu-ch,
.header-menu-en{
    font-weight: bold;
    position: relative;
    transition: all .5s ease;
}
.header-menu-en{
    letter-spacing: 1px;
}

div.header-menu-title{
    cursor: context-menu;
}


.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;
}

.header-fancybox-table{
    position: fixed;
    top: 0;
    left: 0;
    display: none;
}
.header-member-icon-box{
    border: 1px solid #FFF;
    border-radius: 5px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    letter-spacing: 1px;
    color: #FFF;
    padding: 5px 0;
    box-sizing: border-box;
    cursor: pointer;
}
.header-member{
    width: max-content;
    padding-top: 6px;
    transition: all .5s ease;
    position: absolute;
    right: 0;
    transform: scale(1,0);
    transform-origin: top;
    pointer-events: none;
}
.header-member-arrow{
    width: 100%;
    height: 15px;
    display: block;
    position: absolute;
}
.header-member-arrow:after{
    content: 'none';
    font-size: 0;
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-right: 8px solid transparent;
    border-bottom: 15px solid #FFF;
    border-left: 8px solid transparent;
    display: block;
    position: absolute;
    top: -12px;
    right: 5px;

}
.header-member-info-box{
    background-color: #FFF;
    padding: 10px 0;
    transition: all .5s ease;
}
.header-member-info-link{
    padding: 5px 15px;
    font-size: 16px;
    letter-spacing: 2px;
    color: #888888;
}
.header-style5.header2  .header-menu-title{
    color: #000;
}
.header-style5.header2{
    background-color: #FFF;
}
.header-logo img:nth-child(2){
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
   
}
.header-logo img{
     transition: all .5s ease;
}
.header-logo{
    width: 167px;
    max-width: 100%;
    transition: all .5s ease;
}
.header-style5.header2 .header-logo{
    width: 140px;

}
.header-style5.header2 .header-menu{
    padding: 10px 0;
}
.header-style5.header2 .header-logo img:nth-child(1){
    opacity: 0;
}
.header-style5.header2 .header-logo img:nth-child(2){
    opacity: 1;
}
.header-style5.header2 .header-member-icon-box{
    border: 1px solid #000;
    color: #000;
}
.header-style5.header2 .header-menu-s-list-box{
    box-shadow: rgba(0,0,0,0.5)2px 1px 3px;
}
.header-style5.header2 .header-s-menu-icon{
    box-shadow: rgba(0,0,0,0.5)1px -2px 4px;
}

.header-style5.header2 .header-member-info-box{
    box-shadow: rgba(0,0,0,0.5)1px 1px 2px;
}
.header-style5.header2 .header-member-arrow:after{
    filter: drop-shadow(2px 0px 1px rgba(0,0,0,0.5));
    -webkit-filter: drop-shadow(2px 0px 1px rgba(0,0,0,0.5));
}



/*----------------------------------*/
.rwd-menu{
    width: 59px;
    position: absolute;
    right: 0;
    top: 15px;
    transition: all .5s ease;
    z-index: 99999;
    display: none;
}
.rwd-menu span{
    width: 40px;
    display: block;
    margin: 0 auto;
    height: 4px;
    background-color: #FFF;
    position: relative;
    max-width: 100%;
}

.rwd-menu span:nth-child(even){
    margin: 8px auto;
    transition: all .4s linear;
}
.rwd-menu span:nth-child(1){
    transform: scale(1);
    transform-origin: left;
    transition: all .4s linear;
}
.rwd-menu span:nth-child(3){
    transform: scale(1);
    transform-origin: right;
    transition: all .4s linear;
}
.rwd-menu span:nth-child(4){
    top: -24px;
    transform:  scale(0) rotate(-45deg);
}

.rwd-menu.active span:nth-child(odd){
    transform: scale(0);
    transition: all .4s linear;
    transition-delay: 0;
}

.rwd-menu.active span:nth-child(2){
    transform: rotate(45deg);
    transition: all .4s linear;
}
.rwd-menu.active span:nth-child(4){
    transform: scaleX(1) rotate(-45deg);
    transition-delay: 0.3s;
}
.rwd-menu.active span{
    background-color: #FFF;
}


/*-----------------會員登入-----------------------*/

.header-fancybox-table{
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
}
.header-fancybox-table.active{
    display: table;
}
.header-fancybox-mid{
    display: table-cell;
    vertical-align: middle;
}
.header-fancybox-box{
    width: 900px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border: 1px solid #FFF;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    text-align: center;
}
.header-member-login-box{
    width: 100%;
    display: block;
    font-size: 0;
    font-family: "Microsoft JhengHei";
    padding:30px 75px;
    box-sizing: border-box;
}
.header-fancybox-mask{
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.95);
}
.header-member-login-tilte-box{
    font-size: 22px;
    letter-spacing: 1px;
    color: #FFF;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.7);
}
.header-member-login-title{
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 3px;
}
.header-member-login-info-input-box,
.header-member-login-info-link-box{
    display: inline-block;
    vertical-align: top;
}

.header-member-login-info-input-box{
    width: 500px;
    max-width: 100%;
    text-align: left;
}
.header-member-login-info-input{
    width: 100%;
    color: #FFF;
    font-size: 16px;
}
.header-member-login-info-input{
    width: 100%;
    display: block;
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #FFF;
    letter-spacing: 1px;
    margin-bottom: 40px;
    padding-bottom: 5px;
}
.header-member-login-info-input:nth-child(2){
    margin-bottom: 15px;
}
.header-member-forget{
    font-size: 12px;
    letter-spacing: 1px;
    color: #ea5432;
    text-align: left;
    display: inline-block;
    transition: all .5s ease;
    border-bottom: 1px solid  #ea5432;
}
.header-member-login-info-link-box{
    width: calc(100% - 500px);
    text-align: right;
}
.header-member-login-info-link{
    width: 90px;
    max-width: 100%;
    height: 90px;
    display: inline-block;
    font-size: 16px;
    border: 1px solid #FFF;
    padding: 20px 24px;
    letter-spacing: 3px;
    color: #FFF;
    box-sizing: border-box;
    outline: none;
    background-color: transparent;
    font-family: "Microsoft JhengHei";
    vertical-align: top;
    transition: all .5s ease;
    cursor: pointer;
    position: relative;
}
.header-member-login-info-link-en{
    font-size: 12px;
    color: #FFF;
    position: absolute;
    width: 100%;
    display: block;
    text-align: center;
    bottom: 2px;
    left: 0;
}
.header-member-login-info-link:nth-child(2){
    margin-left: 30px;
}
.header-member-outbox{
    width: 40px;
    max-width: 100%;
    height: 40px;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    background-color: rgba(67,67,67,0.7);
    line-height: 40px;
    color: #FFF;
    transition: all .5s ease;
}
.header-member-title{
    font-size: 12px;
    color: #FFF;
    letter-spacing: 1px;
}
.header-member-title span{
    display: inline-block;
    margin: 20px 10px;

}
.header-member-login-info-link span{
    color: rgba(255,255,255,0.7);
}

.header-member-login-info-input::-webkit-input-placeholder { color: #FFF; font-family: "Microsoft JhengHei"; }
.header-member-login-info-input:-moz-placeholder { color: #FFF; font-family: "Microsoft JhengHei"; }
.header-member-login-info-input::-moz-placeholder { color: #FFF; font-family: "Microsoft JhengHei"; }
.header-member-login-info-input:-ms-input-placeholder { color: #FFF; font-family: "Microsoft JhengHei"; }

.header-member-forget2{
    margin-left: 10px;
}


@media only screen and (max-width: 1200px){
    .header-style1 .header-box{
        width: 95%;
        margin: 0 auto;
    
    }
    .header-style2 .header-menu ul{
        width: 100%;
    }
}

@media only screen and (max-width: 1000px){
    .header-style1 .rwd-menu{
        display: block;
    }
    .header-style1 .rwd-menu span{
        background-color: #FFF;
    }
    .header-style1 .rwd-menu{
        top: 18px;
    }
    .header-style1 .header-menu{
        width: 300px;
        float: none;
        position: absolute;
        left: -300px;
        top: 0;
        height: 100vh;
        transition: all .3s linear;
        background-color: rgba(58, 145, 199, 1);
        z-index: 9;
    }
    .header-style1  .header-menu li{
        width: 100%;
        display: block;
    }

    .header-style1  .header-style1 .header-menu.open{
        left: 0;
    }
    .header-style1  .header-menu-list-box{
        transform: scale(1, 1);
        width: 300px;
        left: -300px;
        transition: all .3s linear;
        position: fixed;
        top: 0;
        height: 100vh;
        background-color: #000;
        z-index: 9;
    }
    .header-style1  .header-menu-list-box.open{
        left: 0;
    }
    .header-style1  .header-menu-list-box li{
        background-color: transparent;
    }
    .header-style1  .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;
    }
    .header-style1  .header-menu li{
        width: 100%;
        padding: 0;
    }
    .header-style1 .header-menu-list{
        padding: 10px 0;
        padding-left: 10px;
        box-sizing: border-box;
        border-bottom: 1px solid #FFF;
    }
}