@charset "utf-8";
/* ============================================================
   新闻资讯板块 · 重制版（2026-11-02）
   列表页 .nl-*  详情页 .nx-*
   仅被 newslist2.html / news.html 引用，其它栏目完全不受影响
   ============================================================ */

/* ---------- 共用容器 ---------- */
.nl-wrap,
.nx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 10px 46px; }

/* ---------- 栏目标题区 ---------- */
.nl-mast,
.nx-mast { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; padding: 26px 26px 22px; margin: 4px 0 18px; border-radius: 16px;
  background: radial-gradient(720px 240px at 8% -50%, rgba(91,141,239,.28), transparent 64%),
              linear-gradient(135deg, #1b2130 0%, #141821 100%);
  border: 1px solid var(--dk-border); }
.nl-mast::after,
.nx-mast::after { content: ''; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(55,211,155,.16), transparent 68%); pointer-events: none; }
.nl-mast h1,
.nx-mast h1 { margin: 0 0 9px; font-size: 24px; font-weight: 800; letter-spacing: .5px; color: #fff; line-height: 1.3; }
.nl-mast p,
.nx-mast p { margin: 0; font-size: 13px; line-height: 1.7; color: #9aa3b5; max-width: 720px; }
.nl-mast-r,
.nx-mast-r { display: flex; gap: 9px; flex-wrap: wrap; }
.nl-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #c3cad8;
  padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--dk-border-2); }
