/* ============================================================
   hotlist-detail-v4.css — 事件详情页专用样式（右侧内容区）
   结构同构来源：aihot.news/story/<uuid>（见 .qoder/reports/ref-aihot-story.txt + spec §13.1/§13.3）
   皮肤与令牌：全部来自 index-v4.css / index-cockpit.css（本表不新增 :root，也不定义任何页面局部自定义属性）
   依赖顺序：index-cockpit.css → index-v4.css → 本表
   规则纪律：
   - 只用 var(--token)（同族 rgba 字面值仅用于半透明标签底/描边）
   - 悬停只改 color / background / border-color；禁 transform / scale / 阴影加深 / 新增 CSS 渐变（L-12）
   - 渲染文本含中文的一律 --font-cn 或 --font-body + tabular-nums；纯数字才落 --font-mono
   - 断点只用首页已有档位：max-width 1440 / 1240 / 1024 / 768 / 480，min-width 1025 / 1240 / 1600
   - 淡入进场规则整体包进 @media (prefers-reduced-motion: no-preference)，且以 .js 为门
   - 卡内出血行（最新进展 / 报道行 / 事件记录尾注）的负边距必须等于该档卡内边距，改档位要同步改
   ============================================================ */

/* ------------------------------------------------------------
   0. 数字与基线
   ------------------------------------------------------------ */

/* 本页所有计数 / 读数：纯数字 ⇒ mono + 等宽数位 */
.hd-hero .n,
.hd-tab .n,
.hd-chip .n,
.hd-range .n,
.hd-mini .n,
.hd-mini__count .n,
.hd-stat-item .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   1. 面包屑（← 参考站 ②；吸顶返回条 ① 由 frame cockpit-bar 承担 = L-10）
   ------------------------------------------------------------ */

.hd-crumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
}

.hd-crumb__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-tertiary);
  transition: color var(--dur) var(--ease);
}
.hd-crumb__back svg { color: var(--text-quaternary); }
.hd-crumb__back:hover { color: var(--accent-red); }
.hd-crumb__back:hover svg { color: var(--accent-red); }

.hd-crumb__sep {
  width: 1px;
  height: 12px;
  flex: none;
  background: var(--line-tertiary);
}

.hd-crumb__now { color: var(--text-quaternary); }

/* ------------------------------------------------------------
   2. 事件头部（← ③ hero；标题铺满整栏再折行）
   ------------------------------------------------------------ */

/* 基表原本给整块 760px 可读宽，实测两页都吃亏（2026-11-01 需求方两次点名）：
   事件专稿页的标题走到 760 就折，第二行只剩几个字、右边一整片空；文章详情页的主列比它宽得多。
   正文的可读宽由 .hd-card 那侧管，头部不该跟着一起被截——所以撤在基表，两页同源，
   不再在 article-v4.css 里另写一份覆盖（两份迟早漂）。 */
.hd-hero { max-width: none; }

.hd-hero__kicker {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-quaternary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.hd-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-full);
  /* 金色徽标底：同族 rgba 字面值（令牌表无 amber 档，金 = --cat-industry #8A6D2D） */
  background: rgba(138, 109, 45, .10);
  color: var(--cat-industry);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.hd-hero__title {
  margin-top: 10px;
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.45;
  /* 长标题（含连号 URL、长英文型号名）在任意栏宽下都不许把栅格顶宽 */
  overflow-wrap: anywhere;
}

.hd-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px var(--space-lg);
  margin-top: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
}

