/* ==========================================================================
   聚推吧 · 新闻门户样式 v4（np-* 命名空间）
   适用：channel_news（频道页）/ list_news（列表页）/ show_news（详情页）
   依赖 b2b_index.css 提供的 --b2b-* 主题变量；自带兜底定义
   ========================================================================== */

:root {
    --b2b-blue: #005792;
    --b2b-orange: #e10000;
    --b2b-light: #f4f6f8;
    --b2b-gray: #222831;
    --b2b-radius: 10px;
    --b2b-shadow: 0 2px 12px rgba(16, 36, 54, .07);
    --np-line: #edf0f3;
    --np-muted: #7c8590;
    --np-red: #e10000;
    --np-blue: #005792;
}

.np { margin: 18px 0 40px; }

/* --------------------------------------------------------------------------
   通用：面包屑 / 标记 / 渐入
   -------------------------------------------------------------------------- */
.np-crumb {
    background: #fff;
    border-radius: var(--b2b-radius);
    box-shadow: var(--b2b-shadow);
    padding: 11px 18px;
    margin-bottom: 16px;
}
.np-crumb .breadcrumb { margin: 0; font-size: 13px; }
.np-crumb .breadcrumb-item + .breadcrumb-item::before { color: #c3cad2; }
.np-crumb a { color: var(--np-blue); text-decoration: none; transition: color .2s; }
.np-crumb a:hover { color: var(--np-red); }
.np-crumb .breadcrumb-item.active { color: var(--np-muted); }

.np-flag {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 2;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    border-radius: 4px;
    line-height: 1.4;
    pointer-events: none;
}
.np-flag-hot { background: linear-gradient(135deg, #e10000, #ff6a00); box-shadow: 0 2px 8px rgba(225,0,0,.35); }
.np-flag-feat { background: var(--np-blue); box-shadow: 0 2px 8px rgba(0,87,146,.3); }

.np-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.np-reveal.np-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .np-reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   鞦道头（频道页 / 列表页共用）
   -------------------------------------------------------------------------- */
.np-ch-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border-radius: var(--b2b-radius);
    box-shadow: var(--b2b-shadow);
    padding: 20px 24px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.np-ch-head::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--np-blue), #2e9bd6);
}
.np-ch-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--np-blue);
    line-height: 1.3;
}
.np-ch-desc { margin: 6px 0 0; font-size: 13px; color: var(--np-muted); line-height: 1.7; }
.np-ch-date {
    text-align: center;
    color: var(--np-blue);
    border-left: 1px solid var(--np-line);
    padding-left: 20px;
    min-width: 76px;
}
.np-ch-date strong { display: block; font-size: 26px; line-height: 1.1; letter-spacing: 1px; }
.np-ch-date span { font-size: 12px; color: var(--np-muted); }
.np-ch-count { font-size: 13px; color: var(--np-muted); white-space: nowrap; }

/* --------------------------------------------------------------------------
   焦点区：头条大图 + 要闻榜
   -------------------------------------------------------------------------- */
.np-focus {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    margin-bottom: 16px;
}
.np-focus-hero { position: relative; }
.np-focus-hero-link {
    display: block;
    position: relative;
    height: 100%;
    min-height: 360px;
    border-radius: var(--b2b-radius);
    overflow: hidden;
    box-shadow: var(--b2b-shadow);
    background: #dfe5ea;
}
.np-focus-hero-link img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.np-focus-hero-link:hover img { transform: scale(1.04); }
.np-focus-hero-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 60px 22px 18px;
    background: linear-gradient(180deg, rgba(10,20,30,0) 0%, rgba(10,20,30,.82) 78%);
    color: #fff;
}
.np-focus-hero-cap h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.np-focus-hero-link:hover .np-focus-hero-cap h2 { color: #ffd9a0; }
.np-focus-hero-cap p {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,.82);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-focus-side {
    background: #fff;
    border-radius: var(--b2b-radius);
    box-shadow: var(--b2b-shadow);
    padding: 18px 20px 10px;
    display: flex;
    flex-direction: column;
}
.np-focus-side-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--np-red);
    margin-bottom: 10px;
}
.np-focus-side-head i { font-size: 17px; }

