/* ========= 新闻列表 & 详情通用 ========= */

.news-page,
.news-detail-page {
    padding: 18px 0 40px;
}

.page-inner {
    /* 和首页 hero-inner 一样的宽度标准 */
    width: min(1440px, 100vw - 200px);
    margin-inline: auto;
}

/* 面包屑 */
.news-breadcrumb {
    margin-left: 15px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.news-breadcrumb span {
    margin-inline: 4px;
    color: rgba(148, 163, 184, 0.9);
}

/* 顶部标题 */
.news-header {
    margin-left: 15px;
    margin-bottom: 15px;
}

.news-header h1 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 800;
    color: #020617;
}

.news-header p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* ======== 列表页布局 ======== */

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.9fr);
    gap: 28px;
}

/* 分类 pills */
.news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 15px;
    margin-bottom: 11px;
}

.news-tab {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: #ffffff;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease,
    box-shadow 120ms ease;
}

.news-tab--active {
    background: #0f172a;
    color: #f9fafb;
    border-color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

/* 主列表卡片容器 */
.news-main-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 18px 18px 10px;
}

/* 每条之间空一点，不用底部细线了 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 单条新闻整体卡片 */
.news-row {
    display: flex;
    gap: 18px;
    padding: 16px 14px;
    border-radius: 18px;
    background: #f9fafb;
    transition: box-shadow 140ms ease, transform 140ms ease, border-color 140ms ease;
}

/* hover 稍微浮起来一点 */
.news-row:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.6);
}

.news-row:last-child {
    border-bottom: none;
}

/* 横图封面：16:9 */
.news-row-cover {
    flex: 0 0 260px;
    border-radius: 16px;
    overflow: hidden;
    background: #e5e7eb;
}

.news-row-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* 文本区域 */
.news-row-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* 头部内容靠上 */
    padding: 4px 0 2px;
}

.news-row-title a {
    color: inherit;
    text-decoration: none;
}

.news-row-title a:hover {
    text-decoration: underline;
}

.news-row-meta {
    margin-top: auto;          /* 👈 把这一行推到卡片底部 */
    padding-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

/* 下拉加载提示 */
.news-load-tip {
    padding: 10px 4px 2px;
    font-size: 12px;
    text-align: center;
    color: var(--text-muted);
}

/* ======== 右侧推荐 ======== */

.news-sidebar-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 16px 16px 10px;
}
.news-sidebar-card + .news-sidebar-card {
    margin-top: 20px;
}

.news-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: #020617;
    margin-bottom: 10px;
}

.news-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-sidebar-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    padding: 6px 4px;
    border-radius: 14px;
    transition: background 120ms ease, transform 120ms ease;
}

.news-sidebar-item:hover {
    background: rgba(226, 232, 240, 0.6);
    transform: translateY(-1px);
}

/* 右侧封面也用横图 */
.news-sidebar-cover {
    flex: 0 0 112px;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
}

.news-sidebar-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.news-sidebar-text {
    flex: 1;
    font-size: 12px;
    color: #111827;
    display: flex;
    align-items: center;
}

/* ======== 详情页 ======== */

.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 0.9fr);
    gap: 28px;
}

/* 主体卡片 */
.news-article-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 22px 24px 26px;
}

/* 标题 */
.news-article-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #020617;
}

.news-article-subtitle {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 10px;
}

.news-article-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

/* 顶部横图 */
.news-article-cover {
    margin-bottom: 18px;
    border-radius: 20px;
    overflow: hidden;
    background: #e5e7eb;
}

.news-article-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* 正文富文本简单排版 */
.news-article-content {
    font-size: 14px;
    color: #111827;
    line-height: 1.7;
}

.news-article-content h2,
.news-article-content h3 {
    margin-top: 1.4em;
    margin-bottom: 0.4em;
}

.news-article-content p {
    margin: 0.4em 0;
}

.news-article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 12px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .news-layout,
    .news-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-inner {
        width: min(100% - 32px, 1200px);
    }
}






/* ======== 详情页：头部和正文居中优化 ======== */

/* 让标题、子标题、meta 居中 */
.news-article-title,
.news-article-subtitle,
.news-article-meta {
    text-align: center;
}

/* 顶部横图限制宽度并居中 */
.news-article-cover {
    max-width: 960px;          /* 自己感觉不够窄再减小，例如 880px */
    margin: 0 auto 18px;       /* auto 让整块居中 */
    border-radius: 20px;
    overflow: hidden;
    background: #e5e7eb;
}

.news-article-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* 正文区域：块居中、文字左对齐、宽度收窄 */
.news-article-content {
    max-width: 860px;          /* 控制正文一行长度 */
    margin: 0 auto;            /* 整块居中 */
    font-size: 14px;
    color: #111827;
    line-height: 1.7;
    text-align: left;          /* 即使标题居中，正文保持左对齐 */
}

/* 正文里的标题稍微留点上下间距 */
.news-article-content h2,
.news-article-content h3 {
    margin-top: 1.6em;
    margin-bottom: 0.5em;
}

/* 正文段落间距优化 */
.news-article-content p {
    margin: 0.55em 0;
}

/* 正文内插图自动居中并圆角 */
.news-article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 12px;
}




/* 第一行：标题 */
.news-row-title {
    font-size: 18px;
    font-weight: 800;
    color: #020617;
    margin-bottom: 6px;
    padding-top: 10px;
}

.news-row-title a {
    color: inherit;
    text-decoration: none;
}

.news-row-title a:hover {
    text-decoration: underline;
}

/* 第二行：描述 / 副标题 */
.news-row-summary {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* 第三行：分类 + 时间 */
.news-row-meta {
    font-size: 12px;
    color: #6b7280;
}

.news-row-cat {
    font-weight: 600;
    color: #4b5563;
}

.news-row-dot {
    margin: 0 4px;
}

.news-row-time {
    color: #9ca3af;
}








