﻿/*--------------header-style1-----------------*/
.header-style1{
    position: fixed;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    background-color: #FFF;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.30);
    box-sizing: border-box;
    padding: 15px 0;
}
.header-style1 .header-box{
    width: 1600px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
}
.header-style1 .header-logo{
    width: 150px;
    max-width: 100%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.header-style1 .header-menu-box{
    width: calc(100% - 286px);
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    text-align: right;
}
.header-style1 .header-menu> li{
    vertical-align: middle;
    position: relative;
    text-align: center;
    margin: 0 15px;
    display: inline-flex;
    display: -webkit-inline-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction:column;
    height: 60px;
}

.header-menu-title{
    height: 30px;
    display: block;
    overflow: hidden;
    cursor: pointer;
}
.header-menu-title span:nth-child(1){
    font-size: 16px;
    position: relative;
    font-family: 'Noto Sans TC';
    color: #000;
    letter-spacing: 0.1em;
    line-height: 30px;
    display: block;
    transition: all .3s linear;
}
.header-menu-title span:nth-child(2){
    font-size: 16px;
    position: relative;
    font-family: 'Roboto';
    font-weight: 700;
    color: #104a7b;
    letter-spacing: 0.1em;
    line-height: 30px;
    display: block;
    transition: all .3s linear;
}
.header-menu-list-box{
    position: absolute;
    z-index: 1;
    background-color: #104a7b;
    display: block;
    top: 100%;
    width: 180px;
    box-sizing: border-box;
    padding: 5px 20px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.30);
    display: none;
}
.header-menu-list-box::after{
    content: '';
    position: absolute;
    top: -7px;
    left: calc(50% - 7px);
    border-bottom: 7px solid #104a7b;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
}
.header-menu-list-box >li{
    width: 100%;
    margin: 5px 0;
}
.header-menu-list{
    width: 100%;
    text-align: center;
    display: block;
    position: relative;
    transition: all .3s linear;
}
.header-menu-list span:nth-child(1){
    width: 100%;
    font-size: 16px;
    position: relative;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.1em;
    line-height: 40px;
    display: inline-block;
    vertical-align: middle;
    transition: all .3s linear;
}
.header-menu-list span:nth-child(2){
    width: 100%;
    font-size: 16px;
    position: relative;
    font-family: 'Roboto';
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.1em;
    line-height: 40px;
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all .3s linear;
}

.header-style1 .header-menu> li:hover .header-menu-list-box{
    display: block;
}

.header-search-box{
    width: 100px;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    position: relative;
}
.header-search-box>i{
    font-size: 30px;
    cursor: pointer;
}
.header-search{
    position: absolute;
    top: calc(100% + 30px);
    right: 0;
    width: 300px;
    transition: all .3s linear;
    transform: translateY(-20%);
    pointer-events: none;
    opacity: 0;
}
.header-search.open{
    transform: translateY(0);
    pointer-events: all;
    opacity: 1;
}
.header-search-input{
    width: calc(100% - 50px);
    box-sizing: border-box;
    height: 36px;
    line-height: 34px;
    padding: 0 10px;
    border: 1px solid #bbb;
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
    font-family: 'Noto Sans TC';
}
.header-search-btn{
    width: 50px;
    line-height: 34px;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    border: 1px solid #bbb;
    border-left: none;
    border-radius: 0;
    font-size: 14px;
    cursor: pointer;
}



.rwd-menu-box{
    width: 36px;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}
.rwd-menu{
    width: 100%;
    display: block;
    position: relative;
}
.rwd-menu span{
    width: 100%;
    height: 2px;
    background-color: #000;
    display: block;
    transition: all .3s linear;
}
.rwd-menu span:nth-child(2){
    margin: 13px 0;
}
.rwd-menu span:nth-child(3){
    width: 72%;
}
.rwd-menu.active span:nth-child(1){
    width: 100%;
    background-color: #104a7b;
    transform: rotateZ(45deg);
    transform-origin: left;
}
.rwd-menu.active span:nth-child(2){
    margin: 11px 0;
    opacity: 0;
}
.rwd-menu.active span:nth-child(3){
    width: 100%;
    background-color: #104a7b;
    transform: rotateZ(-45deg);
    transform-origin: left;
}



