/* ESYSNCD shared navbar - routes follow templates/includes/navbar.html exactly */
:root {
    --nav-bg: #09111f;
    --nav-bg-2: #0d1830;
    --nav-line: rgba(255, 255, 255, 0.12);
    --nav-text: rgba(255, 255, 255, 0.92);
    --nav-muted: rgba(255, 255, 255, 0.68);
    --nav-blue: #2f6df6;
    --nav-blue-2: #5a97ff;
}

html,
body {
    margin: 0 !important;
}

body {
    padding-top: 0 !important;
}

.shared-navbar,
.shared-navbar * {
    box-sizing: border-box;
}

.shared-navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 16px;
    margin: 0 !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(47, 109, 246, 0.22), transparent 28%),
        linear-gradient(180deg, var(--nav-bg-2), var(--nav-bg));
    border-bottom: 1px solid var(--nav-line);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.shared-navbar .logo {
    flex: 0 0 82px;
    width: 82px;
    min-width: 82px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.shared-navbar .logo a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 82px;
    height: 34px;
    line-height: 0;
    text-decoration: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.shared-navbar .logo img {
    display: block;
    width: auto;
    max-width: 82px;
    height: 24px;
    max-height: 24px;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

.shared-navbar .menu-toggle {
    display: none;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

.shared-navbar .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.shared-navbar .nav-links li {
    flex: 0 0 auto;
    margin: 0;
}

.shared-navbar .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 11px;
    border-radius: 13px;
    color: var(--nav-text);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.shared-navbar .nav-links a:hover,
.shared-navbar .nav-links a.active {
    color: #fff;
    background: rgba(47, 109, 246, 0.18);
    box-shadow: inset 0 0 0 1px rgba(92, 146, 255, 0.24);
}

.shared-navbar .nav-links a:hover {
    transform: translateY(-1px);
}

.shared-navbar .lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    margin-left: auto !important;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.shared-navbar .lang-btn {
    height: 29px;
    min-width: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.shared-navbar .lang-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--nav-blue), var(--nav-blue-2));
    box-shadow: 0 8px 18px rgba(47, 109, 246, 0.32);
}

.shared-navbar .user-info {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
    padding: 0;
}

.shared-navbar .account-name,
.shared-navbar .points-badge {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shared-navbar .account-name {
    max-width: 168px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shared-navbar .points-badge {
    max-width: 124px;
}

@media (max-width: 1160px) {
    .shared-navbar {
        gap: 8px;
        padding-inline: 12px;
    }

    .shared-navbar .nav-links {
        gap: 4px;
    }

    .shared-navbar .nav-links a {
        padding-inline: 8px;
        font-size: 13px;
    }

    .shared-navbar .account-name,
    .shared-navbar .points-badge {
        height: 32px;
        padding-inline: 8px;
        font-size: 12px;
    }
}

@media (max-width: 980px) {
    .shared-navbar {
        flex-wrap: wrap;
    }

    .shared-navbar .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .shared-navbar .nav-links {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        order: 10;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .shared-navbar .nav-links.open {
        display: flex;
    }

    .shared-navbar .lang-switcher {
        margin-left: 0 !important;
    }

    .shared-navbar .user-info {
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .shared-navbar {
        padding: 8px 10px;
    }

    .shared-navbar .logo,
    .shared-navbar .logo a {
        width: 76px;
        min-width: 76px;
        flex-basis: 76px;
    }

    .shared-navbar .logo img {
        max-width: 76px;
        height: 22px;
    }

    .shared-navbar .nav-links a,
    .shared-navbar .lang-btn,
    .shared-navbar .account-name,
    .shared-navbar .points-badge {
        font-size: 12px;
    }
}


/* logo-only update: 使用 ESYSNCD 图片，不再显示 BMW logo */
.shared-navbar .logo img {
    display: block;
    width: auto;
    max-width: 96px;
    height: 32px;
    max-height: 32px;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* 顶部注销选项，只显示“注销”两个字 */
.shared-navbar .logout-item {
    flex: 0 0 auto;
    margin: 0;
}

.shared-navbar .logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shared-navbar .logout-link:hover {
    color: #fff !important;
    background: rgba(220, 38, 38, 0.22);
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.30);
}