/* 要闻榜 */
.np-rank { list-style: none; margin: 0; padding: 0; counter-reset: np-rank; }
.np-rank-item {
    counter-increment: np-rank;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--np-line);
}
.np-rank-item:last-child { border-bottom: 0; }
.np-rank-num {
    flex: 0 0 auto;
    width: 18px;
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    color: #b9c2cb;
    text-align: center;
}
.np-rank-item:nth-child(1) .np-rank-num,
.np-rank-item:nth-child(2) .np-rank-num,
.np-rank-item:nth-child(3) .np-rank-num { color: var(--np-red); }
.np-rank-item a {
    flex: 1 1 auto;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    line-height: 1.55;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s;
}
.np-rank-item a:hover { color: var(--np-blue); }
.np-rank-item time { flex: 0 0 auto; font-size: 12px; color: #a9b1ba; }

/* --------------------------------------------------------------------------
   吸顶子分类导航
   -------------------------------------------------------------------------- */
.np-subnav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(6px);
    border-radius: var(--b2b-radius);
    box-shadow: var(--b2b-shadow);
    margin-bottom: 18px;
}
.np-subnav-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 12px;
    scrollbar-width: none;
}
.np-subnav-scroll::-webkit-scrollbar { display: none; }
.np-subnav-link {
    flex: 0 0 auto;
    padding: 7px 18px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    border-radius: 20px;
    transition: all .22s ease;
    white-space: nowrap;
}
.np-subnav-link:hover { color: var(--np-blue); background: var(--b2b-light); }
.np-subnav-link:active { transform: scale(.96); }

/* --------------------------------------------------------------------------
   分类区块
   -------------------------------------------------------------------------- */
.np-block { margin-bottom: 26px; }
.np-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--np-blue);
}
.np-block-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}
.np-block-title i { color: var(--np-blue); font-size: 17px; }
.np-block-title a { color: inherit; text-decoration: none; transition: color .2s; }
.np-block-title a:hover { color: var(--np-blue); }
.np-block-more {
    font-size: 13px;
    color: var(--np-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: color .2s, gap .2s;
}
.np-block-more:hover { color: var(--np-blue); gap: 5px; }

/* 三列图文卡 */
.np-grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 14px;
}
.np-card {
    background: #fff;
    border-radius: var(--b2b-radius);
    box-shadow: var(--b2b-shadow);
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease;
}
.np-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(16, 36, 54, .13);
}
.np-card-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e3e8ec;
}
.np-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.np-card:hover .np-card-img img { transform: scale(1.06); }
.np-card-body { padding: 14px 16px 15px; }
.np-card-title { margin: 0; font-size: 15px; line-height: 1.5; }
.np-card-title a {
    color: #222;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.np-card-title a:hover { color: var(--np-blue); }
.np-card-desc {
    margin: 8px 0 0;
    font-size: 12.5px;
    color: var(--np-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    font-size: 12px;
    color: #a5adb6;
}
.np-card-meta i { margin-right: 3px; font-size: 12.5px; }

/* 双列文字列表 */
.np-textgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 28px;
    background: #fff;
    border-radius: var(--b2b-radius);
    box-shadow: var(--b2b-shadow);
    padding: 8px 20px;
}
.np-textitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px dashed var(--np-line);
    transition: color .2s;
}
.np-textgrid .np-textitem:nth-last-child(-n+2) { border-bottom: 0; }
.np-textitem::before {
    content: "";
    flex: 0 0 auto;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #c8cfd6;
    transition: background .2s, transform .2s;
}
.np-textitem:hover::before { background: var(--np-red); transform: scale(1.4); }
.np-textitem-t {
    flex: 1 1 auto;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.np-textitem:hover .np-textitem-t { color: var(--np-blue); }
.np-textitem time { flex: 0 0 auto; font-size: 12px; color: #a9b1ba; }

/* --------------------------------------------------------------------------
   列表页：双栏布局 / tabs / 文章流
   -------------------------------------------------------------------------- */
.np-layout2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}
.np-main { min-width: 0; }
.np-side { min-width: 0; }

.np-panel {
    background: #fff;
    border-radius: var(--b2b-radius);
    box-shadow: var(--b2b-shadow);
    padding: 20px 22px;
}
.np-panel-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 2px solid var(--np-blue);
}
.np-panel-title small { font-weight: 400; font-size: 12.5px; color: var(--np-muted); }
.np-panel-title span { color: var(--np-red); }