.hd-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.hd-stat svg { color: var(--text-quaternary); }
.hd-stat .n {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ------------------------------------------------------------
   3. 吸顶胶囊导航 + 共享药丸语言（← ④；本页唯一吸顶件）
   ------------------------------------------------------------ */

.hd-tabsbar {
  position: sticky;
  top: var(--header-height);
  z-index: 20;
  margin: 0 calc(var(--gutter) * -1);
  padding: 6px var(--gutter) 8px;
  background: var(--bg-primary);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
/* 滚动后升底边（沿用首页 is-scrolled 语言；不引入 backdrop-blur = L-12） */
body.is-scrolled .hd-tabsbar { border-bottom-color: var(--line-secondary); }

.hd-tabs {
  max-width: 100%;
  overflow-x: auto;
}

/* 三处胶囊轨（分段导航 / 报道筛选 / 时间窗）共用一套外观 */
.hd-tabs,
.hd-chips,
.hd-ranges {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-primary);
  border-radius: var(--radius-full);
  background: var(--bg-inset);
}

.hd-tab,
.hd-chip,
.hd-range {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.hd-tab { height: 32px; font-size: 13px; }
.hd-chip,
.hd-range { height: 28px; font-size: 12.5px; }

.hd-tab:hover,
.hd-chip:hover,
.hd-range:hover { color: var(--text-primary); }

/* 悬停 = 提前给出「白底药丸」的预览，与激活态同形但不带阴影（L-12：阴影不做悬停变化）。
   写在激活态之前：同权重下 :hover 不许盖掉 .hd-tab--on 的阴影与描边 */
.hd-tab:hover,
.hd-chip:not([disabled]):hover,
.hd-range:hover {
  background: var(--bg-panel);
  border-color: var(--line-primary);
}

/* 激活 = 白底药丸 + 发丝描边 + 静止态浅阴影（L-12：阴影不做悬停变化） */
.hd-tab--on,
.hd-chip--on,
.hd-range--on {
  background: var(--bg-panel);
  border-color: var(--line-secondary);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}
.hd-tab--on .n,
.hd-chip--on .n,
.hd-range--on .n { color: var(--text-tertiary); }

.hd-tab .n,
.hd-chip .n,
.hd-range .n {
  font-size: .86em;
  font-weight: 400;
  color: var(--text-quaternary);
}

/* 计数为 0 的胶囊仍渲染，置禁用态（§13.3-5） */
.hd-chip[disabled] {
  color: var(--text-quaternary);
  opacity: .6;
  cursor: default;
}

.hd-tab:focus-visible,
.hd-chip:focus-visible,
.hd-range:focus-visible,
.hd-select__el:focus-visible,
.hd-mini__action:focus-visible,
.hd-totop:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   4. 两列骨架 + 卡皮肤（≥1241 主列 + 右列 300px，以下单列 = L-13）
   ------------------------------------------------------------ */

.hd-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.hd-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.hd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-md);
  border: 1px solid var(--line-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-height) + 64px);
  transition: border-color var(--dur) var(--ease);
}
.hd-card:hover { border-color: var(--line-strong); }

.hd-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.hd-card__headmain { min-width: 0; }

.hd-card__title {
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.hd-card__aside {
  flex: none;
  color: var(--text-quaternary);
  font-size: 11.5px;
  line-height: 1.7;
}

.hd-card__sub {
  margin-top: 2px;
  color: var(--text-quaternary);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.6;
}

.hd-card__body {
  margin-top: 14px;
  min-width: 0;
}

/* ------------------------------------------------------------
   5. S1 先了解这件事（← ⑤-1；卡根即 A 页落点锚 #t1 = L-11）
   ------------------------------------------------------------ */

p.hd-prose {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.85;
}
p.hd-prose + p.hd-prose { margin-top: 12px; }

.hd-prose__note {
  margin-top: 8px;
  color: var(--text-quaternary);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
}

/* 卡内出血行：整行是链接热区，右端 › 箭头 */
.hd-latest {
  position: relative;
  display: block;
  margin: 20px -16px -16px;
  padding: 16px 16px 16px;
  border-top: 1px solid var(--line-primary);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  transition: background-color var(--dur) var(--ease);
}
.hd-latest:hover { background: var(--accent-red-light); }

.hd-latest__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
}
.hd-latest__label {
  font-family: var(--font-cn);
  font-weight: 600;
  color: var(--text-primary);
}
.hd-latest__time {
  /* 覆盖基础表 time{font-family:var(--font-mono)}：日期含汉字 */
  font-family: var(--font-cn);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-quaternary);
}
.hd-latest__title {
  display: block;
  margin-top: 6px;
  padding-right: 22px;
  color: var(--text-secondary);
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.7;
  transition: color var(--dur) var(--ease);
}
.hd-latest:hover .hd-latest__title { color: var(--accent-red); }

.hd-latest__arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-quaternary);
}

/* ------------------------------------------------------------
   6. S2 事件进展（← ⑤-2；左轨贯穿圆点）
   ------------------------------------------------------------ */

.hd-track {
  position: relative;
  list-style: none;
  padding-left: 20px;
}
.hd-track::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: var(--line-secondary);
}

.hd-track__item { position: relative; }
.hd-track__item + .hd-track__item { margin-top: var(--space-md); }

.hd-track__dot {
  position: absolute;
  left: -20px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--accent-red);
  box-shadow: 0 0 0 4px var(--bg-panel);
}

