/* =====================
   版块文章列表页（不含前端编辑器样式，编辑器样式见 frontend-editor.css）
   ===================== */
.board-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 1.5rem 4rem;
}

/* 面包屑 */
.board-breadcrumb {
    font-size: 0.82rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.board-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.board-breadcrumb a:hover {
    text-decoration: underline;
}

/* 版块标题栏 */
.board-hero {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.board-hero-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    flex-shrink: 0;
}

.board-hero-info h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.board-hero-info p {
    font-size: 0.85rem;
    color: var(--gray);
}

.board-hero-stats {
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

.board-hero-stats .num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.board-hero-stats .label {
    font-size: 0.75rem;
    color: var(--gray);
}

/* 工具栏 */
.board-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.board-toolbar-left {
    font-size: 0.82rem;
    color: var(--gray);
}

.board-toolbar-right {
    display: flex;
    gap: 0.5rem;
}

.btn-new-article {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-new-article:hover {
    opacity: 0.85;
    color: var(--white);
}

/* 文章列表 */
.article-list {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* 列表表头 */
.article-list-header {
    display: grid;
    grid-template-columns: 1fr 90px 130px;
    background: var(--gray-bg);
    border-bottom: 1px solid var(--border);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--gray);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.article-list-header span {
    padding: 0.6rem 1.25rem;
}

.article-list-header span:nth-child(2),
.article-list-header span:nth-child(3) {
    text-align: center;
    border-left: 1px solid var(--border);
}

/* 单篇文章行 */
.article-row {
    display: grid;
    grid-template-columns: 1fr 90px 130px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.article-row:last-child {
    border-bottom: none;
}

.article-row:hover {
    background: #f8faff;
}

/* 文章标题+摘要 */
.article-row-main {
    padding: 1rem 1.25rem;
    min-width: 0;
}

.article-row-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-row-excerpt {
    font-size: 0.78rem;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 文章统计（阅读量 + 点赞） */
.article-row-stats {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.3rem;
    font-size: 0.74rem;
    color: var(--gray);
}

.article-row-stats i {
    margin-right: 0.2rem;
}

/* 新文章标签 */
.tag-new {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    background: #ef4444;
    color: white;
    border-radius: 3px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* 发布时间列 */
.article-row-date {
    text-align: center;
    padding: 1rem 0.5rem;
    border-left: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--gray);
    line-height: 1.5;
}

/* 作者列 */
.article-row-author {
    text-align: center;
    padding: 1rem 0.5rem;
    border-left: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--gray);
}

.article-row-author .author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin: 0 auto 0.25rem;
    display: block;
    overflow: hidden;
}

.article-row-author .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-row-author .author-name {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    margin: 0 auto;
}

/* 空状态 */
.article-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--gray);
}

.article-empty i {
    font-size: 2.5rem;
    opacity: 0.25;
    margin-bottom: 0.75rem;
    display: block;
}

/* 分页 */
.board-pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.board-pagination a,
.board-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--dark);
    transition: var(--transition);
}

.board-pagination a:hover,
.board-pagination span.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* 响应式 */
@media (max-width: 640px) {
    .article-list-header,
    .article-row {
        grid-template-columns: 1fr 80px;
    }

    .article-row-author,
    .article-list-header span:nth-child(3) {
        display: none;
    }

    .board-hero {
        flex-wrap: wrap;
    }

    .board-hero-stats {
        margin-left: 0;
        text-align: left;
    }
}