.np-tabs {
    display: flex;
    gap: 4px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--np-line);
}
.np-tab {
    padding: 6px 18px;
    font-size: 13.5px;
    color: #555;
    text-decoration: none;
    border-radius: 20px;
    transition: all .22s ease;
}
.np-tab:hover { color: var(--np-blue); background: var(--b2b-light); }
.np-tab.active { color: #fff; background: var(--np-blue); }

.np-filter { margin-bottom: 14px; }
.np-filter-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    font-size: 13px;
}
.np-filter-title { flex: 0 0 auto; color: var(--np-muted); line-height: 26px; }
.np-filter-list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.np-filter-list li a {
    display: inline-block;
    padding: 3px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all .2s;
}
.np-filter-list li a:hover { color: var(--np-blue); background: var(--b2b-light); }
.np-filter-list li.active a { color: #fff; background: var(--np-blue); }

/* 特稿大图 */
.np-feature {
    display: grid;
    grid-template-columns: 46% 1fr;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--np-line);
}
.np-feature-img {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: #e3e8ec;
}
.np-feature-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.np-feature:hover .np-feature-img img { transform: scale(1.05); }
.np-feature-body { display: flex; flex-direction: column; justify-content: center; }
.np-feature-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.45; }
.np-feature-title a { color: #1c1c1c; text-decoration: none; transition: color .2s; }
.np-feature-title a:hover { color: var(--np-blue); }
.np-feature-desc {
    margin: 12px 0 0;
    font-size: 13.5px;
    color: var(--np-muted);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    font-size: 12.5px;
    color: #a5adb6;
}
.np-meta i { margin-right: 4px; }

/* 左图右文行卡 */
.np-flow { display: flex; flex-direction: column; }
.np-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--np-line);
    transition: background .2s;
}
.np-row:hover { background: #fafcfd; }
.np-row-img {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: #e3e8ec;
}
.np-row-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.np-row:hover .np-row-img img { transform: scale(1.05); }
.np-row-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.np-row-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.np-row-title a {
    color: #1c1c1c;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.np-row-title a:hover { color: var(--np-blue); }
.np-row-desc {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--np-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-row .np-meta { margin-top: 10px; gap: 12px; font-size: 12px; }

/* --------------------------------------------------------------------------
   详情页
   -------------------------------------------------------------------------- */
.np-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    z-index: 1080;
    background: linear-gradient(90deg, var(--np-red), #ff8a00);
    transition: width .08s linear;
}

.np-article {
    background: #fff;
    border-radius: var(--b2b-radius);
    box-shadow: var(--b2b-shadow);
    padding: 28px 30px;
}
.np-article-head { border-bottom: 1px solid var(--np-line); padding-bottom: 18px; }
.np-article-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.45;
    color: #1a1a1a;
}
.np-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--np-muted);
}
.np-article-meta i { margin-right: 5px; color: #aab2bb; }
.np-meta-author { color: var(--np-blue); font-weight: 600; }
.np-article-lead {
    margin: 16px 0 0;
    padding: 14px 18px;
    background: var(--b2b-light);
    border-left: 3px solid var(--np-blue);
    border-radius: 6px;
    font-size: 14px;
    color: #45525e;
    line-height: 1.85;
}
.np-article-lead i { color: var(--np-blue); margin-right: 4px; }

/* 正文排版 */
.np-article-body {
    padding: 22px 0 8px;
    font-size: 15.5px;
    line-height: 1.95;
    color: #2d343b;
    word-break: break-word;
}
.np-article-body p { margin: 0 0 16px; }
.np-article-body h2, .np-article-body h3, .np-article-body h4 {
    margin: 26px 0 14px;
    font-weight: 700;
    color: #1c1c1c;
}
.np-article-body h2 { font-size: 20px; padding-left: 12px; border-left: 4px solid var(--np-blue); }
.np-article-body h3 { font-size: 17px; }
.np-article-body h4 { font-size: 15.5px; }
.np-article-body a { color: var(--np-blue); text-decoration: none; border-bottom: 1px dashed #9fc3da; }
.np-article-body a:hover { color: var(--np-red); border-bottom-color: var(--np-red); }
.np-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 6px 0;
    box-shadow: 0 4px 16px rgba(16,36,54,.1);
}
.np-article-body blockquote {
    margin: 18px 0;
    padding: 14px 20px;
    background: var(--b2b-light);
    border-left: 4px solid #ffb300;
    border-radius: 6px;
    color: #5a6470;
    font-size: 14px;
}
.np-article-body ul, .np-article-body ol { padding-left: 24px; margin: 0 0 16px; }
.np-article-body li { margin-bottom: 6px; }
.np-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.np-article-body th, .np-article-body td {
    border: 1px solid var(--np-line);
    padding: 9px 12px;
    text-align: left;
}
.np-article-body th { background: var(--b2b-light); font-weight: 600; }
.np-article-body pre {
    background: #1e252d;
    color: #d8dee6;
    padding: 16px 18px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
}

.np-article-foot { border-top: 1px solid var(--np-line); margin-top: 10px; padding-top: 18px; }
.np-article-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.np-article-tags > i { color: var(--np-blue); }
.np-tag {
    display: inline-block;
    padding: 4px 14px;
    font-size: 12.5px;
    color: #556;
    background: var(--b2b-light);
    border-radius: 16px;
    text-decoration: none;
    transition: all .2s;
}
.np-tag:hover { color: #fff; background: var(--np-blue); }

.np-article-actions { display: flex; gap: 12px; margin-top: 18px; }
.np-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    font-size: 13.5px;
    color: #45525e;
    background: #fff;
    border: 1px solid #d9e0e6;
    border-radius: 22px;
    text-decoration: none;
    transition: all .22s ease;
}
.np-act:hover { color: #fff; background: var(--np-blue); border-color: var(--np-blue); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,87,146,.25); }
.np-act-like:hover { background: var(--np-red); border-color: var(--np-red); box-shadow: 0 6px 14px rgba(225,0,0,.25); }

.np-comments { margin-top: 20px; }
.np-empty-tip { padding: 26px 0; text-align: center; color: var(--np-muted); font-size: 13.5px; }

/* --------------------------------------------------------------------------
   返回顶部
   -------------------------------------------------------------------------- */
.np-backtop {
    position: fixed;
    right: 26px; bottom: 40px;
    z-index: 90;
    width: 44px; height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--np-blue);
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(16,36,54,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s ease;
    cursor: pointer;
}
.np-backtop.show { opacity: 1; visibility: visible; transform: none; }
.np-backtop:hover { background: var(--np-blue); color: #fff; }

/* --------------------------------------------------------------------------
   公共片段兼容：sidebar / 作者卡 / 相关阅读 / 上下篇 / 标签
   （common/sidebar.html、authorinfo.html、related.html、metainfo.html 依赖）
   -------------------------------------------------------------------------- */
.news-sidebar-card {
    background: #fff;
    border-radius: var(--b2b-radius);
    box-shadow: var(--b2b-shadow);
    padding: 18px 20px 12px;
    margin-bottom: 16px;
}
.news-sidebar-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--np-blue);
}
.news-sidebar-title i { color: var(--np-red); }
.news-sidebar-rank {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--np-line);
    font-size: 13px;
}
.news-sidebar-rank:last-child { border-bottom: 0; }
.rank-num {
    flex: 0 0 auto;
    width: 18px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    color: #b9c2cb;
}
.news-sidebar-rank:nth-of-type(1) .rank-num,
.news-sidebar-rank:nth-of-type(2) .rank-num,
.news-sidebar-rank:nth-of-type(3) .rank-num { color: var(--np-red); }
.news-sidebar-rank a {
    flex: 1;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s;
}
.news-sidebar-rank a:hover { color: var(--np-blue); }