.hd-track__time {
  /* 圆点 + 时间 + 计数同一基线；含汉字 ⇒ --font-cn + tabular-nums */
  font-family: var(--font-cn);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-quaternary);
}

.hd-track__title {
  display: block;
  margin-top: 2px;
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  transition: color var(--dur) var(--ease);
}
.hd-track__title:hover { color: var(--accent-red); }

.hd-track__src {
  margin-top: 2px;
  color: var(--text-tertiary);
  font-size: 12.5px;
  line-height: 1.6;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------
   7. S3 报道时间线（← ⑤-3）
   ------------------------------------------------------------ */

.hd-select {
  position: relative;
  flex: none;
}

.hd-select__el {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  height: 32px;
  padding: 0 26px 0 12px;
  border: 1px solid var(--line-tertiary);
  border-radius: var(--radius-full);
  background: var(--bg-panel);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.hd-select__el:hover { border-color: var(--text-quaternary); color: var(--text-primary); }

.hd-select__chev {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-quaternary);
}

.hd-chips {
  display: flex;
  flex-wrap: wrap;
}

.hd-days { margin-top: 2px; }

.hd-day__label {
  padding-top: 14px;
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.hd-day__set { list-style: none; }

.hd-report {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 12px;
  margin: 0 -16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-primary);
  scroll-margin-top: calc(var(--header-height) + 64px);
  transition: background-color var(--dur) var(--ease);
}
.hd-day__set .hd-report:last-child { border-bottom: 0; }
.hd-report:hover { background: var(--accent-red-light); }

.hd-report__time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  line-height: 20px;
  color: var(--text-quaternary);
}

.hd-report__body { min-width: 0; }

.hd-report__src {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 20px;
  color: var(--text-quaternary);
}

.hd-report__tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  /* 紫色标签底：同族 rgba 字面值（--cat-review #6A5D8F） */
  background: rgba(106, 93, 143, .10);
  color: var(--cat-review);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.hd-report__tag--official {
  background: rgba(138, 109, 45, .10);
  color: var(--cat-industry);
}

.hd-report__title {
  display: block;
  margin-top: 2px;
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  transition: color var(--dur) var(--ease);
}
.hd-report__title:hover { color: var(--accent-red); }

.hd-report__sum {
  margin-top: 4px;
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 1.75;
}
/* 报道摘要**不截断**（工单 SEO 1-C，2026-11-08）。原先这里有一条 `html.js` 门控的 2 行
   line-clamp，配一把 `.hd-report__more` 展开按钮——但 story.tmpl 从来没有渲染过那把按钮
   （全 templates 目录零命中，只有 v4-story.js 里那条 querySelector 在等它），于是开了 JS 的
   读者看到的是被裁掉的半句摘要，而且页面上没有任何入口能把它展开回来；无 JS（含蜘蛛）反而
   看到全文。缺陷的根不在 clamp 而在「有截断、没出口」：补一把按钮等于把断裂换成第二次 JS
   依赖，撤掉截断则两种访客读到的都是同一份全文。 */

.hd-empty {
  margin-top: var(--space-md);
  color: var(--text-quaternary);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
}

/* 折叠 / 筛选靠 hidden 属性；这几个元素本表给了 display:grid/flex，
   UA 默认的 [hidden]{display:none} 会被压过 ⇒ 必须显式补回 */
.hd-day[hidden],
.hd-report[hidden],
.hd-empty[hidden] { display: none; }

/* ------------------------------------------------------------
   8. S4 本事件热度走势（← ⑤-4；三段：读数+时间窗 / 图表通栏 / 尾注）
   ------------------------------------------------------------ */

.hd-heat__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.hd-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
  flex: 1 1 260px;
  min-width: 0;
}

.hd-stat-item dt {
  color: var(--text-quaternary);
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.4;
}

.hd-stat-item dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

.hd-stat-item__at {
  /* 读数旁的日期含汉字 ⇒ --font-cn */
  font-family: var(--font-cn);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-quaternary);
}

/* 涨跌都用红：实测"变化"这一项即红字（§13.3-7） */
.hd-stat-item__chg { color: var(--accent-red); }

.hd-chart {
  position: relative;
  height: 176px;
  margin-top: 20px;
  padding-left: 36px;
}

.hd-chart__axis {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 28px;
}

.hd-chart__tick {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-quaternary);
}

