.yifang-header {
    background-color: #fff;
    width: 100%;
    height: 60px;
    box-shadow: 0 0 5px #ddd;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
}

.header-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
}

.yifang-wrap {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 10px;
    box-sizing: content-box;
}

.logo {
    width: 180px;
    margin-right: 40px;
}

.topbar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    height: 100%;
    display: flex;
    align-items: center;
}

.topbar-left li {
    height: 100%;
    margin-right: 25px;
    margin-left: 10px;
    box-sizing: border-box;
}

.topbar-left li a {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 16px;
}

.topbar-left li a:hover {
    color: #007aff;
    border-bottom: 2px solid #007aff;
}

.active2 {
    color: #007aff;
    border-bottom: 2px solid #007aff;
}

.topbar-right a {
    display: inline-block;
    margin: 0 5px;
    width: 50px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 5px;
    transition: all .3s;
}

.topbar-right a:first-child:hover {
    color: #007aff;
}

.topbar-right a:last-child {
    background-color: #007aff;
    color: #fff;

}

.topbar-right a:last-child:hover {
    background-color: #0160D5;
}

.nav-menu {
    width: 25px;
    height: 25px;
    display: none;
    position: relative;
}

.nav-menu img {
    width: 25px;
    transition: all 1s;
    position: absolute;
    top: 0;
    left: 0;
}

.close {
    display: none;
    opacity: 0;
}

/* #region自适应start */
@media screen and (max-width: 1200px) {
    .header-wrapper {
        width: 95%;
    }
}

@media screen and (max-width: 769px) {
    .header-wrapper {
        display: flex;
        justify-content: space-between;
    }

    .topbar {
        width: 0px;
        height: calc(100vh - 60px);
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        justify-content: flex-start;
        align-items: center;
        transition: width .5s;
    }

    .topbar-left {
        width: 80px;
        height: max-content;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
        border-bottom: 1px solid #dedede;
        overflow: hidden;
    }

    .topbar-left li {
        margin: 0;
        height: 50px;
    }

    .topbar-left li a {
        font-size: 15px;
    }

    .topbar-right {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .topbar-right a {
        font-size: 15px;
        margin-top: 10px;
    }

    .nav-menu {
        display: block;
    }

    .active1 {
        width: 160px;
    }
}

@media screen and (max-width: 540px) {
    .header-wrapper {
        width: 93%;
    }
}

@media screen and (max-width: 420px) {
    .header-wrapper {
        width: 90%;
    }
}
/* #endregion自适应end */
