/**
 * 即刻客商店 - 前台头部（与 nav_hub 同款结构/样式）
 */

.nh-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 1200;
    overflow: visible;
}
.nh-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    box-sizing: border-box;
    gap: 12px;
    overflow: visible;
}
.nh-header-inner .nh-header-logo {
    flex-shrink: 0;
    margin-right: 24px;
}
.nh-header-inner .nh-header-nav {
    display: flex !important;
    align-items: center;
    gap: 20px;
    margin-left: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nh-header-inner .nh-header-nav::-webkit-scrollbar {
    display: none;
}
.nh-header-nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nh-header-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex: 0 0 auto;
    flex-shrink: 0;
    position: relative;
    z-index: 40;
    pointer-events: auto;
    background: #ffffff;
    min-width: max-content;
    padding-left: 8px;
    box-shadow: -12px 0 12px -8px #ffffff;
}
.nh-header-inner > .nh-header-nav {
    position: relative;
    z-index: 1;
}
.nh-header-inner > .nh-header-nav-right {
    z-index: 40;
    flex-shrink: 0;
    overflow: visible;
}
.nh-header-nav > .nh-header-nav-right {
    position: sticky;
    right: 0;
    z-index: 40;
    margin-left: auto;
    flex-shrink: 0;
    background: #ffffff;
    pointer-events: auto;
    box-shadow: -12px 0 12px -8px #ffffff;
}
.nh-header-nav > .nh-header-nav-right .nh-header-link {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.15);
}
.nh-header-nav-right .nh-header-link,
.nh-header-nav-right .nh-header-user,
.nh-header-nav-right summary.nh-header-link {
    position: relative;
    z-index: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.15);
}
.nh-header-auth-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}
.nh-header-logo {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
}
.nh-header-logo:hover {
    color: #2563eb;
}
.nh-header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nh-header-nav-sep {
    width: 1px;
    height: 14px;
    background: #e2e8f0;
    margin: 0 4px;
    flex-shrink: 0;
}
.nh-header-link {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}
.nh-header-link:hover {
    color: #2563eb;
}
.nh-header-link.is-active {
    color: #2563eb;
    font-weight: 600;
}
.nh-header-link-reg {
    padding: 6px 14px;
    background: #2563eb;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 500;
}
.nh-header-link-reg:hover {
    background: #1d4ed8;
    color: #ffffff !important;
}
.nh-header-user {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
    margin-right: 0;
    padding: 4px 2px;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nh-account-desktop-menu {
    display: none;
    position: relative;
    overflow: visible;
}
.nh-account-desktop-menu:not([open]) > .nh-account-menu,
.nh-account-mobile:not([open]) > .nh-account-menu {
    display: none !important;
}
.nh-account-desktop-menu summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.nh-account-desktop-menu summary::-webkit-details-marker {
    display: none;
}
.nh-account-desktop-menu .nh-account-menu {
    position: fixed;
    top: auto;
    right: auto;
    left: auto;
    min-width: 148px;
    z-index: 10050;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    padding: 8px;
}
.nh-account-mobile {
    display: none;
    position: relative;
    overflow: visible;
}
.nh-account-mobile summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.nh-account-mobile summary::-webkit-details-marker {
    display: none;
}
.nh-account-menu {
    position: fixed;
    top: 56px;
    right: 10px;
    min-width: 148px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    padding: 8px;
    z-index: 10050;
}
.nh-account-name {
    font-size: 12px;
    color: #334155;
    padding: 6px 8px 8px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}
.nh-account-menu .nh-header-link {
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
}
.nh-account-menu .nh-header-link:hover {
    background: #f8fafc;
}
@media (min-width: 993px) {
    .nh-account-desktop-menu {
        display: inline-block !important;
    }
    .nh-account-mobile {
        display: none !important;
    }
}
@media (max-width: 992px) {
    .nh-header-inner {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: visible;
        align-items: center;
    }
    .nh-header-inner .nh-header-logo {
        margin-right: 8px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .nh-header-nav {
        gap: 12px !important;
    }
    .nh-header-nav-left,
    .nh-header-nav-right {
        gap: 10px !important;
    }
    .nh-header-link,
    .nh-header-user {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 13px;
    }
    .nh-account-mobile {
        display: block;
        flex-shrink: 0;
    }
    .nh-account-desktop-menu {
        display: none !important;
    }
    .nh-header-nav-sep {
        flex-shrink: 0 !important;
    }
}
