/* ============================================================
   文章列表页 - 论坛卡片风格（精简版，无头像）
   ============================================================ */

/* ===== 分类横幅 ===== */
.forum-banner {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 20px;
    border: 1px solid #e8ecf1;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.forum-banner .banner-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.forum-banner .cat-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.forum-banner .cat-desc {
    font-size: 0.85rem;
    color: #94a3b8;
}
.forum-banner .cat-stats {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #94a3b8;
}
.forum-banner .cat-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.forum-banner .cat-stats .stat-item strong {
    color: #1a1a2e;
}

/* ===== Tab导航 ===== */
.forum-tab-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 4px 16px;
    border: 1px solid #e8ecf1;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 4px;
}
.forum-tab-nav .tab-nav {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}
.forum-tab-nav .tab-item {
    padding: 5px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s;
}
.forum-tab-nav .tab-item:hover {
    background: #f1f4f9;
    color: #4a6cf7;
}
.forum-tab-nav .tab-item.active {
    background: #4a6cf7;
    color: #fff;
}
.forum-tab-nav .post-count {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* ===== 置顶 ===== */
.sticky-section {
    background: #fffbeb;
    border-radius: 8px;
    border: 1px solid #fde68a;
    margin-bottom: 12px;
    overflow: hidden;
}
.sticky-section .sticky-header {
    background: #fef3c7;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sticky-item {
    padding: 6px 14px;
    border-bottom: 1px solid #fef3c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}
.sticky-item:last-child { border-bottom: none; }
.sticky-item .item-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a1a2e;
    text-decoration: none;
}
.sticky-item .item-title:hover { color: #4a6cf7; }
.sticky-item .sticky-badge {
    background: #f59e0b;
    color: #fff;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.5rem;
    font-weight: 600;
    margin-right: 6px;
}
.sticky-item .item-meta {
    font-size: 0.65rem;
    color: #94a3b8;
}

/* ===== 帖子卡片（无头像） ===== */
.forum-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.forum-post-card {
    display: flex;
    gap: 12px;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid #e8ecf1;
    transition: all 0.15s ease;
    align-items: flex-start;
}
.forum-post-card:hover {
    border-color: #cbd5e1;
    background: #fafbfc;
}
.post-index {
    flex-shrink: 0;
    width: 28px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    padding-top: 2px;
}
.post-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.post-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
}
.post-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}
.post-title .title-link {
    color: #1a1a2e;
    text-decoration: none;
}
.post-title .title-link:hover { color: #4a6cf7; }
.post-title .badge-essence {
    background: #fef3c7;
    color: #92400e;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.5rem;
    font-weight: 600;
}
.post-title .badge-category {
    background: #eef2ff;
    color: #4a6cf7;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.5rem;
    font-weight: 500;
}
.post-summary {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 0.72rem;
    color: #94a3b8;
}
.post-meta .author {
    font-weight: 500;
    color: #4a6cf7;
}
.post-meta .reply-count,
.post-meta .view-count {
    display: flex;
    align-items: center;
    gap: 2px;
}
.post-meta i { font-size: 0.65rem; }

/* ===== 空状态 ===== */
.empty-state-custom {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf1;
}
.empty-state-custom i {
    font-size: 2rem;
    color: #d0d7de;
    display: block;
    margin-bottom: 10px;
}

/* ===== 加载更多 ===== */
.load-more-wrap {
    text-align: center;
    padding: 14px 0 18px 0;
}
.load-more-btn {
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 8px 32px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.load-more-btn:hover {
    background: #3b5de7;
    transform: translateY(-1px);
}
.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.load-more-btn .spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.no-more-text {
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 6px 0;
}

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4a6cf7;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(74,108,247,0.3);
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { background: #3b5de7; transform: scale(1.05); }

/* ===== 底部关注 ===== */
.follow-section {
    background: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    border: 1px solid #e8ecf1;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.follow-section .follow-title {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.85rem;
}
.follow-section .follow-title i { color: #4a6cf7; }
.follow-section .follow-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.follow-section .follow-links a {
    color: #4a5568;
    font-size: 0.75rem;
    padding: 3px 12px;
    border-radius: 16px;
    background: #f1f3f5;
    text-decoration: none;
    transition: 0.2s;
}
.follow-section .follow-links a:hover {
    background: #eef2ff;
    color: #4a6cf7;
}
.footer-custom {
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    padding: 10px 0 4px;
}

/* ===== 面包屑 ===== */
.breadcrumb-nav {
    font-size: 0.8rem;
    color: #94a3b8;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.breadcrumb-nav a {
    color: #4a6cf7;
    text-decoration: none;
}
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav .separator { margin: 0 6px; color: #d0d7de; }
.breadcrumb-nav .current { color: #1a1a2e; }
@media (max-width: 768px) {
    .breadcrumb-nav { padding: 7px 12px; margin-bottom: 10px; }
}

/* ================================================================
   移动端适配
   ================================================================ */
@media (max-width: 768px) {
    .forum-banner { padding: 10px 14px; flex-direction: column; align-items: flex-start; gap: 4px; }
    .forum-banner .cat-name { font-size: 1.1rem; }
    .forum-banner .cat-stats { gap: 12px; font-size: 0.7rem; }
    .forum-tab-nav { padding: 4px 10px; }
    .forum-tab-nav .tab-item { font-size: 0.75rem; padding: 4px 10px; }
    .forum-tab-nav .post-count { font-size: 0.65rem; }
    .forum-post-card { padding: 8px 10px; gap: 8px; }
    .post-index { width: 22px; font-size: 0.6rem; }
    .post-title { font-size: 0.85rem; }
    .post-summary { font-size: 0.78rem; }
    .post-meta { font-size: 0.65rem; gap: 6px 10px; }
    .sticky-item .item-title { font-size: 0.78rem; }
}

@media (max-width: 576px) {
    .forum-banner { padding: 8px 12px; border-radius: 8px; }
    .forum-banner .cat-name { font-size: 0.95rem; }
    .forum-banner .cat-stats { gap: 10px; font-size: 0.62rem; flex-wrap: wrap; }
    .forum-tab-nav .tab-item { font-size: 0.65rem; padding: 3px 8px; }
    .forum-tab-nav .post-count { font-size: 0.58rem; }
    .forum-post-card { padding: 6px 8px; gap: 6px; }
    .post-index { width: 18px; font-size: 0.55rem; }
    .post-title { font-size: 0.78rem; }
    .post-title .badge-essence,
    .post-title .badge-category { font-size: 0.45rem; padding: 0 5px; }
    .post-summary { font-size: 0.7rem; -webkit-line-clamp: 1; }
    .post-meta { font-size: 0.55rem; gap: 4px 6px; }
    .sticky-item .item-title { font-size: 0.72rem; }
    .sticky-item .item-meta { font-size: 0.55rem; }
    .back-to-top { bottom: 68px; right: 12px; width: 34px; height: 34px; font-size: 0.8rem; }
    .load-more-btn { padding: 6px 20px; font-size: 0.75rem; }
    .follow-section { flex-direction: column; text-align: center; padding: 10px 12px; }
    .follow-section .follow-links { justify-content: center; }
    .follow-section .follow-links a { font-size: 0.68rem; padding: 2px 10px; }
}