/* ZLH-NEWS-DESK-20261017 · 机器人资讯「新闻台」样式模块
   设计规范：严格复用站点 design-tokens-v3
     --zlh-primary #2979ff / --zlh-muted #6b7480 / --zlh-radius 12px
     --zlh-soft #eef4ff / --zlh-shadow 0 6px 18px rgba(60,96,180,.06)
     h2 20px/700/1.45 · h3 16px/600/1.5 · p line-height 1.75
   字体：一律继承，不覆盖 font-family
*/

.zlh-news {
  --n-line: #e8edf4;
  --n-line-soft: #f1f4f9;
  --n-ink: #253241;
  color: var(--n-ink);
}

/* ---------- 说明行 ---------- */
.zlh-news__intro { margin: 0 0 14px; font-size: 13px; line-height: 1.75; color: var(--zlh-muted); }

/* ---------- 统计头 ---------- */
.zlh-news__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 0 0 14px;
  border-bottom: 2px solid var(--n-ink);
  margin-bottom: 2px;
}
.zlh-news__stat { display: flex; align-items: baseline; gap: 8px; }
.zlh-news__stat b { font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--n-ink); }
.zlh-news__stat span { font-size: 13px; color: var(--zlh-muted); }
.zlh-news__note { font-style: normal; font-size: 12px; color: #9aa6b4; margin-left: 10px; }
.zlh-news__range { margin: 0; font-size: 13px; color: var(--zlh-muted); font-variant-numeric: tabular-nums; }

/* ---------- 筛选（专业版：文字导航 + 激活下划线）---------- */
.zlh-news__filters { padding: 14px 0 12px; border-bottom: 1px solid var(--n-line); }
.zlh-news__frow {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: baseline;
  padding: 4px 0;
}
.zlh-news__frow + .zlh-news__frow { border-top: 1px dashed var(--n-line-soft); }
.zlh-news__flabel {
  font-size: 13px;
  font-weight: 600;
  color: #3c4a5a;
  letter-spacing: .02em;
}
.zlh-news__fval {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  align-items: baseline;
}
.zlh-news__opt {
  display: inline-block;
  padding: 2px 0 3px;
  font-size: 13px;
  line-height: 1.6;
  color: #55616f;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  transition: color .14s ease, border-color .14s ease;
}
.zlh-news__opt:hover { color: var(--zlh-primary); }
.zlh-news__opt.is-active {
  color: var(--zlh-primary);
  font-weight: 600;
  border-bottom-color: var(--zlh-primary);
}
.zlh-news__opt:focus-visible { outline: 2px solid var(--zlh-primary); outline-offset: 2px; border-radius: 3px; }

/* ---------- 日期分组 ---------- */
.zlh-news__feed { padding-top: 2px; }
.zlh-news__day { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px; padding: 18px 0 2px; border-top: 1px solid var(--n-line); }
.zlh-news__day:first-child { border-top: 0; }
.zlh-news__date {
  margin: 0; padding-top: 2px; align-self: start;
  position: sticky; top: 12px;
  font-size: 13px; font-weight: 600; color: var(--zlh-muted); font-variant-numeric: tabular-nums;
}
.zlh-news__date b { display: block; font-size: 20px; font-weight: 700; line-height: 1.45; color: var(--n-ink); letter-spacing: -.01em; }
.zlh-news__date span { display: block; font-size: 12px; font-weight: 500; color: #9aa6b4; }

/* ---------- 新闻条目 ---------- */
.zlh-news__list { margin: 0; padding: 0; list-style: none; }
.zlh-news__item { border-top: 1px solid var(--n-line-soft); }
.zlh-news__item:first-child { border-top: 0; }
.zlh-news__link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 16px;
  align-items: center;
  padding: 13px 4px 15px;
  text-decoration: none;
  color: inherit;
  transition: background .15s ease;
}
.zlh-news__body { min-width: 0; }
.zlh-news__link:hover { background: #f8fafd; }
.zlh-news__link:focus-visible { outline: 2px solid var(--zlh-primary); outline-offset: 1px; }

.zlh-news__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; font-size: 12px; line-height: 1.5; }
.zlh-news__src {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #55616f;
  word-break: break-word;
}
.zlh-news__lv { display: inline-block; min-width: 16px; padding: 1px 5px; border-radius: 4px; font-size: 11px; font-weight: 700; text-align: center; color: #fff; }
.zlh-news__lv.lv-a { background: var(--zlh-primary); }
.zlh-news__lv.lv-b { background: #7a5cc4; }
.zlh-news__lv.lv-c { background: #9aa6b4; }
.zlh-news__ty { color: #6b7787; }
.zlh-news__ty::before { content: "·"; margin-right: 6px; color: #c3ccd8; }

.zlh-news__title { margin: 0 0 5px; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--n-ink); }
.zlh-news__link:hover .zlh-news__title { color: var(--zlh-primary); }
.zlh-news__sum {
  margin: 0 0 6px; font-size: 13px; line-height: 1.75; color: var(--zlh-muted); max-width: 70ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.zlh-news__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #9aa6b4; }
.zlh-news__foot em { font-style: normal; }
.zlh-news__foot em + em::before { content: "·"; margin-right: 6px; color: #c3ccd8; }
.zlh-news__ext { margin-left: auto; color: var(--zlh-primary); font-weight: 600; }

/* ---------- 空状态 ---------- */
.zlh-news__empty { padding: 52px 20px; text-align: center; color: var(--zlh-muted); }
.zlh-news__empty b { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 600; color: var(--n-ink); }
.zlh-news__empty a { color: var(--zlh-primary); }

/* ---------- 分页 ---------- */
.zlh-news__pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px 0 6px; margin-top: 6px; border-top: 1px solid var(--n-line); font-size: 13px; }
.zlh-news__pager a, .zlh-news__pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 12px;
  border-radius: var(--zlh-radius); border: 1px solid var(--n-line);
  background: #fff; color: #3c4a5a; text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.zlh-news__pager a:hover { border-color: var(--zlh-primary); color: var(--zlh-primary); }
.zlh-news__pager .is-current { background: var(--zlh-primary); border-color: var(--zlh-primary); color: #fff; font-weight: 600; }
.zlh-news__pager .is-disabled { color: #c3ccd8; pointer-events: none; }

/* ---------- 深度解读 ---------- */
.zlh-news__deep { margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--n-ink); }
.zlh-news__deep-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.zlh-news__deep-head h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.45; color: var(--n-ink); }
.zlh-news__deep-head p { margin: 4px 0 0; font-size: 13px; line-height: 1.75; color: var(--zlh-muted); }
.zlh-news__deep-list { margin: 10px 0 0; padding: 0; list-style: none; }
.zlh-news__deep-item { border-top: 1px solid var(--n-line-soft); }
.zlh-news__deep-item:first-child { border-top: 0; }
.zlh-news__deep-item a { display: flex; align-items: baseline; gap: 14px; padding: 11px 2px; text-decoration: none; color: inherit; }
.zlh-news__deep-item a:hover .zlh-news__deep-title { color: var(--zlh-primary); }
.zlh-news__deep-title { flex: 1 1 auto; font-size: 14px; line-height: 1.6; color: #3c4a5a; }
.zlh-news__deep-tag { flex: 0 0 auto; font-size: 12px; color: #9aa6b4; font-variant-numeric: tabular-nums; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .zlh-news__link { grid-template-columns: 1fr; gap: 4px; align-items: start; }
  .zlh-news__src { font-size: 12px; color: #9aa6b4; }
  .zlh-news__frow { grid-template-columns: 1fr; gap: 2px; }
  .zlh-news__fval { gap: 2px 14px; }
  .zlh-news__day { grid-template-columns: 1fr; gap: 6px; padding: 14px 0 2px; }
  .zlh-news__date { position: static; display: flex; align-items: baseline; gap: 8px; }
  .zlh-news__date b { font-size: 15px; line-height: 1.5; }
  .zlh-news__sum { -webkit-line-clamp: 3; }
  .zlh-news__filters { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .zlh-news__frow { flex-wrap: nowrap; }
}
@media (max-width: 640px) {
  .zlh-news__stat b { font-size: 24px; }
  .zlh-news__deep-item a { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .zlh-news__chip, .zlh-news__link, .zlh-news__pager a { transition: none; }
}

/* 区块标题「产业新闻」 */
.zlh-news__sectitle { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.45; color: var(--n-ink); letter-spacing: -.01em; }
.zlh-news__sectitle::before { content: ""; display: inline-block; width: 3px; height: 17px; margin-right: 9px; border-radius: 2px; background: var(--zlh-primary); vertical-align: -2px; }
