/* 分类筛选 */
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.filter-tab { padding: 8px 18px; background: #f5f5f7; border-radius: 25px; font-weight: 500; font-size: 0.85rem; color: #555; text-decoration: none; transition: all 0.25s; }
.filter-tab:hover { background: #e8e8ec; color: #333; }
.filter-tab.active { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,0.25); }

/* 文章列表 */
.article-list { display: flex; flex-direction: column; gap: 24px; }
.article-item { display: flex; gap: 24px; background: #fff; border-radius: 14px; padding: 24px; border: 1px solid #f0f0f0; transition: all 0.3s; text-decoration: none; color: inherit; }
.article-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); transform: translateY(-2px); border-color: rgba(79,70,229,0.15); }
.article-thumb { width: 200px; height: 140px; overflow: hidden; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: linear-gradient(135deg,#f5f5f7,#eef0f5); }
.article-thumb img{ width: 100%; height: 100%;}
.article-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.article-category { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 15px; background: rgba(79,70,229,0.08); color: #4f46e5; margin-bottom: 8px; width: fit-content; }
.article-info h2 { font-size: 1.2rem; font-weight: 700; color: #111; margin-bottom: 8px; line-height: 1.4; }
.article-info p { font-size: 0.9rem; color: #666; margin-bottom: 8px; }
.article-meta { font-size: 0.8rem; color: #999; display: flex; align-items: center; gap: 16px; }

/* 分页 */
.pagination ul { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination li { display: inline-flex; align-items: center; justify-content: center;  height: 40px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; text-decoration: none; color: #555; background: #f5f5f7; transition: all 0.2s; }
.pagination li a{border-radius: 8px; }
.pagination li a:hover { background: #e8e8ec; color: #111; border-radius: 8px; background: linear-gradient(135deg,#4f46e5,#7c3aed); color: #fff; }
.pagination a{ display: block; width: 100%; height: 100%; line-height: 40px; padding: 0px 15px;}
.pagination .active { background: linear-gradient(135deg,#4f46e5,#7c3aed);  }
.pagination .active a{color: #fff; }
.pagination .dots { background: transparent; cursor: default; }

/* 热门文章 */
.hot-list { list-style: none; }
.hot-list li { padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.hot-list li:last-child { border-bottom: none; }
.hot-list li a { text-decoration: none; color: #333; font-size: 0.9rem; font-weight: 500; display: flex; align-items: flex-start; gap: 8px; }
.hot-list li a:hover { color: #4f46e5; }
.hot-rank { font-weight: 700; color: #4f46e5; font-size: 0.85rem; flex-shrink: 0; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 6px 14px; background: #f5f5f7; border-radius: 20px; font-size: 0.82rem; color: #555; text-decoration: none; transition: all 0.2s; }
.tag-cloud a:hover { background: #4f46e5; color: #fff; }

@media (max-width: 768px) {
    .article-item { flex-direction: column; gap: 14px; padding: 16px; }
    .article-thumb { width: 100%; height: 160px; }
    .article-info h2 { font-size: 1.1rem; }
}