 

.ggz-app {
    --ggz-bg: #f8f9fe;
    --ggz-panel: #ffffff;
    --ggz-text: #242158;
    --ggz-muted: #85839f;
    --ggz-line: #e5e8f2;
    --ggz-primary: #4b45ff;
    --ggz-primary-soft: #f4f2ff;
    --ggz-green: #1fbe65;
    --ggz-orange: #ffad3d;
    --ggz-blue: #3794f6;
    --ggz-sidebar-width: 286px;
    min-height: 100vh;
    color: #28235A;
    background: #FAFBFF;
    font-family: Inter, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
}

.ggz-body {
    margin: 0;
    min-width: 320px;
    background: #f8f9fe;
}

.ggz-app *,
.ggz-app *::before,
.ggz-app *::after {
    box-sizing: border-box;
}

.ggz-app button,
.ggz-app input {
    font: inherit;
}

.ggz-app button,
.ggz-app a {
    -webkit-tap-highlight-color: transparent;
}

.ggz-app a {
    color: inherit;
    text-decoration: none;
}

/* ========== GGZ 公共区域：左侧菜单 ========== */
.ggz-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 3000;
    display: flex;
    width: var(--ggz-sidebar-width);
    padding: 26px;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.ggz-sidebar-top {
    min-height: 0;
}

.ggz-logo {
    display: inline-flex;
    height: 45px;
    margin-bottom: 30px;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.ggz-logo-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: var(--ggz-primary);
    box-shadow: 9px 0 0 -5px #1c8ff6;
}

.ggz-logo-text {
    color: #1f2d62;
}

.ggz-nav {
    display: grid;
    gap: 6px;
}

.ggz-nav-item {
    display: flex;
    min-height: 46px;
    padding: 0 14px;
    align-items: center;
    gap: 13px;
    border-radius: 8px;
    color: #85839e;
    font-size: 14px;
    font-weight: 650;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.ggz-nav-item:hover {
    color: var(--ggz-primary);
    background: #f8f7ff;
    transform: translateX(2px);
}

.ggz-nav-item.ggz-active {
    color: var(--ggz-primary);
    background: var(--ggz-primary-soft);
}

.ggz-nav-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
}

