/* ============================================================
   hotlist-v4.css — 实时热榜页专用样式（右侧内容区）
   结构同构来源：aihot.news/hot（见 .qoder/reports/ref-aihot-hot.txt）
   皮肤与令牌：全部来自 index-v4.css / index-cockpit.css（本表不新增 :root）
   依赖顺序：index-cockpit.css → index-v4.css → 本表
   规则纪律：
   - 只用 var(--token)（同族 rgba 字面值仅用于半透明描边/底纹）
   - 悬停只改 color / background / border-color；禁 transform / scale / 阴影加深 / 新增 CSS 渐变
   - 中文永不落 --font-mono / --font-display（数字与服务名除外）
   - 断点只用首页已有档位：max-width 1440 / 1240 / 1024 / 768 / 480，min-width 1025 / 1240 / 1600
   - 淡入进场规则整体包进 @media (prefers-reduced-motion: no-preference)，且以 .js 为门
   ============================================================ */

/* ------------------------------------------------------------
   0. 通用小工具
   ------------------------------------------------------------ */

/* 屏幕阅读器专用（基础表未定义，此处补齐；不影响任何视觉密度） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 徽标（§10.4）：首字自绘，禁外链图片；本表只留这一类可复用组件，其余卡片样式全属本页 */
.hot-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-family: var(--font-cn);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.hot-mark--round { border-radius: var(--radius-full); }
.hot-mark--sm { width: 20px; height: 20px; font-size: 10px; }

/* ------------------------------------------------------------
   1. 标题区（页头）
   ------------------------------------------------------------ */

.hot-page {
  padding-bottom: var(--space-xs);
}

.hot-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 6px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
}

.hot-page__title {
  margin: 0 0 6px;
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.hot-page__lede {
  max-width: 38em;
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13.5px;
  line-height: 1.625;
}

/* 右对齐时间行：桌面浮在标题区右上，移动端落到标题下方左对齐 */
.hot-page__scope {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-xs);
  margin: 0;
  color: var(--text-quaternary);
  font-size: 12px;
  line-height: 1.66;
}
.hot-page__time {
  /* 覆盖基础表 time{font-family:var(--font-mono)}：日期汉字必须是 --font-cn */
  font-family: var(--font-cn);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
}
.hot-page__time .n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}
.hot-page__sep { color: var(--line-strong); }
/* 快照产生时刻（「更新于 15:04」）：汉字走 --font-cn，时刻对齐用等宽数字 */
.hot-page__updated {
  font-family: var(--font-cn);
  font-variant-numeric: tabular-nums;
}

.hot-page__legend { display: block; }

.hot-live {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  flex: none;
}
.hot-live__dot,
.hot-live__ping {
  position: absolute;
  inset: 1px;
  border-radius: var(--radius-full);
  background: var(--accent-red);
}
.hot-live__ping {
  opacity: 0;
}

/* ------------------------------------------------------------
   2. TOP3 焦点区
   ------------------------------------------------------------ */

.hot-focus {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 20px;
  align-items: stretch;
}
.hot-focus__lead { grid-column: span 12; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hot-focus__side {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 20px;
  min-width: 0;
}
/* 两栏各自把自己的口径行收在栏底：左栏 = 榜首卡 + 一行口径，右栏 = 两张中位卡 + 一行口径 */
.hot-focus__lead > .hot-top { flex: 1 1 auto; }
.hot-focus__side > .heat-note { grid-column: 1 / -1; }
/* 只有一个中位条目时侧栏退回单列：仍按两列排会让 NO.02 只占 3 栏、右侧空出三栏 */
.hot-focus__side:not(:has(.hot-mini + .hot-mini)) { grid-template-columns: minmax(0, 1fr); }

/* 共享卡片外观：TOP1 与 NO.02/03 同类，只差字号与列宽 */
.hot-top,
.hot-mini {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.hot-top:hover,
.hot-mini:hover { border-color: var(--line-strong); }

.hot-top { padding: 24px; }
.hot-top__body { margin-top: 16px; }

.hot-top__head,
.hot-mini__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hot-no {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}
.hot-no--1 { color: var(--accent-red); }
.hot-no--2,
.hot-no--3 { color: var(--text-secondary); }

.hot-flag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-full);
  /* 金色标签底：同族 rgba 字面值（令牌表无 amber 档，DESIGN.md 金 #8A6D2D） */
  background: rgba(138, 109, 45, .10);
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* 趋势胶囊：↑7%（较 6 小时前） */
.hot-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
}
.hot-pill__arrow { font-family: var(--font-cn); font-weight: 500; }
.hot-pill__num {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .02em;
}
.hot-pill--up { background: rgba(200, 16, 46, .08); color: var(--accent-red); }
.hot-pill--down { background: var(--bg-tertiary); color: var(--text-tertiary); }
.hot-pill--flat { background: var(--bg-tertiary); color: var(--text-quaternary); }

