﻿.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%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 19px 20px;
    box-shadow: 0 0 1px #888;
    position: relative;
    z-index: 3;
}
.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-style1 .header-menu> li:nth-child(2){
    margin: 0 50px;
}
.header-style1 .header-menu> li> span{
    width: 100%;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: #066292;
    opacity: 0;
    transition: all .3s linear;
}
.header-info-box{
    width: 300px;
    max-width: 100%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    text-align: right;
}
.header-info-search-box{
    display: inline-block;
    vertical-align: middle;
    width: 300px;
    max-width: 100%;
    position: absolute;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    box-sizing: border-box;
    bottom: -31px;
    right: -300px;
    transition: all .3s linear;
}
.header-info-search-box.active{
    right: -1px;
}
.header-info-search{
    width: 250px;
    display: block;
    background-color: #f1f1f1;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    height: 30px;
    border-radius: 5px;
    border: 0;
    color: #555;
}
.header-info-search-box i{
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
    color: #555;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
}
.header-info-search-box span{
    position: absolute;
    right: 10px;
    top: 0;
    font-size: 18px;
    font-weight: bold;
    color: #555;
}
.header-info-search-box ::-webkit-input-placeholder { 
    color: #d1d1d1;
}
.header-info-search-box ::-moz-placeholder { 
    color: #d1d1d1;
}
.header-info-search-box :-ms-input-placeholder { 
    color: #d1d1d1;
}
.header-info-search-box :-moz-placeholder { 
    color: #d1d1d1;
}
.header-info-all-box{
    display: inline-block;
    vertical-align: middle;
    width: 300px;
    max-width: 100%;
    position: relative;
    text-align: left;
}
.header-info-buycar-box{
    font-size: 22px;
    color: #066292;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: 0;
    cursor: pointer;
    transition: all .3s linear;
}
.header-info-buycar-box span{
    font-size: 12px;
    display: block;
    font-family: 'Roboto', sans-serif;
    color: #066292;
    background-color: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    position: absolute;
    top: 0px;
    right: -12px;
    text-align: center;
    line-height: 20px;
}
.header-info-login-box{
    display: inline-block;
    width: 75px;
    color: #066292;
    font-size: 18px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
}
.header-info-login-box a{
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    transition: all .3s linear;
}
.header-info-logout-box{
    display: inline-block;
    font-size: 14px;
    color: #066292;
    vertical-align: middle;
    letter-spacing: 2px;
    box-sizing: border-box;
    cursor: pointer;
    width: 46px;
    text-align: right;
    vertical-align: middle;
}
.header-info-member-box{
    display: inline-block;
    width: 75px;
    color: #066292;
    font-size: 18px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
}
.header-info-line{
    display: inline-block;
    font-size: 14px;
    color: #066292;
    margin: 0 10px;
    font-weight: lighter;
    box-sizing: border-box;
    vertical-align: middle;
}
.header-info-language-box{
    display: inline-block;
    font-size: 14px;
    color: #066292;
    vertical-align: middle;
    box-sizing: border-box;
    padding: 2px 7px;
    position: relative;
    border: 1px solid #066292;
    border-radius: 15px;
    cursor: pointer;
}
.header-info-class-list-box{
    display: none;
    position: absolute;
    right: 23px;
    text-align: right;
    background-color: #FFF;
    box-sizing: border-box;
    border: 1px solid #066292;
    padding: 5px 0;
    z-index: 9;
}
.header-info-class-list-box a{
    display: block;
    box-sizing: border-box;
    padding: 3px 5px;
}
.header-info-class-list{
    display: inline-block;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    margin-left: 4px;
    margin-right: 20px;
    outline: none;
}
.header-info-class-list:after {
    content: '';
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-right: 4px solid transparent;
    border-top: 5px solid #066292;
    border-left: 4px solid transparent;
    display: block;
    position: absolute;
    bottom: calc(50% - 2px);
    right: -15px;
    box-sizing: border-box;
}
.header-info-seach-icon{
    display: inline-block;
    font-size: 18px;
    vertical-align: middle;
    color: #066292;
    margin-left: 20px;
    cursor: pointer;
}




