/**
 * Moban Theme - 论坛版块页样式
 * 从 dev_forum.php 提取，用于浏览器缓存
 */

    /* ==================== 基础变量 ==================== */
    :root {
        --primary: #4f46e5;
        --primary-dark: #7c3aed;
        --bg-dark: #0f172a;
        --card-bg: #1e1b4b;
        --text-light: #f8fafc;
        --text-muted: #94a3b8;
        --border-radius: 16px;
        --shadow: 0 4px 20px rgba(0,0,0,0.15);
        --shadow-hover: 0 8px 30px rgba(0,0,0,0.25);
    }
    
    /* 隐藏原有导航栏 */
    #header, .navbar, header.navbar, #footer, footer#footer, footer, .footer-nav {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        min-height: 100vh;
    }
    
    /* ==================== 论坛头部 ==================== */
    .forum-header {
        background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
        padding: 40px 0;
        margin-bottom: 30px;
        color: #fff;
    }
    
    .forum-header-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .forum-info h1 {
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .forum-info .forum-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        object-fit: cover;
    }
    
    .forum-desc {
        color: rgba(255, 255, 255, 0.7);
        font-size: 15px;
        max-width: 500px;
    }
    
    .forum-stats {
        display: flex;
        gap: 30px;
    }
    
    .forum-stat-item {
        text-align: center;
    }
    
    .forum-stat-number {
        font-size: 28px;
        font-weight: 800;
        color: #fff;
    }
    
    .forum-stat-label {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.6);
    }
    
    /* ==================== 面包屑导航 ==================== */
    .breadcrumb-wrap {
        max-width: 1200px;
        margin: 0 auto 20px;
        padding: 0 15px;
    }
    
    .custom-breadcrumb {
        background: #fff;
        padding: 12px 20px;
        border-radius: 12px;
        box-shadow: var(--shadow);
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
    }
    
    .custom-breadcrumb a {
        color: #64748b;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .custom-breadcrumb a:hover {
        color: var(--primary);
    }
    
    .custom-breadcrumb .current {
        color: #1e293b;
        font-weight: 600;
    }
    
    .breadcrumb-separator {
        color: #cbd5e1;
    }
    
    /* ==================== 主内容区 ==================== */
    .moban-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px 40px;
    }
    
    .forum-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 24px;
    }
    
    .main-content {
        min-width: 0;
    }
    
    @media (max-width: 991px) {
        .forum-layout {
            grid-template-columns: 1fr;
        }
    }
    
    /* ==================== 帖子卡片 ==================== */
    .thread-list-card {
        background: #fff;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        overflow: hidden;
        max-width: 100%;
    }
    
    .thread-list-header {
        padding: 20px;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .thread-list-title {
        font-size: 18px;
        font-weight: 700;
        color: #1e293b;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .thread-list-title i {
        color: var(--primary);
    }
    
    .thread-sort {
        display: flex;
        gap: 8px;
    }
    
    .sort-btn {
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 13px;
        text-decoration: none;
        transition: all 0.3s;
        border: 1px solid #e2e8f0;
        color: #64748b;
    }
    
    .sort-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        text-decoration: none;
    }
    
    .sort-btn.active {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }
    
    .thread-item {
        padding: 20px;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        gap: 16px;
        transition: all 0.3s ease;
        min-width: 0;
    }
    
    .thread-item:hover {
        background: #f8fafc;
    }
    
    .thread-item:last-child {
        border-bottom: none;
    }
    
    .thread-avatar {
        width: 29px;
        height: 29px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        flex-shrink: 0;
    }
    
    .thread-content {
        flex: 1;
        min-width: 0;
    }
    
    .thread-title-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        overflow: hidden;
        min-width: 0;
    }
    
    .thread-title {
        font-size: 16px;
        font-weight: 600;
        color: #1e293b;
        text-decoration: none;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        transition: color 0.3s;
        min-width: 0;
        flex: 1;
    }
    
    .thread-title:hover {
        color: var(--primary);
        text-decoration: none;
    }
    
    .thread-tag {
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 600;
        flex-shrink: 0;
    }
    
    .thread-tag.top {
        background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
        color: #92400e;
    }
    
    .thread-tag.essence {
        background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
        color: #fff;
    }
    
    .thread-tag.check-pending {
        background: #fffbeb;
        color: #92400e;
        border: 1px solid #fcd34d;
    }
    .thread-tag.check-rejected {
        background: #fef2f2;
        color: #991b1b;
        border: 1px solid #fca5a5;
    }
    .thread-tag.check-recycle {
        background: #f3f4f6;
        color: #374151;
        border: 1px solid #d1d5db;
    }
    body.dark-mode .thread-tag.check-pending { background: #451a03; color: #fcd34d; border-color: #92400e; }
    body.dark-mode .thread-tag.check-rejected { background: #450a0a; color: #fca5a5; border-color: #991b1b; }
    body.dark-mode .thread-tag.check-recycle { background: #1f2937; color: #d1d5db; border-color: #4b5563; }
    
    .thread-meta {
        display: flex;
        align-items: center;
        gap: 16px;
        font-size: 13px;
        color: #64748b;
        flex-wrap: wrap;
        overflow: hidden;
    }
    
    .thread-meta a {
        color: var(--primary);
        font-weight: 500;
        text-decoration: none;
    }
    
    .thread-meta span {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .thread-stats-row {
        display: flex;
        gap: 16px;
        margin-left: auto;
    }
    
    .thread-stat {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 13px;
        color: #94a3b8;
    }
    
    .thread-stat i {
        font-size: 12px;
    }
    
    /* ==================== 分页 ==================== */
    .pagination-wrap {
        display: flex;
        justify-content: center;
        padding: 24px;
        border-top: 1px solid #f1f5f9;
        overflow-x: auto;
    }
    
    .pagination-wrap nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .pagination,
    nav > .page-item {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .pagination li,
    nav > .page-item {
        list-style: none;
        display: inline-flex;
    }
    
    .pagination a, .pagination span,
    .page-link {
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 14px;
        text-decoration: none;
        transition: all 0.3s;
        display: inline-block;
    }
    
    .pagination a,
    .page-link {
        background: #f1f5f9;
        color: #64748b;
    }
    
    .pagination a:hover,
    .page-link:hover {
        background: var(--primary);
        color: #fff;
        text-decoration: none;
    }
    
    .pagination .active span,
    .page-item.active .page-link {
        background: var(--primary);
        color: #fff;
    }
    
    .pagination .disabled span,
    .page-item.disabled .page-link {
        background: #f1f5f9;
        color: #cbd5e1;
    }
    
    /* ==================== 侧边栏 ==================== */
    .sidebar-section {
        margin-bottom: 24px;
    }
    
    .sidebar-card {
        background: #fff;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        overflow: hidden;
    }
    
    .sidebar-header {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: #fff;
        padding: 16px 20px;
        font-weight: 600;
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .sidebar-body {
        padding: 16px;
    }
    
    .create-thread-btn {
        display: block;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: #fff;
        text-align: center;
        padding: 14px;
        border-radius: 12px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s;
        margin-bottom: 20px;
    }
    
    .create-thread-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
        color: #fff;
        text-decoration: none;
    }
    
    .forum-nav-item {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        border-radius: 10px;
        text-decoration: none;
        color: #475569;
        transition: all 0.3s;
        margin-bottom: 4px;
    }
    
    .forum-nav-item:hover {
        background: #f1f5f9;
        color: var(--primary);
        text-decoration: none;
    }
    
    .forum-nav-item.active {
        background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
        color: var(--primary);
        font-weight: 600;
    }
    
    .forum-nav-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        margin-right: 12px;
        object-fit: cover;
    }
    
    .forum-nav-name {
        flex: 1;
    }
    
    .forum-nav-count {
        font-size: 12px;
        color: #94a3b8;
        background: #f1f5f9;
        padding: 2px 8px;
        border-radius: 10px;
    }
    
    /* 站点统计 */
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-item {
        background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
        border-radius: 12px;
        padding: 16px 12px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 4px;
    }
    
    .stat-number.text-primary { color: #60a5fa; }
    .stat-number.text-success { color: #34d399; }
    .stat-number.text-purple { color: #a78bfa; }
    .stat-number.text-warning { color: #fbbf24; }
    
    .stat-label {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.6);
    }
    
    /* ==================== 页脚 ==================== */
    .moban-footer {
        background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
        color: rgba(255, 255, 255, 0.8);
        padding: 50px 0 20px;
        margin-top: 60px;
    }
    
    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 30px;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 20px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 10px;
    }
    
    .footer-brand i {
        color: #a78bfa;
    }
    
    .footer-desc {
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        margin: 0;
    }
    
    .footer-links {
        display: flex;
        gap: 30px;
    }
    
    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s;
    }
    
    .footer-links a:hover {
        color: #fff;
    }
    
    .footer-bottom {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
    }
    
    /* ==================== 响应式 ==================== */
    @media (max-width: 767px) {
        .forum-header-inner {
            flex-direction: column;
            text-align: center;
            gap: 20px;
        }
        
        .forum-stats {
            justify-content: center;
        }
        
        .thread-item {
            padding: 16px;
        }
        
        .thread-stats-row {
            display: none;
        }
        
        .thread-title {
            font-size: 15px;
        }
    }
    
    /* ==================== 暗黑模式 ==================== */
    body.dark-mode {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    body.dark-mode .custom-breadcrumb,
    body.dark-mode .thread-list-card,
    body.dark-mode .sidebar-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    body.dark-mode .custom-breadcrumb a {
        color: #94a3b8;
    }
    
    body.dark-mode .custom-breadcrumb .current {
        color: #f1f5f9;
    }
    
    body.dark-mode .breadcrumb-separator {
        color: #64748b;
    }
    
    body.dark-mode .thread-item {
        border-color: #334155;
    }
    
    body.dark-mode .thread-item:hover {
        background: #334155;
    }
    
    body.dark-mode .thread-title {
        color: #f1f5f9;
    }
    
    body.dark-mode .forum-nav-item:hover {
        background: #334155;
    }
    
    body.dark-mode .moban-footer {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    /* ========== 管理功能样式 ========== */
    .thread-mod-checkbox {
        width: 18px;
        height: 18px;
        margin-right: 12px;
        flex-shrink: 0;
        cursor: pointer;
        accent-color: #4f46e5;
    }
    
    .thread-mod-panel {
        padding: 16px 20px;
        background: #f8fafc;
        border-top: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .thread-mod-checkall {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: #475569;
        cursor: pointer;
        font-weight: 500;
    }
    
    .thread-mod-checkall input {
        width: 16px;
        height: 16px;
        accent-color: #4f46e5;
    }
    
    .thread-mod-buttons {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .thread-mod-buttons .btn {
        font-size: 13px;
        padding: 6px 14px;
        border-radius: 6px;
        background: #fff;
        color: #475569;
        border: 1px solid #e2e8f0;
        transition: all 0.2s ease;
    }
    
    .thread-mod-buttons .btn:hover {
        background: #4f46e5;
        color: #fff;
        border-color: #4f46e5;
    }
    
    @media (max-width: 576px) {
        .thread-mod-panel {
            padding: 12px;
            gap: 10px;
        }
        
        .thread-mod-buttons .btn {
            font-size: 12px;
            padding: 4px 10px;
        }
    }
    
    body.dark-mode .thread-mod-panel {
        background: #1e293b;
        border-color: #334155;
    }
    
    body.dark-mode .thread-mod-checkall {
        color: #94a3b8;
    }
    
    body.dark-mode .thread-mod-buttons .btn {
        background: #334155;
        color: #cbd5e1;
        border-color: #475569;
    }
    
    body.dark-mode .thread-mod-buttons .btn:hover {
        background: #4f46e5;
        color: #fff;
        border-color: #4f46e5;
    }
    
