/* =============================================================
   简约社区 BBS - 全局样式（卡片式现代简约 · 浅色）
   ============================================================= */

:root {
    --bbs-primary: #1E9FFF;
    --bbs-primary-dark: #1583d6;
    --bbs-primary-light: #e8f4ff;
    --bbs-success: #16BAAA;
    --bbs-warning: #FFB800;
    --bbs-danger: #FF5722;
    --bbs-purple: #7B68EE;
    --bbs-text: #2c3238;
    --bbs-text-sub: #6b7482;
    --bbs-text-muted: #9aa4b2;
    --bbs-border: #ebeef3;
    --bbs-bg: #f4f6fa;
    --bbs-card: #ffffff;
    --bbs-radius: 12px;
    --bbs-radius-sm: 8px;
    --bbs-shadow: 0 1px 3px rgba(23, 43, 77, .06), 0 4px 14px rgba(23, 43, 77, .05);
    --bbs-shadow-hover: 0 4px 12px rgba(23, 43, 77, .1), 0 12px 32px rgba(23, 43, 77, .08);
    --bbs-transition: all .22s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

body.bbs-body {
    margin: 0;
    background: var(--bbs-bg);
    color: var(--bbs-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--bbs-text); text-decoration: none; transition: var(--bbs-transition); }
a:hover { color: var(--bbs-primary); }

.bbs-container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.bbs-clearfix::after { content: ''; display: block; clear: both; }

/* ===================== 顶部导航 ===================== */
.bbs-header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 2px 12px rgba(23, 43, 77, .04);
    position: sticky; top: 0; z-index: 1000;
}
.bbs-header-inner {
    display: flex; align-items: center; height: 60px; gap: 24px;
}
.bbs-logo {
    display: flex; align-items: center; gap: 9px;
    font-size: 19px; font-weight: 700; color: var(--bbs-text); flex-shrink: 0;
    letter-spacing: .3px;
}
.bbs-logo:hover { color: var(--bbs-text); }
.bbs-logo-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, #1E9FFF, #16BAAA);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(30, 159, 255, .3);
}
.bbs-logo-icon img { width: 100%; height: 100%; border-radius: 9px; object-fit: cover; }

.bbs-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.bbs-nav > a, .bbs-nav > .bbs-nav-drop > .bbs-nav-link {
    padding: 7px 13px; border-radius: var(--bbs-radius-sm);
    color: var(--bbs-text-sub); font-size: 14px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
    white-space: nowrap;
}
.bbs-nav > a:hover, .bbs-nav > .bbs-nav-drop:hover > .bbs-nav-link { background: var(--bbs-bg); color: var(--bbs-primary); }
.bbs-nav > a.active { background: var(--bbs-primary-light); color: var(--bbs-primary); font-weight: 600; }

/* 下拉（版块） */
.bbs-nav-drop { position: relative; }
.bbs-nav-drop-menu {
    position: absolute; top: calc(100% + 6px); left: 0;
    min-width: 620px; background: #fff; border-radius: var(--bbs-radius);
    box-shadow: var(--bbs-shadow-hover); padding: 16px 18px;
    display: none; grid-template-columns: repeat(3, 1fr); gap: 6px 22px;
    border: 1px solid var(--bbs-border); z-index: 1200;
}
.bbs-nav-drop:hover .bbs-nav-drop-menu { display: grid; }
.bbs-nav-drop-group { font-size: 12px; color: var(--bbs-text-muted); font-weight: 600; margin: 4px 0 6px; letter-spacing: .5px; }
.bbs-nav-drop-item {
    display: flex; align-items: center; gap: 7px; padding: 6px 9px;
    border-radius: var(--bbs-radius-sm); font-size: 13px; color: var(--bbs-text-sub);
}
.bbs-nav-drop-item:hover { background: var(--bbs-primary-light); color: var(--bbs-primary); }
.bbs-nav-drop-item i { font-size: 15px; }