.nl-pill i { color: #37d39b; }

/* ============================================================
   列表页
   ============================================================ */
/* ---------- 头条轮播 ---------- */
.nl-hero { position: relative; margin: 0 0 16px; border-radius: 18px; overflow: hidden;
  aspect-ratio: 3 / 1; min-height: 200px; max-height: 430px; isolation: isolate;
  background: linear-gradient(135deg, #1a1e27, #11141a); border: 1px solid var(--dk-border);
  box-shadow: 0 18px 44px rgba(0,0,0,.34); }

.nl-slide { position: absolute; inset: 0; display: block; text-decoration: none;
  opacity: 0; visibility: hidden; z-index: 1;
  transition: opacity .7s ease, visibility .7s ease; }
.nl-slide.is-on { opacity: 1; visibility: visible; z-index: 2; }

.nl-slide-bg { position: absolute; inset: 0; display: block;
  background: linear-gradient(135deg, #263048, #131722); }
.nl-slide-bg img { width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.001); transition: transform 7.5s linear; }
.nl-slide.is-on .nl-slide-bg img { transform: scale(1.07); }
.nl-slide-bg.is-noimg::after { content: '\f1ea'; font-family: FontAwesome; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; font-size: 46px; color: rgba(255,255,255,.12); }

.nl-slide-veil { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,10,14,.94) 0%, rgba(8,10,14,.78) 40%, rgba(8,10,14,.24) 74%, rgba(8,10,14,.44) 100%),
              linear-gradient(0deg, rgba(8,10,14,.84), rgba(8,10,14,0) 58%); }

.nl-slide-body { position: absolute; left: 0; top: 0; bottom: 0; width: min(64%, 690px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 11px; padding: 32px 36px 34px; }

.nl-slide-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .6px; color: #37d39b;
  background: rgba(55,211,155,.14); border: 1px solid rgba(55,211,155,.3);
  padding: 4px 10px; border-radius: 6px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.nl-slide-tag i { font-size: 11px; }

.nl-slide-title { font-size: 27px; font-weight: 800; line-height: 1.36; color: #fff; letter-spacing: .3px;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .24s ease; }
.nl-slide:hover .nl-slide-title { color: #dbe6ff; }

.nl-slide-desc { font-size: 13.5px; line-height: 1.78; color: #a9b2c4; max-width: 620px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.nl-slide-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px;
  font-size: 12px; color: #7f8899; }
.nl-slide-meta span { display: inline-flex; align-items: center; }
.nl-slide-meta i { margin-right: 6px; opacity: .85; }

/* 左右箭头 */
.nl-hero-nav { position: absolute; top: 50%; z-index: 4; width: 40px; height: 40px; padding: 0;
  transform: translateY(-50%); border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 19px; line-height: 1;
  color: #dfe4ee; background: rgba(14,17,23,.52); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0;
  transition: opacity .24s ease, background .24s ease, color .24s ease, transform .24s ease; }
.nl-hero:hover .nl-hero-nav { opacity: 1; }
.nl-hero-prev { left: 14px; }
.nl-hero-next { right: 14px; }
.nl-hero-nav:hover { background: rgba(55,211,155,.22); border-color: rgba(55,211,155,.5); color: #fff; }
.nl-hero-prev:hover { transform: translateY(-50%) translateX(-2px); }
.nl-hero-next:hover { transform: translateY(-50%) translateX(2px); }

/* 右下：圆点 + 计数 */
.nl-hero-foot { position: absolute; right: 22px; bottom: 22px; z-index: 4;
  display: flex; align-items: center; gap: 14px; }
.nl-hero-dots { display: flex; align-items: center; gap: 7px; }
.nl-hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,.34); transition: width .3s ease, background .3s ease; }
.nl-hero-dots button:hover { background: rgba(255,255,255,.62); }
.nl-hero-dots button.is-on { width: 24px; background: #37d39b; }
.nl-hero-count { display: flex; align-items: baseline; gap: 4px; font-size: 12px;
  letter-spacing: .5px; color: #8b93a4; font-variant-numeric: tabular-nums; }
.nl-hero-count b { font-size: 15px; font-weight: 700; color: #fff; }
.nl-hero-count i { font-style: normal; opacity: .5; }

.nl-list { display: flex; flex-direction: column; gap: 14px; }

.nl-item { position: relative; display: flex; gap: 20px; padding: 14px; border-radius: 16px;
  background: var(--dk-card); border: 1px solid var(--dk-border); text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease; }
.nl-item:hover { transform: translateY(-3px); background: var(--dk-card-h); border-color: rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.46); }

.nl-thumb { position: relative; flex: 0 0 196px; aspect-ratio: 16 / 10; border-radius: 11px; overflow: hidden;
  background: linear-gradient(135deg, #23262d, #181b21); }
.nl-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease; }
.nl-item:hover .nl-thumb img { transform: scale(1.06); }
.nl-thumb--noimg::after { content: '\f1ea'; font-family: FontAwesome; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; font-size: 30px; color: #3a4150; }

.nl-txt { display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; min-width: 0; padding: 2px 2px 2px 0; }

.nl-name { font-size: 16.5px; font-weight: 700; line-height: 1.5; color: #e9ecf1; letter-spacing: .2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nl-item:hover .nl-name { color: #fff; }

.nl-desc { font-size: 13px; line-height: 1.72; color: #8f97a8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.nl-meta { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px;
  font-size: 12px; color: #6b7386; }
.nl-meta span { display: inline-flex; align-items: center; }
.nl-meta i { margin-right: 6px; opacity: .85; }
.nl-meta .nl-hot { color: #f0b451; }

/* 空态 */
.nl-empty { padding: 64px 20px; text-align: center; color: #6b7386; font-size: 13.5px;
  background: var(--dk-card); border: 1px solid var(--dk-border); border-radius: 16px; }
.nl-empty i { display: block; font-size: 30px; margin-bottom: 12px; color: #3a4150; }

/* 分页皮肤（沿用原 pagebar/pagination 结构） */
.nl-wrap .pagebar { margin: 26px 0 0; }
.nl-wrap .pagination { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.nl-wrap .pagination a.page-item { min-width: 36px; height: 36px; padding: 0 12px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
  color: #a8b0c0 !important; background: var(--dk-card); border: 1px solid var(--dk-border);
  transition: background .18s ease, color .18s ease; }
.nl-wrap .pagination a.page-item:hover { background: var(--dk-card-h); color: #fff !important; border-color: rgba(255,255,255,.14); }

/* ============================================================
   详情页
   ============================================================ */
.nx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 20px; align-items: start; }

.nx-art { background: var(--dk-card); border: 1px solid var(--dk-border); border-radius: 16px; overflow: hidden; }

.nx-hd { padding: 26px 30px 0; }
.nx-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .4px; color: #8fb2ff;
  background: rgba(91,141,239,.12); border: 1px solid rgba(91,141,239,.24); padding: 5px 11px; border-radius: 999px; }
.nx-title { margin: 0 0 15px; font-size: 28px; line-height: 1.42; font-weight: 800; letter-spacing: .2px; color: #f2f4f8; }
.nx-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 18px;
  border-bottom: 1px solid var(--dk-border); font-size: 12.5px; color: #7d859a; }
.nx-meta span { display: inline-flex; align-items: center; gap: 6px; }
.nx-meta i { opacity: .85; }
.nx-meta a { color: #8fb2ff; }
.nx-meta a:hover { text-decoration: underline; }

.nx-cover { margin: 20px 0 0; }
.nx-cover img { display: block; width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; }

/* 付费墙 / 解锁内容：统一暗色（站内为暗色主题，原白卡过于突兀） */
html body .nx-body .paywall { background: linear-gradient(180deg, #252b37 0%, #1e222b 100%) !important;
  border: 1px solid rgba(124,108,240,.38) !important; border-radius: 16px !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.34) !important; padding: 30px 24px 22px !important; margin: 22px 0 !important; }
html body .nx-body .paywall .pw-line--title { color: #e8ebf0 !important; }
html body .nx-body .paywall .pw-line--count { color: #8b93a5 !important; }
html body .nx-body .paywall .pw-line--tip { color: #6b7386 !important; border-top-color: rgba(255,255,255,.07) !important; }
html body .nx-body .paywall .pw-balance { color: #7d859a !important; }
html body .nx-body .paywall .pw-price-pill { box-shadow: 0 6px 16px rgba(245,85,47,.28); }
html body .nx-body .paywall .pw-line--action .pw-btn { box-shadow: 0 8px 22px rgba(90,70,229,.4) !important; }
html body .nx-body .paywall-content { background: rgba(255,255,255,.035) !important; border-left: 3px solid #5b8def !important;
  border-radius: 10px !important; color: #b9c1cf !important; padding: 18px 20px !important; }
html body .nx-body .paywall-content a { color: #6ea8ff !important; }

.nx-body { padding: 22px 30px 8px; }
.nx-body.art-main { font-size: 15.5px; line-height: 1.95; color: #b9c1cf; }
.nx-body p { margin: 0 0 14px; }
.nx-body h2 { font-size: 19px; line-height: 1.5; font-weight: 700; color: #eef1f6; margin: 26px 0 12px;
  padding-left: 11px; border-left: 3px solid #5b8def; }
.nx-body h3 { font-size: 16.5px; line-height: 1.55; font-weight: 700; color: #e6e8eb; margin: 22px 0 10px; }
.nx-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px auto; display: block; }
.nx-body a { color: #6ea8ff; }
.nx-body blockquote { margin: 14px 0; padding: 12px 16px; border-left: 3px solid rgba(91,141,239,.5);
  background: rgba(91,141,239,.07); border-radius: 0 8px 8px 0; color: #a8b0c0; }
.nx-body ul, .nx-body ol { margin: 0 0 14px; padding-left: 22px; }
.nx-body li { margin: 6px 0; }
.nx-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.nx-body table th, .nx-body table td { border: 1px solid var(--dk-border-2); padding: 9px 12px; }
.nx-body table th { background: rgba(255,255,255,.04); color: #dfe4ec; }
/* 正文底部图片广告：限制高度，等比缩放不裁剪 */
.nx-body .ad-slot img { max-height: 240px; width: 100%; object-fit: contain; border-radius: 10px; display: block;
  background: rgba(255,255,255,.03); }
.nx-body .ad-slot .aab-item { display: block; position: relative; margin: 0 0 12px; }
.nx-body .ad-slot .aab-item:last-child { margin-bottom: 0; }

/* 底部：版权 / 标签 / 广告 */
.nx-foot { padding: 6px 30px 26px; }
.nx-copy { margin: 18px 0 0; padding: 15px 17px; border-radius: 11px; background: rgba(255,255,255,.03);
  border: 1px solid var(--dk-border); font-size: 12.5px; line-height: 1.95; color: #7d859a; }
.nx-copy a { color: #6ea8ff; word-break: break-all; }
.nx-copy b { color: #a8b0c0; font-weight: 600; }
.nx-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; font-size: 12.5px; color: #6b7386; }
.nx-tags a { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: 12px;
  color: #a8b0c0 !important; background: rgba(255,255,255,.05); border: 1px solid var(--dk-border-2); }
.nx-tags a:hover { color: #fff !important; background: rgba(91,141,239,.18); border-color: rgba(91,141,239,.35); }

/* ---------- 侧栏 ---------- */
.nx-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; }
.nx-card { padding: 16px 16px 10px; border-radius: 14px; background: var(--dk-card);
  border: 1px solid var(--dk-border); }
.nx-card-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 6px; padding-bottom: 11px; border-bottom: 1px solid var(--dk-border); }
.nx-card-hd b { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #e6e8eb; }
.nx-card-hd b i { color: #5b8def; }
.nx-card-hd a { font-size: 11.5px; color: #6b7386; }
.nx-card-hd a:hover { color: #8fb2ff; }

.nx-mini { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.055); }
.nx-mini:last-child { border-bottom: 0; padding-bottom: 4px; }
.nx-mini-thumb { flex: 0 0 64px; height: 46px; border-radius: 7px; overflow: hidden; background: #191d24; }
.nx-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nx-mini-txt { flex: 1 1 auto; min-width: 0; }
.nx-mini-txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12.5px; font-weight: 600; line-height: 1.5; color: #cfd5e0; }
.nx-mini:hover .nx-mini-txt b { color: #fff; }
.nx-mini-txt span { display: block; margin-top: 4px; font-size: 11px; color: #6b7386; }

.nx-rank { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.055); }
.nx-rank:last-child { border-bottom: 0; padding-bottom: 4px; }
.nx-rank-no { flex: 0 0 19px; height: 19px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #7d859a; background: rgba(255,255,255,.06); }
.nx-rank:nth-child(2) .nx-rank-no { color: #ff8b6b; background: rgba(255,139,107,.18); }
.nx-rank:nth-child(3) .nx-rank-no { color: #ffab5e; background: rgba(255,171,94,.16); }
.nx-rank:nth-child(4) .nx-rank-no { color: #f0b451; background: rgba(240,180,81,.14); }
.nx-rank-txt { flex: 1 1 auto; min-width: 0; }
.nx-rank-txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12.5px; font-weight: 600; line-height: 1.5; color: #cfd5e0; }
.nx-rank:hover .nx-rank-txt b { color: #fff; }
.nx-rank-txt span { display: block; margin-top: 4px; font-size: 11px; color: #6b7386; }

.nx-cta { padding: 16px; border-radius: 14px; background:
  radial-gradient(320px 160px at 100% 0%, rgba(91,141,239,.22), transparent 70%), var(--dk-card);
  border: 1px solid var(--dk-border); }
.nx-cta h4 { margin: 0 0 7px; font-size: 13.5px; font-weight: 700; color: #e6e8eb; }
.nx-cta p { margin: 0 0 12px; font-size: 12px; line-height: 1.7; color: #7d859a; }
.nx-cta-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.nx-cta-btns a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  font-size: 12px; color: #cfe0ff; background: rgba(91,141,239,.16); border: 1px solid rgba(91,141,239,.3); }
.nx-cta-btns a:hover { background: rgba(91,141,239,.28); color: #fff; }
.nx-cta-btns a.ghost { color: #a8b0c0; background: rgba(255,255,255,.05); border-color: var(--dk-border-2); }

/* ---------- 相关推荐 ---------- */
.nx-rel { margin: 24px 0 0; }
.nx-rel-hd { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 15px; font-weight: 700; color: #e6e8eb; }
.nx-rel-hd::before { content: ''; width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, #5b8def, #37d39b); }
.nx-rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nx-rel-card { display: flex; flex-direction: column; border-radius: 13px; overflow: hidden;
  background: var(--dk-card); border: 1px solid var(--dk-border); text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.nx-rel-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.12); box-shadow: 0 14px 34px rgba(0,0,0,.42); }
.nx-rel-cover { position: relative; padding-top: 56%; overflow: hidden; background: linear-gradient(135deg, #23262d, #181b21); }
.nx-rel-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nx-rel-card:hover .nx-rel-cover img { transform: scale(1.06); }
.nx-rel-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.nx-rel-body b { font-size: 13.5px; font-weight: 600; line-height: 1.5; color: #dfe4ec;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-rel-card:hover .nx-rel-body b { color: #fff; }
.nx-rel-body span { font-size: 11.5px; color: #6b7386; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nx-layout { grid-template-columns: minmax(0, 1fr) 276px; gap: 16px; }
  .nx-hd { padding: 22px 22px 0; }
  .nx-body { padding: 20px 22px 8px; }
  .nx-foot { padding: 4px 22px 22px; }
  .nx-title { font-size: 25px; }
  .nl-hero { aspect-ratio: 13 / 5; }
  .nl-slide-title { font-size: 24px; }
}
@media (max-width: 900px) {
  .nx-layout { grid-template-columns: 1fr; }
  .nx-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .nx-side > * { flex: 1 1 260px; }
  .nx-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nl-item { gap: 14px; }
  .nl-thumb { flex: 0 0 150px; }
  .nl-hero { aspect-ratio: 16 / 9; max-height: none; }
  .nl-hero-nav { display: none; }
  .nl-slide-body { width: 80%; padding: 26px 24px 28px; }
  .nl-slide-title { font-size: 21px; }
  .nl-slide-desc { font-size: 12.5px; }
  .nl-hero-foot { right: 16px; bottom: 16px; }
}
@media (max-width: 640px) {
  .nl-mast, .nx-mast { padding: 20px 18px 18px; border-radius: 14px; }
  .nl-mast h1, .nx-mast h1 { font-size: 20px; }
  .nl-hero { aspect-ratio: 4 / 3; border-radius: 14px; margin-bottom: 14px; }
  .nl-slide-veil { background: linear-gradient(0deg, rgba(8,10,14,.95) 4%, rgba(8,10,14,.6) 46%, rgba(8,10,14,.22) 100%); }
  .nl-slide-body { width: 100%; padding: 16px 16px 46px; gap: 8px; }
  .nl-slide-title { font-size: 17.5px; -webkit-line-clamp: 3; }
  .nl-slide-desc { display: none; }
  .nl-slide-meta { font-size: 11.5px; gap: 4px 14px; }
  .nl-hero-foot { left: 16px; right: auto; bottom: 16px; }
  .nl-hero-count { display: none; }
  .nl-item { flex-direction: column; gap: 12px; padding: 12px; }
  .nl-thumb { flex: none; width: 100%; aspect-ratio: 16 / 9; }
  .nl-name { font-size: 15.5px; }
  .nl-desc { -webkit-line-clamp: 2; font-size: 12.5px; }
  .nx-hd { padding: 20px 18px 0; }
  .nx-title { font-size: 21px; line-height: 1.45; }
  .nx-body { padding: 18px 18px 6px; }
  .nx-body.art-main { font-size: 15px; }
  .nx-foot { padding: 4px 18px 20px; }
  .nx-rel-grid { grid-template-columns: 1fr; }
  .nx-side { flex-direction: column; }
}
