﻿/*--------------header-style1-----------------*/
.header-style1{
    position: relative;
    z-index: 999;
    display: block;
    width: 100%;
    background-color: #FFF;
    border-bottom: 1px solid #eee;
}
.header-top-box{
    width: 100%;
    background-color: #41688d;
    overflow: hidden;
}
.header-top-all-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    height: 34px;
}
.header-top-a-box{
    width: 100%;
    display: block;
}

.header-top-email-box,
.header-top-phone-box{
    font-size: 12px;
    color: #fff;
    letter-spacing: 0.06em;
    display: inline-block;
    line-height: 34px;
    transition: all .3s linear;
}
.header-top-email-box{
    margin-right: 30px;
}
.header-top-email-box i,
.header-top-phone-box i{
    margin-right: 5px;
}
.header-style1 .header-box{
    width: 1300px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 9.5px 0;
}
.header-style1 .header-logo{
    width: 200px;
    max-width: 100%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    box-sizing: border-box;
    padding-left: 10px;
}
.header-style1 .header-menu-box{
    width: calc(100% - 400px);
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    text-align: center;
}
.header-style1 .header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin: 0 15px;
}
.header-style1 .header-menu> li:after{
    content: '/';
    display: block;
    font-size: 14px;
    position: absolute;
    top: calc(50% - 11px);
    right: -15px;
    font-weight: lighter;
    color: #eeeeee;
}
.header-style1 .header-menu> li:last-child:after{
    display: none;
}
.header-link-box{
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}
.header-login-box{
    width: 200px;
    display: inline-block;
    vertical-align: middle;
    text-align: right;
}
.header-advisory{
    margin-right: 10px;
}
.header-login{
    width: 130px;
    line-height: 40px;
    background-color: #f3cd05;
    display: inline-block;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    color: #333;
    transition: all .3s linear;
}
.header-login span{
    font-weight: bold;
}

/* -------------------------------------------------------------- */
.header2.header-style2 .rwd-menu{
    background-color: #01344f;
}
.header2.header-style2 .rwd-menu span{
    background-color: #FFF;
}
li.header-school::before,
li.header-links::before{
    content: '';
    width: 100%;
    height: 60px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
}
li.header-school:hover::before,
li.header-links:hover::before{
    opacity: 1;
    pointer-events: all;
}
.header-menu-title{
    font-size: 18px;
    font-weight: bold;
    position: relative;
    color: #555;
    letter-spacing: 1px;
    transition: all .3s linear;
}
.header-menu-list-box{
    position: absolute;
    top: calc(100% + 20px);
    left: calc(150px / -4);
    width: 150px;
    background-color: #fff;
    box-sizing: border-box;
    padding: 10px 0;
    -webkit-filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
    transition: all .3s linear;
    opacity: 0;
    pointer-events: none;
}

li.header-school:hover .header-menu-list-box,
li.header-links:hover .header-menu-list-box{
    opacity: 1;
    pointer-events: all;
}
.header-menu-list-box::after{
    content: '';
    width: 0;
    height: 0;
    display: block;
    border-bottom: 15px solid #fff;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    position: absolute;
    top: -15px;
    left: calc(50% - 10px);
}
.header-menu-list{
    font-size: 18px;
    font-weight: bold;
    display: block;
    position: relative;
    color: #555;
    letter-spacing: 1px;
    transition: all .3s linear;
    box-sizing: border-box;
    padding: 5px 0;
}


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

.header2{
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.3)
}


/*漢堡樣式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: -15px;
    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;
    background-color: #fff;
}
.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);
  }
}



.header-style1 .header-menu> li.active .header-menu-title,
.header-menu-title:hover,
.header-menu-list:hover{
    color: #41688d;
}
.header-login:hover{
    background-color: #e7c100;
}
.header-top-email-box:hover,
.header-top-phone-box:hover{
    letter-spacing: 0.1em;
    color: #fff;
}
.header-style1 .header-menu> li.active .header-menu-title,
.header-menu-title:hover,
.header-menu-list:hover{
    color: #41688d;
}
.header-login:hover{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}
.header-top-email-box:hover,
.header-top-phone-box:hover{
    letter-spacing: 0.1em;
    color: #fff;
}
/*------------------------------------------*/

