/* 门户页面统一导航栏 */
body.portal-nav-theme header,
body.portal-nav-theme header.is-scrolled {
    height: 68px;
    background: #f7f9fc;
    border-bottom: 1px solid #edf1f6;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

body.portal-nav-theme header:hover {
    background: #ffffff;
    border-bottom-color: #edf1f6;
}

body.portal-nav-theme .navbar {
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr) 188px;
    align-items: center;
    width: 100%;
    min-height: 68px;
    padding: 0;
}

body.portal-nav-theme .logo {
    display: flex;
    align-items: center;
    width: 136px;
    flex-shrink: 0;
    color: #0071ef;
    font-size: 24px;
    line-height: 1;
    text-shadow: none;
    white-space: nowrap;
}

body.portal-nav-theme .logo i {
    margin-right: 10px;
    background: none;
    color: #0071ef;
    font-size: 27px;
    -webkit-text-fill-color: currentColor;
}

body.portal-nav-theme .nav-links {
    display: flex;
    flex: 1;
    justify-content: center !important;
    min-width: 0;
    margin: 0 !important;
    gap: 12px !important;
}

body.portal-nav-theme .nav-links li {
    flex-shrink: 0;
    margin: 0 !important;
}

body.portal-nav-theme .nav-links a {
    display: flex;
    align-items: center;
    height: 68px !important;
    padding: 0 12px !important;
    color: #272f37;
    background: transparent;
    border-radius: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    word-break: keep-all;
}

body.portal-nav-theme .nav-links a:hover,
body.portal-nav-theme .nav-links a.active {
    color: #0071ef;
    background: transparent;
}

body.portal-nav-theme .nav-links a::after {
    bottom: 0;
    height: 2px;
    background: #0071ef;
    box-shadow: none;
}

body.portal-nav-theme .nav-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 188px;
    gap: 0;
}

body.portal-nav-theme .nav-buttons .btn {
    min-width: 0;
    height: 40px;
    padding: 0;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 400;
    line-height: 40px;
}

body.portal-nav-theme .nav-buttons .btn-outline,
body.portal-nav-theme #login-btn,
body.portal-nav-theme #loginBtn {
    width: 58px;
    margin-right: 30px;
    color: #272f37;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.portal-nav-theme .nav-buttons .btn-outline:hover,
body.portal-nav-theme #login-btn:hover,
body.portal-nav-theme #loginBtn:hover {
    color: #0071ef;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
}

body.portal-nav-theme .nav-buttons .btn-primary,
body.portal-nav-theme #register-btn,
body.portal-nav-theme #registerBtn,
body.portal-nav-theme #console-btn {
    width: 100px;
    margin: 0;
    color: #fff;
    background: #0071ef;
    border: 0;
    box-shadow: none;
}

body.portal-nav-theme .nav-buttons .btn-primary:hover,
body.portal-nav-theme #register-btn:hover,
body.portal-nav-theme #registerBtn:hover,
body.portal-nav-theme #console-btn:hover {
    color: #fff;
    background: #0065d7;
    border: 0;
    box-shadow: none;
    transform: none;
}

@media (max-width: 850px) {
    body.portal-nav-theme .navbar {
        display: flex;
    }

    body.portal-nav-theme .nav-links {
        display: none !important;
        margin: 0 !important;
        gap: 2px !important;
        background: #f7f9fc;
        border-top-color: #edf1f6;
    }

    body.portal-nav-theme .nav-links.active {
        display: flex !important;
    }

    body.portal-nav-theme .nav-links a {
        height: auto !important;
        padding: 13px 14px !important;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    body.portal-nav-theme .nav-buttons .btn {
        height: 34px;
        line-height: 34px;
    }

    body.portal-nav-theme .nav-buttons .btn-outline,
    body.portal-nav-theme #login-btn,
    body.portal-nav-theme #loginBtn {
        width: 42px;
        margin-right: 5px;
    }

    body.portal-nav-theme .nav-buttons .btn-primary,
    body.portal-nav-theme #register-btn,
    body.portal-nav-theme #registerBtn,
    body.portal-nav-theme #console-btn {
        width: 74px;
    }
}
