html,
body {
    overflow-x: hidden;
    max-width: 100vw;
    background: #f0f2f5 !important;
    color: #333 !important;
}

.video-guide-layout {
    margin-top: 70px;
}

body.video-guide-page .navbar .logo-text {
    display: none !important;
}

body.video-guide-page .navbar .nav-logo img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.video-guide-layout.help-layout {
    padding-top: 0.25rem !important;
}

.video-guide-main.help-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 0.85rem 1.25rem 1.5rem !important;
}

.video-guide-section {
    margin-top: 0 !important;
}

.video-guide-section > h2 {
    margin: 0 0 1rem;
    font-size: 1.55rem;
    font-weight: 800;
    color: #1a1a2e;
}

.video-guide-player-wrap {
    position: relative;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    line-height: 0;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 180px;
}

.video-guide-player-wrap.video-guide-player-has-video video,
.video-guide-player-wrap.video-guide-player-has-video .video-guide-poster-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(85vh, 900px);
    object-fit: contain;
    background: #f1f5f9;
    vertical-align: top;
}

.video-guide-poster-cover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f1f5f9;
    pointer-events: none;
}

.video-guide-player-wrap.video-guide-player-has-video video {
    position: relative;
    z-index: 1;
}

.video-guide-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.video-guide-nav-list li {
    list-style: none;
}

.video-guide-missing {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.92rem;
}

/* 桌面端：左侧竖向目录 */
@media (min-width: 769px) {
    .video-guide-sidebar.help-sidebar {
        position: sticky;
        top: 78px;
    }

    .video-guide-nav-list {
        display: block;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .video-guide-nav-label {
        display: block;
        padding: 0.55rem 0.85rem 0.25rem;
        font-size: 0.72rem;
        font-weight: 800;
        color: #94a3b8;
        letter-spacing: 0.06em;
    }

    .video-guide-nav-list a {
        display: block;
        padding: 0.48rem 0.85rem;
        border-radius: 8px;
        color: #555;
        text-decoration: none;
        font-size: 0.88rem;
        font-weight: 600;
        line-height: 1.35;
    }

    .video-guide-nav-list a:hover,
    .video-guide-nav-list a.active {
        background: rgba(168, 85, 247, 0.12);
        color: #7c3aed;
    }

    .video-guide-nav-list .help-nav-page-sub a {
        padding-left: 1.55rem;
    }
}

/* 手机端：复用 help-layout 顶部横向 pill 导航 */
@media (max-width: 768px) {
    body.video-guide-page .navbar .nav-container {
        justify-content: center;
    }

    body.video-guide-page .navbar .nav-menu,
    body.video-guide-page .navbar .mobile-menu-toggle {
        display: none !important;
    }

    .video-guide-layout {
        margin-top: 62px;
        padding: 0.2rem 0.65rem 1.25rem !important;
    }

    body.video-guide-page .video-guide-sidebar.help-sidebar {
        background: transparent !important;
        box-shadow: none !important;
        border-bottom: 1px solid #e8ecf2;
    }

    body.video-guide-page .video-guide-main.help-content {
        background: transparent !important;
        box-shadow: none !important;
        padding: 0.5rem 0 1rem !important;
        border-radius: 0 !important;
    }

    body.video-guide-page .help-sidebar .video-guide-nav-list a {
        font-size: 0.72rem !important;
        padding: 0.38rem 0.55rem !important;
        line-height: 1.35 !important;
        display: inline-flex !important;
        align-items: center;
        white-space: nowrap;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid #e2e8f0;
        color: #555;
        text-decoration: none;
        font-weight: 600;
    }

    body.video-guide-page .help-sidebar .video-guide-nav-list a.active {
        background: rgba(168, 85, 247, 0.12) !important;
        color: #7c3aed !important;
        border-color: #c4b5fd !important;
    }

    .video-guide-main.help-content {
        padding: 0.65rem 0.85rem 1.1rem !important;
        border-radius: 12px;
    }

    .video-guide-section > h2 {
        font-size: 1.22rem;
        margin-bottom: 0.75rem;
    }

    .video-guide-nav-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.35rem;
        list-style: none;
    }

    .video-guide-nav-list > .help-nav-section-label,
    .video-guide-nav-list > .video-guide-nav-label {
        display: none !important;
    }

    .video-guide-player-wrap video {
        max-height: min(80vh, 900px);
    }

    .video-guide-nav-label {
        display: none !important;
    }

    .video-guide-nav-list .help-nav-page-sub a {
        padding-left: 0.85rem;
    }
}
