/* ==========================================================================
   news.css —— 由 tools_split_css.py 从 main.css 拆出（2026-10-19）
   注意：改样式请改对应页面文件，不要再往 main.css 里加
   ========================================================================== */


/* ==========================================================================
   新闻资讯 /news —— 列表页 + 分类页 + 内页
   风格：白底简洁 + 品牌蓝，卡片圆角浅阴影（与联系页 / 解决方案页一致）
   ========================================================================== */

/* ---------- 列表页 hero ---------- */
.nw-hero { position: relative; overflow: hidden; background: var(--navy); padding: 66px 0 58px; color: #fff; }

.nw-hero__bg {
    position: absolute; inset: 0; z-index: 0;
    background: url("/static/img/news/banner.jpg") center center / cover no-repeat;
    opacity: .34;
}

.nw-hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(620px 300px at 78% 22%, rgba(98, 168, 255, .22), transparent 70%),
        linear-gradient(96deg, rgba(7, 26, 51, .96) 0%, rgba(7, 26, 51, .82) 42%, rgba(7, 26, 51, .40) 100%);
}

.nw-hero__inner { position: relative; z-index: 2; }

.nw-hero__title { margin: 0; font-size: 42px; line-height: 1.2; font-weight: 700; letter-spacing: -.4px; }

.nw-hero__lead { margin: 14px 0 0; font-size: 16.5px; line-height: 1.75; color: var(--on-navy); max-width: 720px; }

.nw-hero__stats { margin-top: 22px; display: flex; gap: 30px; flex-wrap: wrap; }

.nw-hero__stat { font-size: 13.5px; color: var(--on-navy-2); }

.nw-hero__stat b { display: block; font-size: 27px; font-weight: 700; color: #fff; line-height: 1.25; }

/* ---------- 分类筛选导航 ---------- */
.nw-cats { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }

.nw-cats__inner { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }

.nw-cats__inner::-webkit-scrollbar { display: none; }

.nw-cat {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line);
    background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 500;
    transition: all .18s ease; white-space: nowrap;
}

.nw-cat:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); }

.nw-cat__n { font-size: 12px; opacity: .72; }

/* ---------- 主体两栏 ---------- */
.nw-main { padding: 34px 0 60px; background: var(--bg-tint); }

.nw-main__grid { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 34px; align-items: start; }

/* ---------- 文章卡片（左图右文） ---------- */
.nw-list { display: flex; flex-direction: column; gap: 16px; }

.nw-tip { margin: 0 0 4px; font-size: 13.5px; color: var(--ink-3); }

.nw-empty { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 56px 20px; text-align: center; }

.nw-card {
    display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 0;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.nw-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-line); }

.nw-card__media { display: block; overflow: hidden; background: var(--bg-tint); }

.nw-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }

.nw-card:hover .nw-card__media img { transform: scale(1.05); }

.nw-card__body { padding: 18px 22px 20px; min-width: 0; }

.nw-card__meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-4); }

.nw-card__meta time { font-variant-numeric: tabular-nums; }

.nw-card__sep { opacity: .55; }

.nw-card__cat { color: var(--brand); font-weight: 600; }

.nw-card__cat:hover { text-decoration: underline; }

.nw-card__title { margin: 9px 0 0; font-size: 19px; line-height: 1.45; font-weight: 600; }

.nw-card__title a { color: var(--ink); }

.nw-card__title a:hover { color: var(--brand); }

.nw-card__sum {
    margin: 9px 0 0; font-size: 14px; line-height: 1.72; color: var(--ink-3);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.nw-card__more {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 13px;
    font-size: 13.5px; font-weight: 600; color: var(--brand);
}

.nw-card__more span { transition: transform .2s ease; }

.nw-card__more:hover span { transform: translateX(3px); }

/* ---------- 分页 ---------- */
.nw-pager { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }

.nw-pager__btn, .nw-pager__num {
    min-width: 38px; height: 38px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 8px; background: #fff;
    font-size: 14px; color: var(--ink-2); transition: all .16s ease;
}

.nw-pager__btn:hover, .nw-pager__num:hover { border-color: var(--brand); color: var(--brand); }

.nw-pager__nums { display: flex; gap: 6px; flex-wrap: wrap; }

.nw-pager__gap { color: var(--ink-4); padding: 0 2px; }

/* ---------- 侧边栏 ---------- */
.nw-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 74px; }

