﻿/*--------------header-style1-----------------*/
.header-style1{
    position: fixed;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    background-color: #FFF;
    border-bottom: 1px solid rgba(144,195,31,1);
}
.header-style1 .header-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;

}
.header-style1 .header-logo{
    display: block;
    float: left;
    position: relative;
    padding: 2px 0;
}
.header-style1 .header-menu{
    display: block;
    float: right;
    font-size: 0;
}
.header-style1 .header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    font-size: 16px;
    transition: all .3s linear;
}
.header-style1 .header-menu-title{
    height: 73px;
    line-height: 73px;
    display: block;
    letter-spacing: 2px;
    padding:0 15px;
    transition: all .3s linear;
    position: relative;
    z-index: 2;
}
.header-link-box{
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

.mask{
    width: 100%;
    height: 100vh;
    display: block;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3;
    transition-delay: .3s;
}

.mask.active{
    transition-delay: 0s;
    opacity: 1;
    pointer-events: auto;
}
.header-logo a{
    width: 111px;
    display: block;
    transition: all .3s linear;
}
.header-menu-title:hover + .header-menu-s-list-box,
.header-menu-s-list-box:hover{
    transform: scale(1,1);
    pointer-events: auto;
}
.header-menu-s-list-box{
    position: absolute;
    width: 100%;
    text-align: center;
    transition: all .3s linear;
    transform: scale(1,0);
    transform-origin: top;
    pointer-events: none;
    background-color: rgba(144,195,31,0.8);
}
.header-menu-s-list{
    height: 35px;
    line-height: 35px;
    letter-spacing: 2px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all .3s linear;
    color: #FFF;
}
.header-menu-s-list:hover{
    
    color: #0ba39b;
}

/*----------------------------------*/
.rwd-menu{
    width: 59px;
    position: absolute;
    right: 3%;
    top: 45px;
    z-index: 99999;
    display: none;
}
.rwd-menu span{
    width: 40px;
    display: block;
    margin: 0 auto;
    height: 4px;
    background-color: #0ba39b;
    position: relative;
}

.rwd-menu span:nth-child(even){
    margin: 8px auto;
    transition: all .4s linear;
}
.rwd-menu span:nth-child(1){
    transform: scale(1);
    transform-origin: left;
    transition: all .4s linear;
}
.rwd-menu span:nth-child(3){
    transform: scale(1);
    transform-origin: right;
    transition: all .4s linear;
}
.rwd-menu span:nth-child(4){
    top: -23px;
    transform:  scale(0) rotate(-45deg);
}

.rwd-menu.active span:nth-child(odd){
    transform: scale(0);
    transition: all .4s linear;
    transition-delay: 0s;
}

.rwd-menu.active span:nth-child(2){
    transform: rotate(45deg);
    transition: all .4s linear;
}
.rwd-menu.active span:nth-child(4){
    transform: scaleX(1) rotate(-45deg);
    transition-delay: 0.3s;
}




@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 .rwd-menu{
        display: block;
    }
    .header-style1 .header-logo{
        float: none;
    }
    .header-style1 .rwd-menu{
        top: 18px;
    }
    .header-style1 .header-menu{
        width: 100%;
        float: none;
        position: absolute;
        left: 0;
        z-index: 9;
        pointer-events: none;
    }
     .header-style1 .header-menu.active{
        pointer-events: auto;
     }

    .header-style1  .header-menu li{
        width: 100%;
        display: block;
    }

    .header-style1  .header-style1 .header-menu.open{
        left: 0;
    }
    .header-style1  .header-menu-list-box{
        transform: scale(1, 1);
        width: 300px;
        left: -300px;
        transition: all .3s linear;
        position: fixed;
        top: 0;
        height: 100vh;
        background-color: #000;
        z-index: 9;
    }
    .header-style1  .header-menu-list-box.open{
        left: 0;
    }
    .header-style1  .header-menu-list-box li{
        background-color: transparent;
    }
    .header-style1  .rwd-menu-list-back{
        display: block;
        color: #FFF;
        text-align: right;
        padding: 20px 0;
        border-bottom: 1px solid #EEE;
        width: 100%;
        box-sizing: border-box;
        padding-right: 20px;
    }
    .header-style1  .header-menu li{
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #90c31f;
    }
    .header-style1 .header-menu-list{
        padding: 10px 0;
        padding-left: 10px;
        box-sizing: border-box;
        border-bottom: 1px solid #FFF;
    }
    .header-menu.active li:nth-child(1){
        transition-delay: 0s;
    }
    .header-menu.active li:nth-child(2){
        transition-delay: .2s;
    }
    .header-menu.active li:nth-child(3){
        transition-delay: .4s;
    }
    .header-menu.active li:nth-child(4){
        transition-delay: .6s;
    }
    .header-menu.active li:nth-child(5){
        transition-delay: .8s;
    }
    .header-menu.active li:nth-child(6){
        transition-delay: 1s;
    }

    .header-menu li:nth-child(1){
        transition-delay: 1s;
    }
    .header-menu li:nth-child(2){
        transition-delay: .8s;
    }
    .header-menu li:nth-child(3){
        transition-delay: .6s;
    }
    .header-menu li:nth-child(4){
        transition-delay: .4s;
    }
    .header-menu li:nth-child(5){
        transition-delay: .2s;
    }
    .header-menue li:nth-child(6){
        transition-delay: 0s;
    }
}