.news-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.news-tag {
    display: inline-block;
    padding: 4px 13px;
    font-size: 12.5px;
    color: #556;
    background: var(--b2b-light);
    border-radius: 15px;
    text-decoration: none;
    transition: all .2s;
}
.news-tag:hover { color: #fff; background: var(--np-blue); }

.news-author { padding-bottom: 18px; }
.news-author-head { display: flex; align-items: center; gap: 12px; }
.news-author-name { font-size: 15px; font-weight: 700; color: #222; margin: 0; }
.news-author-stat { margin-top: 14px; }
.news-author-stat .stat-num { font-size: 16px; font-weight: 700; color: var(--np-blue); }
.news-author-stat .stat-text { font-size: 12px; color: var(--np-muted); }

.news-related { margin-top: 20px; }
.news-related-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--np-blue);
}
.news-related-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.news-related-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(16,36,54,.12); }
.news-related-name { display: block; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: #333; text-decoration: none; }
.news-related-name:hover { color: var(--np-blue); }

.news-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.news-prevnext-item {
    display: block;
    padding: 12px 16px;
    background: var(--b2b-light);
    border-radius: 8px;
    font-size: 13px;
    color: #45525e;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all .2s;
}
.news-prevnext-item:hover { background: #e9eef3; color: var(--np-blue); }
.news-meta-info { margin-top: 16px; }
.news-meta-list li { font-size: 12.5px; color: var(--np-muted); padding: 3px 0; }

/* --------------------------------------------------------------------------
   分页（pageinfo.html 输出的 .pager / .loadmore）
   -------------------------------------------------------------------------- */
.np-panel .pager { padding: 18px 0 4px; }
.np-panel .pagination { margin: 0; }
.np-panel .pagination > li > a,
.np-panel .pagination > li > span {
    border-radius: 6px !important;
    margin: 0 3px;
    border: 1px solid #dde3e9;
    color: #45525e;
}
.np-panel .pagination > li.active > a,
.np-panel .pagination > li.active > span { background: var(--np-blue); border-color: var(--np-blue); }
.np-panel .loadmore-nodata { padding: 30px 0 16px; }
.np-panel .loadmore-tips {
    background: transparent;
    color: #a9b1ba;
    font-size: 13.5px;
    top: 0;
}
.np-panel .loadmore-line { border-top: 0; padding-top: 0; }

/* --------------------------------------------------------------------------
   标签专题页（tag.html）
   -------------------------------------------------------------------------- */
.np-tag-head {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: var(--b2b-radius);
    box-shadow: var(--b2b-shadow);
    padding: 22px 26px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.np-tag-head::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--np-red), #ff8a00);
}
.np-tag-head-hash {
    flex: 0 0 auto;
    width: 54px; height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--np-blue), #2e9bd6);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,87,146,.28);
}
.np-tag-head-main { flex: 1 1 auto; min-width: 0; }
.np-tag-name {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
    color: var(--np-blue);
    line-height: 1.3;
}
.np-tag-desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--np-muted);
    line-height: 1.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .np-focus { grid-template-columns: 1fr 300px; }
    .np-layout2 { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 992px) {
    .np-focus { grid-template-columns: 1fr; }
    .np-focus-hero-link { min-height: 260px; }
    .np-layout2 { grid-template-columns: 1fr; }
    .np-feature { grid-template-columns: 1fr; }
    .np-feature-img { aspect-ratio: 16 / 9; }
    .np-grid3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .np { margin: 12px 0 30px; }
    .np-ch-head { padding: 16px 18px; }
    .np-ch-name { font-size: 20px; }
    .np-ch-date { display: none; }
    .np-tag-head { padding: 16px 18px; gap: 12px; }
    .np-tag-head-hash { width: 44px; height: 44px; font-size: 24px; border-radius: 11px; }
    .np-tag-name { font-size: 19px; }
    .np-tag-desc { white-space: normal; }
    .np-article { padding: 20px 18px; }
    .np-article-title { font-size: 21px; }
    .np-article-body { font-size: 15px; }
    .np-row { grid-template-columns: 120px 1fr; gap: 12px; }
    .np-row-title { font-size: 15px; }
    .np-textgrid { grid-template-columns: 1fr; padding: 6px 16px; }
    .np-textgrid .np-textitem:nth-last-child(2) { border-bottom: 1px dashed var(--np-line); }
    .np-grid3 { grid-template-columns: 1fr; }
    .np-backtop { right: 16px; bottom: 24px; }
    .np-prevnext-fix, .news-prevnext { grid-template-columns: 1fr; }
}
