.header{
    background-color: #393D49;
    width: 100%;
    height: 60px;
    position: fixed;
    left: 0;
    top: 0;
}
.header .logo{
    height: 60px;
    float: left;
    text-align: center;
}
.header .logo a{
    font-size: 16px;
    color: #FFF;
    line-height: 60px;
}

.header .nav{
    float: left;
    /* 默认居左，可调整为居右模式 */
    /* float: right;  */
}
.mobile-icon{
    display: none;
}

@media screen and (max-width: 1024px) {
    .header .logo{
        text-align: left;
        margin-left: 10px;
    }
    .header .nav{
        display: none;
        width: 100%;
        position: absolute;
        z-index: 99;
        top: 61px; /* 如果需要缝隙，可将值调至61px */
        margin-left: -15px;
    }
    .layui-nav{
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    .header .nav li{
        width: 100%;
        text-align: center;
    }
    .mobile-icon{
        display: block;
        color: #FFF;
        font-size: 20px;
        float: right;
        margin-top: 15px;
        margin-right: 10px;
    }
    .layui-nav .layui-this:after,
    .layui-nav-bar,
    .layui-nav-tree .layui-nav-itemed:after {
        height: 1px;
        background-color: #5FB878;
    }
}