﻿/*--------------header-style1-----------------*/
.header-style1{
    position: fixed;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    background-color: #FFF;
}
.header-style1 .header-box{
    width: 1200px;
    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{
    display: inline-block;
    vertical-align: middle;
    position: relative;
}
.header-link-box{
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

/*--------------header-style2-----------------*/
.header-style2{
    display: block;
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 999;
}
.header-style2 .header-logo{
    display: none;
}
.header-style2 .rwd-menu{
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: #FFF;
    padding: 15px 0;
    box-sizing: border-box;
    cursor: pointer;
    transition: all .3s linear;
}
.header-style2 .header-menu-box{
    width: 100%;
    height: 100vh;
    display: table;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    transition: all .4s linear;
    opacity: 0;
    background-color: #01344f;
    transform: scale(0.9);
}
.header-style2 .header-menu-box.active{
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.header-style2 .header-menu{
    display: table-cell;
    vertical-align: middle;
}
.header-style2 .header-menu ul{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    text-align: center;
}
.header-style2 .rwd-menu span{
    width: 20px;
    height: 1px;
    display: block;
    background-color: #01344f;
}

.header-style2 .header-menu-title{
    font-size: 20px;
    font-weight: bold;
    color: #FFF;
    letter-spacing: 5px;
}
.header-style2 .rwd-menu.active{
    background-color: transparent;
}
/* --------------header3------------------------------ */
.header-style3{
    width: 100%;
    display: block;
    background-color: #FFF;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}
.header-style3 .header-logo{
    width: 73px;
    display: block;
    max-width: 100%;
    display: block;
    float: left;
}
.rwd-menu{
    display: none;
}
.header-style3 .header-menu-box{
    display: block;
    float: right;
    text-align: right;
}
.header-style3 .index-header-link-box{
    display: none;
}
.header-style3 .header-menu{
    display: block;
    margin-top: 35px;
}
.header-style3 .header-menu-list{
    display: inline-block;
    font-size: 16px;
    letter-spacing: 1px;
    position: relative;
    padding: 0 20px;
}
.header-style3 .header-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
}
.header-style3 .header-link-box{
    display: block;
    position: absolute;
    right: 0;
    top: 5px;

}
.header-style3 .header-member-title{
    font-size: 14px;
    color: #555;
    display: inline-block;
}

.header-style3 .header-member,
.header-shopcar-products,
.header-shopcar-box,
.header-member-box,
.header-style3 .header-buycar
{
    display: inline-block;
    vertical-align: top;
}
.header-style3 .header-buycar{
    font-size: 14px;
    color: #555;
}
.header-style3 .header-shopcar-info-box{
    transform: scale(1, 0);
    transition: all .3s linear;
    position: absolute;
}
.header-style3 .header-member-box{
    padding-right: 10px;
}

/* --------------header4------------------------------ */
.header-style4{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}
.header-style4 .header-box{
    width: 1200px;
    max-height: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
}
.header-style4 .header-logo{
    display: none;
} 
.header-style4 .header-menu{
    text-align: center;
    font-size: 0;
    width: 100%;
    display: block;
}
.header-style4 .header-menu-list{
    padding: 0 10px;
    display: inline-block;
    font-size: 18px;
    letter-spacing: 2px;
    vertical-align: middle;
}
.header-style4 .header-menu-logo{
    display: inline-block;
    vertical-align: middle;
    margin: 0 30px;
}

/*--------------header-style5------------------*/
.header-style5{
    width: 100%;
    display: block;
    position: relative;
}
.header-style5 .header-box{
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}
.header-style5 .header-logo{
    display: none;
}
.header-style5 .header-menu{
    font-size: 0 ;
    display: block;
    text-align: center;
}
.header-style5  .header-menu li{
    display: inline-block;
    vertical-align: middle;
}

/*------------------header-style6 logo至左，menu置中---------------*/
.header-style6{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    background-color: #FFF;
}
.header-style6 .header-logo{
    position: absolute;
    left: 0;
    top: 0;
}
.header-style6 .header-box{
    font-size: 0;
    position: relative;
    background-color: #f1f1f1;
    text-align: center;
}

.header-style6 .header-menu{
    display: inline-block;
    font-size: 0;
    position: relative;
    padding-top: 20px;
    padding-bottom: 17px;
    transition: all .5s ease;
}
.header-style6 .header-menu-list{
    display: inline-block;
    font-size: 14px;
    letter-spacing: 2px;
    padding-left: 70px;
}
.header-style6 .header-menu-list:first-child{
    padding-left: 0;
}
/*-----------------header-style7  menu縮起，右上方三條槓-------------------*/
.header-style7 .header-box{
    width: 1600px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    padding: 10px 0; 
}
.header-style7{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    display: block;
}
.header-style7 .header-logo{
    position: relative;
    z-index: 3;
}
.header-style7 .header-menu-box{
    opacity: 0;
    width: 100%;
    position: fixed;
    top: 0;
    height: 100vh;
    left: 0;
    transition: all .5s ease;
    pointer-events: none;
    background-color: #f1f1f1;
 
}
.header-style7 .header-menu-box.active{
    opacity: 1;
    pointer-events: auto;
}
.header-style7 .header-menu{
    width: 100%;
    height: 100%;
    display:         flex;
    display: -webkit-flex;
          align-items: center;
    -webkit-align-items: center;
          justify-content: center;
    -webkit-justify-content: center;
    flex-direction:column;
    -webkit-flex-direction:column;
}

.header-style7 .header-menu li{
    margin-bottom: 20px;
    height: 32px;
    overflow: hidden;
}
.header-style7 .header-menu li:last-child{
    margin-bottom: 0;
}
.header-style7 .rwd-menu{
    display: block;
}
/* -------------------------------------------------------------- */
.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: 18px;
    position: relative;
}
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;
}

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




/*漢堡樣式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 (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-style6 .header-logo{
        position: relative;
        width: 100%!important;
        text-align: left;
        background-color: #FFF;
    }
    .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;
     }
      .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-style6.header2{
        border-bottom: 0;
    }
    .header-style6 .header-logo{
        border-bottom: 1px solid #d1d1d1;
    }
}