/* ============================================================
   新闻/文章列表页 — 互联网大厂风格
   深蓝渐变Hero + 侧边栏 + 文章列表 + 分页 + CTA
   品牌主色: #0f6ab4 | 前缀: nl- | 部署: /skin/css/newslist-portal.css
   ============================================================ */

/* ===== Variables ===== */
:root {
  --nl-primary: #0f6ab4;
  --nl-primary-dark: #0a4d80;
  --nl-primary-light: #e8f4fc;
  --nl-accent: #00c6ff;
  --nl-text-1: #1a1a2e;
  --nl-text-2: #555;
  --nl-text-3: #888;
  --nl-bg: #ffffff;
  --nl-bg-alt: #f7f9fc;
  --nl-border: #eef0f4;
  --nl-border-dark: #e0e3e8;
  --nl-radius: 16px;
  --nl-radius-sm: 10px;
  --nl-shadow: 0 4px 24px rgba(15, 106, 180, 0.08);
  --nl-shadow-hover: 0 12px 40px rgba(15, 106, 180, 0.15);
  --nl-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --nl-max: 1200px;
}

/* ===== Reset (scoped) ===== */
.nl-wrapper *, .nl-wrapper *::before, .nl-wrapper *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
.nl-wrapper {
  font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 15px; color: var(--nl-text-1); line-height: 1.6;
  background: var(--nl-bg); -webkit-font-smoothing: antialiased;
}
.nl-wrapper ul, .nl-wrapper ol { list-style: none; }
.nl-wrapper a { color: inherit; text-decoration: none; transition: var(--nl-transition); }
.nl-wrapper img { display: block; max-width: 100%; height: auto; }
.nl-wrapper h1, .nl-wrapper h2, .nl-wrapper h3, .nl-wrapper h4 { margin: 0; padding: 0; }

/* Hide original secondary nav */
.nav_pc, .nav_phone { display: none !important; }

/* Override original container overflow */
.nl-wrapper .container,
#bann.nl-bann .container,
.nl-cta .container { overflow: visible; }

/* ===== Hero ===== */
#bann.nl-bann {
  position: relative;
  padding: 140px 20px 80px;
  background: linear-gradient(135deg, #0a1628 0%, #0f6ab4 50%, #0a4d80 100%) !important;
  color: #fff;
  overflow: hidden;
  height: auto !important;
}
#bann.nl-bann::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
#bann.nl-bann::after {
  content: '';
  position: absolute; bottom: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,198,255,.15) 0%, transparent 70%);
  pointer-events: none;
}
#bann.nl-bann .container {
  max-width: var(--nl-max); width: 100%; margin: 0 auto;
  height: auto; display: block; transform: none;
  flex-direction: initial; justify-content: initial; align-items: initial;
  position: relative; z-index: 2; overflow: visible;
}

/* Breadcrumb */
.nl-breadcrumb.nl-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.55);
  margin-bottom: 28px; list-style: none; padding: 0; flex-wrap: wrap;
}
.nl-breadcrumb li { display: flex; align-items: center; gap: 6px; list-style: none; }
.nl-breadcrumb li::after { content: "/"; color: rgba(255,255,255,.3); font-size: 12px; }
.nl-breadcrumb li:last-child::after { display: none; }
.nl-breadcrumb a { color: rgba(255,255,255,.7); }
.nl-breadcrumb a:hover { color: #fff; }
.nl-breadcrumb li:last-child { color: rgba(255,255,255,.9); max-width: 100%; white-space: normal; }

.nl-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 30px; font-size: 13px; color: rgba(255,255,255,.8);
  margin-bottom: 24px; backdrop-filter: blur(8px);
}
.nl-hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--nl-accent); box-shadow: 0 0 8px var(--nl-accent);
}
.nl-hero-title {
  font-size: 40px; font-weight: 700; color: #fff;
  letter-spacing: 1px; line-height: 1.3; margin-bottom: 16px;
}
.nl-hero-desc {
  font-size: 17px; color: rgba(255,255,255,.75); line-height: 1.8; margin-bottom: 32px; max-width: 640px;
}
.nl-hero-stats { display: flex; flex-wrap: wrap; gap: 40px; }
.nl-hero-stat .num { font-size: 32px; font-weight: 700; color: var(--nl-accent); line-height: 1; margin-bottom: 4px; }
.nl-hero-stat .label { font-size: 14px; color: rgba(255,255,255,.6); }

