:root {
    --official-route-nav-height: 54px;
    --official-route-nav-expanded-height: 54px;
}

body.has-official-route-nav {
    padding-top: var(--official-route-nav-height);
    transition: padding-top 0.22s ease;
}

.official-route-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--official-route-nav-height);
    padding: 0 22px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
    box-sizing: border-box;
    color: #0f172a;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    transition: transform 0.22s ease, min-height 0.22s ease, padding 0.22s ease, box-shadow 0.22s ease;
}

.official-route-brand {
    flex: 0 0 auto;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.official-route-brand:hover,
.official-route-brand:focus {
    color: #0b74d1;
    text-decoration: none;
}

.official-route-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.22s ease;
}

.official-route-links::-webkit-scrollbar {
    display: none;
}

.official-route-links a {
    flex: 0 0 auto;
    color: #475569;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.official-route-links a:hover,
.official-route-links a:focus,
.official-route-links a.is-active {
    color: #0b74d1;
    background: #eff6ff;
    text-decoration: none;
}

.official-route-links .official-route-user {
    color: #fff;
    background: #1e9af2;
}

.official-route-links .official-route-user:hover,
.official-route-links .official-route-user:focus {
    color: #fff;
    background: #087fd4;
}

[data-old-global-nav="true"] {
    display: none !important;
}

@media (max-width: 760px) {
    :root {
        --official-route-nav-height: var(--official-route-nav-expanded-height);
        --official-route-nav-expanded-height: 98px;
    }

    body.has-official-route-nav.official-route-nav-hidden {
        --official-route-nav-height: 0px;
    }

    .official-route-nav {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 10px 14px;
        overflow: hidden;
    }

    .official-route-links {
        width: 100%;
        justify-content: flex-start;
        max-height: 36px;
    }

    body.official-route-nav-hidden .official-route-nav {
        pointer-events: none;
        transform: translateY(-100%);
        box-shadow: none;
    }

    body.official-route-nav-hidden .official-route-links {
        pointer-events: none;
    }
}
