/* ============================================================
 * responsive.css — 响应式布局适配
 * ============================================================ */

.forum-mobile-drawer,
.forum-mobile-drawer-body {
    display: contents;
}

.forum-mobile-drawer-fallback {
    display: none;
}

.forum-mobile-drawer-backdrop {
    display: none;
}

.forum-sidebar-left {
    order: 1;
}

.forum-main {
    order: 2;
}

.forum-sidebar-right {
    order: 3;
}

@media (max-width: 1024px) {
    body.forum-mobile-drawer-open {
        overflow: hidden;
    }

    .forum-layout {
        display: block;
    }

    .forum-mobile-drawer,
    .forum-mobile-drawer-fallback {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        width: min(86vw, 340px);
        height: calc(100vh - 60px);
        z-index: 320;
        overflow-y: auto;
        background: rgba(16, 14, 12, 0.98);
        border-right: 2px solid rgba(224, 192, 96, 0.24);
        box-shadow: 12px 0 28px rgba(0, 0, 0, 0.45);
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        scrollbar-width: thin;
        scrollbar-color: rgba(224, 192, 96, 0.38) rgba(0, 0, 0, 0.25);
    }

    .forum-mobile-drawer.mobile-open {
        transform: translateX(0);
    }

    .forum-mobile-drawer-body {
        display: block;
        padding: 16px 12px 22px;
    }

    .forum-mobile-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 300;
        background: rgba(0, 0, 0, 0.52);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
    }

    .forum-mobile-drawer-backdrop.mobile-open {
        opacity: 1;
        pointer-events: auto;
    }

    .forum-sidebar-left {
        display: block;
        width: auto;
        padding: 0;
        border-right: none;
    }

    .forum-sidebar-right {
        display: block;
        width: auto;
        padding: 14px 0 0;
        margin-top: 16px;
        border-left: none;
        border-top: 1px solid rgba(224, 192, 96, 0.14);
    }

    .forum-main {
        padding: 16px 12px;
    }

    .forum-mobile-fallback-section {
        margin-top: 0;
    }

    .forum-board-latest {
        display: none;
    }

    .forum-thread-latest {
        display: none;
    }
}

@media (max-width: 768px) {
    .forum-page {
        padding: 68px 0 30px;
    }

    .forum-carousel-slide {
        flex: 0 0 100%;
    }

    .forum-board-row {
        flex-wrap: wrap;
    }

    .forum-board-stats {
        width: 100%;
        justify-content: flex-start;
        gap: 16px;
        margin-top: 4px;
    }

    .forum-thread-row {
        flex-wrap: wrap;
    }

    .forum-thread-stats {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        margin-top: 4px;
    }

    .forum-post-block {
        flex-direction: column;
    }

    .forum-post-author-panel {
        width: 100%;
        padding: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid rgba(224, 192, 96, 0.06);
    }

    .forum-post-author-avatar {
        width: 42px;
        height: 42px;
        font-size: 1.44rem;
        margin: 0;
    }

    .forum-detail-title {
        font-size: 1.44rem;
    }

    .forum-profile-card {
        flex-direction: column;
        text-align: center;
    }

    .header-nav {
        display: none;
    }
}