/* ===== Main Layout ===== */
.nl-main { padding: 64px 0 80px; background: var(--nl-bg); }
.nl-main .container { max-width: var(--nl-max); width: 100%; margin: 0 auto; overflow: visible; }
.nl-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }

/* ===== Sidebar ===== */
.nl-sidebar { position: sticky; top: 90px; }
.nl-sidebar-block { margin-bottom: 24px; }
.nl-sidebar-title {
  font-size: 15px; font-weight: 700; color: var(--nl-text-1);
  padding: 0 0 14px; margin-bottom: 14px;
  border-bottom: 2px solid var(--nl-primary);
  display: flex; align-items: center; gap: 8px;
}
.nl-sidebar-title::before {
  content: ''; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--nl-primary), var(--nl-accent));
}
.nl-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.nl-sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: var(--nl-radius-sm);
  font-size: 14px; color: var(--nl-text-2); transition: var(--nl-transition);
  border-left: 3px solid transparent;
}
.nl-sidebar-nav a:hover { background: var(--nl-primary-light); color: var(--nl-primary); border-left-color: var(--nl-primary); }
.nl-sidebar-nav a.active { background: var(--nl-primary-light); color: var(--nl-primary); font-weight: 600; border-left-color: var(--nl-primary); }
.nl-sidebar-nav a .nl-nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--nl-border-dark); transition: var(--nl-transition); }
.nl-sidebar-nav a:hover .nl-nav-dot, .nl-sidebar-nav a.active .nl-nav-dot { background: var(--nl-primary); }

/* Sidebar hot articles */
.nl-sidebar-hot { display: flex; flex-direction: column; gap: 12px; }
.nl-hot-item {
  display: block; padding: 12px 14px; border-radius: var(--nl-radius-sm);
  background: var(--nl-bg-alt); transition: var(--nl-transition);
}
.nl-hot-item:hover { background: var(--nl-primary-light); transform: translateX(4px); }
.nl-hot-item .nl-hot-title {
  font-size: 14px; font-weight: 600; color: var(--nl-text-1); line-height: 1.5; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nl-hot-item .nl-hot-date { font-size: 12px; color: var(--nl-text-3); }

/* Sidebar contact */
.nl-sidebar-contact {
  background: linear-gradient(135deg, var(--nl-primary), var(--nl-primary-dark));
  border-radius: var(--nl-radius); padding: 24px 20px; color: #fff;
  position: relative; overflow: hidden;
}
.nl-sidebar-contact::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,.1);
}
.nl-sidebar-contact h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; position: relative; }
.nl-sidebar-contact p { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 16px; position: relative; }
.nl-sidebar-contact .nl-contact-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 8px;
  background: var(--nl-accent); color: #0a1628;
  font-size: 13px; font-weight: 600; position: relative;
}
.nl-sidebar-contact .nl-contact-btn:hover { background: #00b4e6; transform: translateY(-2px); }

/* ===== Article List ===== */
.nl-list { display: flex; flex-direction: column; gap: 20px; }
.nl-article {
  display: flex; gap: 24px; padding: 24px;
  background: var(--nl-bg); border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius); transition: var(--nl-transition);
  position: relative; overflow: hidden;
}
.nl-article::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--nl-primary), var(--nl-accent));
  transform: scaleY(0); transform-origin: top; transition: transform 0.4s ease;
}
.nl-article:hover { transform: translateY(-4px); box-shadow: var(--nl-shadow-hover); border-color: var(--nl-primary); }
.nl-article:hover::before { transform: scaleY(1); }
.nl-article-image {
  flex-shrink: 0; width: 200px; height: 140px; border-radius: var(--nl-radius-sm);
  overflow: hidden; background: var(--nl-bg-alt);
}
.nl-article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.nl-article:hover .nl-article-image img { transform: scale(1.05); }
.nl-article-body { flex: 1; display: flex; flex-direction: column; }
.nl-article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.nl-article-date {
  font-size: 13px; color: var(--nl-text-3); display: flex; align-items: center; gap: 4px;
}
.nl-article-tag {
  font-size: 12px; color: var(--nl-primary); font-weight: 600;
  padding: 2px 10px; border-radius: 20px; background: var(--nl-primary-light);
}
.nl-article-title {
  font-size: 18px; font-weight: 700; color: var(--nl-text-1); margin-bottom: 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nl-article:hover .nl-article-title { color: var(--nl-primary); }
.nl-article-desc {
  font-size: 14px; color: var(--nl-text-2); line-height: 1.7; margin-bottom: 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nl-article-link {
  font-size: 14px; color: var(--nl-primary); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; transition: var(--nl-transition);
}
.nl-article:hover .nl-article-link { gap: 10px; }

/* No image variant */
.nl-article.no-image { padding: 28px 24px; }
.nl-article.no-image .nl-article-body { padding: 0; }

/* ===== Pagination ===== */
.nl-pagination { margin-top: 40px; display: flex; justify-content: center; }
.nl-pagination .pagebar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.nl-pagination .pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; }
.nl-pagination a, .nl-pagination .page-item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--nl-border-dark); border-radius: 8px;
  font-size: 14px; color: var(--nl-text-2); transition: var(--nl-transition);
  list-style: none; text-decoration: none;
}
.nl-pagination a:hover { border-color: var(--nl-primary); color: var(--nl-primary); background: var(--nl-primary-light); }
.nl-pagination .st { font-weight: 600; }
.nl-no-data { text-align: center; padding: 60px 20px; color: var(--nl-text-3); font-size: 15px; }

