/* ============================================================
   page-hub.css · 资讯馆 HUB 首页专属组件
   站点:site 4(news 子站)/ 主题:yanzhimei-news
   来源:静态母版 妍知美-营销站模板/hub-news.html 页内 style 块
   配套引用:base.css(yzm-head)+ page-index.css(.method-*/.ph.cat-*/.last-updated/.faq 二列)
            + page-list.css(.empty-fallback / .empty-msg / .ef-sub 既有「建设中」状态块)
   收录原则:只收上述三个文件里确实没有的类;母版中与 base.css / page-index.css
            重复的 header / footer / reveal / ph 色相规则一律不重复定义。
   命名说明:母版 v1.4 起把资讯竖排列表改名为 .news-line / .nl-*,
            以避开 base.css 中全站统一的「恢复时间线」同名组件,此处沿用母版新名。
   合规:本文件不含任何外部资源引用(无 @import、无远程 url())。
   ============================================================ */

/* —— 资讯竖排列表(母版 hub-news ⑦)—— */
.news-line{background:var(--card);border-radius:var(--r-m);box-shadow:var(--shadow);padding:6px 20px}
.nl-item{display:flex;gap:16px;align-items:baseline;padding:14px 0;border-bottom:1px dashed var(--line)}
.nl-item:last-child{border-bottom:0}
.nl-date{flex:none;width:7.5em;font-size:.8rem;color:var(--muted)}
.nl-item a{font-size:.95rem;font-weight:600;flex:1;min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nl-item a:hover{color:var(--brand-deep)}
.nl-tag{flex:none}
@media(max-width:767px){.nl-item{flex-wrap:wrap;gap:6px}}

/* —— 分类导航块 —— */
.idx-block{background:var(--card);border-radius:var(--r-m);box-shadow:var(--shadow);padding:20px}
.idx-label{font-size:.82rem;color:var(--muted);margin-bottom:10px}
.idx-cats{display:flex;flex-wrap:wrap;gap:8px}
.idx-cats a,.idx-cats .idx-cat{padding:6px 14px;border-radius:999px;border:1px solid var(--line);
  color:var(--ink-2);font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.idx-cats a:hover{border-color:var(--brand);color:var(--brand-deep)}
/* 建设中不可点态(与 base.css .kk-item.is-building 同一命名约定) */
.idx-cat.is-building{opacity:.55;cursor:default}

/* —— 卡片缩略区插图:base.css 的 .ph 只做居中占位,插图需绝对定位铺满 —— */
.ph img.illus{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}

/* —— 末尾紧凑入口链 —— */
.more-entries{margin-top:18px;padding-top:14px;border-top:1px dashed var(--line);
  font-size:.82rem;color:var(--muted);line-height:1.8;text-align:center}
.more-entries a{color:var(--brand-deep);margin:0 4px;font-weight:500}
.more-entries a:hover{text-decoration:underline}