.nw-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; }

.nw-widget__title { margin: 0 0 14px; font-size: 15.5px; font-weight: 600; padding-left: 9px; border-left: 3px solid var(--brand); }

.nw-hot { list-style: none; margin: 0; padding: 0; counter-reset: none; }

.nw-hot__item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; border-bottom: 1px dashed var(--line); }

.nw-hot__item:last-child { border-bottom: 0; }

.nw-hot__n {
    flex: none; width: 20px; height: 20px; border-radius: 5px; background: var(--bg-tint);
    color: var(--ink-4); font-size: 12px; font-weight: 700; display: inline-flex;
    align-items: center; justify-content: center; margin-top: 1px;
}

.nw-hot__n.is-top { background: var(--brand); color: #fff; }

.nw-hot__item a {
    flex: 1; min-width: 0; font-size: 13.8px; line-height: 1.6; color: var(--ink-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.nw-hot__item a:hover { color: var(--brand); }

.nw-prods { display: flex; flex-direction: column; gap: 11px; }

.nw-prod { display: flex; gap: 11px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid transparent; }

.nw-prod:hover { background: var(--bg-tint); border-color: var(--brand-line); }

.nw-prod__img {
    flex: none; width: 58px; height: 44px; border-radius: 7px; overflow: hidden;
    background: var(--bg-tint); border: 1px solid var(--line); display: block;
}

.nw-prod__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nw-prod__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.nw-prod__txt b { font-size: 13.5px; color: var(--ink); font-weight: 600; }

/* 副行型号：侧栏很窄，单独占一行，避免被拆成两截 */
.nw-prod__model {
    display: block; margin-top: 2px;
    font: 400 11px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-style: normal; color: var(--ink-4); letter-spacing: .2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.nw-prod__txt em {
    font-style: normal; font-size: 12.5px; color: var(--ink-4);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

.nw-cloud { display: flex; flex-wrap: wrap; gap: 7px; }

.nw-cloud a {
    padding: 5px 11px; border-radius: 99px; background: var(--brand-soft); border: 1px solid var(--brand-line);
    font-size: 12.8px; color: var(--brand);
}

.nw-cloud a:hover { background: var(--brand); color: #fff; }

.nw-widget--cta { background: linear-gradient(160deg, #0a2344, #071a33); border-color: transparent; color: #fff; }

.nw-cta__t { margin: 0 0 7px; font-size: 15.5px; font-weight: 600; }

.nw-cta__d { margin: 0 0 14px; font-size: 13.2px; line-height: 1.7; color: var(--on-navy); }

/* ---------- 内页 ---------- */
.nw-art { padding: 34px 0 10px; background: #fff; }

.nw-art__wrap { max-width: 820px; }

.nw-art__head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }

.nw-art__cat {
    display: inline-block; padding: 4px 12px; border-radius: 99px;
    background: var(--brand-soft); border: 1px solid var(--brand-line);
    font-size: 12.5px; font-weight: 600; color: var(--brand); margin-bottom: 13px;
}

.nw-art__title { margin: 0; font-size: 33px; line-height: 1.36; font-weight: 700; letter-spacing: -.3px; }

.nw-art__meta { margin-top: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-4); }

.nw-art__dot { opacity: .5; }

.nw-art__figure { margin: 26px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-tint); }

.nw-art__figure img { width: 100%; display: block; }

/* 正文排版 */
.nw-art__body { margin-top: 24px; font-size: 16px; line-height: 1.85; color: var(--ink-2); }

.nw-art__body > *:first-child { margin-top: 0; }

.nw-art__body h2 {
    margin: 34px 0 14px; font-size: 22px; line-height: 1.45; font-weight: 700; color: var(--ink);
    padding-left: 12px; border-left: 3px solid var(--brand);
}

.nw-art__body h3 { margin: 26px 0 11px; font-size: 18px; font-weight: 600; color: var(--brand-dark); }

.nw-art__body h4 { margin: 20px 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); }

.nw-art__body p { margin: 0 0 15px; }

.nw-art__body strong { color: var(--ink); font-weight: 600; }

.nw-art__body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.nw-art__body a:hover { color: var(--brand-dark); }

.nw-art__body ul, .nw-art__body ol { margin: 0 0 17px; padding-left: 25px; }

.nw-art__body li { margin: 6px 0; }

.nw-art__body blockquote {
    margin: 18px 0; padding: 12px 18px; background: var(--bg-tint);
    border-left: 3px solid var(--brand-line); color: var(--ink-2); border-radius: 0 8px 8px 0;
}

.nw-art__body img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; display: block; }

.nw-art__body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }

.nw-art__body th, .nw-art__body td { border: 1px solid var(--line); padding: 9px 13px; text-align: left; vertical-align: top; }

.nw-art__body th { background: var(--bg-tint); font-weight: 600; color: var(--ink); }

.nw-art__body tbody tr:hover { background: #fafcff; }

.nw-art__body code { padding: 1px 6px; background: var(--bg-tint); border-radius: 4px; font-size: 14px; }

.nw-art__body hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }

/* 标签 */
.nw-art__tags { margin-top: 30px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.nw-art__tags-lbl { font-size: 13px; color: var(--ink-4); }

.nw-tag {
    padding: 5px 13px; border-radius: 99px; background: var(--bg-tint);
    border: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
}

.nw-tag:hover { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }

/* 分享 */
.nw-share { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.nw-share__lbl { font-size: 13px; color: var(--ink-4); margin-right: 2px; }

.nw-share__btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
    border: 1px solid var(--line); border-radius: 99px; background: #fff;
    font-size: 13px; color: var(--ink-2); cursor: pointer; font-family: inherit;
    transition: all .16s ease;
}

.nw-share__btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.nw-share__btn--ghost { color: var(--ink-3); }

/* 上下篇 */
.nw-nav { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.nw-nav__item {
    display: flex; flex-direction: column; gap: 5px; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    transition: all .16s ease; min-width: 0;
}

.nw-nav__item:hover { border-color: var(--brand-line); background: var(--brand-soft); }

.nw-nav__item--next { text-align: right; }

.nw-nav__lbl { font-size: 12.5px; color: var(--ink-4); }

.nw-nav__t { font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.nw-nav__item:hover .nw-nav__t { color: var(--brand); }

/* 相关推荐 */
.nw-rel { padding: 46px 0 54px; background: var(--bg-tint); }

.nw-sec__title { margin: 0 0 22px; font-size: 24px; font-weight: 700; text-align: center; }

.nw-rel__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.nw-rel__card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: all .2s ease;
}

.nw-rel__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-line); }

.nw-rel__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }

.nw-rel__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }

.nw-rel__card:hover .nw-rel__img img { transform: scale(1.05); }

.nw-rel__t {
    padding: 13px 15px 0; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.nw-rel__card:hover .nw-rel__t { color: var(--brand); }

.nw-rel__d { padding: 8px 15px 15px; font-size: 12.5px; color: var(--ink-4); }

@media (max-width: 720px) {

    /* 新闻资讯 —— 移动端 */
    .nw-hero { padding: 44px 0 38px; }

    .nw-hero__title { font-size: 29px; }

    .nw-hero__lead { font-size: 15px; }

    .nw-hero__stats { gap: 22px; }

    .nw-hero__stat b { font-size: 23px; }

    .nw-side { grid-template-columns: 1fr; }

    .nw-card { grid-template-columns: 1fr; }

    .nw-card__media { aspect-ratio: 16 / 9; }

    .nw-card__body { padding: 16px 18px 18px; }

    .nw-card__title { font-size: 17.5px; }

    .nw-art__title { font-size: 25px; }

    .nw-art__body { font-size: 15.5px; line-height: 1.82; }

    .nw-art__body h2 { font-size: 19.5px; margin: 26px 0 11px; }

    .nw-art__body h3 { font-size: 16.5px; }

    .nw-nav { grid-template-columns: 1fr; }

    .nw-nav__item--next { text-align: left; }

    .nw-rel__grid { grid-template-columns: 1fr; }

    .nw-sec__title { font-size: 21px; }

}