.btn-header-menu-box{
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    display:         flex;
    display: -webkit-flex;
    text-align: left;
    background-color: #fff;
    box-sizing: border-box;
    border-top: 1px solid #d1d1d1;
    /* padding-left: 60px; */
    opacity: 0;
    pointer-events: none;
}
.btn-header-menu-box.active{
    opacity: 1;
    pointer-events: all;
}
.btn-header-menu-list{
    width: 400px;
    max-width: 100%;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    border-right: 1px solid #d1d1d1;
}
.btn-header-menu-list li{
    width: 100%;
    display: block;
    box-sizing: border-box;
    border-bottom: 1px solid #d1d1d1;
    position: relative;
}
.btn-header-menu-list li.active{
    background-color: #fafafa;
}
.btn-header-menu-list li.active::after{
    content: '';
    width: 2px;
    height: 100%;
    position: absolute;
    right: -1px;
    top: 0;
    display: block;
    background-color: #fafafa;
    pointer-events: none;
}
.btn-header-menu-title{
    width: 100%;
    display: block;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
    padding: 0 10px;
}
.btn-header-menu-title::before{
    content: '\e800';
    font-family: 'fontello';
    font-weight: bold;
    display: block;
    font-size: 18px;
    line-height: 60px;
    position: absolute;
    right: 15px;
    top: 0;
}
.btn-header-menu-title span:nth-child(1) {
    font-size: 16px;
    position: relative;
    font-family: 'Noto Sans TC';
    color: #000;
    letter-spacing: 0.1em;
    line-height: 60px;
    display: inline-block;
    vertical-align: bottom;
    opacity: 0.7;
}
.btn-header-menu-list li.active .btn-header-menu-title span:nth-child(1){
    opacity: 1;
    font-weight: 700;
}
.btn-header-menu-title span:nth-child(2) {
    font-size: 16px;
    position: relative;
    font-family: 'Roboto';
    font-weight: 700;
    color: #104a7b;
    letter-spacing: 0.1em;
    line-height: 56px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: bottom;
    opacity: 0.7;
}

.btn-header-menu{
    width: calc(100% - 400px);
    box-sizing: border-box;
    padding: 30px 40px;
    position: relative;
    background-color: #fafafa;
}
.btn-header-menu li{
    width: 100%;
    display: block;
    transition: all .3s linear;
    position: absolute;
    left: calc(10% + 40px);
    top: 30px;
    opacity: 0;
    pointer-events: none;
}
.btn-header-menu li.active{
    left: 40px;
    opacity: 1;
}
.btn-header-menu-box.active .btn-header-menu li.active{
    pointer-events: all;
}
.btn-header-name{
    width: 100%;
    display: block;
    margin-bottom: 20px;
}
.btn-header-name span:nth-child(1) {
    font-size: 18px;
    position: relative;
    font-family: 'Noto Sans TC';
    color: #000;
    letter-spacing: 0.1em;
    line-height: 60px;
    display: inline-block;
    vertical-align: bottom;
}
.btn-header-name span:nth-child(2) {
    font-size: 18px;
    position: relative;
    font-family: 'Roboto';
    font-weight: 700;
    color: #104a7b;
    letter-spacing: 0.1em;
    line-height: 56px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: bottom;
}
.btn-header-list{
    width: 400px;
    display: block;
    margin-bottom: 20px;
}
.btn-header-list span:nth-child(1){
    font-size: 16px;
    position: relative;
    font-family: 'Noto Sans TC';
    color: #333;
    letter-spacing: 0.1em;
    line-height: 2;
    display: inline-block;
    vertical-align: bottom;
    transition: all .3s linear;
}
.btn-header-list span:nth-child(2){
    font-size: 14px;
    position: relative;
    font-family: 'Roboto';
    font-weight: 500;
    color: #666;
    letter-spacing: 0.1em;
    line-height: 1.9;
    display: inline-block;
    vertical-align: bottom;
    margin-left: 5px;
    transition: all .3s linear;
}
/*------------------------------------------*/

