/**
 * 新闻列表模块样式（News）
 * 卡片网格（3 列响应式）+ 日期/作者 + 标题 + 数字分页
 * 对应模板：template-parts/news/news-content.php
 * 文件修改时间：2026-09-11
 */

/* ========== 卡片网格 ========== */
.cen-news {
    padding: 60px 0 40px;
}

.cen-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
}

/* ========== 卡片 ========== */
.cen-news__card {
    display: flex;
    flex-direction: column;
}

.cen-news__thumb {
    display: block;
    overflow: hidden;
    margin-bottom: 14px;
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
}

.cen-news__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cen-news__card:hover .cen-news__thumb img {
    transform: scale(1.05);
}

/* 日期 / 作者 */
.cen-news__meta {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #9ca3af;
}

.cen-news__sep {
    margin: 0 6px;
}

/* 标题 */
.cen-news__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.cen-news__title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.25s ease;
}

.cen-news__title a:hover {
    color: #f97316;
}

/* ========== 空状态 ========== */
.cen-news__empty {
    margin: 0;
    padding: 60px 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #9ca3af;
}

/* ========== 数字分页 ========== */
.cen-news__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 48px;
}

.cen-news__pagination .page-numbers,
.cen-news__page-num,
.cen-news__page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #6b7280;
    background: #f3f4f6;
    transition: all 0.25s ease;
}

.cen-news__pagination .page-numbers.dots {
    background: transparent;
    color: #9ca3af;
}

.cen-news__pagination .page-numbers.prev,
.cen-news__pagination .page-numbers.next {
    font-size: 16px;
    background: transparent;
    border: 1px solid #e5e7eb;
}

.cen-news__pagination .page-numbers.prev:hover,
.cen-news__pagination .page-numbers.next:hover {
    border-color: #f97316;
    color: #f97316;
}

.cen-news__page-arrow {
    font-size: 16px;
    background: transparent;
    border: 1px solid #e5e7eb;
}

.cen-news__page-arrow.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cen-news__page-arrow:not(.is-disabled):hover {
    border-color: #f97316;
    color: #f97316;
}

.cen-news__pagination .page-numbers:hover,
.cen-news__page-num:hover {
    color: #f97316;
}

/* 当前页高亮（橙色） */
.cen-news__pagination .page-numbers.current,
.cen-news__pagination .page-numbers.current:hover,
.cen-news__page-num.is-current,
.cen-news__page-num.is-current:hover {
    color: #fff;
    background: #f97316;
}

/* ========== 响应式 ========== */
@media (max-width: 991px) {
    .cen-news__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }
}

@media (max-width: 575px) {
    .cen-news {
        padding: 40px 0 30px;
    }

    .cen-news__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
