/* 资讯（10-16 第七轮，白晨定「传统新闻资讯式」）：头条＋文字列表，靠字号、字重、留白和细分隔线分层次；
   只用真实接入时拿得到的字段（标题、来源、时间、摘要、原文链接，分类可选），不配图、不靠来源 logo。
   本文件压过 app.css 里旧的资讯样式（.nw-list 四列横排、.nw、.nw-foot），旧规则留着待主控收口时清。
   卡底不放说明行：「示例」在卡头标着，「更多」也在卡头，卡片高度跟并排的云端文件夹拉齐。 */

.c-news { display: flex; flex-direction: column; }

/* 共用：整条可点的按钮（头条与列表条目） */
.c-news .nw-hit { display: flex; width: 100%; min-width: 0; margin: 0; padding: 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background var(--dur-fast) var(--ease); }
.c-news .nw-hit:hover { background: var(--surface-2); }
.c-news .nw-t { display: block; min-width: 0; color: var(--ink); }

/* 来源与时间：首字小方标＋来源名＋时间 */
.c-news .nw-meta { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; line-height: 18px; color: var(--ink-3); white-space: nowrap; }
.c-news .nw-mk { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 5px; font: 600 10px/1 var(--font-sans); font-style: normal; }
.c-news .nw-mk[data-h="0"] { background: #F2E5D8; color: #8A5632; }
.c-news .nw-mk[data-h="1"] { background: #E6EAF0; color: #4A586D; }
.c-news .nw-mk[data-h="2"] { background: #EFE5EC; color: #6D4C67; }
.c-news .nw-mk[data-h="3"] { background: #E3EBE2; color: #496350; }
.c-news .nw-src { overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-weight: 500; }
.c-news .nw-at::before { content: "·"; margin-right: 6px; color: var(--ink-3); }

/* 头条：分类小字（可选）、大一号的标题、两行摘要、来源与时间 */
.c-news .nw-lead { margin: -6px -10px 4px; border-radius: var(--radius-sm); transition: background var(--dur-fast) var(--ease); }
.c-news .nw-lead > .nw-hit { flex-direction: column; align-items: stretch; gap: 5px; padding: 8px 10px 10px; }
.c-news .nw-kick { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--ink-2); letter-spacing: .02em; }
.c-news .nw-kick::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--ink); }
.c-news .nw-lead .nw-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 17px; font-weight: 650; line-height: 1.45; letter-spacing: -.005em; text-wrap: pretty; }
.c-news .nw-lead > .nw-hit > .nw-sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.c-news .nw-lead.is-open > .nw-hit > .nw-sum, .c-news .nw-lead.is-open .nw-t { -webkit-line-clamp: unset; }
.c-news .nw-lead .nw-meta { margin-top: 2px; }

/* 列表：一行标题、右侧来源与时间，条目之间细线（缩进到文字边，悬停与展开时让开） */
.c-news .nw-list { display: block; margin: 0 -10px -6px; padding: 0; list-style: none; }
.c-news .nw { position: relative; display: block; padding: 0; border-radius: var(--radius-sm); background: none; transition: background var(--dur-fast) var(--ease); }
.c-news .nw::before { content: ""; position: absolute; top: 0; left: 10px; right: 10px; height: 1px; background: var(--line); transition: opacity var(--dur-fast) var(--ease); }
.c-news .nw:hover::before, .c-news .nw:hover + .nw::before, .c-news .nw.is-open::before, .c-news .nw.is-open + .nw::before { opacity: 0; }
.c-news .nw > .nw-hit { align-items: baseline; gap: 14px; padding: 10px; }
.c-news .nw .nw-t { flex: 1; overflow: hidden; font-size: 14px; font-weight: 500; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }
.c-news .nw .nw-meta { flex: none; max-width: 46%; align-self: center; }
.c-news .nw.is-open .nw-t { white-space: normal; font-weight: 600; }

/* 展开：摘要全文＋「看原文」，高度从 0 长出来（grid 0fr → 1fr），同时只开一条 */
.c-news .is-open, .c-news .is-open > .nw-hit:hover { background: var(--surface-2); }
.c-news .nw-more { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 280ms var(--ease), visibility 0s linear 280ms; }
.c-news .is-open > .nw-more { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 280ms var(--ease), visibility 0s; }
.c-news .nw-more-in { min-height: 0; overflow: hidden; opacity: 0; transition: opacity 180ms var(--ease); }
.c-news .is-open > .nw-more .nw-more-in { opacity: 1; transition: opacity 240ms var(--ease) 60ms; }
.c-news .nw-more .nw-sum { margin: -4px 10px 8px; font-size: 13px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.c-news .nw-go { display: inline-flex; align-items: center; gap: 4px; height: 28px; margin: 0 10px 12px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background var(--dur-fast) var(--ease); }
.c-news .nw-go:hover { background: #FFFFFF; }
.c-news .nw-go .ico { width: 13px; height: 13px; }
.c-news .nw-lead .nw-go { margin-top: -2px; }
/* 列表条目展开：摘要和「看原文」同一行（按钮贴右下），少占一行高度 */
.c-news .nw .nw-more-in { display: flex; align-items: flex-end; gap: 16px; }
.c-news .nw .nw-more .nw-sum { flex: 1; min-width: 0; margin: -4px 0 12px 10px; }
.c-news .nw .nw-go { flex: none; margin: 0 10px 10px 0; }

/* 卡头右侧「更多」：朴素的文字按钮，跟在「示例」后面 */
.c-news .nw-all { display: inline-flex; align-items: center; gap: 1px; flex: none; height: 28px; margin-left: 4px; padding: 0 4px 0 8px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.c-news .nw-all:hover { background: var(--surface-2); color: var(--ink); }
.c-news .nw-all .ico { width: 13px; height: 13px; }

@media (max-width: 1100px) {
  .c-news .nw .nw-src { display: none; }   /* 半宽变窄：列表条目只留小方标＋时间，把位置让给标题 */
}
@media (max-width: 760px) {
  .c-news .nw .nw-more-in { flex-direction: column; align-items: flex-start; gap: 0; }
  .c-news .nw .nw-more .nw-sum { margin: -2px 10px 8px; }
  .c-news .nw .nw-go { margin: 0 10px 12px; }
  .c-news .nw-lead .nw-t { font-size: 16px; }
  .c-news .nw > .nw-hit { flex-direction: column; align-items: stretch; gap: 4px; }
  .c-news .nw .nw-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
  .c-news .nw.is-open .nw-t { -webkit-line-clamp: unset; }
  .c-news .nw .nw-meta { max-width: none; align-self: flex-start; }
  .c-news .nw .nw-src { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .c-news .nw-hit, .c-news .nw, .c-news .nw::before, .c-news .nw-lead, .c-news .nw-more, .c-news .nw-more-in, .c-news .nw-go { transition: none !important; }
}
