﻿/*--------------header-style1-----------------*/
.header-style1{
    position: fixed;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    background-color: #FFF;
    box-sizing: border-box;
    padding: 6.5px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
#goto-top{
    position: absolute;
    top: 0;
}
.header-style1 .header-box{
    width: 1280px;
    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;
}
.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{
    width: 110px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    text-align: center;
}
.header-style1 .header-menu> li.header-login{
    background-color: #ed1b24;
    border-radius: 5px;
    transition: all .3s linear;
}
.header-menu-title{
    font-size: 16px;
    line-height: 50px;
    color: #555;
    position: relative;
    letter-spacing: 1px;
    transition: all .3s linear;
}
.header-login .header-menu-title{
    color: #fff;
    display: block;
}
.header-link-box{
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}
/* -------------------------------------------------------------- */
.header-login div.header-menu-title{
    cursor: pointer;
}
.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: 10;
    display: none;
    top: calc(50% - 7px);
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color: #ee1b2d;
    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;
}


@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);
  }
}

/*----------------header-member-login-----------------*/

.header-member-login-box{
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    font-size: 0;
}
.header-member-login-box.active{
    display: table;
}
.header-member-login-all-box{
    display: table-cell;
    vertical-align: middle;
}
.header-member-login,
.header-member-forget{
    width: 500px;
    max-width: 100%;
    height: 400px;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.75);
    border-radius: 20px;
    box-sizing: border-box;
    padding: 50px 70px;
    padding-bottom: 30px;
}
.header-member-forget{
    padding: 30px 70px;
    display: none;
}
.header-member-login-list-box{
    margin-top: 30px;
}
.header-member-login-text{
    width: 100%;
    display: block;
    height: 40px;
    box-sizing: border-box;
    border: none;
    border-radius: 20px;
    background-color: #eee;
    padding: 0 15px;
    font-size: 16px;
    color: #555;
    letter-spacing: 1px;
}
.header-member-login-text::-webkit-input-placeholder{
    font-family: "微軟正黑體";
    color: #888;
}
.header-member-login-text:-moz-placeholder{
    font-family: "微軟正黑體";
    color: #888;
}
.header-member-login-text::-moz-placeholder{
    font-family: "微軟正黑體";
    color: #888;
}
.header-member-forget_back{
    font-size: 14px;
    color: #ed1b24;
    letter-spacing: 1px;
    text-align: right;
    margin-top: 10px;
    transition: all .3s linear;
}
.header-member-forget_back span{
    cursor: pointer;
}
.header-member-forget .header-member-forget_back{
    text-align: center;
}
.header-member-forget-number-box{
    margin-top: 10px;
}
.header-member-forget-number{
    width: 105px;
    height: 38px;
    background-color: #000;
    display: inline-block;
    vertical-align: bottom;
}
.header-member-forget-number-verification{
    display: inline-block;
    vertical-align: bottom;
    font-size: 12px;
    color: #ed1b24;
    margin-left: 10px;
}
button{
    font-family: "微軟正黑體","Microsoft JhengHei";
}
.header-member-login button,
.header-member-forget button{
    width: 180px;
    display: block;
    margin: 0 auto;
    background-color: #ed1b24;
    line-height: 40px;
    border: none;
    border-radius: 20px;
    color: #fff;
    letter-spacing: 1px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 30px;
    outline: none;
    cursor: pointer;
    transition: all .3s linear;
}
.header-member-login-close{
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    width: 30px;
    height: 30px;
    line-height: 26px;
    border-radius: 50%;
    background-color: #ed1b24;
    text-align: center;
    box-sizing: border-box;
    padding: 0 0;
    position: absolute;
    top: 15px;
    right: -55px;
    cursor: pointer;
    transition: all .3s linear;
}

.header-member-mask-box{
    width: 100%;
    height: 100%;
    display: block;
    background-color: rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    left: 0;
}
/*------------------------------------------*/

@media only screen and (max-width: 1280px){
    .header-style1 .header-box{
        width: 1200px;
    }
}
@media only screen and (max-width: 1200px){
    .header-style1 .header-box{
        width: 1000px;
    }
    .header-style1 .header-logo{
        width: 200px;
    }
    .header-style1 .header-menu-box {
        width: calc(100% - 200px);
    }
    .header-style1 .header-menu> li{
        width: 100px;
    }
}

@media only screen and (max-width: 1000px){
    .header-style1 .header-box{
        width: 95%;
    }
    .rwd-menu{
        display: block;
    }
    .header-style1 .rwd-menu{
        display: block;
    }

    .rwd-header-menu-sytle1 .header-menu{
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        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: none;
    }
   
    .rwd-header-menu-sytle1.header2 .header-menu{
        width: 100%;
    }
    
    .rwd-header-menu-sytle1 .header-menu> li{
        display: block;
        margin: 0;
        margin-bottom: 20px;
    }
    .rwd-header-menu-sytle1 .header-menu> li:last-child{
        margin-bottom: 0;
     }
    .header-style1 .header-logo{
        width: 160px;
    }
}
@media only screen and (max-width: 610px){
    .header-member-login, .header-member-forget{
        width: 300px;
        height: 280px;
        padding: 20px;
        border-radius: 10px;
    }
    .header-member-forget{
        height: 340px;
    }
    .header-member-login-list-box{
        margin-top: 20px;
    }
    .header-member-login-text{
        line-height: 30px;
        border-radius: 10px;
        font-size: 14px;
        height: 30px;
    }
    .header-member-forget_back{
        font-size: 12px;
        margin-top: 5px;
    }
    .header-member-login button, 
    .header-member-forget button{
        width: 130px;
        font-size: 14px;
        line-height: 34px;
        margin-top: 10px;
    }
    .header-member-login-close{
        font-size: 20px;
        width: 24px;
        height: 24px;
        line-height: 20px;
        padding-left: 1px;
        top: 5px;
        right: 5px;
    }
    .header-member-forget-number-box{
        margin-top: 5px;
    }
}
@media only screen and (max-width: 550px){
    .header-style1 .header-logo{
        width: 130px;
    }
}

@media only screen and (max-height: 550px){
    .header-menu-title{
        line-height: 30px;
    }
    .rwd-header-menu-sytle1 .header-menu> li{
        margin-bottom: 15px;
    }
}
@media only screen and (max-height: 340px){
    .header-member-forget{
        height: 300px;
    }
    .header-member-forget .header-member-login-logo{
        width: 150px;
    }
    .header-member-forget .header-member-login-list-box{
        margin-top: 10px;
    }
}





/*--------hover--------*/
.header-style1 .header-menu> li.active .header-menu-title,
.header-menu-title:hover{
    color: #ed1b24;
}
.header-style1 .header-menu> li.header-login:hover .header-menu-title{
    color: #fff;
}
.header-style1 .header-menu> li.header-login:hover{
    background-color: #80bd3e;
}
.header-member-login-close:hover{
    background-color: #80bd3e;
}
.header-member-forget_back:hover{
    color: #80bd3e;
}
.header-member-login button:hover, 
.header-member-forget button:hover{
    background-color: #80bd3e;
}
.header-member-login-text:focus{
    background-color: #e1e1e1;
}