/* ═══════════════════════════════════════════════════════════
   bzzx.html — Help Center (sidebar navigation frame)
   Dark theme override
   ═══════════════════════════════════════════════════════════ */

:root {
    --primary: #7367ff;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background: #070b1d;
    color: #f5f7ff;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ─── Sidebar ─── */
#sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0d1530 0%, #090d21 100%);
    border-right: 1px solid rgba(126, 105, 255, 0.18);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    z-index: 1000;
}

.logo {
    padding: 30px 24px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(126, 105, 255, 0.12);
}

.menu-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
}

.group-title {
    padding: 15px 12px 8px;
    font-size: 11px;
    text-transform: uppercase;
    color: #8692bf;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.nav-label {
    padding: 12px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 12px;
    transition: 0.2s;
    font-weight: 500;
    color: #a7b2d6;
}

.nav-label:hover {
    background: rgba(115, 103, 255, 0.08);
    color: var(--primary);
}

.nav-label .arrow {
    margin-left: auto;
    transition: 0.3s;
    width: 14px;
}

.sub-menu {
    display: none;
    list-style: none;
    margin-top: 5px;
}

.open > .sub-menu {
    display: block;
}

.open > .nav-label > .arrow {
    transform: rotate(90deg);
}

.active {
    background: rgba(115, 103, 255, 0.15) !important;
    color: var(--primary) !important;
    font-weight: 700;
}

/* ─── Main content ─── */
#main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #090d21;
}

.top-bar {
    height: 60px;
    background: linear-gradient(180deg, #0d1530, #090d21);
    border-bottom: 1px solid rgba(126, 105, 255, 0.12);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
}

#welcome-view {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(97, 84, 255, 0.12), transparent 28%), linear-gradient(180deg, #090d21, #060914);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.welcome-card {
    max-width: 400px;
    padding: 30px;
    border-radius: 24px;
    background: rgba(20, 28, 58, 0.82);
    border: 1px solid rgba(126, 105, 255, 0.18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.official-link {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
    display: block;
    text-decoration: none;
}

#content-frame {
    width: 100%;
    flex: 1;
    border: none;
    display: none;
}

/* ─── Mobile FAB ─── */
.menu-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 30px;
    height: 60px;
    padding: 0 20px;
    background: var(--primary);
    color: white;
    border-radius: 30px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(115, 103, 255, 0.4);
    z-index: 2000;
    border: none;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
}

.btn-text {
    margin-left: 8px;
    font-weight: 700;
    font-size: 15px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#guide-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 110px;
}

@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        transform: translateX(-100%);
        height: 100%;
    }

    #sidebar.show {
        transform: translateX(0);
    }

    .menu-btn {
        display: flex;
    }

    #welcome-view {
        padding: 20px;
    }
}
