/* ---------- 资讯列表：页头用 components.css 的 ds-hero、ds-search、ds-strip ---------- */
/* 页头描述一行放下（约 620px），局部放宽，不动全站 */
.ds-hero-in { max-width: 720px; }
.ds-hero-desc { max-width: 660px; }
.nw-main { padding: 8px 0 96px; background: var(--fill-1); }
.nw-wrap { width: 1200px; max-width: calc(100% - 2 * var(--pad-x)); margin: 0 auto; }
.nw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.nw-body-col { min-width: 0; }
.nw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.nw-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  color: var(--title);
  position: relative;
  top: 1px;
  transition: color var(--dur-2), background var(--dur-2), border-color var(--dur-2);
}
a.nw-chip:hover {
  color: var(--brand-500);
  background: rgba(var(--brand-rgb), .06);
}
.nw-chip.is-active {
  background: var(--white);
  border-color: var(--line);
  color: var(--brand-500);
}
.nw-chip.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--white);
}

/* 横条列表 */
.nw-list { display: flex; flex-direction: column; gap: 16px; }
.nw-card > a {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 16px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-3);
}
.nw-card > a:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--sh-1);
}
.nw-cover {
  flex: none;
  width: 220px;
  height: 138px;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--fill-2);
}
.nw-cover.is-plain { background: var(--fill-2); }
.nw-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
.nw-card > a:hover .nw-cover img { transform: scale(1.04); }
.nw-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 4px 4px 4px 0;
}
.nw-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--muted);
}
.nw-cat {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--brand-500) 12%, var(--white));
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-500);
}
.nw-title {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: var(--title);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color var(--dur-2);
}
.nw-card > a:hover .nw-title { color: var(--brand-500); }
.nw-sum {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  font-size: 14px;
  line-height: 22px;
  color: var(--sub);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.nw-empty { padding: 80px 0; font-size: 16px; color: var(--muted); text-align: center; }
.nw-pages {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  overflow-x: auto;
  font-size: 14px;
}
.nw-pages a,
.nw-pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--text);
}
.nw-pages a:hover { border-color: var(--brand-500); color: var(--brand-500); }
.nw-pages .is-active {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: var(--white);
}
.nw-pages .is-disabled { color: var(--muted); background: var(--fill-1); }
.nw-pages-total {
  border: 0;
  background: transparent;
  color: var(--muted);
}

/* 右侧热门 */
.nw-aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 16px;
}
.nw-panel {
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--white);
}
.nw-panel-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--title);
}
.nw-hot { display: flex; flex-direction: column; }
.nw-hot li + li { border-top: 1px solid var(--line-soft); }
.nw-hot a {
  display: block;
  padding: 12px 0;
  transition: color var(--dur-2);
}
.nw-hot li:first-child a { padding-top: 0; }
.nw-hot li:last-child a { padding-bottom: 0; }
.nw-hot b {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--title);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color var(--dur-2);
}
.nw-hot a:hover b { color: var(--brand-500); }
.nw-hot time {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}
.nw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nw-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--fill-1);
  font-size: 12px;
  line-height: 26px;
  color: var(--text);
  transition: color var(--dur-2), background var(--dur-2), border-color var(--dur-2);
}
.nw-tag:hover { background: var(--fill-2); border-color: var(--brand-500); color: var(--brand-500); }
.nw-tag.is-active { background: var(--brand-500); border-color: var(--brand-500); color: var(--white); }

@media (max-width: 900px) {
  .nw-search { width: 100%; height: 48px; margin-top: 24px; padding-left: 20px; }
  .nw-main { padding: 0 0 56px; }
  .nw-layout { grid-template-columns: 1fr; }
  .nw-aside { position: static; }
  .nw-cover { width: 160px; height: 100px; }
  .nw-title { font-size: 16px; line-height: 24px; }
  .nw-card > a { gap: 16px; padding: 12px; }
}
@media (max-width: 600px) {
  .nw-card > a { flex-direction: column; }
  .nw-cover { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .nw-body { padding: 0; }
}
