/* ================================================================
   BBS 特有样式（依赖 common.css 基础样式）
   说明：本文件仅包含 BBS 页面独有样式，通用样式请参考 common.css
   ================================================================ */

/* ============================================================
   1. 板块头部（board.html）
   ============================================================ */
.board-header {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.board-header .board-info {
    flex: 1;
}
.board-header .board-info h2 {
    margin: 0 0 4px 0;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.board-header .board-info .desc {
    color: var(--text-secondary, #475569);
    font-size: 0.95rem;
    margin: 0 0 8px 0;
}
.board-header .board-info .stats {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
}
.board-header .board-info .stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.board-header .board-actions {
    flex-shrink: 0;
    margin-left: 20px;
}

/* ============================================================
   2. 帖子列表（board.html / index.html 底部Tab）
   ============================================================ */
.post-list {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.post-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color, #f0e0d0);
    transition: background 0.15s;
}
.post-item:last-child {
    border-bottom: none;
}
.post-item:hover {
    background: var(--bg-light, #fff8f5);
}
.post-item .post-status {
    display: inline-flex;
    gap: 4px;
    flex-shrink: 0;
    margin-top: 1px;
}
.post-item .post-status .sticky,
.post-item .post-status .essence {
    font-size: 0.6rem;
    padding: 0 8px;
    border-radius: 12px;
    line-height: 1.8;
    background: #f0ebe6;
    color: #555;
    white-space: nowrap;
}
.post-item .post-status .sticky {
    background: #fef3e2;
    color: #b45309;
}
.post-item .post-status .essence {
    background: #dbeafe;
    color: #2563eb;
}
.post-item .post-title-wrapper {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    flex: 1;
    min-width: 0;
}
.post-item .post-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary, #2c2b28);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.post-item .post-title:hover {
    color: var(--sun-red, #eb1313);
    text-decoration: underline;
}
.post-item .badge {
    font-size: 0.6rem;
    padding: 0 6px;
    border-radius: 12px;
    line-height: 1.8;
    background: #f0ebe6;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}
.post-item .badge.badge-hot {
    background: #fee2e2;
    color: #dc2626;
}
.post-item .badge.badge-new {
    background: #dbeafe;
    color: #2563eb;
}
.post-item .post-meta {
    width: 100%;
    font-size: 0.75rem;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 2px;
    border-top: 1px dashed #f0ebe6;
    margin-top: 4px;
}
.post-item .post-meta .author {
    color: #2c2b28;
}
.post-item .post-meta .author img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 4px;
}
.post-item .post-meta .stat {
    color: #999;
}
.post-item .post-meta .stat span {
    color: #2c2b28;
}
.post-item .post-meta .category-tag {
    background: #f0ebe6;
    padding: 0 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    color: #555;
}

/* ============================================================
   3. 侧边栏组件（通用）
   ============================================================ */
.sidebar-board-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color, #d0c8c0);
}
.sidebar-board-item:last-child {
    border-bottom: none;
}
.sidebar-board-item .board-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.sidebar-board-item .board-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary, #2c2b28);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-board-item .board-name:hover {
    color: var(--sun-red, #eb1313);
}
.sidebar-board-item .board-count {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    white-space: nowrap;
}

.latest-post-item {
    padding: 6px 0;
    border-bottom: 1px solid #f0ebe6;
}
.latest-post-item:last-child {
    border-bottom: none;
}
.latest-post-item .post-title-link {
    font-size: 0.9rem;
    color: #2c2b28;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.latest-post-item .post-title-link:hover {
    color: var(--sun-red, #eb1313);
}
.latest-post-item .post-meta-info {
    font-size: 0.7rem;
    color: #888;
    margin-top: 2px;
}
.latest-post-item .post-meta-info .author {
    color: #555;
}
.latest-post-item .post-stats-sm {
    font-size: 0.7rem;
    color: #aaa;
    display: flex;
    gap: 10px;
    margin-top: 2px;
}

.master-recommend {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}
.master-recommend:last-child {
    border-bottom: none;
}
.master-recommend .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0e3da;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.master-recommend .info {
    flex: 1;
    min-width: 0;
}
.master-recommend .info .name {
    font-weight: 600;
    font-size: 0.9rem;
}
.master-recommend .info .title {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.master-recommend .consult-btn {
    font-size: 0.7rem;
    padding: 2px 12px;
    border-radius: 30px;
    background: var(--sun-red);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.master-recommend .consult-btn:hover {
    background: var(--sun-red-dark);
}

.task-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.9rem;
}
.task-item:last-child {
    border-bottom: none;
}
.task-item .task-name {
    color: var(--text-primary);
}
.task-item .task-reward {
    color: var(--sun-red);
    font-weight: 600;
    white-space: nowrap;
}

.rec-item {
    padding: 4px 0;
    width: 100%;
}
.rec-item .rec-title {
    font-size: 0.85rem;
    color: #2c2b28;
    text-decoration: none;
}
.rec-item .rec-title:hover {
    color: #eb1313;
}
.rec-item .rec-desc {
    font-size: 0.7rem;
    color: #888;
}

.reward-question {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    transition: 0.2s;
    cursor: pointer;
}
.reward-question:hover {
    border-color: var(--sun-red);
    background: var(--sun-red-light);
}
.reward-question .q-title {
    font-weight: 600;
    font-size: 0.95rem;
}
.reward-question .q-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}
.reward-question .q-meta .reward-amount {
    color: var(--sun-red);
    font-weight: 600;
}

/* ============================================================
   4. 排行榜（rank.html）
   ============================================================ */
.rank-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.rank-tabs a {
    padding: 8px 24px;
    border-radius: 30px 30px 0 0;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    color: var(--text-muted);
    border: none;
    transition: 0.2s;
}
.rank-tabs a.active {
    background: var(--sun-red, #eb1313);
    color: #fff;
}
.rank-tabs a:hover:not(.active) {
    background: #f0ebe6;
    color: #333;
}

.rank-list {
    display: none;
}
.rank-list.active {
    display: block;
}

.rank-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color, #f0ebe6);
    transition: background 0.15s;
}
.rank-item:hover {
    background: #faf8f6;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 6px;
}
.rank-item .rank-num {
    flex: 0 0 30px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #888;
    text-align: center;
    line-height: 1.8;
}
.rank-item .rank-num.top1 {
    color: #f5a623;
}
.rank-item .rank-num.top2 {
    color: #9e9e9e;
}
.rank-item .rank-num.top3 {
    color: #cd7f32;
}
.rank-item .info {
    flex: 1;
    min-width: 0;
}
.rank-item .info .title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.rank-item .info .title-row a {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c2b28;
    text-decoration: none;
    transition: 0.2s;
    word-break: break-word;
}
.rank-item .info .title-row a:hover {
    color: var(--sun-red, #eb1313);
}
.rank-item .info .post-meta {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.rank-item .info .post-meta .author {
    font-weight: 600;
    color: #555;
}
.rank-item .info .post-meta .stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.rank-item .info .category-tag {
    background: #f0ebe6;
    padding: 0 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    color: #555;
}
.rank-badge {
    display: inline-block;
    font-size: 0.6rem;
    padding: 0 8px;
    border-radius: 12px;
    line-height: 1.6;
    font-weight: 600;
    background: #e0d8d0;
    color: #555;
}
.rank-badge.hot {
    background: #feeeee;
    color: #eb1313;
}
.rank-badge.essence {
    background: #fff3e0;
    color: #e65100;
}
.rank-badge.new {
    background: #e3f2fd;
    color: #0d47a1;
}
.rank-badge.reward {
    background: #fce4ec;
    color: #c62828;
}
.rank-badge.paid {
    background: #f3e5f5;
    color: #6a1b9a;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 8px 0;
}
.board-card {
    background: #f9f6f2;
    border-radius: 12px;
    padding: 16px 14px;
    transition: 0.2s;
    border: 1px solid transparent;
}
.board-card:hover {
    background: #f0ebe6;
    border-color: #e0d8d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.board-card .board-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}
.board-card .board-name {
    font-weight: 700;
    font-size: 1rem;
    color: #2c2b28;
    margin-bottom: 2px;
}
.board-card .board-name .hash {
    color: #888;
    font-weight: 400;
}
.board-card .board-desc {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}
.board-card .board-stats {
    font-size: 0.75rem;
    color: #aaa;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.board-card .board-stats span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* ============================================================
   5. 快捷工具栏（rank.html）
   ============================================================ */
.hero-toolbar {
    background: linear-gradient(105deg, #fff5ef, #fff0e6);
    padding: 32px 0 18px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}
.hero-toolbar h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.hero-toolbar p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0;
}
.hero-toolbar .quick-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 12px 0 4px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: 10px;
}
.hero-toolbar .quick-btn {
    padding: 6px 20px;
    border-radius: 30px;
    border: 1px solid #e0d8d0;
    background: transparent;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.hero-toolbar .quick-btn:hover {
    border-color: var(--sun-red, #eb1313);
    color: var(--sun-red);
    background: #feeeee;
}
.hero-toolbar .quick-btn.primary {
    background: var(--sun-red, #eb1313);
    color: #fff;
    border-color: var(--sun-red);
}
.hero-toolbar .quick-btn.primary:hover {
    background: #c40e0e;
    color: #fff;
}

/* ============================================================
   6. 帖子详情（detail.html）
   ============================================================ */
.post-detail-header {
    border-bottom: 1px solid #f0ebe6;
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.post-detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}
.post-detail-meta {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.post-detail-meta .author {
    font-weight: 600;
    color: #2c2b28;
}
.post-detail-body {
    font-size: 1rem;
    line-height: 1.8;
    padding: 8px 0 16px;
}

.post-actions {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #f0ebe6;
    border-bottom: 1px solid #f0ebe6;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.post-actions .action-btn {
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid #e0d8d0;
    background: transparent;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    color: #555;
}
.post-actions .action-btn:hover {
    border-color: #eb1313;
    color: #eb1313;
    background: #feeeee;
}
.post-actions .action-btn.liked {
    border-color: #eb1313;
    background: #feeeee;
    color: #eb1313;
}

/* ============================================================
   7. 评论区域（detail.html）
   ============================================================ */
.comment-section {
    margin-top: 16px;
}
.comment-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 2px solid #f0ebe6;
    flex-wrap: wrap;
    gap: 8px;
}
.comment-title .left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.comment-title .count-badge {
    background: #eb1313;
    color: #fff;
    font-size: 0.75rem;
    padding: 0 10px;
    border-radius: 30px;
    line-height: 1.8;
    font-weight: 600;
}
.comment-title .write-btn {
    padding: 4px 18px;
    border-radius: 30px;
    border: none;
    background: #eb1313;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}
.comment-title .write-btn:hover {
    background: #c40e0e;
}
.comment-title .write-btn.cancel {
    background: #e0d8d0;
    color: #555;
}
.comment-title .write-btn.cancel:hover {
    background: #d0c8c0;
}

.comment-input-area {
    display: none;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f9f6f2;
    border-radius: 8px;
}
.comment-input-area.active {
    display: block;
}
.comment-input-area textarea {
    width: 100%;
    border: 1px solid #e0d8d0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
    background: #fff;
}
.comment-input-area textarea:focus {
    border-color: #eb1313;
    outline: none;
}
.comment-input-area .btn-submit {
    margin-top: 6px;
    padding: 6px 20px;
    border-radius: 30px;
    border: none;
    background: #eb1313;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.comment-input-area .btn-submit:hover {
    background: #c40e0e;
}

.comment-list {
    margin-top: 8px;
}

.comment-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0ebe6;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-item .comment-user {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}
.comment-item .comment-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-item .comment-avatar-default {
    font-size: 1.1rem;
}
.comment-item .comment-author {
    font-weight: 600;
    color: #2c2b28;
    margin-right: 2px;
    font-size: 0.9rem;
}
.comment-item .comment-time {
    font-size: 0.7rem;
    color: #888;
}
.comment-item .reply-target {
    font-size: 0.7rem;
    color: #888;
    background: #f0ebe6;
    padding: 0 6px;
    border-radius: 12px;
}
.comment-item .comment-content {
    margin: 2px 0 4px 0;
    line-height: 1.6;
    font-size: 0.92rem;
    padding-left: 2px;
}
.comment-item .comment-actions {
    font-size: 0.78rem;
    color: #888;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding: 2px 0;
}
.comment-item .comment-actions .act-link {
    cursor: pointer;
    transition: 0.2s;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.comment-item .comment-actions .act-link:hover {
    color: #eb1313;
    background: #feeeee;
}
.comment-item .comment-actions .act-link .count {
    font-weight: 500;
}
.comment-item .comment-actions .like-comment.liked {
    color: #eb1313;
}
.comment-item .comment-actions .like-comment.liked .like-icon {
    display: inline;
}
.comment-item .comment-actions .like-comment .like-icon {
    display: none;
}
.comment-item .comment-actions .like-comment.liked .unlike-icon {
    display: none;
}
.comment-item .comment-actions .like-comment .unlike-icon {
    display: inline;
}
.comment-item .comment-actions .like-comment .count {
    margin-left: 1px;
}
.comment-item .comment-actions .delete-comment {
    color: #888;
}
.comment-item .comment-actions .delete-comment:hover {
    color: #dc3545 !important;
    background: #feeeee !important;
}

.reply-box {
    display: none;
    margin-top: 4px;
    padding-left: 6px;
    border-left: 2px solid #e0d8d0;
}
.reply-box.active {
    display: block;
}
.reply-box textarea {
    width: 100%;
    border: 1px solid #e0d8d0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.8rem;
    resize: vertical;
    min-height: 32px;
    background: #fff;
}
.reply-box textarea:focus {
    border-color: #eb1313;
    outline: none;
}
.reply-box .reply-submit {
    margin-top: 3px;
    padding: 3px 12px;
    border-radius: 30px;
    border: none;
    background: #eb1313;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.75rem;
}
.reply-box .reply-submit:hover {
    background: #c40e0e;
}

.sub-comment {
    margin-left: 16px;
    padding-left: 10px;
    border-left: 2px solid #e8e0d8;
}
.sub-comment .comment-item {
    padding-left: 2px;
}
.sub-comment .comment-item .comment-user .comment-avatar {
    width: 22px;
    height: 22px;
}
.sub-comment .comment-item .comment-user .comment-author {
    font-size: 0.85rem;
}
.sub-comment .comment-item .comment-content {
    font-size: 0.88rem;
}
.sub-comment .sub-comment {
    margin-left: 12px;
    border-left-color: #dce0e6;
}
.sub-comment .sub-comment .sub-comment {
    border-left-color: #d0d7e0;
}

/* ============================================================
   8. 作者卡片（detail.html）
   ============================================================ */
.author-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
}
.author-card .avatar-lg img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0ebe6;
}
.author-card .author-detail .name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.author-card .author-detail .name-row .name {
    font-weight: 700;
    font-size: 1rem;
}
.author-card .author-detail .name-row .level-badge {
    background: #feeeee;
    color: #eb1313;
    font-size: 0.6rem;
    padding: 0 8px;
    border-radius: 30px;
    line-height: 1.6;
}
.author-card .author-detail .stats {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    gap: 12px;
    margin-top: 2px;
}
.author-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.author-actions .btn-sm {
    flex: 1;
    text-align: center;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid #e0d8d0;
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.2s;
    min-width: 0;
}
.author-actions .btn-sm:hover {
    border-color: #eb1313;
    color: #eb1313;
    background: #feeeee;
}
.author-actions .btn-sm.primary {
    background: #eb1313;
    color: #fff;
    border-color: #eb1313;
}
.author-actions .btn-sm.primary:hover {
    background: #c40e0e;
}
.author-actions .btn-sm.following {
    background: #e8f5e9;
    border-color: #66bb6a;
    color: #388e3c;
}
.author-actions .btn-sm.following:hover {
    background: #c8e6c9;
}

/* ============================================================
   9. 快捷操作（通用）
   ============================================================ */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.quick-actions .btn-quick {
    display: block;
    padding: 6px 12px;
    border-radius: 30px;
    background: #f9f6f2;
    color: #555;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
    transition: 0.2s;
}
.quick-actions .btn-quick:hover {
    background: #feeeee;
    color: #eb1313;
}

/* ============================================================
   10. 筛选栏（index.html）
   ============================================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e0d8;
    padding: 10px 16px;
    margin-bottom: 16px;
}
.filter-bar .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.filter-bar .filter-group select {
    padding: 5px 12px;
    border: 1px solid #e0d8d0;
    border-radius: 30px;
    background: #fff;
    font-size: 0.85rem;
    outline: none;
    min-width: 120px;
}
.filter-bar .filter-group select:focus {
    border-color: #eb1313;
}
.filter-bar .search-box {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
    min-width: 180px;
}
.filter-bar .search-box .input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0d8d0;
    border-radius: 30px;
    padding: 0 10px 0 14px;
    transition: border-color 0.2s;
}
.filter-bar .search-box .input-wrapper:focus-within {
    border-color: #eb1313;
}
.filter-bar .search-box .input-wrapper input {
    flex: 1;
    padding: 5px 0;
    border: none;
    outline: none;
    font-size: 0.85rem;
    background: transparent;
    min-width: 60px;
}
.filter-bar .search-box .input-wrapper .clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ddd;
    color: #555;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    line-height: 1;
    margin-left: 4px;
    flex-shrink: 0;
}
.filter-bar .search-box .input-wrapper .clear-btn:hover {
    background: #ccc;
}
.filter-bar .search-box .search-btn {
    padding: 5px 16px;
    border-radius: 30px;
    border: none;
    background: #eb1313;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.filter-bar .search-box .search-btn:hover {
    background: #c40e0e;
}

/* ============================================================
   11. 底部Tab精选帖子（index.html）
   ============================================================ */
.bottom-tab-section {
    margin-top: 30px;
    border-top: 2px solid #e8e0d8;
    padding-top: 10px;
}
.tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.tab-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c2b28;
}
.tab-buttons {
    display: flex;
    gap: 4px;
    background: #f0ebe6;
    border-radius: 30px;
    padding: 3px;
}
.tab-btn {
    padding: 4px 18px;
    border: none;
    border-radius: 30px;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
    color: #555;
}
.tab-btn:hover {
    background: #e0d8d0;
}
.tab-btn.active {
    background: #eb1313;
    color: #fff;
}
.bottom-tab-content {
    display: none;
    padding: 6px 0;
}
.bottom-tab-content.active {
    display: block;
}
.bottom-article-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bottom-article-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 6px 0;
    border-bottom: 1px solid #f0ebe6;
}
.bottom-article-item .item-category {
    background: #f0ebe6;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #555;
    white-space: nowrap;
}
.bottom-article-item .item-title {
    flex: 1;
    font-weight: 500;
    color: #2c2b28;
    text-decoration: none;
}
.bottom-article-item .item-title:hover {
    color: #eb1313;
    text-decoration: underline;
}
.bottom-article-item .item-date,
.bottom-article-item .item-views {
    font-size: 0.75rem;
    color: #888;
    white-space: nowrap;
}

/* ============================================================
   12. 发布新帖表单（write.html）
   ============================================================ */
.el-style-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.el-style-input:focus {
    border-color: var(--sun-red);
    box-shadow: 0 0 0 2px rgba(235, 19, 19, 0.12);
}
.el-style-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: auto;
    box-sizing: border-box;
}
.el-style-select:focus {
    border-color: var(--sun-red);
    box-shadow: 0 0 0 2px rgba(235, 19, 19, 0.12);
}
.el-style-btn {
    background: var(--sun-red);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}
.el-style-btn:hover {
    opacity: 0.85;
}
.el-style-btn:active {
    transform: scale(0.98);
}
.el-style-label {
    display: block;
    font-weight: 500;
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #606266;
}
.el-style-checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.el-style-checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.9rem;
    color: #606266;
}
.el-style-checkbox-group input[type="checkbox"],
.el-style-checkbox-group input[type="radio"] {
    accent-color: var(--sun-red);
    width: 16px;
    height: 16px;
}
.el-style-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 6px;
}
.el-style-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.9rem;
    color: #606266;
}
.el-style-radio-group input[type="radio"] {
    accent-color: var(--sun-red);
    width: 16px;
    height: 16px;
}
.el-style-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid #dcdfe6;
    background: #f5f7fa;
    color: #606266;
    transition: 0.2s;
}
.el-style-tag.active {
    border-color: var(--sun-red);
    background: var(--sun-red-light);
    color: var(--sun-red);
}
.el-style-tag:hover {
    border-color: #c0c4cc;
}

.board-search-wrapper {
    position: relative;
}
.board-search-wrapper .el-style-input {
    padding-right: 32px;
}
.board-search-wrapper .board-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.board-search-wrapper .board-list.show {
    display: block;
}
.board-search-wrapper .board-list .board-option {
    padding: 8px 14px;
    cursor: pointer;
    transition: 0.15s;
    font-size: 0.9rem;
    color: #606266;
}
.board-search-wrapper .board-list .board-option:hover {
    background: var(--sun-red-light);
    color: var(--sun-red);
}
.board-search-wrapper .board-list .board-option.selected {
    background: var(--sun-red-light);
    color: var(--sun-red);
    font-weight: 600;
}
.board-search-wrapper .board-list .board-option .history-tag {
    font-size: 0.7rem;
    color: #909399;
    margin-left: 8px;
    background: #f5f7fa;
    padding: 0 8px;
    border-radius: 12px;
}

.user-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0 8px;
}
.user-mini-card .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0e3da;
    overflow: hidden;
    flex-shrink: 0;
}
.user-mini-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-mini-card .info {
    flex: 1;
}
.user-mini-card .info .name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.user-mini-card .info .name .level {
    font-size: 0.7rem;
    background: var(--sun-red-light);
    color: var(--sun-red);
    padding: 0 10px;
    border-radius: 12px;
    font-weight: 600;
}
.user-mini-card .info .stats {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 14px;
    margin-top: 2px;
}
.user-mini-card .info .stats .num {
    color: var(--sun-red);
    font-weight: 700;
}

/* ============================================================
   13. 我关注的板块 / 我的帖子（write.html / personal）
   ============================================================ */
.follow-board-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}
.follow-board-item:last-child {
    border-bottom: none;
}
.follow-board-item .board-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.follow-board-item .board-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
}
.follow-board-item .board-name:hover {
    color: var(--sun-red);
}
.follow-board-item .unfollow-btn {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 0 10px;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1.8;
}
.follow-board-item .unfollow-btn:hover {
    border-color: var(--sun-red);
    color: var(--sun-red);
}

