/* 全局样式 */
.box {
    width: 100%;
    margin: 0 auto;
}

/* header 顶部导航*/
header {
    /* background: #fff; */
    transition: .4s all;
    -webkit-transition: .4s all;

}

.header-top {
    width: 100%;
    background: #0c4da2;
}

.header-top p {
    line-height: 50px;
    color: #fff;
    font-size: 14px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: .4s all;
    -webkit-transition: .4s all;
    position: fixed;
    z-index: 999;

}
.header a {
    color: #fff;
}
.header:hover{
    background-color: #F2F2F2;
}
.header:hover a{
    color: #000!important;
}
.header-scroll {
    transition: .4s all;
    -webkit-transition: .4s all;
    background-color: #0579f2;
}

.logo {
    position: relative;
    height: 65px;
    padding-left: 10px;
    z-index: 9;
}

.logo img {
    display: block;
    width: 150px;
}

@media screen and (max-width: 768px) {
    .logo img {
        display: block;
        /*width: 100px;*/
        /*height: 50px;*/
    }
}

.user-login {
    padding-right: 20px;
}

.user-login ul {
    list-style: none;
    display: inline;
}

.user-login ul li {
    display: inline-block;
    padding: 0px 10px 0px 10px;
    color: rgb(0, 0, 0);
    font-size: 14px;
    text-align: center;
    line-height: 80px;
    font-weight: 300;
}

.m-menu-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 13, 25, .9);
    display: none;
    z-index: 9;
}

.menu-wrap,
.menu-list {
    height: 100%;
}

.menu-list {
    float: left;
}

.menu-list>li {
    position: relative;
    float: left;
    margin: 0px 40px;
    text-align: center;
    display: block;
}

/* 二级菜单的高低 */
.menu-list>li:hover .menu-sub {
    height: 60px;
}

.menu-list>li>ul li a {
    float: none;
    display: block;
    padding: 0;
    color: #666;
    font-size: 14px;
    text-align: center;
    line-height: 42px;
    opacity: 1;
}

.menu-list>li>ul li a:hover {
    color: #000;
}

.menu-list>li>a,
.menu-list>li>i {
    display: inline-block;
    line-height: 80px;
    /*color: #fff;*/
    font-size: 16px;
    font-weight: 300;
}

.menu-list>li>i {
    font-size: 18px;
    transition: all .3s;
    display: none;
}

