body.site-topbar-lock {
    overflow: hidden;
}

.site-topbar-shell {
    width: min(1280px, calc(100% - 3rem));
    margin: 0 auto;
}

.site-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: rgba(13, 14, 17, 0.6);
    backdrop-filter: blur(12px);
}

.site-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.site-topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.site-topbar__brand-name {
    color: #e3e5f0;
    font-family: "Newsreader", "Noto Serif SC", "Songti SC", serif;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1;
}

.site-topbar__nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.site-topbar__nav a,
.site-topbar__mobile-nav a {
    color: #9b9ea5;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-topbar__nav a.is-active,
.site-topbar__mobile-nav a.is-active {
    color: #d5c0d4;
    font-weight: 700;
}

.site-topbar__nav a:hover,
.site-topbar__mobile-nav a:hover,
.site-topbar__icon-button:hover {
    color: #fff8f8;
}

.site-topbar__icon-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.site-topbar__mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.site-topbar__icon {
    display: block;
    width: 24px;
    height: 24px;
}

.site-topbar__menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-topbar__menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.site-topbar__mobile-menu {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 81;
    width: 16rem;
    height: 100vh;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    background: #171a1f;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s;
}

.site-topbar__mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.site-topbar__mobile-head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.site-topbar__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.site-topbar__mobile-nav a {
    font-size: 1.125rem;
}

.site-topbar__search-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8rem;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-topbar__search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.site-topbar__search-modal {
    width: min(42rem, calc(100% - 2rem));
}

.site-topbar__search-panel {
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: #171a1f;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.site-topbar__search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-topbar__search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #e3e5f0;
    font-size: 1.125rem;
}

.site-topbar__search-input::placeholder {
    color: #9b9ea5;
}

.site-topbar__search-hint {
    margin: 1rem 0 0;
    color: #9b9ea5;
    font-size: 0.875rem;
    text-align: center;
}

@media (min-width: 768px) {
    .site-topbar__brand-name {
        font-size: 1.5rem;
    }

    .site-topbar__nav {
        display: inline-flex;
    }

    .site-topbar__mobile-actions {
        display: none;
    }
}

@media (max-width: 767px) {
    .site-topbar-shell {
        width: min(1280px, calc(100% - 2rem));
    }

    .site-topbar__search-panel {
        padding: 1.25rem;
    }

    .site-topbar__search-form {
        gap: 0.75rem;
    }
}
