﻿/*--------------header-style1-----------------*/
.header-style1{
    position: fixed;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    background-color: #FFF;
    transition: all .3s linear;
}
.header2{
    transition: all .3s linear;
}
.header2 .header-info-buycar-box{
    top: 6px;
}
.header-style1 .header-box{
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 12px 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% - 600px);
    display: inline-block;
    vertical-align: bottom;
    font-size: 0;
    text-align: center;
}
.header-style1 .header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin: 0 50px;
}

.header-style1 .header-menu> li> span{
    width: 100%;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: #004ea2;
    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: relative;
    background-color: #f1f1f1;
}
.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;
    font-family: "微軟正黑體", "Arial","Verdana",  "Microsoft JhengHei", "Geneva", "sans-serif";
}
.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;
    margin-top: 19px;
}
.header-info-buycar-box{
    font-size: 30px;
    color: #004ea2;
    display: inline-block;
    vertical-align: bottom;
    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: #004ea2;
    background-color: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    position: absolute;
    top: 3px;
    right: -8px;
    text-align: center;
    line-height: 20px;
}
.header-info-login-box{
    display: inline-block;
    font-size: 14px;
    color: #004ea2;
    vertical-align: bottom;
    letter-spacing: 2px;
    box-sizing: border-box;
    padding-bottom: 3px;
    cursor: pointer;
    width: 130px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-info-line{
    display: inline-block;
    font-size: 14px;
    color: #004ea2;
    margin: 0 10px;
    font-weight: lighter;
    box-sizing: border-box;
    padding-bottom: 3px;
}
.header-info-language-box{
    display: inline-block;
    font-size: 14px;
    color: #004ea2;
    vertical-align: bottom;
    box-sizing: border-box;
    padding-bottom: 3px;
    position: relative;
}
.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;
    cursor: pointer;
}
.header-info-class-list:after {
    content: '';
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-right: 4px solid transparent;
    border-top: 5px solid #507774;
    border-left: 4px solid transparent;
    display: block;
    position: absolute;
    bottom: calc(50% - 4px);
    right: -15px;
    box-sizing: border-box;
}
.header-info-language-list-box{
    position: absolute;
    background: #fff;
    width: 100%;
    padding: 10px;
    display:none;
}
.header-info-class-list-area{
    padding: 10px 0;
    box-sizing: border-box;
    display: block;
    text-align: left;
}
.header-info-language-box:hover .header-info-class-list{
    color: #555;
}
.header-info-language-box:hover .header-info-language-list-box{
    display: block;
}
.header-info-class-list-area:hover{
    color: #555;
}
.header-info-member-box {
    display: inline-block;
    width: 75px;
    color: #004ea2;
    font-size: 18px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
}
.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: 20px;
    color: #555;
    padding: 50px 0;
    font-weight: 500;
    letter-spacing: 2px;
    position: relative;
}
.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: 200px;
    vertical-align: top;
    margin-bottom: 20px;
    box-sizing: border-box;
    padding-right: 20px;
}
.header-products-class-info-title{
    display: block;
    font-size: 16px;
    color: #004ea2;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.header-products-class-info-name{
    display: block;
    font-size: 14px;
    color: #555;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.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;
    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);
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color: #004ea2;
    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;
}


