/* BBS 论坛热帖 - 样式覆盖 */

/* 列表卡片 - 论坛风格 */
.bbs-card .channel-pill {
    background: #fff3e0;
    color: #e65100;
}

.bbs-card .forum-badge {
    display: inline-block;
    background: #fce4ec;
    color: #c62828;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
}

.bbs-card .views-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #f57c00;
    font-size: 13px;
    font-weight: 600;
}

.bbs-card .author-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6a7785;
    font-size: 13px;
}

/* 详情页 */
.bbs-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin: 12px 0;
    padding: 12px 0;
    border-top: 1px solid #e8eef5;
    border-bottom: 1px solid #e8eef5;
}

.bbs-detail-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #546e7a;
    font-size: 14px;
}

.bbs-detail-meta .meta-item .label {
    color: #90a4ae;
}

.bbs-body {
    white-space: pre-wrap;
    line-height: 1.85;
    font-size: 16px;
    color: #263238;
    max-width: 800px;
    margin: 0 auto;
}

/* BBS 图片居中 */
.bbs-body img.bbs-img {
    display: block !important;
    margin: 16px auto !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

/* 外链图片丢失占位 */
.bbs-body .bbs-img-missing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 16px auto;
    padding: 24px 16px;
    max-width: 400px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #999;
    font-size: 14px;
}

[data-theme="racing-dark"] .bbs-body .bbs-img-missing {
    background: #263238;
    border-color: #455a64;
    color: #607d8b;
}

/* 暗黑主题适配 */
[data-theme="racing-dark"] .bbs-card .channel-pill {
    background: #372a1a;
    color: #ffb74d;
}

[data-theme="racing-dark"] .bbs-card .forum-badge {
    background: #3e2723;
    color: #ff8a80;
}

[data-theme="racing-dark"] .bbs-detail-meta {
    border-color: #37474f;
}

[data-theme="racing-dark"] .bbs-detail-meta .meta-item {
    color: #90a4ae;
}

[data-theme="racing-dark"] .bbs-detail-meta .meta-item .label {
    color: #607d8b;
}

[data-theme="racing-dark"] .bbs-card .views-badge {
    color: #ffb74d;
}

[data-theme="racing-dark"] .bbs-card .author-badge {
    color: #90a4ae;
}

[data-theme="racing-dark"] .bbs-body {
    color: #cfd8dc;
}

/* ===== 分页导航 ===== */
.bbs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid #e8eef5;
    flex-wrap: wrap;
}

.bbs-pagination .page-info {
    font-size: 14px;
    color: #78909c;
    font-weight: 500;
}

.bbs-pagination .page-btn {
    background: #1565c0;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
}

.bbs-pagination .page-btn:hover {
    background: #0d47a1;
}

.bbs-pagination .page-btn:disabled {
    background: #b0bec5;
    cursor: default;
}

[data-theme="racing-dark"] .bbs-pagination {
    border-top-color: #37474f;
}

[data-theme="racing-dark"] .bbs-pagination .page-info {
    color: #607d8b;
}

[data-theme="racing-dark"] .bbs-pagination .page-btn {
    background: #0d47a1;
}

[data-theme="racing-dark"] .bbs-pagination .page-btn:hover {
    background: #1565c0;
}