/* NO.01 正文：左文字右图 */
.hot-top__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
  gap: 28px;
  align-items: start;
  flex: 1 1 auto;
}
.hot-top__text { min-width: 0; }

.hot-top__title {
  position: static;
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -.01em;
  color: var(--text-primary);
}
.hot-top__title > a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.hot-top__title > a:hover { color: var(--accent-red); }
.hot-top__summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin: 0;
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 1.75;
}

.hot-top__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
}
.hot-top__art {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--ink-navy);
}
.hot-top__tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--line-secondary);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

/* NO.01 卡脚：左信源行，右热度指数——同一行垂直居中对齐，指数不再孤悬卡角 */
.hot-top__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-lg);
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
}
.hot-top__side { min-width: 0; }

.hot-progress {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin: 0 0 var(--space-md);
  font-size: 12px;
  line-height: 1.66;
}
.hot-progress__label {
  flex: none;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: .02em;
}
.hot-progress__text {
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.hot-peoplebox { position: relative; }

/* 头像堆叠按钮（可展开参与者名单） */
.hot-avatars {
  display: inline-flex;
  align-items: center;
  margin: 0 0 var(--space-sm);
  padding: 2px 4px 2px 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  border-radius: var(--radius-full);
  transition: background-color var(--dur) var(--ease);
}
.hot-avatars:hover { background: var(--bg-tertiary); }
.hot-avatars:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}
.hot-avatars--tight { margin-bottom: 0; }

.hot-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  margin-right: -7px;
  border: 1px solid var(--line-primary);
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-family: var(--font-cn);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.hot-avatars:hover .hot-avatar { border-color: var(--line-strong); }
.hot-avatar--more {
  background: var(--bg-inset);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.hot-avatar--sm { width: 20px; height: 20px; font-size: 9px; margin-right: -5px; }
.hot-avatar--xs { width: 18px; height: 18px; font-size: 9px; margin-right: 0; }

.hot-stack {
  display: inline-flex;
  align-items: center;
  flex: none;
}

/* 来源行：汉字 --font-cn，数字走 .n 子元素（.hot-line 是例外） */
.hot-line {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 12.5px;
  line-height: 1.66;
}
.hot-line__src { color: var(--text-secondary); }
.hot-line__sep { margin: 0 4px; color: var(--line-strong); }
.hot-line__ppl .n,
.hot-line .n {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-secondary);
}
.hot-line--sm { font-size: 11.5px; }

/* 参与者名单（无 JS 时全部可见，JS 初始化才收起） */
.hot-people {
  margin-top: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--line-primary);
  border-radius: var(--radius-md);
  background: var(--bg-inset);
}
.hot-people[hidden] { display: none; }
.hot-people__lead {
  margin: 0 0 var(--space-sm);
  color: var(--text-quaternary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}
.hot-people__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xs) var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hot-people__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
.hot-people__more {
  margin: var(--space-sm) 0 0;
  color: var(--text-quaternary);
  font-size: 11.5px;
  line-height: 1.6;
}

/* 热度数字 + 单位 */
.hot-top__metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
  flex: none;
}
.hot-heat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: none;
}
.hot-heat--stack { gap: 4px; }
.hot-heat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--text-primary);
}
.hot-top .hot-heat__num {
  font-size: 28px;
  letter-spacing: -.03em;
}
.hot-heat__unit {
  font-family: var(--font-cn);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-quaternary);
}

/* 走势图：100×100 viewBox 非等比拉伸，描边不缩放 */
.hot-spark {
  display: block;
  width: 140px;
  height: 40px;
  overflow: visible;
  color: var(--accent-red);
  background: transparent;
}
.hot-mini .hot-spark,
.hot-row .hot-spark { width: 104px; }
.hot-spark--lg { width: 140px; height: 40px; }