.hd-plot {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  outline-offset: 4px;
}

.hd-plot__grid,
.hd-plot__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hd-plot__grid line {
  stroke: var(--line-primary);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* 面积渐变由 SVG defs 用 currentColor 取色 ⇒ 这里只给红 */
.hd-plot__svg { color: var(--accent-red); }
.hd-plot__path {
  fill: none;
  stroke: var(--accent-red);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.hd-plot__area { stroke: none; }

.hd-cursor {
  position: absolute;
  left: 100%;
  top: 0;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-full);
  background: var(--accent-red);
  box-shadow: 0 0 0 4px var(--bg-panel), 0 0 0 8px var(--accent-red-light);
  pointer-events: none;
}

.hd-tip {
  position: absolute;
  right: 0;
  top: 0;
  padding: 3px var(--space-sm);
  border: 1px solid var(--line-secondary);
  border-radius: var(--radius-full);
  background: var(--bg-panel);
  color: var(--text-secondary);
  font-family: var(--font-cn);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
}

.hd-x {
  position: relative;
  height: 16px;
  margin-top: 10px;
  margin-left: 36px;
}

.hd-x__label {
  position: absolute;
  top: 0;
  font-family: var(--font-cn);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-quaternary);
}
.hd-x__label--start { transform: translateX(0); }
.hd-x__label--mid { transform: translateX(-50%); }
.hd-x__label--end { transform: translateX(-100%); }

.hd-heat__note {
  margin-top: 12px;
  color: var(--text-quaternary);
  font-size: 12px;
  line-height: 1.75;
}

/* ------------------------------------------------------------
   9. 右列 3 张附属卡（← ⑤-aside；事件附属信息，非导航）
   ------------------------------------------------------------ */

.hd-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.hd-mini {
  position: relative;
  min-width: 0;
  /* #official / #sources / #record 直接落在右列卡片上，锚点跳转要避开两行吸顶（顶栏 + 分段导航） */
  scroll-margin-top: calc(var(--header-height) + 64px);
  padding: var(--space-md);
  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);
}
.hd-mini:hover { border-color: var(--line-strong); }

.hd-mini__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.hd-mini__title {
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.hd-mini__count {
  flex: none;
  color: var(--text-quaternary);
  font-size: 11.5px;
  line-height: 1.6;
}

.hd-mini__text {
  margin-top: 8px;
  color: var(--text-tertiary);
  font-size: 12.5px;
  line-height: 1.75;
}
.hd-mini__text .n {
  font-weight: 600;
  color: var(--text-primary);
}

.hd-mini__foot {
  margin-top: 8px;
  color: var(--text-quaternary);
  font-size: 12px;
  line-height: 1.7;
}
.hd-mini__foot .n { color: var(--text-secondary); }

.hd-mini__link {
  color: var(--accent-red);
  transition: color var(--dur) var(--ease);
}
.hd-mini__link:hover { color: var(--accent-red-hover); }

.hd-mini__lead {
  margin-top: 6px;
  color: var(--text-quaternary);
  font-size: 12px;
  line-height: 1.6;
}

.hd-mini__list {
  margin-top: 8px;
  list-style: none;
}

.hd-official { padding: 12px 0; }
.hd-official + .hd-official { border-top: 1px solid var(--line-primary); }

.hd-official__src {
  color: var(--text-quaternary);
  font-size: 11.5px;
  line-height: 1.6;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hd-official__title {
  display: block;
  position: relative;
  margin-top: 4px;
  padding-right: 16px;
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  transition: color var(--dur) var(--ease);
}
/* 箭头钉在末行右端：内联跟随会被挤成"孤箭头独占一行" */
.hd-official__title svg { position: absolute; right: 0; bottom: 3px; }
.hd-official__title:hover { color: var(--accent-red); }

.hd-mini__action {
  margin-top: 12px;
  color: var(--text-quaternary);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
  transition: color var(--dur) var(--ease);
}
.hd-mini__action:hover { color: var(--accent-red); }

.hd-record {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
}

.hd-record__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.hd-record__row + .hd-record__row { margin-top: var(--space-sm); }
.hd-record__row dt { color: var(--text-quaternary); }
.hd-record__row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}
/* 记录里的日期含汉字 ⇒ 从 mono 撤回 --font-cn（保留等宽数位） */
.hd-record__row dd time { font-family: var(--font-cn); }

.hd-record__note {
  margin: 12px -16px -16px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line-primary);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  color: var(--text-quaternary);
  font-size: 12px;
  line-height: 1.75;
}

