/* AI 快讯 /news（11-07 起 B「派派一家」，从样稿 news.css 搬来；:hover 包进 (hover: hover)）。类名前缀 .news-；
   三栏、左栏卡片菜单、胶囊横滑这些两页共用的在 b/list3.css。模板 templates/pp/news.html + _news.html，交互 pp/js/news.js。
   结构：面包屑 + 标题 + 共几条 + 说明 → 三栏：左「分类」· 中间按天分组的快讯 · 右「要闻」+ 工具与交流 + 关于快讯。
   1200 以下右栏挪下去时，要闻改放在「全部」第一页的列表最上面（3 条）。 */
.news-head { padding-bottom: var(--space-lg); }
.news-head .crumbs { margin-top: var(--space-md); }
.news-head .page-head { padding-top: var(--space-md); padding-bottom: 0; }
.news-head__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-ms); }
.news-total { font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* 手机上的分类胶囊（宽屏藏起来） */
.news-chips { display: none; margin-bottom: var(--space-md); }
@media (max-width: 899px) { .news-chips { display: flex; } }
.news-chips .chip svg { width: 14px; height: 14px; color: var(--tg-fg); }
.news-chips .chip[aria-current] svg { color: currentColor; }
.snav .filter__opt > svg { color: var(--t-prompt-fg); }
.snav .filter__opt.is-on > svg { color: currentColor; }
.news-feed[aria-busy="true"] { opacity: .55; transition: opacity .2s .1s; }
.news-feed:focus { outline: 0; }

/* ---------- 一天一块：标题（今天 / 昨天 / 前天）+ 小字日期 · 几条 + 一张白面板，一条一行 ---------- */
.news-day + .news-day { margin-top: var(--space-xl); }
.news-day__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px var(--space-ms); margin: 0 var(--space-xs) var(--space-ms); }
.news-day__title { font: var(--display-w) var(--fs-d3)/1.2 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; }
.news-day__sub { font-size: var(--fs-sm); color: var(--ink-3); }
.news-list.panel { padding: var(--space-sm); }

/* 一条快讯：左边时间一列 · 标题 · 摘要一行（放不下的末尾「展开」）· 要闻 / 分类 / 来源 · 有配图的右边一张 3:2 小图。整行可点（标题的链接盖满整行） */
.news-item { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "time title" "time sum" "time meta";
  column-gap: var(--space-md); padding: 14px var(--space-md); border-radius: 14px; transition: background-color .2s; }
.news-item.has-img { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "time title img" "time sum img" "time meta img"; }
.news-item + .news-item::before { content: ""; position: absolute; left: var(--space-md); right: var(--space-md); top: 0; height: 1px; background: var(--line); transition: opacity .2s; }
@media (hover: hover) {
  .news-item:hover::before, .news-item:hover + .news-item::before { opacity: 0; }   /* 行间细线（不跟着圆角弯），悬停那一行上下的线藏起来 */
  .news-item:hover { background: var(--sunk); }
  .news-item:hover .news-item__title a { color: var(--link); }
  .news-item__more:hover { text-decoration: underline; text-underline-offset: 3px; }
}
.news-item__time { grid-area: time; font-size: var(--fs-sm); line-height: 24px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.news-item__title { grid-area: title; font-size: var(--fs-md); font-weight: 600; line-height: 24px; overflow-wrap: anywhere; }
.news-item__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-item__title a:focus-visible { outline: 0; }
.news-item:has(.news-item__title a:focus-visible) { box-shadow: inset 0 0 0 2px var(--blue); }
.news-item__sum { grid-area: sum; display: flex; align-items: flex-end; gap: var(--space-xs); min-width: 0; margin-top: 4px; font-size: var(--fs-sm); line-height: 22px; color: var(--ink-2); }
.news-item__sum p { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; overflow-wrap: anywhere; }
.news-item.is-open .news-item__sum { display: block; }
.news-item.is-open .news-item__sum p { display: inline; -webkit-line-clamp: none; }
.news-item__more { position: relative; z-index: 1; flex: none; min-height: 24px; padding: 0 2px; border: 0; background: none; color: var(--link); font-size: var(--fs-sm); line-height: 22px; }
.news-item.is-open .news-item__more { margin-left: var(--space-xs); }
.news-item__meta { grid-area: meta; display: flex; align-items: center; flex-wrap: wrap; gap: 6px var(--space-sm); margin-top: var(--space-sm); font-size: var(--fs-xs); line-height: 22px; color: var(--ink-3); }
.news-item__meta .tag svg { width: 12px; height: 12px; margin-right: 2px; }
.news-item__src { white-space: nowrap; }
.news-item__img { grid-area: img; position: relative; display: block; width: 120px; aspect-ratio: 3 / 2; margin-left: var(--space-xs); border-radius: 10px; overflow: hidden; background: var(--sunk); }
.news-item__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-item__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(31 45 61 / .07); }

