/* =========================
   移动端导航改造
========================= */
.mobile-only,
.mobile-nav {
    display: none;
}
.pc-only {
    display: flex;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: block;
    }
    .mobile-only {
        display: flex;
    }
    .pc-only {
        display: none;
    }

    .header-box {
        position: relative;
        justify-content: space-between;
        padding: 0 10px;
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 24px;
        color: #000;
        cursor: pointer;
        order: 1;
    }

    .mobile-tel {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        color: #000;
        order: 3;
    }

    .mobile-tel svg {
        width: 24px;
        height: 24px;
    }

    /* 隐藏原下拉式导航 */
    .nav-list {
        display: none !important;
    }

    /* 抽屉导航 */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s;
    }

    .mobile-nav.open {
        visibility: visible;
        opacity: 1;
    }

    .mobile-nav-mask {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
    }

    .mobile-nav-content {
        position: absolute;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100%;
        background: #fff;
        padding: 60px 20px 20px;
        transition: left 0.3s;
        overflow-y: auto;
    }

    .mobile-nav.open .mobile-nav-content {
        left: 0;
    }

    .mobile-nav-close {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 32px;
        line-height: 1;
        cursor: pointer;
        color: #333;
    }

    .mobile-nav-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-content li {
        border-bottom: 1px solid #eee;
    }

    .mobile-nav-content li a {
        display: block;
        padding: 15px 0;
        color: #000;
        text-decoration: none;
        font-size: 16px;
    }

    .mobile-nav-content li.active a,
    .mobile-nav-content li a.select {
        color: #4caf50;
    }
}