/* 搜索框 */
.bbs-search { position: relative; flex-shrink: 0; }
.bbs-search input {
    width: 190px; height: 36px; border: 1px solid var(--bbs-border);
    border-radius: 18px; padding: 0 40px 0 16px; font-size: 13px;
    background: var(--bbs-bg); outline: none; transition: var(--bbs-transition);
    color: var(--bbs-text);
}
.bbs-search input:focus { width: 240px; background: #fff; border-color: var(--bbs-primary); box-shadow: 0 0 0 3px rgba(30, 159, 255, .1); }
.bbs-search button {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border: none; background: transparent;
    color: var(--bbs-text-muted); cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.bbs-search button:hover { color: var(--bbs-primary); background: var(--bbs-primary-light); }

/* 用户区 */
.bbs-header-user { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bbs-user-chip {
    display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px;
    border-radius: 20px; transition: var(--bbs-transition); cursor: pointer;
    border: 1px solid transparent;
}
.bbs-user-chip:hover { background: var(--bbs-bg); border-color: var(--bbs-border); color: var(--bbs-text); }
.bbs-user-chip .name { font-size: 13px; font-weight: 500; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbs-avatar { border-radius: 50%; object-fit: cover; display: block; background: #eef1f6; flex-shrink: 0; }

.bbs-msg-dot {
    position: relative; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--bbs-text-sub); font-size: 17px; transition: var(--bbs-transition);
}
.bbs-msg-dot:hover { background: var(--bbs-bg); color: var(--bbs-primary); }
.bbs-msg-dot .badge {
    position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px;
    background: var(--bbs-danger); color: #fff; border-radius: 8px;
    font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px;
    font-weight: 600; box-shadow: 0 0 0 2px #fff;
}

/* ===================== 页面主体 ===================== */
.bbs-main { padding: 20px 0 50px; min-height: calc(100vh - 60px - 140px); }
.bbs-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--bbs-text-muted); margin-bottom: 16px; flex-wrap: wrap; }
.bbs-crumb a { color: var(--bbs-text-muted); }
.bbs-crumb a:hover { color: var(--bbs-primary); }
.bbs-crumb .sep { color: #ccd3de; }
.bbs-crumb .cur { color: var(--bbs-text-sub); }

.bbs-card {
    background: var(--bbs-card); border-radius: var(--bbs-radius);
    box-shadow: var(--bbs-shadow); overflow: hidden;
}
.bbs-card + .bbs-card { margin-top: 16px; }
.bbs-card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 20px; border-bottom: 1px solid var(--bbs-border); gap: 12px;
}
.bbs-card-title {
    font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px;
    color: var(--bbs-text);
}
.bbs-card-title i { color: var(--bbs-primary); font-size: 17px; }
.bbs-card-title .sub { font-size: 12px; color: var(--bbs-text-muted); font-weight: 400; }
.bbs-card-body { padding: 18px 20px; }
.bbs-card-body.nopad { padding: 0; }

/* ===================== 首页 Hero ===================== */
.bbs-hero {
    background: linear-gradient(120deg, #1E9FFF 0%, #16BAAA 60%, #2fd0b8 100%);
    border-radius: var(--bbs-radius); padding: 28px 32px; color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    gap: 28px; margin-bottom: 16px; position: relative; overflow: hidden;
    box-shadow: 0 6px 24px rgba(30, 159, 255, .22);
}
.bbs-hero::after {
    content: ''; position: absolute; right: -60px; top: -70px;
    width: 260px; height: 260px; border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}
.bbs-hero::before {
    content: ''; position: absolute; right: 80px; bottom: -90px;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.bbs-hero-text { position: relative; z-index: 1; }
.bbs-hero-text h1 { margin: 0 0 8px; font-size: 25px; font-weight: 700; letter-spacing: .5px; }
.bbs-hero-text p { margin: 0; font-size: 13.5px; opacity: .92; max-width: 560px; line-height: 1.7; }
.bbs-hero-actions { display: flex; gap: 10px; margin-top: 18px; }
.bbs-hero-stats {
    display: flex; gap: 26px; position: relative; z-index: 1; flex-shrink: 0;
    background: rgba(255, 255, 255, .14); padding: 16px 22px; border-radius: var(--bbs-radius-sm);
    backdrop-filter: blur(6px);
}
.bbs-hero-stat { text-align: center; }
.bbs-hero-stat .num { font-size: 22px; font-weight: 700; line-height: 1.2; }
.bbs-hero-stat .label { font-size: 12px; opacity: .88; margin-top: 2px; }

.bbs-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 20px;
    border-radius: 19px; font-size: 13.5px; font-weight: 500; cursor: pointer;
    border: none; transition: var(--bbs-transition); white-space: nowrap;
    background: var(--bbs-primary); color: #fff; text-decoration: none;
}
.bbs-btn:hover { background: var(--bbs-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(30, 159, 255, .3); }
.bbs-btn-ghost { background: rgba(255, 255, 255, .2); color: #fff; backdrop-filter: blur(4px); }
.bbs-btn-ghost:hover { background: rgba(255, 255, 255, .32); color: #fff; box-shadow: 0 5px 14px rgba(0, 0, 0, .12); }
.bbs-btn-light { background: #fff; color: var(--bbs-primary); }
.bbs-btn-light:hover { background: #f5f9ff; color: var(--bbs-primary-dark); }
.bbs-btn-outline { background: #fff; color: var(--bbs-text-sub); border: 1px solid var(--bbs-border); }
.bbs-btn-outline:hover { border-color: var(--bbs-primary); color: var(--bbs-primary); background: var(--bbs-primary-light); box-shadow: none; }
.bbs-btn-sm { height: 30px; padding: 0 14px; font-size: 12.5px; border-radius: 15px; }
.bbs-btn-block { width: 100%; justify-content: center; }

/* ===================== 公告条 ===================== */
.bbs-notice {
    display: flex; align-items: center; gap: 10px; background: #fff;
    border-radius: var(--bbs-radius); padding: 11px 18px; margin-bottom: 16px;
    box-shadow: var(--bbs-shadow); font-size: 13px; color: var(--bbs-text-sub);
    border-left: 3px solid var(--bbs-warning);
}
.bbs-notice i { color: var(--bbs-warning); font-size: 16px; flex-shrink: 0; }
.bbs-notice .txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===================== 两栏布局 ===================== */
.bbs-layout { display: flex; gap: 16px; align-items: flex-start; }
.bbs-layout-main { flex: 1; min-width: 0; }
.bbs-layout-side { width: 300px; flex-shrink: 0; }

/* ===================== 版块卡片网格 ===================== */
.bbs-forum-group { margin-bottom: 6px; }
.bbs-group-head {
    display: flex; align-items: center; gap: 9px; margin: 22px 0 12px;
    font-size: 15px; font-weight: 600; color: var(--bbs-text);
}
.bbs-group-head:first-child { margin-top: 0; }
.bbs-group-head .bar { width: 3px; height: 16px; border-radius: 2px; background: var(--bbs-primary); }
.bbs-group-head .count { font-size: 12px; color: var(--bbs-text-muted); font-weight: 400; }

.bbs-forum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }

.bbs-forum-card {
    background: #fff; border-radius: var(--bbs-radius); padding: 16px 18px;
    box-shadow: var(--bbs-shadow); transition: var(--bbs-transition);
    display: flex; flex-direction: column; gap: 12px;
    border: 1px solid transparent; position: relative; overflow: hidden;
}
.bbs-forum-card::before {
    content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
    background: var(--forum-color, var(--bbs-primary)); opacity: 0; transition: var(--bbs-transition);
}
.bbs-forum-card:hover { transform: translateY(-3px); box-shadow: var(--bbs-shadow-hover); border-color: #e3ecf7; }
.bbs-forum-card:hover::before { opacity: 1; }

.bbs-forum-top { display: flex; align-items: flex-start; gap: 12px; }
.bbs-forum-icon {
    width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px; color: #fff;
    background: var(--forum-color, var(--bbs-primary));
    box-shadow: 0 4px 11px -2px var(--forum-color, var(--bbs-primary));
}
.bbs-forum-meta { flex: 1; min-width: 0; }
.bbs-forum-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.bbs-forum-name a { color: var(--bbs-text); }
.bbs-forum-name a:hover { color: var(--bbs-primary); }
.bbs-forum-desc {
    font-size: 12.5px; color: var(--bbs-text-muted); margin-top: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bbs-forum-nums { display: flex; gap: 16px; font-size: 12px; color: var(--bbs-text-muted); flex-shrink: 0; }
.bbs-forum-nums b { display: block; color: var(--bbs-text-sub); font-size: 14px; font-weight: 600; text-align: center; }
.bbs-forum-nums span { display: block; text-align: center; }

.bbs-forum-latest { border-top: 1px dashed var(--bbs-border); padding-top: 11px; min-height: 44px; }
.bbs-forum-latest-item {
    display: flex; align-items: center; gap: 7px; font-size: 12.5px;
    color: var(--bbs-text-sub); padding: 2.5px 0; overflow: hidden;
}
.bbs-forum-latest-item .t {
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.bbs-forum-latest-item .t:hover { color: var(--bbs-primary); }
.bbs-forum-latest-item .u { color: var(--bbs-text-muted); font-size: 11.5px; flex-shrink: 0; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbs-forum-latest-item .empty { color: var(--bbs-text-muted); font-size: 12px; }

/* 版块显示方式：一行一个（后台可切换） */
.bbs-forum-grid.is-list { grid-template-columns: 1fr; gap: 10px; }
.bbs-forum-grid.is-list .bbs-forum-card {
    flex-direction: row; align-items: center; gap: 18px;
    padding: 13px 18px; border-radius: 12px;
}
.bbs-forum-grid.is-list .bbs-forum-top { flex: 1; align-items: center; min-width: 0; }
.bbs-forum-grid.is-list .bbs-forum-desc { white-space: normal; }
.bbs-forum-grid.is-list .bbs-forum-latest {
    border-top: 0; padding-top: 0; padding-left: 18px; min-height: 0;
    border-left: 1px dashed var(--bbs-border); width: 320px; flex-shrink: 0;
}
.bbs-forum-grid.is-list .bbs-forum-latest-item:first-child .u { max-width: 66px; }
.bbs-forum-grid.is-list .bbs-forum-card:hover { transform: none; box-shadow: var(--bbs-shadow-hover); }
@media (max-width: 900px) {
    .bbs-forum-grid.is-list .bbs-forum-card { flex-direction: column; align-items: stretch; gap: 10px; }
    .bbs-forum-grid.is-list .bbs-forum-latest {
        width: auto; border-left: 0; padding-left: 0;
        border-top: 1px dashed var(--bbs-border); padding-top: 10px;
    }
}

/* ---------------- 广告位 ---------------- */
.bbs-ads { margin: 0 0 16px; }
.bbs-ads .bbs-ad-item {
    display: block; background: #fff; border-radius: var(--bbs-radius);
    box-shadow: var(--bbs-shadow); overflow: hidden; transition: var(--bbs-transition);
    border: 1px solid transparent; text-decoration: none;
}
.bbs-ads .bbs-ad-item:hover { box-shadow: var(--bbs-shadow-hover); border-color: #e3ecf7; }
.bbs-ads .bbs-ad-item img { display: block; width: 100%; height: auto; }
.bbs-ads .bbs-ad-text,
.bbs-ads .bbs-ad-html {
    display: block; padding: 11px 16px; font-size: 13.5px; color: var(--bbs-text-sub);
    line-height: 1.7; background: linear-gradient(90deg, #f7faff 0%, #fff 60%);
}
.bbs-ads .bbs-ad-html a { color: var(--bbs-primary); }
/* 文字广告内部结构：标签 + 标题 + 描述 */
.bbs-ads .bbs-ad-text { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bbs-ads .bbs-ad-badge {
    flex-shrink: 0; font-style: normal; font-size: 11px; line-height: 1;
    padding: 3px 7px; border-radius: 5px; color: #fff; letter-spacing: .3px;
    background: linear-gradient(135deg, #4a90e2 0%, #6aa8f0 100%);
}
.bbs-ads .bbs-ad-title {
    flex-shrink: 0; font-size: 13.5px; font-weight: 600; color: var(--bbs-text);
}
.bbs-ads .bbs-ad-desc {
    flex: 1; min-width: 0; font-size: 13px; color: var(--bbs-text-sub);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bbs-ads .bbs-ad-desc b, .bbs-ads .bbs-ad-desc strong { color: var(--bbs-primary); font-weight: 600; }
.bbs-ads-side .bbs-ad-text,
.bbs-ads-side .bbs-ad-html { padding: 10px 12px; font-size: 12.5px; }
.bbs-ads-side .bbs-ad-desc { white-space: normal; font-size: 12px; }
.bbs-ads-side .bbs-ad-item { margin-bottom: 2px; }
.bbs-ad-label {
    display: inline-flex; align-items: center; gap: 4px; font-size: 11px;
    color: #b6bfcc; margin-bottom: 6px;
}
.bbs-side-card .bbs-ads { margin-bottom: 0; }

/* ---------------- 底部三栏：社区数据 / 活跃会员 / 新加入 ---------------- */
.bbs-bottom-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-top: 16px; align-items: stretch;
}
/* 三栏顶部对齐：卡等高，头部对齐，内容从顶部开始排 */
.bbs-bottom-grid > .bbs-side-card {
    margin-bottom: 0; display: flex; flex-direction: column; height: 100%;
}
.bbs-bottom-grid > .bbs-side-card + .bbs-side-card { margin-top: 0; }
.bbs-bottom-grid > .bbs-side-card > .bbs-side-body { flex: 1; }
.bbs-bottom-grid .bbs-user-mini { padding: 5px 0; }
.bbs-bottom-grid .bbs-stat-grid { gap: 8px; }
@media (max-width: 960px) {
    .bbs-bottom-grid { grid-template-columns: 1fr; }
}

/* ---------------- 最新动态：幻灯片 + 右侧双排标题 ---------------- */
.bbs-slider {
    background: #fff; border-radius: var(--bbs-radius); box-shadow: var(--bbs-shadow);
    overflow: hidden; margin: 0 0 16px;
}
.bbs-slider-head {
    display: flex; align-items: center; gap: 7px; padding: 9px 16px;
    background: linear-gradient(135deg, var(--bbs-primary) 0%, #5aa2e8 100%);
    color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: .5px;
}
.bbs-slider-head .layui-icon { font-size: 15px; }
.bbs-slider-head .more { margin-left: auto; color: rgba(255, 255, 255, .85); font-size: 12px; font-weight: 400; text-decoration: none; }
.bbs-slider-head .more:hover { color: #fff; text-decoration: underline; }
.bbs-slider-body { display: flex; gap: 16px; padding: 14px 16px; align-items: stretch; }

/* 幻灯片舞台：一屏 6 张 */
.bbs-slider-stage { position: relative; flex: 1; min-width: 0; }
.bbs-slider-track {
    display: grid; grid-auto-flow: column;
    grid-template-rows: 1fr; grid-auto-columns: calc((100% - 25px) / 6);
    gap: 5px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
}
.bbs-slider-track::-webkit-scrollbar { display: none; }
.bbs-slide {
    position: relative; display: block; border-radius: 7px; overflow: hidden;
    background: #f2f5f9; aspect-ratio: 4 / 3; text-decoration: none;
}
.bbs-slide img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    transition: transform .45s ease;
}
.bbs-slide:hover img { transform: scale(1.06); }
.bbs-slide-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 6px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .62) 100%);
    color: #fff; font-size: 11.5px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.bbs-slide-cap .cap-tag {
    display: inline-block; font-style: normal; font-size: 10px; line-height: 1;
    padding: 2px 4px; margin-right: 3px; border-radius: 3px;
    background: #ff5b5b; color: #fff; vertical-align: 1px;
}
/* 左右翻页按钮 */
.bbs-slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 26px; height: 40px; border: 0; border-radius: 6px; cursor: pointer;
    background: rgba(28, 42, 60, .42); color: #fff; padding: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--bbs-transition);
}
.bbs-slider-nav .layui-icon { font-size: 16px; }
.bbs-slider-stage:hover .bbs-slider-nav { opacity: 1; }
.bbs-slider-nav:hover { background: rgba(28, 42, 60, .72); }
.bbs-slider-nav.prev { left: 5px; }
.bbs-slider-nav.next { right: 5px; }
/* 分页圆点 */
.bbs-slider-dots {
    display: flex; justify-content: center; gap: 5px; margin-top: 9px; height: 6px;
}
.bbs-slider-dots .dot {
    width: 6px; height: 6px; border-radius: 3px; background: #d3dce7;
    cursor: pointer; transition: var(--bbs-transition); border: 0; padding: 0;
}
.bbs-slider-dots .dot.active { width: 16px; background: var(--bbs-primary); }

/* 右侧单排标题（压缩行高、单列长文字） */
.bbs-slider-lists { width: 330px; flex-shrink: 0; border-left: 1px dashed var(--bbs-border); padding-left: 15px; }
.bbs-slider-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.bbs-slider-item {
    display: block; padding: 3px 0; font-size: 12.5px; line-height: 1.35;
    color: var(--bbs-text); text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    position: relative; padding-left: 9px;
}
.bbs-slider-item::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 3px; border-radius: 50%; background: #b9c6d6;
}
.bbs-slider-item:hover { color: var(--bbs-primary); }
.bbs-slider-item.is-hot { color: #e05656; font-weight: 600; }
.bbs-slider-item.is-hot::before { background: #e05656; }
/* 置顶帖：红色「置顶」小标 */
.bbs-slider-item.is-top { color: #e05656; font-weight: 600; }
.bbs-slider-item.is-top::before { background: #e05656; }
.bbs-slider-item.is-top .t {
    display: inline-block; font-style: normal; font-size: 10px; line-height: 1;
    padding: 2px 4px; margin-right: 4px; border-radius: 3px;
    background: #ff5b5b; color: #fff; vertical-align: 1px;
}
.bbs-slider-empty { padding: 8px 0; font-size: 12.5px; color: var(--bbs-text-sub); }
@media (max-width: 1100px) {
    .bbs-slider-body { flex-direction: column; }
    .bbs-slider-lists { width: 100%; border-left: 0; border-top: 1px dashed var(--bbs-border); padding: 12px 0 0; }
}
@media (max-width: 720px) {
    .bbs-slider-track { grid-auto-columns: calc((100% - 10px) / 3); }
    .bbs-slider-track .bbs-slide:nth-child(n+4) { display: none; }
}


/* ===================== 主题列表 ===================== */
.bbs-thread-list { display: flex; flex-direction: column; }
.bbs-thread-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 20px;
    border-bottom: 1px solid var(--bbs-border); transition: var(--bbs-transition);
    position: relative;
}
.bbs-thread-item:last-child { border-bottom: none; }
.bbs-thread-item:hover { background: #fafcff; }
.bbs-thread-item:hover .bbs-thread-title a { color: var(--bbs-primary); }

.bbs-thread-avatar { flex-shrink: 0; }
.bbs-thread-main { flex: 1; min-width: 0; }
.bbs-thread-title {
    font-size: 14.5px; font-weight: 500; line-height: 1.5;
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.bbs-thread-title a { color: var(--bbs-text); }
.bbs-thread-meta {
    display: flex; align-items: center; gap: 12px; margin-top: 5px;
    font-size: 12px; color: var(--bbs-text-muted); flex-wrap: wrap;
}
.bbs-thread-meta .author { color: var(--bbs-text-sub); }
.bbs-thread-meta .author:hover { color: var(--bbs-primary); }
.bbs-thread-meta .forum-tag {
    background: var(--bbs-bg); padding: 1px 8px; border-radius: 9px;
    color: var(--bbs-text-muted); font-size: 11.5px;
}
.bbs-thread-meta .forum-tag:hover { background: var(--bbs-primary-light); color: var(--bbs-primary); }

.bbs-thread-right {
    display: flex; align-items: center; gap: 20px; flex-shrink: 0;
    font-size: 12px; color: var(--bbs-text-muted); text-align: center;
}
.bbs-thread-right .num { display: block; font-size: 14px; font-weight: 600; color: var(--bbs-text-sub); }
.bbs-thread-right .lbl { display: block; font-size: 11px; }
.bbs-thread-replyby { width: 96px; text-align: right; font-size: 12px; color: var(--bbs-text-muted); flex-shrink: 0; overflow: hidden; }
.bbs-thread-replyby a { color: var(--bbs-text-sub); }
.bbs-thread-replyby .time { display: block; font-size: 11px; margin-top: 2px; }

/* 徽章 */
.bbs-tag {
    display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
    border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 1;
    flex-shrink: 0; letter-spacing: .3px;
}
.bbs-tag-top { background: #fff1e6; color: #ff7a29; }
.bbs-tag-essence { background: #fff8e1; color: #e6a000; }
.bbs-tag-lock { background: #f1f2f5; color: #939aa6; }
.bbs-tag-hot { background: #ffeded; color: #ff4d4f; }
.bbs-tag-new { background: #e6f7f2; color: #16baaa; }

/* 会员等级徽章（颜色由服务端按等级注入内联样式） */
.bbs-level {
    display: inline-flex; align-items: center; height: 18px; padding: 0 7px;
    border: 1px solid; border-radius: 4px; font-size: 11px; font-weight: 600;
    line-height: 1; flex-shrink: 0; white-space: nowrap; letter-spacing: .2px;
}
/* 帖子楼层：徽章随楼层侧栏居中，尺寸略小 */
.bbs-floor-side .badges .bbs-level { height: 17px; font-size: 10px; padding: 0 6px; }
/* 帖子列表作者名后的等级徽章 */
.bbs-thread-meta .bbs-level { height: 16px; font-size: 10px; padding: 0 5px; }
/* 顶部导航用户名片中的等级徽章 */
.bbs-user-chip .bbs-level { height: 16px; font-size: 10px; padding: 0 5px; margin-left: 2px; }

.bbs-thread-cover {
    width: 56px; height: 56px; border-radius: var(--bbs-radius-sm);
    object-fit: cover; flex-shrink: 0; background: var(--bbs-bg);
}

/* 分页 */
.bbs-pager {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 20px; flex-wrap: wrap;
}
.bbs-pager a, .bbs-pager span {
    min-width: 34px; height: 34px; padding: 0 11px; border-radius: var(--bbs-radius-sm);
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--bbs-border); color: var(--bbs-text-sub);
    font-size: 13px; transition: var(--bbs-transition);
}
.bbs-pager a:hover { border-color: var(--bbs-primary); color: var(--bbs-primary); background: var(--bbs-primary-light); }
.bbs-pager .cur { background: var(--bbs-primary); border-color: var(--bbs-primary); color: #fff; font-weight: 600; }
.bbs-pager .disabled { color: #c8ced8; background: #fafbfc; cursor: not-allowed; }
.bbs-pager .info { border: none; background: transparent; color: var(--bbs-text-muted); font-size: 12px; }

/* 排序 Tab */
.bbs-tabs { display: flex; gap: 4px; }
.bbs-tabs a {
    padding: 5px 13px; border-radius: 16px; font-size: 13px;
    color: var(--bbs-text-sub); background: var(--bbs-bg);
}
.bbs-tabs a:hover { color: var(--bbs-primary); }
.bbs-tabs a.active { background: var(--bbs-primary); color: #fff; font-weight: 500; }

/* ===================== 帖子详情 ===================== */
.bbs-post-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--bbs-border); }
.bbs-post-title {
    font-size: 21px; font-weight: 700; line-height: 1.45; margin: 0 0 12px;
    color: var(--bbs-text); word-break: break-word;
}
.bbs-post-sub { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--bbs-text-muted); flex-wrap: wrap; }
.bbs-post-sub .author { display: flex; align-items: center; gap: 7px; color: var(--bbs-text-sub); }
.bbs-post-sub .author:hover { color: var(--bbs-primary); }
.bbs-post-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: #d4dae3; }

/* 楼层 */
.bbs-floor { display: flex; border-bottom: 1px solid var(--bbs-border); }
.bbs-floor:last-child { border-bottom: none; }
.bbs-floor-side {
    width: 168px; flex-shrink: 0; padding: 18px 14px; background: #fbfcfe;
    border-right: 1px solid var(--bbs-border); text-align: center;
}
.bbs-floor-side .avatar-wrap { display: inline-block; position: relative; }
.bbs-floor-side .bbs-avatar { border: 2px solid #fff; box-shadow: 0 2px 8px rgba(23,43,77,.09); margin: 0 auto; }
.bbs-floor-side .nick {
    display: block; margin-top: 9px; font-size: 13.5px; font-weight: 600;
    color: var(--bbs-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bbs-floor-side .nick:hover { color: var(--bbs-primary); }
.bbs-floor-side .badges { margin-top: 6px; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.bbs-floor-side .badges .layui-badge { height: 17px; line-height: 17px; font-size: 10px; padding: 0 6px; }
.bbs-floor-side .stat { margin-top: 10px; font-size: 11.5px; color: var(--bbs-text-muted); line-height: 1.9; text-align: left; padding: 0 6px; }
.bbs-floor-side .stat span { color: var(--bbs-text-sub); float: right; font-weight: 500; }

.bbs-floor-main { flex: 1; min-width: 0; padding: 18px 22px; display: flex; flex-direction: column; }
.bbs-floor-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; font-size: 12px; color: var(--bbs-text-muted); gap: 10px;
}
.bbs-floor-no { font-size: 12px; color: var(--bbs-text-muted); }
.bbs-floor-no b { color: var(--bbs-primary); font-weight: 600; }
.bbs-floor-actions { display: flex; gap: 4px; opacity: 0; transition: var(--bbs-transition); }
.bbs-floor:hover .bbs-floor-actions { opacity: 1; }
.bbs-floor-actions a {
    font-size: 12px; color: var(--bbs-text-muted); padding: 3px 9px;
    border-radius: 5px; display: inline-flex; align-items: center; gap: 3px;
}
.bbs-floor-actions a:hover { background: var(--bbs-bg); color: var(--bbs-primary); }
.bbs-floor-actions a.liked { color: var(--bbs-danger); }

.bbs-content {
    font-size: 14.5px; line-height: 1.85; color: #333a42; word-break: break-word;
    flex: 1; overflow-wrap: break-word;
}
.bbs-content p { margin: 0 0 10px; }
.bbs-content img, .bbs-content-img {
    max-width: 100%; border-radius: var(--bbs-radius-sm); display: block;
    margin: 10px 0; cursor: zoom-in; box-shadow: 0 2px 10px rgba(23,43,77,.08);
}
.bbs-content a { color: var(--bbs-primary); word-break: break-all; }
.bbs-content a:hover { text-decoration: underline; }
.bbs-mention { color: var(--bbs-primary); font-weight: 500; }
.bbs-quote {
    margin: 10px 0; padding: 10px 14px; background: #f7f9fc;
    border-left: 3px solid #dfe5ee; border-radius: 0 var(--bbs-radius-sm) var(--bbs-radius-sm) 0;
    font-size: 13px; color: var(--bbs-text-sub); line-height: 1.7;
}
.bbs-quote .quote-head { font-size: 12px; color: var(--bbs-text-muted); margin-bottom: 4px; }
.bbs-quote .quote-body { color: var(--bbs-text-sub); }
.bbs-code {
    margin: 10px 0; padding: 10px 14px; background: #f6f8fa; border-radius: var(--bbs-radius-sm);
    overflow-x: auto; font-family: Consolas, Monaco, "Courier New", monospace; font-size: 13px; line-height: 1.6;
}
.bbs-code code { background: transparent; padding: 0; font-family: inherit; color: #c7254e; }
.bbs-list { margin: 8px 0 8px 22px; padding: 0; }
.bbs-list li { list-style: disc; margin: 4px 0; }
.bbs-list-ol { list-style: decimal; }
.bbs-list-ol li { list-style: decimal; }

/* 楼中楼 */
.bbs-subposts { margin-top: 14px; background: #fafbfd; border-radius: var(--bbs-radius-sm); padding: 4px 14px; }
.bbs-subpost { padding: 9px 0; border-bottom: 1px dashed #e9edf3; font-size: 13px; line-height: 1.7; }
.bbs-subpost:last-child { border-bottom: none; }
.bbs-subpost .who { color: var(--bbs-primary); font-weight: 500; }
.bbs-subpost .who:hover { text-decoration: underline; }
.bbs-subpost .to { color: var(--bbs-text-muted); font-size: 12px; }
.bbs-subpost .when { color: var(--bbs-text-muted); font-size: 11.5px; margin-left: 6px; }
.bbs-subpost .acts { float: right; font-size: 11.5px; color: var(--bbs-text-muted); }
.bbs-subpost .acts a { color: var(--bbs-text-muted); margin-left: 8px; }
.bbs-subpost .acts a:hover { color: var(--bbs-primary); }
.bbs-subpost-tip { font-size: 12px; color: var(--bbs-text-muted); padding: 8px 0; }

/* 编辑器 */
.bbs-editor-wrap { border: 1px solid var(--bbs-border); border-radius: var(--bbs-radius-sm); overflow: hidden; transition: var(--bbs-transition); background: #fff; }
.bbs-editor-wrap:focus-within { border-color: var(--bbs-primary); box-shadow: 0 0 0 3px rgba(30,159,255,.09); }
.bbs-editor-toolbar {
    display: flex; align-items: center; gap: 2px; padding: 7px 9px;
    background: #fafbfd; border-bottom: 1px solid var(--bbs-border); flex-wrap: wrap;
}
.bbs-editor-toolbar button {
    width: 32px; height: 30px; border: none; background: transparent; border-radius: 6px;
    color: var(--bbs-text-sub); cursor: pointer; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center; transition: var(--bbs-transition);
}
.bbs-editor-toolbar button:hover { background: #fff; color: var(--bbs-primary); box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.bbs-editor-toolbar .divider { width: 1px; height: 16px; background: var(--bbs-border); margin: 0 5px; }
.bbs-editor-toolbar .hint { margin-left: auto; font-size: 11.5px; color: var(--bbs-text-muted); padding-right: 4px; }
.bbs-editor-wrap textarea {
    width: 100%; min-height: 150px; border: none; outline: none; resize: vertical;
    padding: 14px 16px; font-size: 14px; line-height: 1.8; font-family: inherit;
    color: var(--bbs-text); background: transparent; display: block;
}
.bbs-editor-preview {
    padding: 14px 16px; min-height: 150px; font-size: 14px; line-height: 1.85;
    background: #fcfdff; display: none;
}
.bbs-editor-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
.bbs-editor-tips { font-size: 12px; color: var(--bbs-text-muted); }
.bbs-upload-list { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 12px 0; }
.bbs-upload-item { position: relative; width: 72px; height: 72px; border-radius: var(--bbs-radius-sm); overflow: hidden; border: 1px solid var(--bbs-border); }
.bbs-upload-item img { width: 100%; height: 100%; object-fit: cover; }
.bbs-upload-item .del {
    position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
    background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center;
    justify-content: center; font-size: 11px; cursor: pointer;
}
.bbs-upload-item .del:hover { background: var(--bbs-danger); }

/* 侧栏 */
.bbs-side-card { background: #fff; border-radius: var(--bbs-radius); box-shadow: var(--bbs-shadow); overflow: hidden; }
.bbs-side-card + .bbs-side-card { margin-top: 16px; }
.bbs-side-head {
    padding: 13px 16px; font-size: 14px; font-weight: 600;
    border-bottom: 1px solid var(--bbs-border); display: flex; align-items: center; gap: 7px;
}
.bbs-side-head i { color: var(--bbs-primary); font-size: 16px; }
.bbs-side-body { padding: 12px 16px; }

.bbs-user-mini { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.bbs-user-mini + .bbs-user-mini { border-top: 1px solid #f5f7fa; }
.bbs-user-mini .info { flex: 1; min-width: 0; }
.bbs-user-mini .n { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.bbs-user-mini .d { font-size: 11.5px; color: var(--bbs-text-muted); }
.bbs-user-mini .rank {
    width: 20px; height: 20px; border-radius: 50%; background: var(--bbs-bg);
    color: var(--bbs-text-muted); font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bbs-user-mini:nth-child(1) .rank { background: #fff1e6; color: #ff7a29; }
.bbs-user-mini:nth-child(2) .rank { background: #f0f2f5; color: #8794a5; }
.bbs-user-mini:nth-child(3) .rank { background: #fdf1e8; color: #cd7f32; }

.bbs-hot-item { display: flex; gap: 9px; padding: 8px 0; font-size: 13px; align-items: flex-start; }
.bbs-hot-item + .bbs-hot-item { border-top: 1px solid #f5f7fa; }
.bbs-hot-item .rank {
    width: 18px; height: 18px; border-radius: 4px; background: #f1f3f7; color: #98a2b3;
    font-size: 11px; font-weight: 700; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.bbs-hot-item:nth-child(1) .rank { background: var(--bbs-danger); color: #fff; }
.bbs-hot-item:nth-child(2) .rank { background: #ff9a3c; color: #fff; }
.bbs-hot-item:nth-child(3) .rank { background: var(--bbs-warning); color: #fff; }
.bbs-hot-item .t { flex: 1; min-width: 0; line-height: 1.5; }
.bbs-hot-item .t a { color: var(--bbs-text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bbs-hot-item .t a:hover { color: var(--bbs-primary); }
.bbs-hot-item .c { font-size: 11px; color: var(--bbs-text-muted); flex-shrink: 0; }

.bbs-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bbs-stat-box {
    background: #fafbfd; border-radius: var(--bbs-radius-sm); padding: 12px;
    text-align: center; transition: var(--bbs-transition);
}
.bbs-stat-box:hover { background: var(--bbs-primary-light); }
.bbs-stat-box .n { font-size: 19px; font-weight: 700; color: var(--bbs-primary); line-height: 1.3; }
.bbs-stat-box .l { font-size: 11.5px; color: var(--bbs-text-muted); margin-top: 2px; }

.bbs-tagcloud { display: flex; flex-wrap: wrap; gap: 7px; }
.bbs-tagcloud a {
    padding: 3px 11px; background: var(--bbs-bg); border-radius: 12px;
    font-size: 12px; color: var(--bbs-text-sub);
}
.bbs-tagcloud a:hover { background: var(--bbs-primary); color: #fff; }

/* 新用户横向滚动 */
.bbs-newusers { display: flex; gap: 12px; overflow-x: auto; padding: 2px 0 6px; }
.bbs-newusers a { text-align: center; flex-shrink: 0; width: 52px; }
.bbs-newusers a .bbs-avatar { margin: 0 auto 5px; }
.bbs-newusers a .n { font-size: 11.5px; color: var(--bbs-text-sub); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===================== 认证页 ===================== */
.bbs-auth-wrap {
    min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center;
    padding: 40px 16px; background: linear-gradient(135deg, #eef6ff 0%, #f4f6fa 40%, #eafaf7 100%);
}
.bbs-auth-card {
    width: 100%; max-width: 420px; background: #fff; border-radius: 16px;
    box-shadow: 0 10px 40px rgba(23, 43, 77, .1); padding: 34px 34px 28px;
}
.bbs-auth-head { text-align: center; margin-bottom: 24px; }
.bbs-auth-head .logo {
    width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px;
    background: linear-gradient(135deg, #1E9FFF, #16BAAA); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    box-shadow: 0 6px 18px rgba(30,159,255,.3);
}
.bbs-auth-head h2 { margin: 0 0 6px; font-size: 21px; font-weight: 700; color: var(--bbs-text); }
.bbs-auth-head p { margin: 0; font-size: 13px; color: var(--bbs-text-muted); }

.bbs-form-item { margin-bottom: 16px; }
.bbs-form-label { display: block; font-size: 13px; color: var(--bbs-text-sub); margin-bottom: 6px; font-weight: 500; }
.bbs-form-label .req { color: var(--bbs-danger); margin-left: 2px; }
.bbs-input {
    width: 100%; height: 42px; border: 1px solid var(--bbs-border); border-radius: 10px;
    padding: 0 14px; font-size: 14px; outline: none; transition: var(--bbs-transition);
    background: #fafbfd; color: var(--bbs-text); font-family: inherit;
}
.bbs-input:focus { border-color: var(--bbs-primary); background: #fff; box-shadow: 0 0 0 3px rgba(30,159,255,.1); }
.bbs-input::placeholder { color: #b6bfcc; }
textarea.bbs-input { height: auto; min-height: 92px; padding: 11px 14px; resize: vertical; line-height: 1.7; }
select.bbs-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239aa4b2'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; padding-right: 34px; }

.bbs-input-group { display: flex; gap: 10px; align-items: center; }
.bbs-captcha-img {
    height: 42px; width: 118px; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--bbs-border); flex-shrink: 0; object-fit: cover;
}
.bbs-form-tip { font-size: 12px; color: var(--bbs-text-muted); margin-top: 6px; }
.bbs-form-foot { margin-top: 20px; font-size: 13px; color: var(--bbs-text-muted); text-align: center; }
.bbs-form-foot a { color: var(--bbs-primary); font-weight: 500; }

/* ===================== 空状态 ===================== */
.bbs-empty { padding: 60px 20px; text-align: center; color: var(--bbs-text-muted); }
.bbs-empty i { font-size: 46px; color: #dfe4ec; display: block; margin-bottom: 12px; }
.bbs-empty p { margin: 0; font-size: 13.5px; }

/* ===================== 页脚 ===================== */
.bbs-footer {
    background: #fff; border-top: 1px solid var(--bbs-border); padding: 26px 0;
    margin-top: 30px;
}
.bbs-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bbs-footer-links { display: flex; gap: 18px; font-size: 13px; flex-wrap: wrap; }
.bbs-footer-links a { color: var(--bbs-text-muted); }
.bbs-footer-links a:hover { color: var(--bbs-primary); }
.bbs-footer-copy { font-size: 12.5px; color: var(--bbs-text-muted); text-align: right; }

/* 页脚：联系方式 / 附加说明 / 备案信息 */
.bbs-footer-contact { margin-top: 12px; font-size: 12.5px; color: var(--bbs-text-muted); display: flex; gap: 18px; flex-wrap: wrap; }
.bbs-footer-contact a { color: var(--bbs-text-muted); }
.bbs-footer-contact a:hover { color: var(--bbs-primary); }
.bbs-footer-extra { margin-top: 10px; font-size: 12px; color: var(--bbs-text-muted); line-height: 1.9; }
.bbs-footer-beian {
    margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--bbs-border);
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.bbs-beian-item { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--bbs-text-muted); transition: color .2s; }
.bbs-beian-item:hover { color: var(--bbs-primary); }
.bbs-police svg { flex-shrink: 0; opacity: .72; }
@media (max-width: 768px) {
    .bbs-footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .bbs-footer-copy { text-align: left; }
}

/* ===================== 用户主页 ===================== */
.bbs-profile-head {
    background: linear-gradient(120deg, #1E9FFF 0%, #16BAAA 100%);
    padding: 30px 30px 70px; border-radius: var(--bbs-radius) var(--bbs-radius) 0 0;
    position: relative; overflow: hidden;
}
.bbs-profile-head::after {
    content: ''; position: absolute; right: -50px; top: -60px; width: 200px; height: 200px;
    border-radius: 50%; background: rgba(255,255,255,.1);
}
.bbs-profile-body { padding: 0 30px 24px; margin-top: -46px; position: relative; }
.bbs-profile-card {
    background: #fff; border-radius: var(--bbs-radius); box-shadow: var(--bbs-shadow);
    padding: 20px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.bbs-profile-card .bbs-avatar { border: 3px solid #fff; box-shadow: 0 4px 14px rgba(23,43,77,.14); }
.bbs-profile-info { flex: 1; min-width: 200px; }
.bbs-profile-info h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.bbs-profile-info .sig { font-size: 13px; color: var(--bbs-text-muted); margin: 0 0 8px; }
.bbs-profile-info .meta { font-size: 12px; color: var(--bbs-text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.bbs-profile-nums { display: flex; gap: 26px; flex-shrink: 0; }
.bbs-profile-nums .item { text-align: center; }
.bbs-profile-nums .item b { display: block; font-size: 20px; font-weight: 700; color: var(--bbs-text); }
.bbs-profile-nums .item span { font-size: 12px; color: var(--bbs-text-muted); }

/* ===================== 消息列表 ===================== */
.bbs-msg-item {
    display: flex; gap: 13px; padding: 15px 20px; border-bottom: 1px solid var(--bbs-border);
    transition: var(--bbs-transition);
}
.bbs-msg-item:hover { background: #fafcff; }
.bbs-msg-item.unread { background: #f6fbff; }
.bbs-msg-item.unread .bbs-msg-title::before {
    content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--bbs-danger); margin-right: 7px; vertical-align: middle;
}
.bbs-msg-body { flex: 1; min-width: 0; }
.bbs-msg-title { font-size: 14px; font-weight: 500; color: var(--bbs-text); }
.bbs-msg-text { font-size: 13px; color: var(--bbs-text-muted); margin-top: 4px; line-height: 1.6; }
.bbs-msg-time { font-size: 12px; color: var(--bbs-text-muted); flex-shrink: 0; }

/* ===================== 提示/工具 ===================== */
.bbs-alert {
    padding: 12px 16px; border-radius: var(--bbs-radius-sm); font-size: 13px;
    display: flex; align-items: center; gap: 9px; margin-bottom: 16px;
}
.bbs-alert i { font-size: 16px; flex-shrink: 0; }
.bbs-alert-warn { background: #fff8e6; color: #ad7c00; }
.bbs-alert-info { background: var(--bbs-primary-light); color: #1573c4; }
.bbs-alert-danger { background: #ffefec; color: #d93a10; }

.bbs-hl { background: #fff3b0; color: #ad6800; font-style: normal; padding: 0 2px; border-radius: 3px; }

.bbs-section-title { font-size: 15px; font-weight: 600; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.bbs-section-title i { color: var(--bbs-primary); }

/* 图片查看器 */
.bbs-img-viewer {
    position: fixed; inset: 0; background: rgba(15,20,28,.9); z-index: 9999;
    display: none; align-items: center; justify-content: center; padding: 40px;
    cursor: zoom-out; animation: fadeIn .22s ease;
}
.bbs-img-viewer img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===================== 响应式 ===================== */
@media (max-width: 1080px) {
    .bbs-layout-side { width: 270px; }
    .bbs-nav-drop-menu { min-width: 460px; }
}

@media (max-width: 900px) {
    .bbs-layout { flex-direction: column; }
    .bbs-layout-side { width: 100%; }
    .bbs-forum-grid { grid-template-columns: 1fr; }
    .bbs-hero { flex-direction: column; align-items: flex-start; padding: 22px; }
    .bbs-hero-stats { width: 100%; justify-content: space-around; gap: 10px; }
    .bbs-thread-cover { display: none; }
}

@media (max-width: 768px) {
    .bbs-header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
    .bbs-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
    .bbs-nav::-webkit-scrollbar { display: none; }
    .bbs-search { order: 2; }
    .bbs-search input { width: 140px; }
    .bbs-search input:focus { width: 180px; }
    .bbs-nav-drop-menu { display: none !important; }
    .bbs-floor { flex-direction: column; }
    .bbs-floor-side {
        width: 100%; border-right: none; text-align: left; padding: 14px 18px;
        border-bottom: 1px solid var(--bbs-border); display: flex; align-items: center; gap: 12px;
    }
    .bbs-floor-side .stat { display: none; }
    .bbs-floor-side .badges { margin-top: 0; justify-content: flex-start; }
    .bbs-floor-side .nick { margin-top: 0; }
    .bbs-floor-actions { opacity: 1; }
    .bbs-thread-right { gap: 12px; }
    .bbs-thread-replyby { display: none; }
    .bbs-profile-nums { width: 100%; justify-content: space-around; }
    .bbs-user-chip .name { display: none; }
    .bbs-post-title { font-size: 18px; }
}

@media (max-width: 480px) {
    .bbs-container { padding: 0 12px; }
    .bbs-forum-nums { display: none; }
    .bbs-thread-item { padding: 12px 14px; gap: 10px; }
    .bbs-thread-avatar .bbs-avatar { width: 36px !important; height: 36px !important; }
    .bbs-auth-card { padding: 26px 20px 22px; }
    .bbs-card-body { padding: 14px; }
    .bbs-card-head { padding: 13px 15px; }
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d3dae4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b9c3d1; }

/* 待审核提示条 */
.bbs-audit-bar { background: #fff8ec; border-bottom: 1px solid #ffe0b2; color: #b06a00; font-size: 13px; line-height: 1.6; padding: 9px 0; }
.bbs-audit-bar .bbs-container { display: flex; align-items: center; gap: 8px; }
.bbs-audit-bar i { font-size: 15px; flex-shrink: 0; }
.bbs-audit-bar b { color: #d46b08; }
