/* 资讯（10-15 夜第七轮重新设计）：两版共用的封面与零件，nv=1 杂志头条式、nv=2 今日要点式。
   仍是示例：标题旁「示例」标签、点开的摘要里写明示例、点条目照旧提示。封面是按分类画的抽象图（app.js 的 NW_SVG），不引外部图片。
   色调四种，各配一组浅底、主色、深色字：kol 杏（投放）、play 天青（玩法）、pace 鼠尾草（大促节奏）、rule 丁香（平台规则）。 */
.t-kol { --nw-a: #F9D9C2; --nw-b: #EFA184; --nw-soft: #FCEEE4; --nw-ink: #A34B30; }
.t-play { --nw-a: #D3E6F4; --nw-b: #93BCE2; --nw-soft: #EDF4FA; --nw-ink: #2F6699; }
.t-pace { --nw-a: #DCEAD2; --nw-b: #9CC4A3; --nw-soft: #EFF5EA; --nw-ink: #3D7449; }
.t-rule { --nw-a: #E6DFF4; --nw-b: #B6A8DD; --nw-soft: #F3F0FA; --nw-ink: #62509E; }

.c-news .ch { flex-wrap: nowrap; }
.nw-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--ink-3); }

/* 封面 */
.nw-cv { position: relative; display: block; flex: none; overflow: hidden; background: radial-gradient(120% 90% at 18% 12%, rgba(255, 255, 255, .55), transparent 55%), linear-gradient(135deg, var(--nw-a), var(--nw-b)); }
.nw-cv svg { display: block; width: 100%; height: 100%; }
.nw-cv-g { transform-box: view-box; transform-origin: 60% 50%; transition: transform 480ms var(--ease); }
.nw-cv.tile { width: 64px; height: 64px; border-radius: 14px; }
.nw-cv.dot { width: 30px; height: 30px; border-radius: 9px; }

/* 共用零件：分类、和你有关、关联的那件事、出处与阅读时长、摘要 */
.nw-kick { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.nw-cat { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .72); color: var(--nw-ink); font-size: 12px; font-weight: 650; line-height: 1; }
.nw-cat[class*="c-"] { background: var(--nw-soft); }
.nw-cat.c-kol { --nw-soft: #FCEEE4; --nw-ink: #A34B30; } .nw-cat.c-play { --nw-soft: #EDF4FA; --nw-ink: #2F6699; }
.nw-cat.c-pace { --nw-soft: #EFF5EA; --nw-ink: #3D7449; } .nw-cat.c-rule { --nw-soft: #F3F0FA; --nw-ink: #62509E; }
.nw-why { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.nw-why .ico { width: 14px; height: 14px; margin-top: 2.5px; color: var(--nw-ink); }
.nw-rel { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.nw-rel .ico { width: 13px; height: 13px; color: var(--nw-ink); }
.nw-rel > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nw-rel b { font-weight: 650; color: var(--ink); }
.nw-rel i { margin-left: 6px; font-style: normal; font-weight: 600; color: var(--nw-ink); }
.nw-meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.nw-sum { overflow: hidden; }
.nw-sum-h { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12px; color: var(--ink-3); }
.nw-sum-h .ico { width: 14px; height: 14px; color: var(--nw-ink); }
.nw-sum-h b { font-weight: 650; color: var(--ink); }
.nw-sum-h span::before { content: "·"; margin-right: 6px; }
.nw-sum ol, .nv2-back ol { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.65; color: var(--ink); }
.nw-sum li + li, .nv2-back li + li { margin-top: 3px; }
.nw-sum li::marker, .nv2-back li::marker { color: var(--nw-ink); font-weight: 650; }
.nw-sum-f { display: flex; gap: 6px; margin-top: 10px; }
.nw-sum-f .ico { width: 13px; height: 13px; }

/* ===== nv=1 杂志头条式 =====
   头条一整块封面色：左边字、右边插图；展开时右边插图淡出、AI 摘要在同一格淡入（两者叠在同一格，卡片高度不变） */
.nv1 { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 16px 22px; align-items: start; }
.nw1-hit { border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.nw1-lead { display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); grid-template-areas: "l r"; border-radius: 18px; overflow: hidden; background: linear-gradient(100deg, var(--nw-soft) 0%, var(--nw-a) 52%, var(--nw-b) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.nw1-lead .nw1-hit { grid-area: l; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; min-height: 256px; padding: 22px 8px 20px 24px; border-radius: 18px 0 0 18px; }
.nw1-lead .nw-kick { color: var(--nw-ink); font-weight: 600; }
.nw1-title { font-size: 22px; font-weight: 700; line-height: 1.38; letter-spacing: .01em; }
.nw1-lead .nw-why { padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); }
.nw1-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; }
.nw1-lead .nw-meta { color: var(--ink-2); }
.nw1-lead .nw-cv.big { grid-area: r; min-height: 0; padding: 18px 18px 18px 0; background: none; transition: opacity 240ms var(--ease), transform 420ms var(--ease); }
.nw1-lead .nw-sum { grid-area: r; align-self: center; padding: 16px 16px 16px 4px; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transition: opacity 280ms var(--ease), transform 380ms var(--ease), visibility 0s linear 380ms; }
.nw1-lead .nw-sum-in { padding: 14px 16px 12px; border-radius: 16px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--nw-ink) 45%, transparent); }
.nw1-lead.is-open .nw-sum { opacity: 1; visibility: visible; transform: none; transition-delay: 90ms, 90ms, 0s; }
.nw1-lead.is-open .nw-cv.big { opacity: 0; transform: scale(1.06) translateX(12px); }
.nw1-lead:not(.is-open):hover .nw-cv-g { transform: translate(-6px, -4px) scale(1.04); }
.nw1-lead .nw1-hit:hover .nw1-title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--nw-ink) 45%, transparent); }

.nw1-side { display: flex; flex-direction: column; gap: 2px; margin: -6px -8px 0 0; }
.nw1-it { position: relative; border-radius: 16px; transition: background var(--dur-fast) var(--ease); }
.nw1-it + .nw1-it::before { content: ""; position: absolute; left: 88px; right: 10px; top: -1px; height: 1px; background: var(--line); transition: opacity var(--dur-fast) var(--ease); }
.nw1-it:hover { background: var(--surface-2); }
.nw1-it:hover + .nw1-it::before, .nw1-it:hover::before { opacity: 0; }
.nw1-it .nw1-hit { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; width: 100%; padding: 10px; border-radius: 16px; }
.nw1-it .nw-cv-g { transition-duration: 360ms; }
.nw1-it:hover .nw-cv-g { transform: scale(1.08); }
.nw1-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nw1-txt > b { font-size: 14px; font-weight: 650; line-height: 1.45; }
.nw1-txt .nw-kick { overflow: hidden; }
.nw1-txt .nw-why { font-size: 12px; }
.nw1-txt .nw-why span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw1-it .nw-why .ico { width: 13px; height: 13px; margin-top: 2px; }

/* ===== nv=2 今日要点式 ===== */
.nv2-lede { margin: -4px 0 12px; font-size: 13px; color: var(--ink-2); }
.nv2-lede b { font-weight: 650; color: var(--ink); }
.nv2-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nv2-c { position: relative; display: grid; min-width: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(90, 60, 40, .04); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.nv2-c:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-hover); }
.nv2-c.is-flip { transform: none; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--nw-ink) 40%, transparent), var(--shadow-card); }
.nv2-face { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; }
.nv2-c.is-flip .nv2-front, .nv2-c:not(.is-flip) .nv2-back { opacity: 0; pointer-events: none; }
.nv2-hit { display: flex; flex-direction: column; flex: 1; width: 100%; padding: 0; border: 0; border-radius: 18px; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.nv2-top { position: relative; display: block; height: 108px; }
.nw-cv.strip { position: absolute; inset: 0; }
.nv2-c:hover .nw-cv-g { transform: translate(-8px, -3px) scale(1.05); }
.nv2-no { position: absolute; left: 16px; bottom: 6px; font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: rgba(255, 255, 255, .96); text-shadow: 0 1px 12px color-mix(in srgb, var(--nw-ink) 30%, transparent); }
.nw-cat.on-cv { position: absolute; left: 14px; top: 12px; }
.nv2-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; padding: 14px 16px 14px; }
.nv2-title { font-size: 16px; font-weight: 700; line-height: 1.42; text-wrap: pretty; }
.nv2-why { display: block; padding: 0 0 0 10px; border-left: 2px solid var(--nw-b); font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.nv2-why-k { display: block; margin-bottom: 1px; font-size: 12px; font-weight: 650; color: var(--nw-ink); }
.nv2-body .nw-rel { background: var(--nw-soft); box-shadow: none; }
.nv2-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.nv2-go { display: inline-flex; align-items: center; gap: 1px; font-size: 12px; font-weight: 650; color: var(--ink-2); transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.nv2-go .ico { width: 13px; height: 13px; }
.nv2-c:hover .nv2-go { color: var(--nw-ink); transform: translateX(2px); }
.nv2-back { background: linear-gradient(180deg, var(--nw-soft), var(--surface) 70%); }
.nv2-back-in { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 16px 14px; }
.nv2-back .nw-sum-h { margin: 0; }
.nv2-btitle { font-size: 15px; font-weight: 650; line-height: 1.45; }
.nv2-back ol { font-size: 14px; }
.nv2-back .nw-rel { align-self: flex-start; margin-top: 4px; }
.nv2-back .nw-sum-f { margin-top: auto; padding-top: 6px; }
.nv2-more { margin-top: 12px; }
.nv2-m { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 8px 12px 8px 8px; border: 0; border-radius: 14px; background: rgba(31, 30, 27, .03); color: var(--ink); text-align: left; cursor: pointer; transition: background var(--dur-fast) var(--ease); }
.nv2-m:hover { background: var(--surface-2); }
.nv2-m > span:not(.nw-cv) { flex: none; font-size: 12px; color: var(--ink-3); }
.nv2-m b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; }
.nv2-m small { flex: none; margin-left: auto; font-size: 12px; color: var(--ink-3); }

@media (max-width: 1100px) {
  .nv1 { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px 16px; }
  /* 中宽：头条占满一行，三条小的在下面排成一行 */
  .nv1 { grid-template-columns: minmax(0, 1fr); }
  .nw1-lead .nw1-hit { min-height: 224px; }
  .nw1-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 -6px; }
  .nw1-it + .nw1-it::before { left: -3px; right: auto; top: 12px; bottom: 12px; width: 1px; height: auto; }
  .nw1-it .nw1-hit { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 10px 8px; }
  .nw1-it .nw-cv.tile { width: 52px; height: 52px; border-radius: 13px; }
  .nw1-title { font-size: 19px; }
  .nv2-row { gap: 12px; }
  .nv2-body { padding: 12px 14px; }
  .nv2-title { font-size: 15px; }
}
@media (max-width: 760px) {
  .nw-sub { display: none; }
  .nv1 { grid-template-columns: minmax(0, 1fr); }
  .nw1-lead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "r" "l" "sum"; }
  .nw1-lead .nw-cv.big { height: 124px; padding: 14px 14px 0 0; }
  .nw1-lead.is-open .nw-cv.big { opacity: 1; transform: none; }
  .nw1-lead .nw1-hit { min-height: 0; padding: 4px 16px 16px; gap: 10px; border-radius: 0; }
  .nw1-title { font-size: 18px; }
  .nw1-lead .nw-sum { grid-area: sum; display: none; padding: 0 16px 16px; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nw1-lead.is-open .nw-sum, .nw1-lead.is-closing .nw-sum { display: block; }
  .nw1-side { display: flex; margin: 0 -6px; }
  .nw1-it .nw1-hit { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 10px 6px; }
  .nw1-it .nw-cv.tile { width: 56px; height: 56px; border-radius: 13px; }
  .nw1-it + .nw1-it::before { left: 74px; right: 6px; top: -1px; bottom: auto; width: auto; height: 1px; }
  .nv2-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 2px 14px 12px; scroll-padding: 0 14px; scrollbar-width: none; }
  .nv2-row::-webkit-scrollbar { display: none; }
  .nv2-c { scroll-snap-align: start; }
  .nv2-c:hover { transform: none; }
  .nv2-more { margin-top: 4px; }
  .nv2-m small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-cv-g, .nv2-c, .nv2-go, .nw1-it, .nw1-lead .nw-cv.big, .nw1-lead .nw-sum { transition: none; }
  .nv2-c:hover, .nv2-c:hover .nw-cv-g, .nw1-lead:hover .nw-cv-g, .nw1-it:hover .nw-cv-g { transform: none; }
}
