/* 顶部栏汉堡菜单 + 侧滑导航 */
.home-topbar {
    justify-content: space-between;
}

.home-topbar__spacer {
    width: 44px;
    flex-shrink: 0;
}

.home-topbar-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.home-topbar-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #d4af37;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.home-topbar-menu-btn.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.home-topbar-menu-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.home-topbar-menu-btn.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.side-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.side-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.side-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1201;
    width: min(86vw, 320px);
    height: 100%;
    background: #202020;
    border-left: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-nav.is-open {
    transform: translateX(0);
}

.side-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px 14px;
    background: #202020;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.side-nav__logo {
    max-height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.side-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.side-nav__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 calc(16px + env(safe-area-inset-bottom, 0px));
}

.side-nav__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: #f0f0f0 !important;
    text-decoration: none !important;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.side-nav__item:active,
.side-nav__item:hover {
    background: rgba(212, 175, 55, 0.08);
}

.side-nav__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.1);
}

.side-nav__icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.side-nav__label {
    flex: 1;
    line-height: 1.3;
}

.side-nav__arrow {
    color: rgba(212, 175, 55, 0.45);
    font-size: 20px !important;
}

.side-nav__item--danger {
    color: #ff8a80 !important;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.side-nav-open {
    overflow: hidden;
}