@media only screen and (max-width: 1600px){
    .header-style1 .header-box{
        width: 1200px;
    }
}
@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-style1 .header-logo{
        width: 120px;
    }
    .header-style1 .header-menu-box{
        width: calc(100% - 256px);
    }
    .rwd-header-menu-sytle1 .header-menu{
        display: none;
    }

    .btn-header-menu-box{
        top: 63px;
        height: calc(100vh - 63px);
    }
    .btn-header-menu{
        padding: 10px 30px;
    }
    .header-search{
        top: calc(100% + 13px);
    }
   
}
@media only screen and (max-width: 768px){
    .btn-header-menu-box{
        width: 100%;
        display: block;
        padding-left: 0;
    }
    .btn-header-menu-list{
        width: 100%;
        border-right: none;
    }
    .btn-header-menu{
        width: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        pointer-events: none;
    }
    .btn-header-name{
        width: 100%;
        display: block;
        position: relative;
        box-sizing: border-box;
        border-bottom: 1px solid #d1d1d1;
        padding: 10px 60px;
        margin-bottom: 0;
    }
    .btn-header-name::after{
        content: '\e801';
        font-family: 'fontello';
        font-weight: bold;
        display: block;
        font-size: 18px;
        line-height: 80px;
        position: absolute;
        left: 25px;
        top: 0;
    }
    .btn-header-list{
        width: 100%;
        display: block;
        margin-bottom: 0;
        box-sizing: border-box;
        padding: 0 60px;
    }
    .btn-header-list span:nth-child(1){
        line-height: 60px;
    }
    .btn-header-list span:nth-child(2){
        line-height: 56px;
    }
    .btn-header-menu li{
        top: 0;
        left: 0;
        height: 100%;
        background-color: #fff;
    }
    .btn-header-menu li.active{
        left: 0;
    }
    .btn-header-menu{
        background-color: transparent;
    }
}
@media only screen and (max-width: 550px){
    .header-style1{
        padding: 10px 0;
    }
    .header-style1 .header-logo{
        width: 100px;
    }
    .header-style1 .header-menu-box {
        width: calc(100% - 200px);
    }
    .header-search-box{
        width: 70px;
    }
    .header-search-box>i{
        font-size: 26px;
    }
    .header-search{
        width: 240px;
        position: fixed;
        top: 47px;
        right: 10px;
    }
    .header-search-input{
        line-height: 28px;
        height: 30px;
    }
    .header-search-btn{
        line-height: 28px;
    }
    .rwd-menu-box{
        width: 30px;
    }
    .rwd-menu span:nth-child(2) {
        margin: 8px 0;
    }
    .btn-header-menu-box{
        top: 47px;
        height: calc(100vh - 47px);
    }
    .btn-header-name{
        padding: 10px 30px;
    }
    .btn-header-name span:nth-child(1){
        line-height: 40px;
    }
    .btn-header-name span:nth-child(2){
        line-height: 36px;
    }
    .btn-header-name::after{
        line-height: 60px;
        left: 10px;
    }
    .btn-header-list{
        padding: 0 30px;
    }
    .btn-header-list span:nth-child(1){
        line-height: 50px;
    }
    .btn-header-list span:nth-child(2){
        line-height: 46px;
    }
    .rwd-menu.active span:nth-child(2) {
        margin: 9px 0;
    }
}


.header-style1 .header-menu> li:hover .header-menu-title span:nth-child(1),
.header-style1 .header-menu> li:hover .header-menu-title span:nth-child(2),
.header-style1 .header-menu> li.active .header-menu-title span:nth-child(1),
.header-style1 .header-menu> li.active .header-menu-title span:nth-child(2){
    transform: translateY(-30px);
}
.header-menu-list:hover{
    background-color: rgba(255, 255, 255, 0.8);
}
.header-menu-list:hover span:nth-child(1){
    /* opacity: 0.8; */
    color: #000;
}


@media only screen and (min-width: 768px){
    .btn-header-menu-list li:hover .btn-header-menu-title span:nth-child(1){
        font-weight: 700;
        opacity: 1;
    }
    .btn-header-list:hover span:nth-child(1),
    .btn-header-list:hover span:nth-child(2){
        color: #104a7b;
    }
}