/* ---------- 要闻：右栏一块面板（5 条，小图 + 两行标题 + 时间 · 来源）；窄屏放在列表最上面（3 条，手机上不放图） ---------- */
.news-hot .panel__head { padding-bottom: var(--space-sm); }
.news-hot .panel__title { display: inline-flex; align-items: center; gap: 6px; }
.news-hot .panel__title svg { width: 20px; height: 20px; color: var(--t-prompt-fg); }
.news-hot__list { --thumb-w: 72px; }
@media (min-width: 1800px) { .news-hot__list { --thumb-w: 88px; } }
.news-hot .list-item { gap: var(--space-ms); padding: 10px var(--space-ms); }
.news-hot .list-item__title { font-size: var(--fs-sm); line-height: 22px; }
.news-hot .list-item__meta { margin-top: 2px; gap: 6px; }
@media (hover: hover) { .news-hot .list-item:hover .list-item__title { color: var(--link); } }
.news-hot--top { margin-bottom: var(--space-xl); }
.news-hot--top .news-hot__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-sm); }
.news-hot--top .news-hot__list > :nth-child(n+4) { display: none; }
.news-hot--top .list-sep > * + * { box-shadow: none; }
@media (min-width: 1200px) { .news-hot--top { display: none; } }
@media (max-width: 1199px) { .tri__r .news-hot { display: none; } }

/* 右栏：工具与交流、关于快讯 */
.news-side .panel { padding: var(--space-md) var(--space-lg) var(--space-lg); }
.news-side .panel__head { padding: 4px 0 var(--space-sm); }
.news-side .panel__title { font-size: var(--fs-lg); }
.news-side p { font-size: var(--fs-sm); line-height: 1.75; color: var(--ink-2); }
.news-side__go { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.news-side__go .btn { flex: 1; }
.news-side .news-hot { padding: var(--space-md); }
.news-side .news-hot .panel__head { padding: 4px var(--space-ms) var(--space-sm); }

/* ---------- 900 以下：一栏；手机（< 760）：时间挪到标签那一行最前面，摘要两行，小图 80 宽 ---------- */
@media (max-width: 1199px) and (min-width: 760px) { .news-hot--top .news-hot__list { --thumb-w: 72px; } }
@media (max-width: 899px) { .news-side .news-about { display: none; } }
@media (max-width: 759px) {
  .news-head .page-head__desc { font-size: var(--fs-sm); }
  .news-hot--top { padding: var(--space-sm); }
  .news-hot--top .news-hot__list { grid-template-columns: minmax(0, 1fr); }
  .news-hot--top .list-sep > * + * { box-shadow: 0 -1px 0 var(--line); }
  .news-hot--top .list-item__thumb { display: none; }
  .news-hot--top .list-item { padding: 10px var(--space-sm); }
  .news-list.panel { padding: 4px; }
  .news-item, .news-item.has-img { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "title title" "sum sum" "time meta"; column-gap: var(--space-sm); padding: 14px var(--space-ms); }
  .news-item.has-img { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "title title img" "sum sum img" "time meta meta"; }
  .news-item__time { margin-top: var(--space-sm); font-size: var(--fs-xs); line-height: 22px; }
  .news-item__title { line-height: 1.5; }
  .news-item__sum p { -webkit-line-clamp: 2; }
  .news-item__img { width: 80px; margin-left: var(--space-ms); }
  .news-day__title { font-size: var(--fs-xl); }
  .news-side__go .btn { height: 44px; }
}
@media (pointer: coarse) { .news-item__more { min-height: 32px; } .news-item__more::after { content: ""; position: absolute; inset: -6px -8px; } }
