/**
 * 列表页专用样式 — 中国红极简风格
 */

/* 面包屑 */
.breadcrumb {
    padding: 16px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--fg);
}

.breadcrumb span {
    margin: 0 6px;
    color: var(--muted);
}

/* 页面标题 */
.page-hero {
    padding: 24px 0 8px;
}

.page-hero h1 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.page-hero p {
    color: var(--muted);
    font-size: 15px;
    max-width: 56ch;
}

/* 内容两栏布局 */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    padding: 24px 0 64px;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.filter-tabs {
    display: flex;
    gap: 6px;
}

.filter-tabs a {
    font-size: 13px;
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--muted);
    background: transparent;
    transition: 0.12s;
    text-decoration: none;
}

.filter-tabs a:hover {
    border-color: var(--fg);
    color: var(--fg);
}

.filter-tabs a.active {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

/* 文章列表 */
.article-list-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.article-list {
    list-style: none;
}

.article-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background: var(--bg);
}

.article-item .item-body {
    flex: 1;
}

.article-item .item-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.article-item .item-tag {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 3px;
    font-weight: 600;
}

.article-item .item-tag.tag-base {
    color: var(--accent);
    background: var(--accent-soft);
}

.article-item .item-tag.tag-adv {
    color: var(--fg);
    background: var(--border);
}

.article-item .item-tag.tag-default {
    color: var(--muted);
    background: var(--border);
}

.article-item .item-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
    text-decoration: none;
    transition: color 0.12s;
}

.article-item .item-title:hover {
    color: var(--accent);
}

.article-item .item-excerpt {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.article-item .item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
}

.article-item .item-meta span {
    font-size: 12px;
    color: var(--muted);
}

.article-item .item-arrow {
    color: var(--muted);
    font-size: 13px;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: 0.12s;
}

.pagination a:hover {
    border-color: var(--fg);
    color: var(--fg);
}

.pagination .current {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.pagination .dots {
    border-color: transparent;
}

/* 空状态 */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
}

.empty-state p {
    margin-bottom: 4px;
}

.empty-state a {
    color: var(--accent);
    text-decoration: underline;
}

.empty-state a:hover {
    color: var(--accent-dark);
}

/* 侧边栏 */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
    .filter-tabs a {
        white-space: nowrap;
        font-size: 12px;
        padding: 4px 12px;
    }
    .article-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 18px;
    }
    .article-item .item-arrow {
        display: none;
    }
    .page-hero h1 {
        font-size: clamp(24px, 5vw, 32px);
    }
}

@media (max-width: 480px) {
    .content-layout {
        padding: 16px 0 40px;
    }
    .article-item {
        padding: 12px 16px;
    }
    .article-item .item-title {
        font-size: 14px;
    }
    .pagination a,
    .pagination span {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
        padding: 0 8px;
    }
}