/* ===== CTA ===== */
.nl-cta {
  position: relative; padding: 80px 0; overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #0f6ab4 50%, #0a4d80 100%);
}
.nl-cta::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.nl-cta::after {
  content: ''; position: absolute; top: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,198,255,.15) 0%, transparent 70%);
  pointer-events: none;
}
.nl-cta .container { max-width: 760px; width: 100%; margin: 0 auto; text-align: center; position: relative; z-index: 2; overflow: visible; }
.nl-cta h2 { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.nl-cta p { font-size: 17px; color: rgba(255,255,255,.75); line-height: 1.8; margin-bottom: 36px; }
.nl-cta .th-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.nl-cta .th-cta-btns > a,
.nl-cta .th-cta-btns > a.th-btn-primary,
.nl-cta .th-cta-btns > a.th-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border-radius: 30px;
  font-size: 15px; font-weight: 600; transition: var(--nl-transition);
  text-decoration: none;
}
.nl-cta .th-cta-btns > a.th-btn-primary { background: #00c6ff; color: #fff !important; }
.nl-cta .th-cta-btns > a.th-btn-primary:hover { background: #fff; color: #0f6ab4 !important; transform: translateY(-2px); }
.nl-cta .th-cta-btns > a.th-btn-outline { border: 1px solid rgba(255,255,255,.3); color: #fff !important; background: transparent; }
.nl-cta .th-cta-btns > a.th-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nl-layout { grid-template-columns: 220px 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  #bann.nl-bann { padding: 130px 16px 56px; height: auto !important; }
  #bann.nl-bann .container { height: auto !important; }
  .nl-hero-title { font-size: 26px; }
  .nl-hero-desc { font-size: 15px; margin-bottom: 24px; }
  .nl-hero-stats { gap: 24px; }
  .nl-hero-stat .num { font-size: 26px; }
  .nl-hero-stat .label { font-size: 13px; }
  .nl-main { padding: 40px 0 56px; }
  .nl-layout { grid-template-columns: 1fr; gap: 28px; }
  .nl-sidebar { position: static; }
  .nl-sidebar-block { margin-bottom: 20px; }
  .nl-sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .nl-sidebar-nav a { padding: 8px 14px; border-left: none; border: 1px solid var(--nl-border); border-radius: 20px; font-size: 13px; }
  .nl-sidebar-nav a.active { border-color: var(--nl-primary); }
  .nl-sidebar-nav a .nl-nav-dot { display: none; }
  .nl-list { gap: 16px; }
  .nl-article { flex-direction: column; gap: 16px; padding: 18px 16px; }
  .nl-article-image { width: 100%; height: 180px; }
  .nl-article-title { font-size: 16px; }
  .nl-article-desc { font-size: 13px; }
  .nl-pagination { margin-top: 32px; }
  .nl-pagination a, .nl-pagination .page-item { min-width: 36px; height: 36px; font-size: 13px; }
  .nl-cta { padding: 48px 0; }
  .nl-cta h2 { font-size: 24px; }
  .nl-cta p { font-size: 15px; }
}

@media (max-width: 480px) {
  #bann.nl-bann { padding: 120px 12px 44px; }
  .nl-hero-title { font-size: 22px; }
  .nl-hero-stats { gap: 20px; }
  .nl-hero-stat .num { font-size: 22px; }
  .nl-cta .th-cta-btns { flex-direction: column; }
  .nl-cta .th-cta-btns > a,
  .nl-cta .th-cta-btns > a.th-btn-primary,
  .nl-cta .th-cta-btns > a.th-btn-outline { width: 100%; justify-content: center; }
}