@media only screen and (max-width: 1300px){
    .header-style1 .header-box,
    .header-top-all-box{
        width: 1200px;
    }
    .header-style1 .header-logo,
    .header-login-box{
        width: 130px;
    }
    .header-style1 .header-menu-box {
        width: calc(100% - 300px);
    }
    .header-login{
        width: 95px;
        font-size: 14px;
    }
    .header-login img{
        width: 20px;
    }
}
@media only screen and (max-width: 1200px){
    .header-style1 .header-box,
    .header-top-all-box{
        width: 1000px;
    }
    .header-style1 .header-menu> li{
        margin: 0px 10px;
    }
    .header-style1 .header-menu> li:after{
        right: -11px;
    }
    .header-menu-title{
        font-size: 14px;
    }
    .header-login-box{
        width: 110px;
    }
    .header-style1 .header-menu-box {
        width: calc(100% - 240px);
    }
}

@media only screen and (max-width: 1000px){
    .header-style1 .header-box,
    .header-top-all-box{
        width: 95%;
    }
    .header-style1 .header-menu-box {
        width: calc(100% - 290px);
    }
    .rwd-menu{
        display: block;
    }
    .header-style1 .rwd-menu{
        display: block;
    }
    .rwd-header-menu-sytle1 .header-menu{
        width: 200px;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -200px;
        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: #41688d;
        transition: all .3s linear;
    }
   
    .rwd-header-menu-sytle1 .header-menu.active{
        right: 0;
    }
    .rwd-header-menu-sytle1 .header-menu> li{
        width: 100%;
        display: block;
        margin: 0;
        box-sizing: border-box;
        padding: 10px;
        transition: all .3s linear;
    }
    .rwd-header-menu-sytle1 .header-menu> li:last-child{
        margin-bottom: 0;
     }
     .header-menu-title{
        color: #fff;
     }
     .header-style1 .header-menu> li:after,
     .header-style1 .header-menu> li.header-links:after{
        content: '';
        width: 100%;
        height: 1px;
        display: block;
        top: 0;
        right: initial;
        left: 0;
        background-color: #c35e58cc;
     }
     .header-style1 .header-menu> li.header-links:before{
        content: '';
        width: 100%;
        height: 1px;
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        background-color: #c35e58cc;
     }
    .header-style1 .header-menu> li.active {
        background-color: #fff;
    } 
    .header-menu-title:hover {
        color: #fff ;
    }
    div.header-menu-title{
        display: none;
    }
    .header-menu-list-box{
        width: 100%;
        background-color: transparent;
        position: static;
        opacity: 1;
        pointer-events: all;
        -webkit-filter: none;
        filter: none;
        padding: 0;
    }
    .header-menu-list-box::after{
        display: none;
    }

    .header-menu-list-box>li{
        width: 100%;
        display: block;
        margin: 0;
        box-sizing: border-box;
        padding: 10px;
    }
    .header-menu-list-box>li{
        border-bottom: 1px solid #c35e58cc;
    }
    .header-menu-list-box>li:last-child{
        border-bottom: none;
    }
    .header-menu-list{
        font-size: 14px;
        color: #fff;
        padding: 0;
        font-weight: initial;
    }
    .header-style1 .header-menu> li:hover{
        background-color: #fff;
    }
    .header-style1 .header-menu> li:hover .header-menu-title{
        color: #41688d;
    }
}
@media only screen and (max-width: 550px){
    .header-style1 .header-logo{
        width: 120px;
        padding-right: 10px;
    }
    .header-login{
        width: 90px;
        font-size: 12px;
        line-height: 29px;
    }
    .header-login img{
        width: 15px;
    }
    .header-login span{
        vertical-align: middle;
    }
    .header-style1 .header-menu-box {
        width: calc(100% - 265px);
    }
    .rwd-menu {
        width: 25px;
        right: 10px;
        bottom: 23px;
    }
    .header-top-email-box, .header-top-phone-box{
        letter-spacing: 0.03em;
    }
    .header-top-email-box{
        margin-right: 15px;
    }
    .header-top-email-box:hover,
    .header-top-phone-box:hover{
        letter-spacing: 0.06em;
        color: #fff;
    }
}
@media only screen and (max-width: 400px){
    .header-style1 .header-logo{
        width: 110px;
    }
    .header-style1 .header-menu-box {
        width: calc(100% - 225px);
    }
    .header-login-box{
        width: 80px;
    }
    .header-login {
        width: 70px;
        font-size: 12px;
        line-height: 29px;
    }
    .header-login img{
        display: none;
    }
    .rwd-menu{
        bottom: 18px;    
    }
}
@media only screen and (max-height: 400px){
    .rwd-header-menu-sytle1 .header-menu> li,
    .header-menu-list-box>li{
        padding: 5px 0;
    }
    .header-menu-title ,
    .header-menu-list{
        font-size: 12px;
    }
}