/* NO.02 / NO.03：与榜首卡同排 3 栏，内边距收一档才放得下标题两行 + 摘要两行 + 卡脚 */
.hot-mini { padding: 20px; }
.hot-mini__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--text-primary);
}
.hot-mini__title > a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.hot-mini__title > a:hover { color: var(--accent-red); }
.hot-mini__summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 6px 0 0;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.7;
}
.hot-mini__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}
.hot-mini__side { min-width: 0; }
.hot-mini__metric {
  display: flex;
  align-items: flex-end;
  gap: var(--space-md);
  flex: none;
}

/* 整卡热区：标题链接铺满卡片，卡内其他控件抬到其上层 */
.hot-top__title > a::after,
.hot-mini__title > a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}
.hot-top__title > a:focus-visible::after,
.hot-mini__title > a:focus-visible::after {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-red-light);
  border-radius: var(--radius-lg);
}
.hot-top__foot,
.hot-mini__foot { position: relative; z-index: 1; }

/* ------------------------------------------------------------
   3. 继续看 No.04–10
   ------------------------------------------------------------ */

.hot-rest__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs);
  margin: 0 0 var(--space-md) var(--space-xs);
}
.hot-rest__title {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--text-primary);
}
.hot-rest__range {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-secondary);
}
.hot-rest__hint {
  font-family: var(--font-cn);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-quaternary);
}

.hot-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.hot-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 104px 76px;
  column-gap: var(--space-lg);
  align-items: center;
  padding: 14px var(--space-lg);
  border-bottom: 1px solid var(--line-primary);
  transition: background-color var(--dur) var(--ease);
}
.hot-row:last-child { border-bottom: 0; }
.hot-row:hover { background: var(--accent-red-light); }

.hot-row__rank {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-quaternary);
  text-align: left;
}

.hot-row__main { min-width: 0; }
.hot-row__title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--text-primary);
}
.hot-row__title > a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.hot-row:hover .hot-row__title > a { color: var(--accent-red); }
.hot-row__title > a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.hot-row__title > a:focus-visible::after {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--accent-red-light);
}
.hot-row__summary {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.hot-row__inline { display: none; }

.hot-row__people {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  justify-content: flex-end;
  min-width: 0;
}
.hot-row__people .hot-line { white-space: nowrap; }

.hot-row__spark {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
}
.hot-row__spark .hot-spark { width: 100%; }
.hot-spark__cap {
  display: block;
  font-family: var(--font-cn);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-quaternary);
  white-space: nowrap;
}

.hot-row__metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  justify-self: end;
}

/* ------------------------------------------------------------
   3b. 信源名单折叠 + 最新进展行
   ------------------------------------------------------------ */

/* 名单折叠挂在标题链接的全卡点击覆盖层之下，必须自抬一层，
   否则 summary 的点击会被吞掉（先例：hot-top__foot 的抬层写法）。 */
.hot-src {
  position: relative;
  z-index: 1;
  margin-top: var(--space-sm);
  color: var(--text-quaternary);
  font-size: 12px;
}

.hot-src__summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  cursor: pointer;
  list-style: none;
  color: inherit;
  transition: color var(--dur) var(--ease);
}
.hot-src__summary::-webkit-details-marker { display: none; }
.hot-src__summary:hover { color: var(--accent-red); }
.hot-src__summary:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

.hot-src__chev {
  flex: none;
  color: var(--text-quaternary);
  transform: rotate(0deg);
}
.hot-src[open] .hot-src__chev { transform: rotate(180deg); }

.hot-src__q { line-height: 1.6; }

.hot-src__list {
  margin: var(--space-xs) 0 0;
  padding: var(--space-xs) 0 0;
  border-top: 1px solid var(--line-secondary);
  list-style: none;
}
.hot-src__list li {
  line-height: 1.9;
  color: var(--text-tertiary);
}