.my-post-item {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}
.my-post-item:last-child {
    border-bottom: none;
}
.my-post-item .post-link {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.my-post-item .post-link:hover {
    color: var(--sun-red);
}
.my-post-item .post-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================================
   14. 空状态 & 辅助
   ============================================================ */
.empty-state-sm {
    text-align: center;
    color: #94a3b8;
    padding: 12px 0;
}
.empty-state-sm .icon {
    font-size: 1.5rem;
    display: block;
}
.empty-tip {
    text-align: center;
    color: #b0a8a0;
    padding: 20px 0;
    font-size: 0.9rem;
}
.more-link {
    margin-top: 10px;
    text-align: right;
}
.more-link a {
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
}
.more-link a:hover {
    color: #eb1313;
}

/* ============================================================
   15. 响应式微调（针对BBS特有组件）
   ============================================================ */
@media (max-width: 768px) {
    .board-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .board-header .board-actions {
        margin-left: 0;
        text-align: right;
    }
    .post-item .post-title-wrapper {
        flex-wrap: wrap;
    }
    .post-item .post-title {
        white-space: normal;
    }
    .rank-tabs {
        gap: 4px;
    }
    .rank-tabs a {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    .rank-item {
        gap: 10px;
        padding: 10px 0;
    }
    .rank-item .rank-num {
        flex: 0 0 24px;
        font-size: 1rem;
    }
    .board-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-toolbar .quick-toolbar {
        gap: 8px;
    }
    .hero-toolbar .quick-btn {
        padding: 4px 14px;
        font-size: 0.8rem;
    }
    .sub-comment {
        margin-left: 12px;
        padding-left: 6px;
    }
    .comment-title {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-bar .search-box {
        flex: 1;
    }
}
@media (max-width: 480px) {
    .board-grid {
        grid-template-columns: 1fr;
    }
    .bottom-article-item .item-date,
    .bottom-article-item .item-views {
        font-size: 0.65rem;
    }
    .bottom-article-item .item-category {
        font-size: 0.6rem;
    }
}

/** 任务  **/
/* ============================================================
   今日任务（index.html 侧边栏）
   ============================================================ */
.task-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.task-btn-group .task-action-btn {
    flex: 0 0 calc(50% - 4px);
    padding: 6px 8px;
    border-radius: 30px;
    border: none;
    background: #eb1313;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}
.task-btn-group .task-action-btn:hover {
    background: #c40e0e;
}
.task-btn-group .task-action-btn.outline {
    background: transparent;
    border: 1px solid #eb1313;
    color: #eb1313;
}
.task-btn-group .task-action-btn.outline:hover {
    background: #feeeee;
}
.task-login-tip {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    padding: 4px 0;
}
.task-login-tip a {
    color: #eb1313;
    text-decoration: none;
}
/* 今日任务容器兜底：一行两列（与通用片段保持一致） */
.task-container { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 8px; }
.task-container .task-item { display:flex; align-items:center; gap:4px; flex-wrap:nowrap; white-space:nowrap; font-size:0.8rem; padding:6px 8px; background:#faf6f2; border:0; border-radius:8px; min-width:0; }
.task-container .task-item .task-icon { font-size:0.95rem; flex:0 0 auto; }
.task-container .task-item .task-name { flex:0 1 auto; min-width:0; color:#444; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.task-container .task-item .task-reward { color:#eb1313; font-weight:700; flex:0 0 auto; font-size:0.78rem; }
.task-container .task-item .task-go { flex:0 0 auto; margin-left:2px; color:#eb1313; font-size:0.7rem; text-decoration:none; }
.task-login-tip a:hover {
    text-decoration: underline;
}

/* ============================================================
   板块区域（index.html 热门板块）
   ============================================================ */
.block-section {
    margin-bottom: 24px;
}
.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color, #f0e0d0);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.block-header h3 {
    font-size: 1.2rem;
    margin: 0;
}
.block-header .text-primary {
    color: var(--sun-red, #eb1313);
    text-decoration: none;
    font-size: 0.85rem;
}
.block-header .text-primary:hover {
    color: var(--sun-red-dark, #c40e0e);
    text-decoration: underline;
}

/* 板块头部按钮微调（覆盖 common.css 默认大按钮） */
.board-header .board-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 20px;
}
.board-header .board-actions .btn-primary {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 30px;
    line-height: 1.4;
    background-color: var(--sun-red);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.board-header .board-actions .btn-primary:hover {
    background-color: var(--sun-red-dark, #c40e0e);
}