.header-products{
    cursor: pointer;
}
.header-products-class-box{
    width: 100%;
    display: none;
    font-size: 0;
    background-color: #f5f5f5;
    z-index: 2;
    position: relative;
    box-shadow: 0 5px 10px #ddd;
}
.header-products-class{
    display: block;
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
}
.header-products-class-title{
    width: 100%;
    display: block;
    text-align: center;
    font-size: 14px;
    color: #555;
    font-family: '微軟正黑體';
    padding: 50px 0;
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
}
.header-products-class-title a{
    transition: all .3s linear;
    font-weight: bold;
}
.header-products-class-info-box{
    display: block;
    box-sizing: border-box;
    padding-bottom: 50px;
    overflow: auto;
    max-height: 70vh;
}
.header-products-class-info{
    display: inline-block;
    width: 150px;
    vertical-align: top;
    margin-bottom: 20px;
    box-sizing: border-box;
    padding-right: 20px;
}
.header-products-class-info-title{
    display: block;
    font-size: 14px;
    font-weight: bold;
    font-family: '微軟正黑體';
    color: #066292;
    letter-spacing: 1px;
    margin-bottom: 5px;
    transition: all .3s linear;
}
.header-products-class-info-name{
    display: block;
    font-size: 14px;
    font-weight: bold;
    font-family: '微軟正黑體';
    color: #555;
    letter-spacing: 1px;
    margin-bottom: 5px;
    transition: all .3s linear;
}
.rwd-header-info-button-box,
.rwd-header-info-search-box{
    display: none;
}
.rwd-header-products-close{
    display: none;
    position: absolute;
    right: 0;
    top: 33%;
    color: #000;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
}
/* -------------------------------------------------------------- */
.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;
    position: relative;
    color: #555;
    letter-spacing: 1px;
    font-weight: bold;
    transition: all .3s linear;
}
div.header-menu-title{
    cursor: context-menu;
}

.header-products .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: 99999;
    display: none;
    top: calc(50% - 7px);
    transition: all .3s linear;
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color: #066292;
    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;
}

/*--------------hover----------------*/
.header-menu> li.active .header-menu-title,
.header-menu-title:hover{
    color: #066292;
}
.header-menu> li.active .header-menu-title + .header-menu-title-line,
.header-menu-title:hover + .header-menu-title-line{
    opacity: 1;
}
.header-info-buycar-box:hover{
    color: #043148;
}
.header-products-class-info-title:hover{
    color: #213130;
}
.header-products-class-info-name:hover{
    color: #066292;
}
.header-products-class-title a:hover{
    color: #066292;
}
.header-info-class-list-box a:hover{
    background-color: #066292;
    color: #fff;
}
.header-info-login-box a:hover{
    color: #043148;
    font-weight: bold;
}
.header-info-member-box:hover,
.header-info-logout-box:hover span{
    color: #043148;
    font-weight: bold;
}
.top-news:hover{
    color: #fff;
}
.header-info-seach-icon:hover{
    color: #213130;
}
@media only screen and (min-width: 1000px){
    .header-info-class-list:hover:after{
        animation: UpDown 1s linear infinite;
    }
}
@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);
  }
}
@keyframes UpDown{
  0%{
    transform: translateY(0px);
  }
  25%{
    transform: translateY(3px);
  }
  50%{
    transform: translateY(0px);
  }
  75%{
    transform: translateY(-3px);
  }
  to{
    transform: translateY(0px);
  }
}


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

@media only screen and (max-width: 1200px){
    .header-products-class{
        width: 1000px;
    }
    .header-products-class-info{
        width: 200px;
    }
    .header-style1 .header-menu> li:nth-child(2){
        margin: 0 25px;
    }
    .header-style1 .header-logo{
        width: 250px;
    }
    .header-info-box{
        width: 250px;
    }
    .header-info-all-box{
        width: 100%;
    }
    .header-style1 .header-menu-box{
        width: calc(100% - 250px);
    }
    .header-info-buycar-box span{
        width: 15px;
        height: 15px;
        line-height: 16px;
    }
    .header-info-buycar-box{
        font-size: 24px;
    }
    .header-info-login-box{
        width: 90px;
        letter-spacing: 1px;
    }
    .header-info-member-box{
        width: 65px;
        letter-spacing: 1px;
        font-size: 12px;
    }
    .header-info-logout-box{
        width: 40px;
        letter-spacing: 1px;
        font-size: 12px;
    }
    .header-info-class-list,
    .header-info-language-box{
        font-size: 12px;
    }
    .header-style1 .header-box{
        padding: 14px 10px;
    }
}

@media only screen and (max-width: 1000px){
    .header-style1 .header-box{
        padding: 12px 10px;
    }
    .header-info-all-box,
    .header-info-search,
    .header-info-box{
        display: none;
    }
    .header-style1 .header-menu-box,
    .header-style1 .header-logo{
        width: 50%;
    }
}
@media only screen and (max-width: 800px){
    .header-style1 .header-box{
        padding: 2px 10px;
    }
}
@media only screen and (max-width: 550px){
    .header-style1 .header-box{
        padding: 9px 10px;
    }
}