/* ===== Content page layout overrides ===== */
body { background:#f0f4f8; color:#1a1a1a; font-size:14px; line-height:1.6; }
a { text-decoration:none; color:inherit; }
.main { max-width:1200px; margin:0 auto; padding:40px 0 60px; display:flex; gap:12px; }
.content { flex:1; }
.sidebar { width:280px; flex-shrink:0; position:static !important; max-width:100%; box-sizing:border-box; }
.footer { margin-top:24px; }

/* Breadcrumb */
.breadcrumb { background: #fff; border-radius: 2px; padding: 12px 20px; margin-bottom: 12px; font-size: 13px; color: #999; }
.breadcrumb a { color: #666; transition: color 0.2s; }
.breadcrumb a:hover { color: #e74c3c; }
.breadcrumb span { margin: 0 8px; color: #ccc; }

/* Section Header */
.section-header { background: #fff; border-radius: 2px; padding: 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.section-header h1 { font-size: 18px; font-weight: 600; color: #333; }
.section-header .count { font-size: 13px; color: #999; }
.section-header .count strong { color: #e74c3c; }

/* Filter */
.filter { background: #fff; border-radius: 2px; padding: 16px 20px; margin-bottom: 12px; display: flex; gap: 20px; flex-wrap: wrap; }
.filter-item { display: flex; align-items: center; gap: 8px; }
.filter-item .label { color: #999; font-size: 13px; }
.filter-item a { padding: 4px 12px; font-size: 13px; color: #666; border-radius: 2px; transition: all 0.2s; }
.filter-item a:hover { background: #f5f5f5; }
.filter-item a.active { background: #e74c3c; color: #fff; }

/* Article List */
.article-list { background: #fff; border-radius: 2px; }
.article-list-item { display: flex; gap: 20px; padding: 20px; border-bottom: 1px solid #f5f5f5; transition: background 0.2s; }
.article-list-item:last-child { border-bottom: none; }
.article-list-item:hover { background: #fafafa; }
.article-list-item .thumb { width: 200px; height: 130px; flex-shrink: 0; border-radius: 2px; overflow: hidden; }
.article-list-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-list-item:hover .thumb img { transform: scale(1.05); }
.article-list-item .info { flex: 1; min-width: 0; }
.article-list-item .meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 12px; color: #999; }
.article-list-item .meta .tag { background: #fff5f5; color: #e74c3c; padding: 2px 8px; border-radius: 2px; }
.article-list-item h2 { font-size: 17px; font-weight: 600; color: #333; margin-bottom: 8px; line-height: 1.4; transition: color 0.2s; }
.article-list-item:hover h2 { color: #e74c3c; }
.article-list-item .desc { font-size: 13px; color: #888; line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-list-item .bottom { display: flex; justify-content: space-between; align-items: center; }
.article-list-item .bottom .stats { display: flex; gap: 16px; font-size: 12px; color: #bbb; }

/* Pagination */
.pagination { background: #fff; border-radius: 2px; padding: 20px; display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pagination a, .pagination span, .page-btn { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #666; border-radius: 2px; transition: all 0.2s; }
.pagination a:hover, .page-btn:hover { background: #f5f5f5; }
.pagination a.active, .page-btn.active { background: #e74c3c; color: #fff; }
.pagination a.prev, .pagination a.next, .page-btn:first-child, .page-btn:last-child { padding: 0 16px; }
.pagination span.disabled, .page-dots { color: #ccc; cursor: not-allowed; }

/* Article Detail */
.article { background: #fff; border-radius: 2px; overflow: hidden; margin-bottom: 12px; }
.article-cover { width: 100%; height: 320px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 24px; }
.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; color: #999; flex-wrap: wrap; }
.article-meta .tag { background: #fff5f5; color: #e74c3c; padding: 2px 8px; border-radius: 2px; }
.article-title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 16px; line-height: 1.4; }
.article-desc { font-size: 15px; color: #666; line-height: 1.8; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.article-content { color: #333; line-height: 1.9; font-size: 15px; }
.article-content p { margin-bottom: 16px; text-align: justify; }
.article-content h2 { font-size: 17px; font-weight: 600; margin: 28px 0 14px; color: #1a1a1a; padding-left: 12px; border-left: 3px solid #e74c3c; }
.article-content h3 { font-size: 15px; font-weight: 600; margin: 20px 0 10px; color: #333; }
.article-content ul, .article-content ol { padding-left: 20px; margin-bottom: 16px; }
.article-content li { margin-bottom: 8px; }
.article-content img { max-width: 100%; border-radius: 2px; margin: 16px 0; display: block; }
.article-content blockquote { background: #f8f9fa; padding: 16px 20px; border-left: 3px solid #e74c3c; margin: 20px 0; color: #666; border-radius: 0 2px 2px 0; }
.article-content blockquote p { margin-bottom: 0; }
.article-content code { background: #f5f5f5; padding: 2px 6px; border-radius: 2px; font-size: 13px; color: #e74c3c; }
.article-content pre { background: #f8f9fa; padding: 16px; border-radius: 2px; overflow-x: auto; margin: 16px 0; }
.article-content pre code { background: none; padding: 0; }
.article-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.article-tags a { background: #f5f5f5; color: #666; padding: 4px 12px; border-radius: 2px; font-size: 12px; transition: all 0.2s; }
.article-tags a:hover { background: #fff5f5; color: #e74c3c; }

/* Prev Next */
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width:100%; overflow:hidden; box-sizing:border-box; }
.prev-next a { background: #fff; border-radius: 2px; padding: 16px; transition: box-shadow 0.2s; display: block; max-width:100%; overflow:hidden; box-sizing:border-box; }
.prev-next a:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.prev-next .label { font-size: 12px; color: #999; margin-bottom: 6px; }
.prev-next h4 { font-size: 14px; color: #333; line-height: 1.4; white-space:normal; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }

/* Page Content */
.page-content { background: #fff; border-radius: 2px; padding: 32px; }
.page-content-box { background: #fff; border-radius: 2px; padding: 32px; }
.page-title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.page-body { color: #333; line-height: 1.9; font-size: 15px; }
.page-body p { margin-bottom: 18px; text-align: justify; }
.page-body h2 { font-size: 17px; font-weight: 600; margin: 32px 0 16px; color: #1a1a1a; padding-left: 12px; border-left: 3px solid #e74c3c; }
.page-body h3 { font-size: 15px; font-weight: 600; margin: 24px 0 12px; color: #333; }
.page-body ul, .page-body ol { padding-left: 20px; margin-bottom: 18px; }
.page-body li { margin-bottom: 8px; }
.page-body blockquote { background: #f8f9fa; padding: 16px 20px; border-left: 3px solid #e74c3c; margin: 20px 0; color: #666; border-radius: 0 2px 2px 0; }
.page-body table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.page-body th, .page-body td { padding: 12px 16px; border: 1px solid #eee; text-align: left; }
.page-body th { background: #f8f9fa; font-weight: 600; }
.info-box { background: #f8f9fa; border-radius: 2px; padding: 20px; margin: 24px 0; }
.info-box h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: #333; }
.info-box p { margin-bottom: 8px; font-size: 14px; }
.page-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; max-width:100%; box-sizing:border-box; }
.page-item:last-child { border-bottom: none; }
.page-item .icon { width: 32px; height: 32px; background: #f5f5f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #666; font-size: 14px; }
.page-item .info h4 { font-size: 13px; color: #333; margin-bottom: 2px; }
.page-item .info p { font-size: 11px; color: #999; }
.contact-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.contact-item:last-child { border-bottom: none; }
.contact-item .icon { width: 36px; height: 36px; background: #fff5f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #e74c3c; font-size: 14px; flex-shrink: 0; }
.contact-item .info h4 { font-size: 13px; color: #333; margin-bottom: 4px; }
.contact-item .info p { font-size: 12px; color: #666; }

/* Sidebar Card */
.sidebar-right { width: 280px; flex-shrink: 0; }
.sidebar-card { background: #fff; border-radius: 2px; padding: 20px; margin-bottom: 12px; }
.sidebar-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: #333; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-cloud a { background: #f5f5f5; color: #666; padding: 4px 10px; border-radius: 2px; font-size: 12px; transition: all 0.2s; white-space: nowrap; }
.tags-cloud a:hover { background: #fff5f5; color: #e74c3c; }
.cate-list-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.cate-list-item:last-child { border-bottom: none; }
.cate-list-item a { color: #666; font-size: 13px; transition: color 0.2s; }
.cate-list-item a:hover { color: #e74c3c; }
.cate-list-item span { font-size: 12px; color: #bbb; }
.ad-space { background: #fff; border: 2px dashed #ddd; border-radius: 2px; height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 12px; }
.ad-space .ad-label { font-size: 14px; color: #bbb; margin-bottom: 4px; }
.ad-space .ad-size { font-size: 12px; color: #ddd; }

/* Hot items */
.sidebar .sidebar-card .hot-wrap { display:flex !important; flex-wrap:wrap; gap:2px 8px; width:100%; }
.sidebar .sidebar-card .hot-item { display:inline-flex !important; align-items:center; gap:4px; font-size:12px; color:#666; text-decoration:none; min-width:0; outline:0; background:none !important; max-width:100%; }
.sidebar .sidebar-card .hot-item:focus { outline:0; background:none !important; }
.sidebar .sidebar-card .hot-item:hover { background:none !important; color:#e74c3c; }
.sidebar .sidebar-card .hot-num { display:inline-flex; align-items:center; justify-content:center; font-size:11px; font-weight:600; flex-shrink:0; width:18px; height:18px; border-radius:2px; }
.sidebar .sidebar-card .hot-num.top { background:#e74c3c; color:#fff; }
.sidebar .sidebar-card .hot-num.normal { background:#f0f0f0; color:#999; }
.sidebar .sidebar-card .hot-title { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; flex:1; min-width:0; color:#666; }
.sidebar .sidebar-card .hot-title:hover { color:#e74c3c; }

/* Related Articles */
.related-list { display:flex; flex-direction:column; }
.related-item { display:flex; gap:10px; padding:10px 0; border-bottom:1px solid #f5f5f5; text-decoration:none; color:inherit; align-items:center; }
.related-item:hover { background:transparent; }
.related-item:last-child { border-bottom:none; }
.related-thumb { width:100%; height:50px; object-fit:cover; border-radius:2px; flex-shrink:0; }
.related-info { flex:1; min-width:0; }
.related-title { font-size:13px; color:#333; line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align: left; }
.related-title:hover { color:#e74c3c; }
.related-meta { font-size:11px; color:#bbb; text-align:left; }

/* 404 */
.error-404 { text-align:center; padding:80px 20px; }
.error-404 h1 { font-size:80px; font-weight:700; color:#ddd; margin-bottom:16px; }
.error-404 p { color:#999; font-size:16px; margin-bottom:24px; }
.error-404 .btn-home { display:inline-block; padding:10px 24px; background:#e74c3c; color:#fff; border-radius:2px; font-size:14px; transition:background .2s; }
.error-404 .btn-home:hover { background:#c0392b; }



@media (max-width:768px) {
    .main { padding: 12px !important; }
    .sidebar-right { width:100%; }
    .sidebar-card { width:100%; }
    .related-list { width:100%; max-width:100%; }
    .article-detail-cover { height:200px; }
    .article-detail-body { padding:20px; }
    .article-detail-title, .page-title { font-size:18px; }
    .prev-next { grid-template-columns:1fr; }
    .page-content-box { padding:20px; }
    .article-list-item { flex-direction:column; }
    .article-list-item .thumb { width:100%; height:180px; }
    .filter { flex-direction:column; gap:12px; }
    .pagination { flex-wrap:wrap; }
    .ad-space { height:150px; }
    .breadcrumb { font-size:12px; }
    .sidebar .sidebar-card .hot-title, .related-title { white-space:nowrap; -webkit-line-clamp:1; }
    .prev-next h4 { white-space:nowrap; -webkit-line-clamp:1; }
}