.ggz-nav-icon svg,
.ggz-topbar svg {
    width: 100%;
    height: 100%;
    fill: none;
    /* stroke: #718EBF; */
    /* stroke-width: 1.8; */
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ggz-nav-count {
    display: grid;
    min-width: 26px;
    height: 26px;
    margin-left: auto;
    place-items: center;
    border-radius: 4px;
    color: var(--ggz-primary);
    background: #f4f2ff;
    font-size: 12px;
}

.ggz-sidebar-bottom {
    display: grid;
    gap: 18px;
}

.ggz-balance-card,
.ggz-referral-card {
    border: 1px solid #e0e1e9;
    border-radius: 8px;
    background: #fff;
}

.ggz-balance-card {
    display: grid;
    padding: 17px 15px 14px;
    gap: 7px;
}

.ggz-balance-label {
    color: #56546d;
    font-size: 12px;
}

.ggz-balance-card strong {
    font-size: 23px;
}

.ggz-balance-card small {
    color: #5f5d73;
    font-size: 11px;
}

.ggz-balance-button {
    display: grid;
    min-height: 36px;
    margin-top: 7px;
    place-items: center;
    border-radius: 4px;
    color: #fff !important;
    background: var(--ggz-primary);
    font-size: 11px;
    font-weight: 700;
}

.ggz-referral-card {
    padding: 17px 15px 12px;
    background: #f7f5ff;
}

.ggz-referral-card > strong {
    font-size: 18px;
}

.ggz-referral-card p {
    margin: 9px 0 12px;
    color: #55536c;
    font-size: 11px;
    line-height: 1.5;
}

.ggz-referral-row {
    display: flex;
    align-items: end;
    gap: 10px;
}

.ggz-referral-row a {
    display: grid;
    min-height: 36px;
    flex: 1;
    place-items: center;
    border-radius: 4px;
    color: var(--ggz-primary);
    background: #fff;
    box-shadow: 0 0 0 1px #e8e6f0;
    font-size: 11px;
}

.ggz-gift-icon {
    font-size: 35px;
    line-height: 1;
}

.ggz-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 2990;
    display: none;
    padding: 0;
    border: 0;
    background: rgba(24, 24, 51, .38);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

/* ========== GGZ 公共区域：页面主体 ========== */
.ggz-main {
    min-height: 100vh;
    margin-left: var(--ggz-sidebar-width);
    padding: 24px 26px 36px 42px;
}

.ggz-page-content {
    min-width: 0;
}

/* ========== GGZ 公共区域：顶部导航 ========== */
.ggz-topbar {
    display: flex;
    height: 48px;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.ggz-menu-button {
    display: grid;
    width: 36px;
    height: 36px;
    margin-right: auto;
    padding: 8px 6px;
    border: 0;
    place-content: center;
    gap: 5px;
    cursor: pointer;
    color: #1F1F39;
    background: transparent;
}

.ggz-menu-button span {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.ggz-search {
    display: flex;
    width: 268px;
    height: 40px;
    padding: 0 15px;
    align-items: center;
    gap: 9px;
    border: 1px solid #EAE9EE;
    border-radius: 24px;
    color: #8e8ba7;
    background: #fff;
}

.ggz-search svg {
    width: 18px;
    flex: 0 0 auto;
}

.ggz-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #718EBF;
    background: transparent;
    font-size: 12px;
}

.ggz-search input::placeholder {
    color: #8c89a7;
}

.ggz-profile-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ggz-notification,
.ggz-profile-arrow {
    position: relative;
    display: grid;
    border: 0;
    place-items: center;
    color: #7d7a98;
    background: transparent;
}

.ggz-notification {
    width: 35px;
    height: 35px;
}

.ggz-notification svg {
    width: 23px;
}

.ggz-notification span {
    position: absolute;
    top: 1px;
    right: 0;
    display: grid;
    width: 14px;
    height: 14px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--ggz-primary);
    font-size: 9px;
}

.ggz-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: #211f45;
    font-size: 12px;
    font-weight: 800;
}

.ggz-profile-copy {
    display: grid;
    min-width: 108px;
    gap: 3px;
}

.ggz-profile-copy strong {
    font-size: 14px;
}

.ggz-profile-copy span {
    color: #85839e;
    font-size: 11px;
}

.ggz-profile-arrow {
    width: 26px;
    height: 26px;
}

.ggz-profile-arrow svg {
    width: 18px;
}

/* ========== GGZ 响应式 ========== */
@media (max-width: 1180px) {
    .ggz-main {
        padding-right: 18px;
        padding-left: 24px;
    }
}

@media (max-width: 860px) {
    .ggz-app {
        --ggz-sidebar-width: 80%;
    }

    .ggz-sidebar {
        transform: translateX(-105%);
        box-shadow: 20px 0 50px rgba(31, 29, 71, .15);
    }

    .ggz-app.ggz-sidebar-open .ggz-sidebar {
        transform: translateX(0);
    }

    .ggz-sidebar-overlay {
        display: block;
    }

    .ggz-app.ggz-sidebar-open .ggz-sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    .ggz-main {
        margin-left: 0;
        padding-left: 20px;
    }
}

@media (max-width: 600px) {
    .ggz-main {
        padding: 13px 20px 20px;
    }

    .ggz-topbar {
        display: block;
        height: auto;
    }

    .ggz-menu-button,
    .ggz-profile-area {
        display: none;
    }

    .ggz-search {
        width: 100%;
        height: 42px;
        padding: 0 15px;
        background: #F5F7FA;
    }

    .ggz-search input {
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .ggz-main {
        padding-right: 16px;
        padding-left: 16px;
    }
}
@media (max-width: 860px) {
    .ggz-sidebar {
        box-shadow: none;
    }

    .ggz-app.ggz-sidebar-open .ggz-sidebar {
        box-shadow: 20px 0 50px rgba(31, 29, 71, .15);
    }
}