/* newslist 页面专用样式（仅作用于 .nlist-* 作用域） */

/* 新闻列表页英雄区背景图片 */
.nlist-main .hero {
  background: url('../images/banner1.jpg') center/cover no-repeat;
}
/* 过滤条 */
.nlist-section { padding: 0 0 32px; }
.nlist-section .nlist-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid #eef2f6;
  padding-bottom: 12px;
}
.nlist-section .filter-label { color: #374151; font-weight: 600; white-space: nowrap; }
.nlist-section .filter-right { display: flex; gap: 8px 12px; flex-wrap: wrap; }
.nlist-section .filter-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e6eef7;
  background: #FFF;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.nlist-section .filter-link:hover { background: #f5faff; border-color: #b7d3f5; color: var(--brand-primary); }
.nlist-section .filter-link.is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff;  }

/* 新闻列表 */
.nlist-section .news-list { margin-top: 16px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) {
  .nlist-section .news-list { gap: 18px; }
}
/* 当本页复用问答页的 .qalist-layout 双栏时，去掉新闻列表顶部额外间距，确保与侧栏对齐 */
.nlist-section .qalist-layout .news-list { margin-top: 0; }

.nlist-section .news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nlist-section .news-item:hover {
  border-color: #e1ecf8;
  box-shadow: 0 2px 10px rgba(17,24,39,.06);
  transform: translateY(-1px);
}
@media (min-width: 768px) {
  .nlist-section .news-item { grid-template-columns: 180px 1fr; padding: 16px; }
}

/* 缩略图 */
.nlist-section .news-thumb { display: block; text-decoration: none; color: inherit; }
.nlist-section .thumb-aspect { position: relative; width: 100%; padding-top: 66.666%; overflow: hidden; border-radius: 10px; background: #f3f4f6; }
.nlist-section .thumb-aspect img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 文本内容 */
.nlist-section .news-content { display: flex; flex-direction: column; gap: 6px; }
.nlist-section .news-title { margin: 0; font-size: clamp(16px, 2.2vw, 18px); line-height: 1.4; font-weight: 700; color: #111827; }
.nlist-section .news-title a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 1px; transition: color .2s ease, background-size .2s ease; }
.nlist-section .news-title a:hover { color: var(--brand-primary); background-size: 100% 1px; }

.nlist-section .news-meta { font-size: clamp(12px, 1.8vw, 13px); color: #6b7280; display: flex; align-items: center; gap: 6px; }
.nlist-section .news-meta .dot { color: #9ca3af; }
.nlist-section .news-excerpt { margin: 0; color: #374151; font-size: clamp(13px, 2vw, 14px); line-height: 1.7; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.nlist-section .news-content,
.nlist-section .news-title,
.nlist-section .news-excerpt { text-align: left; }
.nlist-section .news-tags { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.nlist-section .news-tags .tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e6eef7;
  background: #f9fbff;
  color: #3569a9;
  text-decoration: none;
  font-size: clamp(11px, 1.6vw, 12px);
  line-height: 1;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.nlist-section .news-tags .tag:hover { background: #f0f6ff; border-color: #b7d3f5; color: var(--brand-primary); }
.nlist-section .news-more { align-self: flex-start; margin-top: 4px; font-size: 14px; color: var(--brand-primary); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 1px; transition: background-size .2s ease; }
.nlist-section .news-more:hover { background-size: 100% 1px; }

/* 分类入口（沿用产品列表视觉，作用域限定） */
.nlist-section .cat-entries { margin-top: 24px; }
.nlist-section .cat-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.nlist-section .cat-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
  flex-shrink: 0;
}
.nlist-section .cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.nlist-section .cat-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 14px;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size .2s ease;
}
.nlist-section .cat-link:hover { background-size: 100% 1px; }

/* 分页（沿用产品列表页风格） */
.nlist-section .nlist-pagination { margin: 28px 0 0; display: flex; justify-content: center; }
.nlist-section .pagination-list { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.nlist-section .page-link { 
  display: inline-flex; align-items: center;
   justify-content: center; min-width: 38px;
   height: 38px; padding: 0 14px; border-radius: 999px; 
   border: 1px solid #e6eef7; background: #FFF; 
   color:#181c32; text-decoration: none; 
   font-size: 14px; line-height: 1; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.nlist-section .page-link:hover { background: #f5faff; border-color: #b7d3f5; color: var(--brand-primary); }
.nlist-section .page-item.active .page-link, .nlist-section .page-item.active .page-link:hover 
{ background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff; }
.nlist-section .page-item.disabled .page-link { color: #9ca3af; background: #fff; border-color: #b7d3f5; cursor: not-allowed; pointer-events: none; }
.nlist-section .page-link:focus-visible { outline: 2px solid rgba(0,114,206,.25); outline-offset: 2px; }

/* 分类入口（沿用产品列表视觉，作用域限定） */
.nlist-section .cat-entries { margin-top: 24px; }
.nlist-section .cat-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.nlist-section .cat-label {
  color: #374151;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}
.nlist-section .cat-label a {
  color: #374151;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
  text-decoration: none;
  padding: 0 5px;
}
.nlist-section .cat-grid {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  flex: 1 1 auto;
}
.nlist-section .cat-card {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #1f2937;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color .2s ease, background-size .2s ease;
}
.nlist-section .cat-card:hover {
  color: var(--brand-primary);
  background-size: 100% 1px;
}
.nlist-section .cat-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  color: inherit;
  display: inline;
}