/* ------------------------------------------------------------
   10. 口径行 + 回到顶部
   ------------------------------------------------------------ */

.hd-disclaimer {
  color: var(--text-quaternary);
  font-size: 12px;
  line-height: 1.75;
}

/* 挂在 body 层：.panel-center 的 fadeInUp 收尾会留下 transform，
   会把 fixed 后代的包含块从视口抢走 ⇒ 不能放在 main 里 */
.hd-totop {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-lg);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-secondary);
  border-radius: var(--radius-full);
  background: var(--bg-panel);
  color: var(--text-tertiary);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease),
              visibility var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.hd-totop.is-on { opacity: 1; visibility: visible; }
.hd-totop:hover {
  color: var(--accent-red);
  border-color: var(--accent-red-line);
}

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

/* ≥1241：两列（主列 + 右列 300px）、卡内 24px、图高 216px */
@media (min-width: 1240px) {
  .hd-cols {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px var(--space-lg);
  }
  .hd-col { gap: 20px; }
  .hd-card,
  .hd-mini { padding: var(--space-lg); }
  .hd-latest {
    margin: 20px -24px -24px;
    padding: 16px 24px 24px;
  }
  .hd-latest__arrow { right: 24px; }
  .hd-report {
    margin: 0 -24px;
    padding: 12px 24px;
  }
  .hd-record__note {
    margin: 12px -24px -24px;
    padding: 12px 24px 24px;
  }
  .hd-chart { height: 216px; }
  .hd-tab { height: 30px; }
}

/* 1025–1240：单列 ⇒ 附属卡横排两张（第三张按参考站口径隐藏） */
@media (max-width: 1240px) and (min-width: 1025px) {
  .hd-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

/* ≤1240：附属卡下移成组；`事件记录` 隐藏（参考站 hidden lg:block 口径） */
@media (max-width: 1240px) {
  .hd-mini--record { display: none; }
  .hd-hero__stats { gap: 6px var(--space-md); }
}

/* ≤1024：下拉字号提到 16px（移动端输入法不缩放），筛选轨可横滑 */
@media (max-width: 1024px) {
  .hd-select__el { font-size: 16px; }
  .hd-stats { flex: 1 1 100%; }
}

/* ≤1440：h1 中间档（首页 .focus-stage__title 阶梯的 26px 档）
   必须排在 ≤768 之前 ⇒ 阶梯逐级收：32 / 26 / 21 */
@media (max-width: 1440px) {
  .hd-hero__title { font-size: 26px; }
}

/* ≤768：h1 收一档；出血与图表刻度整体收紧 */
@media (max-width: 768px) {
  .hd-hero__title { font-size: 21px; line-height: 1.5; }
  .hd-tab { height: 36px; }
  .hd-chip,
  .hd-range { height: 32px; }
  .hd-report { grid-template-columns: 42px minmax(0, 1fr); column-gap: var(--space-sm); }
  .hd-chart { padding-left: 32px; }
  .hd-x { margin-left: 32px; }
  .hd-chart__axis { width: 26px; }
  .hd-heat__top { gap: var(--space-sm); }
  /* T18：移动端隐藏回顶按钮 —— 固定底栏已有「首页」，且本件滚到底时压在版权行上。
     规则必须写在本表（index-v4.css 之后加载），否则会被 :947 的 display:grid 赢回去。 */
  .hd-totop { display: none; }
}

/* ≤480：胶囊轨收紧到可单行容纳三枚 */
@media (max-width: 480px) {
  .hd-tab,
  .hd-chip,
  .hd-range { padding: 0 10px; }
  .hd-chip,
  .hd-range { font-size: 12px; }
  .hd-tabs { gap: 2px; }
  .hd-stats { gap: 0 var(--space-md); }
  .hd-stat-item dd { font-size: 15px; }
  .hd-hero__stats { gap: var(--space-xs) var(--space-md); }
}

/* ------------------------------------------------------------
   12. 进场淡入（只在系统允许动效时启用；无 JS 时内容原生可见）
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js .hd-hero,
  .js .hd-card,
  .js .hd-mini {
    opacity: 0;
    transform: translateY(14px);
  }
  .js .hd-hero.in,
  .js .hd-card.in,
  .js .hd-mini.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s var(--ease),
                transform 0.5s var(--ease),
                border-color var(--dur) var(--ease);
  }
}
