﻿/*--------------header-style1-----------------*/
.header-style1{
    position: fixed;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    background-color: #FFF;
    transition: all .3s linear;
}
.header-style1 .header-box{
    width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
}
.header2{
    box-shadow: 0 0 5px #555;
}
.header2 .header-menu-title{
    height: 60px;
}
.header-style1 .header-logo{
    width: 380px;
    max-width: 100%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    text-align: right;
}
.header-style1 .header-menu-box{
    width: calc(100% - 380px);
    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;
}
.header-link-box{
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}
/* -------------------------------------------------------------- */
.header2.header-style2 .rwd-menu{
    background-color: #01344f;
}
.header2.header-style2 .rwd-menu span{
    background-color: #FFF;
}
.header-menu-list-box li{
    margin-bottom: 30px
}

.header-menu-title{
    font-size: 14px;
    font-weight: 600;
    position: relative;
    width: 200px;
    height: 80px;
    text-align: center;
    display: block;
    border-left: 1px #ddd solid;
    letter-spacing: 1px;
    display:flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction:row;
    transition: all .3s linear;
    box-sizing: border-box;
}
.header-menu-title i{
    font-size: 28px;
    vertical-align: middle;
    margin-right: 10px;
}
.header-member .header-menu-title{
    background-color: #1b1b1b;
    color: #fff;
    cursor: pointer;
}
.header-member .header-menu-title span{
    background-image: url(../img/front/header-member.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    transition: all .3s linear;
}
.header-contact .header-menu-title span{
    background-image: url(../img/front/header-contact.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    transition: all .3s linear;
}

.header-menu-title:after{
    content: '';
    background-color: #d3202f;
    height: 0;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all .3s linear;
}

.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% - 14px);
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color: #ee1b2d;
    position: relative;
}


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

.member-login-table{
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}
.member-login-table.active{
    display: table;
}
.member-login-box{
    display: table-cell;
    vertical-align: middle;
}
.member-login{
    width: 500px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    box-sizing: border-box;
    padding: 70px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 0 10px #333;
}
.member-login-form-list{
    width: 100%;
    display: block;
    background-color: #eee;
    box-sizing: border-box;
    padding: 0 20px;
    margin-top: 30px;
}
.member-login-form-text{
    width: 100%;
    background-color: transparent;
    border: none;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    font-family: "微軟正黑體";
}
/*webkit瀏覽器專用*/
.member-login-form-text::-webkit-input-placeholder { 
    color: #000;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: "微軟正黑體";
    transform: skewX(-10deg);
}
/*Firefox 4-18瀏覽器專用*/
.member-login-form-text::-moz-placeholder {
    color: #000;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: "微軟正黑體";
    transform: skewX(-10deg);
}
/*Firefox 19+瀏覽器專用*/
.member-login-form-text::-moz-placeholder{
    color: #000;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: "微軟正黑體";
    transform: skewX(-10deg);
}
/*IE10瀏覽器專用*/
.member-login-form-text:-ms-input-placeholder{
    color: #000;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: "微軟正黑體";
    transform: skewX(-10deg);
}
.member-login-btn-box{
    text-align: center;
    margin-top: 30px;
}
.member-login-btn{
    width: 180px;
    text-align: center;
    height: 36px;
    line-height: 36px;
    background-color: #d3202f;
    border: none;
    cursor: pointer;
    transition: all .3s linear;
}
.member-login-btn span{
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    transform: skew(-10deg);
    letter-spacing: 2px;
}
.member-login-mask{
    width: 100%;
    height: 100%;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.3;
}
.member-login-close{
    font-size: 36px;
    display: block;
    position: absolute;
    top: -18px;
    right: -45px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: all .3s linear;

}
.member-login-line-t{
    top: 0;
    left: 0;
    width: 30px;
    height: 1px;
}
.member-login-line-l{
    top: 0;
    left: 0;
    width: 1px;
    height: 30px;
}
.member-login-line-b{
    bottom: 0;
    right: 0;
    width: 30px;
    height: 1px;
}
.member-login-line-r{
    bottom: 0;
    right: 0;
    width: 1px;
    height: 30px;
}
.member-login-line-t,
.member-login-line-l,
.member-login-line-b,
.member-login-line-r{
    position: absolute;
    display: block;
    background-color: #d3202f;
    transition: all .3s linear;
}


