/* news.css - 新闻动态（列表页 / 详情页 / 首页最新动态区块） */

/* ========== 一、新闻列表页 ========== */
/* 分类筛选条 */
.news-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.news-chip {
    font-size: 14px; color: var(--text-secondary); background: var(--white);
    border: 1px solid var(--border-color); border-radius: 20px;
    padding: 6px 18px; cursor: pointer; transition: all .25s ease;
}
.news-chip:hover { color: var(--primary-color); border-color: var(--primary-color); }
.news-chip.on { color: #fff; background: var(--primary-color); border-color: var(--primary-color); }

/* 头条大卡 */
.news-featured { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; margin-bottom: 30px; padding: 0; }
.news-featured .nf-cover { min-height: 260px; }
.news-featured .nf-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.news-featured:hover .nf-cover img { transform: scale(1.04); }
.news-featured .nf-txt { padding: 34px 30px; display: flex; flex-direction: column; }
.news-featured h3 { font-size: 22px; line-height: 1.45; margin: 10px 0 12px; }
.news-featured h3 a { color: var(--text-primary); }
.news-featured h3 a:hover { color: var(--primary-color); }
.news-featured p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 18px; }
.news-featured .news-link { margin-top: auto; }

/* 普通卡片：带封面图 */
.news-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nl-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.nl-cover { height: 170px; overflow: hidden; background: var(--bg-color); }
.nl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.nl-card:hover .nl-cover img { transform: scale(1.05); }
.nl-txt { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.nl-txt h3 { font-size: 17px; line-height: 1.45; margin: 8px 0 10px; }
.nl-txt h3 a { color: var(--text-primary); }
.nl-txt h3 a:hover { color: var(--primary-color); }
.nl-txt p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
.nl-txt .news-link { margin-top: auto; }

/* 分类徽标（列表卡与首页通用） */
.news-cat {
    display: inline-block; font-size: 12px; line-height: 1;
    color: var(--primary-color); background: #E6F1FB;
    border-radius: 20px; padding: 5px 12px;
}
.news-cat.store { color: #B26A00; background: #FFF3E3; }

.news-empty { background: var(--white); border-radius: 12px; padding: 46px 30px; text-align: center; color: var(--text-secondary); font-size: 15px; }

/* ========== 二、详情页 ========== */
.nb-banner { min-height: 200px; position: relative; }
.nb-banner::before { content: ""; position: absolute; inset: 0; background: rgba(10, 30, 60, .45); }
.nb-banner .container { position: relative; z-index: 1; }
.nb-banner h1 { font-size: 26px; line-height: 1.45; }

.na-crumbs { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.na-crumbs a { color: var(--text-secondary); }
.na-crumbs a:hover { color: var(--primary-color); }
.na-crumbs span { margin: 0 8px; }
.na-crumbs em { font-style: normal; color: var(--text-primary); }

.na-body {
    background: var(--white); border-radius: 12px; padding: 38px 42px;
    box-shadow: 0 2px 12px rgba(10, 77, 168, .08);
}
.na-cover { margin: 0 0 26px; border-radius: 10px; overflow: hidden; }
.na-cover img { width: 100%; display: block; }
/* 正文插图（Markdown 独立行图片） */
.na-img { margin: 22px 0; border-radius: 10px; overflow: hidden; background: var(--bg-color); }
.na-img img { width: 100%; display: block; }
.na-img figcaption { font-size: 12.5px; color: var(--text-secondary); text-align: center; padding: 8px 12px 10px; }
.na-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-size: 13px; color: var(--text-secondary); }

.na-body h2 { font-size: 20px; margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid var(--primary-color); }
.na-body h3 { font-size: 17px; margin: 24px 0 12px; }
.na-body p { font-size: 15px; line-height: 1.9; color: var(--text-primary); margin-bottom: 14px; }
.na-body ul, .na-body ol { margin: 0 0 16px 4px; padding: 0; list-style: none; }
.na-body li { font-size: 15px; line-height: 1.9; color: var(--text-primary); padding-left: 20px; position: relative; margin-bottom: 6px; }
.na-body ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary-color); }
.na-body ol { counter-reset: nb-ol; }
.na-body ol li::before { counter-increment: nb-ol; content: counter(nb-ol) "."; position: absolute; left: 0; color: var(--primary-color); font-weight: 600; }
.na-body blockquote {
    margin: 20px 0; padding: 14px 18px; font-size: 13.5px; color: var(--text-secondary);
    background: #F0F7FF; border-left: 3px solid var(--primary-color); border-radius: 0 6px 6px 0; line-height: 1.8;
}
.na-body strong { color: var(--primary-color); }

.na-back-row { margin-top: 26px; }

/* 相关阅读 */
.na-related { margin-top: 46px; }
.na-related h2 { font-size: 20px; margin-bottom: 20px; }
.na-related .news-list-grid { grid-template-columns: repeat(3, 1fr); }

/* ========== 三、首页「最新动态」区块 ========== */
.nh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nh-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.nh-cover { height: 160px; overflow: hidden; background: var(--bg-color); }
.nh-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.nh-card:hover .nh-cover img { transform: scale(1.05); }
.nh-txt { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.nh-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-secondary); }
.nh-txt h3 { font-size: 16px; line-height: 1.5; margin: 10px 0 8px; }
.nh-txt h3 a { color: var(--text-primary); }
.nh-txt h3 a:hover { color: var(--primary-color); }
.nh-txt p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.nh-txt .news-link { margin-top: auto; font-size: 13px; }
.nh-more { text-align: center; margin-top: 34px; }

/* ========== 四、响应式 ========== */
@media screen and (max-width: 1199px) {
    .news-list-grid, .nh-grid, .na-related .news-list-grid { grid-template-columns: repeat(2, 1fr); }
    .news-featured { grid-template-columns: 1fr; }
    .news-featured .nf-cover { min-height: 200px; }
}
@media screen and (max-width: 767px) {
    .news-list-grid, .nh-grid, .na-related .news-list-grid { grid-template-columns: 1fr; }
    .na-body { padding: 24px 18px; }
    .nb-banner h1 { font-size: 20px; }
    .news-featured .nf-txt { padding: 22px 18px; }
}