.hot-latest {
  margin-top: var(--space-sm);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--line-secondary);
}
.hot-latest__label {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-quaternary);
}
.hot-latest__item {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------
   4. 热度方法论 disclosure
   ------------------------------------------------------------ */

.hot-method {
  color: var(--text-quaternary);
  font-size: 12px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.hot-method__summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  cursor: pointer;
  list-style: none;
  color: inherit;
  transition: color var(--dur) var(--ease);
}
.hot-method__summary::-webkit-details-marker { display: none; }
.hot-method__summary:hover { color: var(--accent-red); }
.hot-method__summary:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

.hot-method__chev {
  flex: none;
  color: var(--text-quaternary);
  transform: rotate(0deg);
}
.hot-method[open] .hot-method__chev { transform: rotate(180deg); }

.hot-method__q {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
.hot-method__action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: auto;
  font-family: var(--font-cn);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-quaternary);
}
.hot-method__action::before {
  content: '·';
  color: var(--line-strong);
}
.hot-method__action-close { display: none; }
.hot-method[open] .hot-method__action-learn { display: none; }
.hot-method[open] .hot-method__action-close { display: inline; }

.hot-method__body {
  max-width: 760px;
  padding: 0 0 8px 21px;
}
.hot-method__p {
  margin: 0 0 var(--space-sm);
  color: inherit;
  font-size: 12px;
  line-height: 1.75;
}
.hot-method__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-md) 0 0;
  padding: 0;
}
.hot-method__term {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.hot-method__term dd {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 12px;
  color: var(--text-tertiary);
}
.hot-method__mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  margin: 0;
}
.hot-method__mark--up { color: var(--accent-red); }
.hot-method__mark--new { color: var(--ink-navy); }
.hot-method__mark--steady { color: var(--text-tertiary); }

.hot-method__note {
  margin: var(--space-md) 0 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line-secondary);
  color: var(--text-quaternary);
  font-size: 12px;
  line-height: 1.75;
}

/* ------------------------------------------------------------
   5. 响应式（只用首页档位）
   ------------------------------------------------------------ */

