/* === 移动端修复 v1.0 === */
@media (max-width: 768px) {
    .bbs-header-right { gap: 2px !important; flex-wrap: nowrap !important; }
    .bbs-header-right .bbs-checkin-wrap,
    .bbs-header-right .bbs-points-badge,
    .bbs-header-right .bbs-notify-wrap,
    .bbs-header-right .bbs-msg-trigger,
    .bbs-header-right > a.bbs-btn,
    .bbs-header-right > a[title="后台"] {
        display: none !important;
    }
    .bbs-header-right .bbs-icon-btn,
    .bbs-header-right .bbs-hamburger {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    .bbs-header-inner { gap: 8px !important; }
    .bbs-logo-text { font-size: 16px !important; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bbs-container { padding: 0 10px !important; }
    .bbs-board-nav { order: -1; }
}
.bbs-mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999; }
.bbs-mobile-menu.active { display: block; }
.bbs-mobile-backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); }
.bbs-mobile-panel { position: absolute; top: 0; right: 0; width: 280px; max-width: 85%; height: 100%; background: var(--bbs-bg-card, #fff); box-shadow: -4px 0 20px rgba(0,0,0,0.15); overflow-y: auto; transform: translateX(100%); transition: transform 0.3s ease; z-index: 1; }
.bbs-mobile-menu.active .bbs-mobile-panel { transform: translateX(0); }
.bbs-mobile-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--bbs-border-light, #e2e8f0); font-weight: 600; font-size: 16px; }
.bbs-mobile-head button { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--bbs-text, #333); padding: 0 4px; line-height: 1; }
.bbs-mobile-nav { padding: 8px 0; }
.bbs-mobile-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--bbs-text, #333); text-decoration: none; font-size: 14px; border-bottom: 1px solid var(--bbs-border-light, #f0f0f0); }
.bbs-mobile-nav a:hover, .bbs-mobile-nav a:active { background: var(--bbs-bg-hover, #f5f5f5); }
.bbs-mobile-nav a i { font-size: 18px; color: var(--bbs-text-muted, #999); width: 22px; text-align: center; }

/* board-nav移动端修复 */
@media (max-width: 768px) {
    .bbs-board-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 10px 0 !important;
        gap: 6px !important;
    }
    .bbs-board-nav::-webkit-scrollbar { display: none; }
    .bbs-board-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none;
        gap: 4px !important;
    }
    .bbs-board-tabs::-webkit-scrollbar { display: none; }
    .bbs-board-tab {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        font-size: 13px !important;
        padding: 6px 12px !important;
    }
    .bbs-board-actions { display: none !important; }
}


/* === 侧边栏用户功能区 === */
.bbs-user-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.bbs-user-action-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 6px; font-size: 12px; color: var(--bbs-text-sec, #666); background: var(--bbs-bg-hover, #f5f5f5); border: none; cursor: pointer; text-decoration: none; transition: all .2s; white-space: nowrap; position: relative; }
.bbs-user-action-btn:hover { background: var(--bbs-primary-bg, rgba(37,99,235,0.08)); color: var(--bbs-primary, #2563eb); }
.bbs-user-action-btn .bbs-notify-badge { position: absolute; top: -4px; right: -4px; background: #ef4444; color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.bbs-user-points { display: flex; align-items: center; gap: 4px; margin-top: 8px; padding: 6px 10px; border-radius: 6px; font-size: 12px; color: var(--bbs-yellow, #bf8700); background: var(--bbs-yellow-bg, rgba(191,135,0,0.06)); font-weight: 500; }


/* === 搜索结果提示条 === */
.bbs-search-banner { display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 16px; background: var(--bbs-primary-bg, rgba(37,99,235,0.05)); border: 1px solid var(--bbs-primary, #2563eb); border-radius: 8px; font-size: 14px; color: var(--bbs-text, #333); }
.bbs-search-banner strong { color: var(--bbs-primary, #2563eb); }
.bbs-search-clear { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; font-size: 12px; color: var(--bbs-text-sec, #666); background: var(--bbs-bg-card, #fff); border: 1px solid var(--bbs-border, #ddd); text-decoration: none; transition: all .2s; }
.bbs-search-clear:hover { background: var(--bbs-bg-hover, #f5f5f5); color: var(--bbs-text, #333); }


/* === 搜索结果内容摘要 === */
.bbs-search-snippet { font-size: 13px; color: var(--bbs-text-sec, #656d76); line-height: 1.6; margin: 4px 0 8px; padding: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bbs-search-snippet .bbs-highlight { background: rgba(37,99,235,0.15); color: var(--bbs-primary, #2563eb); padding: 1px 3px; border-radius: 3px; font-weight: 600; }