.menu-list>li>a:before {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(to right, #2FA5D6, #8EBD4A);
    display: block;
    transform: scale(0);
    transition: all 0.5s ease-out 0s;
}

.menu-list>li>a:hover::before {
    transform: scale(1);
}


.menu-list>li.active>a,
.menu-list>li:hover>a {
    color: #fff;
}

/* .menu-list>li.active>a:before, */
.menu-list>li:hover>a:before {
    display: block;
}

.menu-wrap .m-menu-btn {
    display: block;
}

.menu-wrap .m-menu-btn,
.menu-box .m-menu-btn-phone {
    position: absolute;
    right: 15px;
    top: 18px;
    width: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 100;
    display: none;
    transition: 0.4s all;
    -webkit-transition: 0.4s all;
}

.menu-wrap .m-menu-btn span,
.menu-box .m-menu-btn-phone span {
    display: block;
    width: 100%;
    height: 1px;
    background: rgb(255, 255, 255);
    margin-bottom: 10px;
    transition: 0.3s all;
    -webkit-transition: 0.3s all;
}

.menu-box .m-menu-btn-phone span {
    margin-bottom: 15px;
}

.menu-wrap .m-menu-btn span:last-child,
.menu-box .m-menu-btn-phone span:last-child {
    margin: 0;
}

.menu-wrap .m-menu-btn span:first-child,
.menu-wrap .m-menu-btn span:last-child,
.menu-box .m-menu-btn-phone span:first-child,
.menu-box .m-menu-btn-phone span:last-child {
    transform-origin: 100% 50%;
    -webkit-transform-origin: 100% 50%;
    transform: rotate(0);
    -webkit-transform: rotate(0);
}

.menu-wrap.active .m-menu-btn span:first-child,
.menu-box.active .m-menu-btn-phone span:first-child {
    transform: rotate(-43deg);
    -webkit-transform: rotate(-43deg);
}

.menu-wrap.active .m-menu-btn span:last-child,
.menu-box.active .m-menu-btn-phone span:last-child {
    transform: rotate(43deg);
    -webkit-transform: rotate(43deg);
}

.menu-wrap .m-menu-btn span:nth-child(2) {
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

.menu-wrap.active .m-menu-btn span:nth-child(2) {
    transform: translateX(80px);
    -webkit-transform: translateX(80px);
    opacity: 0;
}

.menu-box .m-menu-btn-phone {
    position: absolute;
    top: 20px;
    left: 0;
    display: none;
}

/*二级标题*/
.menu-sub {
    position: fixed;
    top: 80px;
    left: 0px;
    right: 0px;
    width: 100%;
    margin: 0px auto;
    background: rgba(220, 220, 220, 0.95);
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    -ms-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s;
    z-index: 9;
    display: flex;
    align-items: center;
}

.menu-sub ul {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;

}

.menu-sub li {
    font-size: 14px;
    line-height: 34px;
    padding: 0px 5px;
    margin: 0px 10px;
    /* text-indent: 10px; */
    /* list-style: none; */

}

.menu-sub li:hover div:after {
    content: "";
    border-bottom: 2px solid;
    border-image: linear-gradient(to right, #2FA5D6, #8EBD4A) 2 2 2 2;
    display: block;
    transform: scale(0);
    transition: all 0.5s ease-out 0s;
}

.menu-sub li a:hover div:after {
    transform: scale(1);
}

.menu-sub li a i {
    margin-right: 0;
    line-height: 36px;
    font-size: 16px;
    float: right;
    color: #0C4DA2;
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    -ms-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s;
    opacity: 0;
}

.menu-sub li a:hover i {
    margin-right: 20px;
    color: #fff;
    opacity: 1;
}

.menu-sub-item {
    text-align: center;
    height: 0;
    overflow: hidden;
    line-height: 30px;
    font-size: 14px;
    padding-left: -10px;
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    -ms-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s;
}

.menu-list>li:hover .menu-sub-item {
    height: 36px;
}

@media screen and (max-width: 768px) {
    .box {
        width: 100%;
    }

    .header {
        height: 60px;
        line-height: 60px;
        -webkit-transition: .4s all;
    }

    .header-top {
        display: none;
    }

    /*.logo {*/
    /*    height: 40px;*/
    /*}*/

    .user-login {
        padding-right: 50px;
    }

    .user-login ul li {
        padding: 0px 2px 0px 2px;
    }

    .menu-wrap {
        width: auto;
        padding-right: 0;
    }

    .menu-wrap.active {
        left: 0;
        right: 0;
    }

    .menu-box .m-menu-btn-phone span {
        margin-bottom: 19px;
    }

    .menu-box.active .m-menu-btn-phone {
        left: initial;
        right: 15px;
        display: block;
    }

    .menu-box {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100%;
        width: 100%;
        padding-top: 0;
        background: #fff;
        transition: .6s all;
        -webkit-transition: .6s all;
        overflow: auto;
        z-index: 101;
    }

    .menu-list {
        width: 100%;
    }

    .menu-list>li {
        display: block;
        width: 100%;
        float: initial;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .menu-list>li:first-child {
        border-bottom: 1px solid #e7e7e7;
    }

    .menu-list>li>a {
        height: auto;
        border: none;
        font-weight: 300;
        line-height: 58px;
        padding: 0 20px;
        font-size: 18px;
        color: #16436C;
        display: block;
    }

    .menu-list>li>a:before {
        display: none !important;
    }

    .menu-list>li>i {
        margin-right: 20px;
        opacity: 1;
    }

    .menu-list>li>ul {
        position: relative;
        top: initial;
        left: initial;
        margin-left: 0;
        padding: 0;
        transform: initial;
        width: 100%;
        border-top: none;
        display: none;
        -webkit-animation-name: initial;
        animation-name: initial;
    }

    .menu-list>li:hover>ul {
        display: none;
    }

    .menu-list>li.on>ul {
        display: block !important;
    }

    .menu-list>li>i {
        margin-left: 5px;
        font-size: 22px;
        position: absolute;
        top: 0;
        right: 0;
        color: #333;
        line-height: 58px;
        text-align: center;
        display: block;
    }

    .menu-list>li:hover>a {
        color: #333;
    }

    .menu-list>li>a::before {
        display: none;
    }

    .menu-wrap.active .m-menu-mask,
    .menu-wrap .m-menu-btn {
        display: block;
    }

    .menu-box.active {
        left: 0;
    }

    .menu-sub {
        position: relative;
        padding: 0px !important;
        top: initial;
        width: 100%;
        margin-left: 0;
        left: initial;
        transition: initial;
        background: #fff;
    }

    .menu-list>li:hover .menu-sub {
        padding: 15px;
        height: auto;
    }

    .menu-sub ul {
        flex-direction: column;
        background: #f1f1f1;
    }

    .menu-sub li {
        text-align: left;
        padding-left: 15px;
    }

    .menu-sub-item,
    .menu-sub li a {
        color: #333;
    }

    .menu-sub li a i {
        display: none;
    }

    .menu-list>li.on .menu-sub {
        max-height: 500px;
        visibility: visible;
        z-index: 9999;
        transition: all .5s ease-out;
    }

    .menu-list>li:hover .menu-sub {
        padding: 0;
    }

    .menu-list>li:hover .menu-sub-item {
        height: 0;
    }

    .menu-list>li .icon_on+.menu-sub {
        padding: 0 15px;
    }

    .menu-list>li .icon_on+.menu-sub .menu-sub-item {
        height: 58px;
        font-size: 16px;
        line-height: 58px;
    }
}