/* ≥1240：12 栏焦点区（NO.01 跨 6 栏，NO.02/03 各 3 栏同排；三张卡同高，卡脚同一行） */
@media (min-width: 1240px) {
  .hot-row__summary { -webkit-line-clamp: 1; line-clamp: 1; }
  .hot-focus__lead { grid-column: 1 / span 6; }
  .hot-focus__side {
    grid-column: 7 / span 6;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ≤1240：行内走势图列收起；焦点区仍按 6/6 两栏 */
@media (max-width: 1240px) {
  .hot-row {
    grid-template-columns: 44px minmax(0, 1fr) auto 76px;
    padding: 12px var(--space-lg);
  }
  .hot-row__spark { display: none; }
  .hot-focus__lead { grid-column: span 6; }
  .hot-focus__side {
    grid-column: span 6;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hot-top__body { grid-template-columns: minmax(0, 1fr) 240px; gap: var(--space-lg); }
}

/* 1024 及以下：单列，NO.01 图落到文字上方 */
@media (max-width: 1024px) {
  .hot-focus { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-md); }
  .hot-focus__lead,
  .hot-focus__side { grid-column: 1; grid-row: auto; }
  .hot-focus__side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
  .hot-top { padding: var(--space-lg); }
  .hot-top__body { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .hot-top__visual { order: -1; max-height: 230px; }
  .hot-top__title { font-size: 23px; }
}

/* ≤768：行标题链接铺满卡片，移动端补回走势线与行内信息行 */
@media (max-width: 768px) {
  .hot-page__title { font-size: 22px; }
  .hot-page__lede { font-size: 13px; }
  .hot-page__scope { display: flex; margin-top: var(--space-xs); }
  .hot-top,
  .hot-mini { padding: var(--space-md); }
  .hot-top__title { font-size: 23px; }
  .hot-top__summary { font-size: 13px; }
  .hot-top__foot,
  .hot-mini__foot { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--space-md); }
  .hot-top__metric { align-items: flex-start; }
  .hot-people__list { grid-template-columns: minmax(0, 1fr); }
  .hot-focus__side { grid-template-columns: minmax(0, 1fr); }

  .hot-row {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: var(--space-sm);
    padding: 14px var(--space-md);
  }
  .hot-row__people,
  .hot-row__metric { display: none; }
  .hot-row__spark {
    display: flex;
    grid-column: 2;
    width: 100%;
    margin-top: 6px;
  }
  .hot-row__spark .hot-spark { height: 32px; }
  .hot-row__inline {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin-top: var(--space-xs);
  }
  .hot-row__tail {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-left: auto;
  }
  .hot-row__tail .hot-heat__num { font-size: 17px; }
  .hot-method__body { padding: 0 0 8px 21px; }
}

@media (max-width: 480px) {
  .hot-page__title { font-size: 20px; }
  .hot-top__title { font-size: 21px; }
  .hot-top .hot-heat__num { font-size: 26px; }
  .hot-row { grid-template-columns: 28px minmax(0, 1fr); }
}

@media (min-width: 1600px) {
  .hot-top__body { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* ------------------------------------------------------------
   6. 动效（红点脉冲 / 进场淡入 / chevron 过渡）
   —— 整体包进偏好媒体查询，reduced-motion 下静止且完全可见
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .hot-live__ping {
    animation: hot-live-pulse 2s var(--ease) infinite;
  }
  .hot-method__chev {
    transition: transform var(--dur) var(--ease);
  }

  /* 进场淡入：仅当页面尾部脚本给 <html> 挂上 .js 时生效，reduced-motion 下不生效 */
  .js .hot-top,
  .js .hot-mini,
  .js .hot-row,
  .js .hot-method { opacity: 0; transform: translateY(14px); }
  .js .hot-top.in,
  .js .hot-mini.in,
  .js .hot-row.in,
  .js .hot-method.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s var(--ease),
                transform 0.5s var(--ease),
                border-color var(--dur) var(--ease),
                background-color var(--dur) var(--ease);
  }
}

@keyframes hot-live-pulse {
  0%   { opacity: .55; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(2.1); }
  100% { opacity: 0;   transform: scale(2.1); }
}

/* ============================================================
   T23 · 本站适配（批 6）：原型样式原样落地，只补六处「照搬就会失效」的口径。
   全部追加在文件末尾：同特异度下后写的声明覆盖先前声明（含上文媒体查询里的列定义），
   因此不需要动原型任何一行，也便于日后对照原型 diff 时一眼看出哪些是我们改的。
   ============================================================ */
/* ① 原型 .hot-top / .hot-mini 没有 position，而 .hot-top__title > a::after 是 inset:0 的整卡覆盖层：
      找不到定位祖先时它以页面根为参照铺满整页，整页都会变成那一条链接。这里补定位锚点。 */
.hot-top,
.hot-mini { position: relative; }
/* ② 徽章带 title 提示，必须压在整卡覆盖层之上，否则悬停事件被 <a> 吞掉、tooltip 永远不出现 */
.hot-top .news-card__heat,
.hot-mini .news-card__heat,
.hot-row .news-card__heat {
  position: relative;
  z-index: 1;
}
/* 标题行内的徽章按正文字号缩小一档，否则 25px 标题旁挂一枚 14px 实心块会抢标题层级 */
.hot-top__title .news-card__heat,
.hot-mini__title .news-card__heat,
.hot-row__title .news-card__heat {
  margin-left: 6px;
  vertical-align: 3px;
  padding: 3px 8px;
  font-size: 12px;
}
/* ③ 本站没有配图：.hot-top__body 的「左文字右图」两栏在无图时右栏整列空着，改为单栏 */
.hot-top__body { grid-template-columns: minmax(0, 1fr); gap: 0; }
/* ④ 没有走势图 ⇒ 行内去掉那 104px 轨道（原型 ≥1240 的五列定义留在原处，这里按本站列数重述） */
@media (min-width: 769px) {
  .hot-row { grid-template-columns: 44px minmax(0, 1fr) auto 76px; }
}
/* ⑤ 中位卡区块末尾的口径行已收进 .hot-focus__side（自己的栏内），跨两栏通栏，
     读起来是那两张卡的脚注而不是第三条榜目 */
.hot-focus__side > .heat-note { grid-column: 1 / -1; }
/* ⑥ 只有 NO.01 一条时（中位卡区块整块不出），让大卡通栏 */
.hot-focus__lead:only-child { grid-column: 1 / -1; grid-row: auto; }
/* ⑦ 页头范围行里的数字与 .hot-line .n 同族（原型该行没有数字，故原位无此规则） */
.hot-page__scope .n { font-family: var(--font-mono); font-weight: 700; color: var(--text-secondary); }
/* ⑧ 本站的大卡没有配图/走势图，高度由「标题 + 两行摘要 + 卡脚」决定；三张焦点卡同排后，
     让大卡与中位卡都吃满本行高度（.hot-top__foot / .hot-mini__foot 本就 margin-top:auto），
     三张卡的卡脚与两行口径落在同一水平线上，不再出现卡内一大块空白 */