/*漢堡樣式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);
  }
}
/*<----------hover---------->*/
.header-member .header-menu-title:hover span,
.header-member.active  .header-menu-titlespan{
    background-image:url(../img/front/header-member-hover.png);
}
.member-login-close:hover{
    color: #d3202f;
}
.member-login-btn:hover{
    background-color: #960915;
}
/*------------------------------------------*/
@media only screen and (min-width: 1001px){
    .header-menu-title:hover,
    .header-menu li.active .header-menu-title{
        color: #d3202f;
    }
    .header-menu-title:hover:after,
    .header-menu li.active .header-menu-title:after{
        height: 4px;
    }
    .header-contact .header-menu-title:hover span,
    .header-contact.active .header-menu-title span{
        background-image:url(../img/front/header-contact-hover.png);
    }
}
@media only screen and (max-width: 1400px){
    .header-style1 .header-logo{
        width: 330px;
        box-sizing: border-box;
        padding-left: 50px;
    }
    .header-style1 .header-menu-box{
        width: calc(100% - 330px);
    }
    .header-menu-title{
        width: 150px;
    }
}

@media only screen and (max-width: 1200px){
    .header-menu-title i{
        font-size: 24px;
        margin-right: 5px;
    }
    .header-contact .header-menu-title span{
        margin-right: 3px;
        width: 25px;
        height: 25px;
    }
    .header-menu-title {
        width: 130px;
    }
}
@media only screen and (max-width: 1000px){
    .rwd-menu{
        display: block;
        top: calc(50% - 7px);
    }
    .header-contact .header-menu-title span{
        background-image:url(../img/front/header-contact-rwd.png);
    }
    .rwd-header-menu-sytle1 .header-menu{
        width: 100%;
        height: calc(100vh - 62px);
        position: fixed;
        top: 62px;
        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: rgba(211,32,47,0.9);
        transition: none;
    }
    .rwd-header-menu-sytle1.header2 .header-menu{
        width: 100%;
    }
    
    .rwd-header-menu-sytle1 .header-menu> li{
        display: block;
        margin: 0;
        margin-bottom: 10px;
    }
    .rwd-header-menu-sytle1 .header-menu> li:last-child{
        margin-bottom: 0;
     }
     .header-style1 .header-logo{
        margin: 10px 0; 
     }
     .header-menu-title{
        border: none;
        height: 60px;
        line-height: 60px;
        color: #fff;
     }
     .header-member .header-menu-title{
        background-color: transparent;
     }
     .header-menu-title i{
        width: 50px;
        vertical-align: middle;
        margin-right: 0;
     }
    .header-contact .header-menu-title span,
    .header-member .header-menu-title span{
        margin: 0 12.5px;
        width: 25px;
        height: 25px;
    }
}
@media only screen and (max-width: 600px){
    .header-style1 .header-logo{
        width: 180px;
        box-sizing: border-box;
        padding-left: 20px;
    }
    .rwd-header-menu-sytle1 .header-menu{
        height: calc(100vh - 44px);
        top: 44px;
    }
    .header-menu-title{
       height: 50px;
       line-height: 50px;
    }
    .member-login{
       width: 300px;
       padding: 20px;
    }
    .member-login-line-t, .member-login-line-l, .member-login-line-b, .member-login-line-r{
        display: none;
    }
    .member-login-close{
        top: -50px;
        right: -5px;
    }
    .header2 .header-menu-title{
        height: 50px;
    }
    /*webkit瀏覽器專用*/
    .member-login-form-text::-webkit-input-placeholder { 
        font-size: 14px;
    }
    /*Firefox 4-18瀏覽器專用*/
    .member-login-form-text::-moz-placeholder {
        font-size: 14px;
    }
    /*Firefox 19+瀏覽器專用*/
    .member-login-form-text::-moz-placeholder{
        font-size: 14px;
    }
    /*IE10瀏覽器專用*/
    .member-login-form-text:-ms-input-placeholder{
        font-size: 14px;
    }
}