/* ============================================================
 * 新闻列表页专属样式 (news.css)
 * 仅 news.html 使用。
 * 说明：两栏布局(.layout)、侧栏(.side-card/.cat-tree/.side-contact)、
 *       筛选栏(.filter-bar)、分页(.pagination) 等公共骨架直接复用
 *       css/products.css，本文件只写“新闻列表”自身的样式。
 * ============================================================ */

/* ---------- 1. 新闻纵向列表：一行一条（左图 + 右文） ---------- */
.nl-list { display: flex; flex-direction: column; gap: 18px; }

.nl-item {
  display: flex; gap: 22px;
  background: #fff;
  border: 1px solid var(--lj-card-border);
  border-radius: 12px;
  padding: 18px;
  transition: all .3s;
}
.nl-item:hover { box-shadow: 0 10px 26px rgba(0,0,0,0.08); transform: translateY(-3px); border-color: #f6d9c9; }

/* 左侧缩略图 */
.nl-thumb {
  width: 210px; height: 140px; flex-shrink: 0;
  background: var(--lj-img-bg);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--lj-accent); font-size: 13px;
  overflow: hidden;
}
.nl-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 右侧文字区：纵向 flex，让“阅读全文”贴底 */
.nl-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.nl-main h5 { font-size: 18px; color: var(--lj-heading); font-weight: 600; line-height: 1.5; margin-bottom: 8px; transition: color .2s; }
.nl-item:hover .nl-main h5 { color: var(--lj-accent); }

/*  meta 行：分类标签 + 日期 + 来源 + 阅读量 */
.nl-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #b8aca6; margin-bottom: 10px; }
.nl-meta .cat { color: var(--lj-accent); background: var(--lj-info-bg); font-size: 12px; padding: 2px 12px; border-radius: 10px; }

/* 摘要：最多两行，超出省略 */
.nl-summary {
  font-size: 14px; color: var(--lj-text-mute); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* “阅读全文”链接贴底 */
.nl-more { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--lj-accent); }

/* ---------- 2. 响应式 ---------- */
/* 平板：缩略图略窄 */
@media (max-width: 1199px) {
  .nl-thumb { width: 170px; height: 120px; }
}
/* 手机：改为上图下文 */
@media (max-width: 767px) {
  .nl-item { flex-direction: column; gap: 14px; padding: 14px; }
  .nl-thumb { width: 100%; height: 160px; }
  .nl-main h5 { font-size: 16px; }
}