/*--------------hover----------------*/
.header-menu-title:hover,
.header-menu li.active .header-menu-title{
    color: #004ea2;
}
.header-menu-title:hover + .header-menu-title-line,
.header-menu li.active .header-menu-title-line{
    opacity: 1;
}
.header-info-buycar-box:hover{
    color: #004ea2;
}
@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: 1320px){
    .header-products-class{
        width: 1000px;
    }
    .header-products-class-info{
        width: 200px;
    }
    .header-style1 .header-logo{
        width: 250px;
    }
    .header-info-box{
        width: 250px;
    }
    .header-info-search-box{
        width: 100%;
    }
    .header-info-all-box{
        width: 100%;
        margin-top: 29px;
    }
    .header-info-search{
        width: calc(100% - 50px);
    }
    .header-style1 .header-menu-box{
        width: calc(100% - 500px);
    }
    .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;
        font-size: 12px;
    }
    .header-info-class-list,
    .header-info-language-box{
        font-size: 12px;
    }
    .header2{
        top: -70px;
    }
    .header-style1 .header-menu> li{
        margin: 0 40px;
    }
}
@media only screen and (max-width: 1200px){
    .header-style1 .header-menu> li{
        margin: 0 20px;
    }
}
@media only screen and (max-width: 1000px){
    .header2{
        top: -50px;
    }
    .header-info-all-box,
    .header-info-search,
    .header-info-box{
        display: none;
    }
    .rwd-header-info-button-box{
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        font-size: 0;
        border-top: 1px solid #ccc;
        z-index: 6;
    }
    .rwd-header-info-button-box .header-info-all-box{
        margin-top: 0;
        display: block;
    }
    .rwd-header-info-button-box .header-info-buycar-box,
    .rwd-header-info-button-box .header-info-login-box,
    .rwd-header-info-button-box .header-info-language-box{
        width: calc(90% / 3 );
        text-align: center;
        padding: 5px 0;
        box-sizing: border-box;
        vertical-align: middle;
    }
    .rwd-header-info-button-box .header-info-search-box{
        width: 10%;
        display: inline-block;
        vertical-align: middle;
        background-color: transparent;
        text-align: center;
    }
    .rwd-header-info-button-box .header-info-search-box i{
        position: relative;
    }
    .header-info-buycar-box i{
        position: relative;
    }
    .header-info-buycar-box span{
        top: -8px;
    }
    .header-style1 .header-logo{
        width: 150px;
    }
    .header-info-box{
        vertical-align: bottom;
    }
    .header-style1 .header-menu-box {
        width: calc(100% - 150px);
    }
    .header-products-class{
        width: 800px;
    }
    .header-products-class-title{
        padding: 25px 0;
    }
    .header-info-search-box span{
        display: none;
    }
    .header-info-search{
        width: 100%;
        padding: 0;
        padding-left: 30px;
    }
    .rwd-header-info-search-box{
        width: 250px;
        position: absolute;
        right: 0;
        bottom: calc(100% + 1px);
        background-color: transparent;
        display: none;
        box-shadow: 0 0 5px #888;
    }
    .rwd-header-info-search{
        width: 100%;
        display: inline-block;
        background-color: #f1f1f1;
        padding: 0 10px;
        padding-right: 30px;
        box-sizing: border-box;
        height: 30px;
        border-radius: 5px;
        border: 0;
        color: #555;

    }
    .rwd-header-info-search-box i {
        position: absolute;
        right: 0;
        top: 0;
        font-size: 14px;
        color: #555;
        width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        cursor: pointer;
    }
    .rwd-header-products-close{
        display: block;
        top: 28%;
        font-size: 40px;
    }
    .rwd-menu{
        display: block;
    }
    .header-style1 .rwd-menu{
        display: block;
    }

    .rwd-header-menu-sytle1 .header-menu{
        width: 100%;
        height: calc(100vh - 101px);
        position: fixed;
        top: 53px;
        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-products-class-box{
        z-index: 4;
    }
}
@media only screen and (max-width: 800px){
    .header-menu-title{
        font-size: 18px;
    }
    .header-style1 .header-menu-box {
        width: calc(100% - 100px);
    }
    .header-products-class{
        width: 800px;
    }
    .header-products-class-title{
        padding: 15px 0;
    }
    .header-info-search-box i{
        font-size: 12px;
        width: 25px;
        height: 25px;
        line-height: 25px;
    }
    .header-info-search{
        height: 25px;
    }
    .header-products-class{
        width: 600px;
    }
    .header-style1 .header-logo{
        vertical-align: middle;
    }
    .header-style1 .header-menu-box {
        vertical-align: middle;
    }
    .rwd-header-products-close{
        font-size: 40px;
        top: 20%;
    }
}
@media only screen and (max-width: 600px){

    .rwd-header-menu-sytle1 .header-menu{
        height: calc(100vh - 97px);
        top: 49px;
    }
    .header-info-search-box i{
        position: relative;
        width: 20px;
        height: 20px;
        line-height: 20px;
    }
    .header-style1 .header-menu-box{
        width: calc(100% - 125px);
    }
    .header-style1 .header-box{
        padding: 10px;
    }
    .header-products-class{
        width: 400px;
    }
    .header-products-class-title{
        text-align: left;
    }
}
@media only screen and (max-width: 400px){
    .header-style1 .header-logo{
        width: 120px;
    }
    .header-style1 .header-menu-box {
        width: calc(100% - 60px);
    }
    .rwd-header-info-button-box .header-info-buycar-box{
        width: 20%;
    }
    .rwd-header-info-button-box .header-info-language-box{
        width: 36%;
    }
    .rwd-header-info-button-box .header-info-search-box{
        width: 14%;
    }
    .header-products-class{
        width: 300px;
    }
    .header-products-class-info{
        width: 150px;
    }
    .rwd-header-menu-sytle1 .header-menu{
        height: calc(100vh - 91px);
        top: 43px;
    }
}