/* ==========================================================================
   声场 · 热点词库页样式（#/hotnews）
   只承载本页私有类，统一 .hot- 前缀；设计变量与通用组件见 base.css
   ========================================================================== */

/* --------------------------------------------------------------- 页头 -- */
.hot-head {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}
.hot-head-top { align-items: baseline; }
.hot-title { margin-top: 14px; }
.hot-tagline {
  margin-top: 8px;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.hot-lead { max-width: 820px; margin-top: 16px; }
.hot-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 660px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hot-stat { padding: 14px 22px 12px; border-left: 1px solid var(--line); }
.hot-stat:first-child { border-left: 0; padding-left: 0; }
.hot-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.hot-stat span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
.hot-stat small {
  display: block;
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ----------------------------------------------------------- tab 切换 -- */
.hot-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 22px 0 0;
}
.hot-tabs { background: rgba(27, 58, 82, 0.07); }
.hot-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 14px;
}
.hot-tabs button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
  font-weight: 600;
}
.hot-tabs button svg { width: 15px; height: 15px; }
.hot-tab-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--faint);
}
.hot-tabs button.is-active .hot-tab-count { color: var(--copper); }
.hot-count { font-size: 12.5px; color: var(--muted); }
.hot-count b { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--ink); }

/* --------------------------------------------------------- 搜索与筛选 -- */
.hot-toolbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 35;
  margin: 0 0 24px;
  padding: 14px 0 12px;
  background: rgba(247, 243, 235, 0.92);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.hot-search { max-width: 560px; }
.hot-search .input { padding-right: 46px; background: rgba(255, 252, 246, 0.9); }
.hot-search input::-webkit-search-cancel-button,
.hot-search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.hot-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  cursor: pointer;
  transition: 0.16s var(--ease);
}
.hot-search-clear:hover { background: var(--paper); color: var(--ink); }
.hot-search-clear svg { width: 13px; height: 13px; }
.hot-filters { margin-top: 12px; }
.hot-chips { gap: 7px; }
.hot-chips .chip { font-size: 12px; padding: 4px 10px; }
.hot-chips .chip-num { font-size: 10.5px; }

/* --------------------------------------------------------------- 面板 -- */
.hot-panel {
  min-height: 360px;
  scroll-margin-top: calc(var(--nav-h) + 130px);
}
.hot-empty-actions { justify-content: center; }
.hot-panel .empty { padding: 58px 22px; }

/* ----------------------------------------------------------- 词条卡片 -- */
.hot-terms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.hot-term-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px 22px;
  cursor: pointer;
  overflow: hidden;
}
.hot-term-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--hot-accent, var(--line-strong));
  opacity: 0.72;
  transition: opacity 0.18s var(--ease);
}
.hot-term-card:hover::before { opacity: 1; }
.hot-term-card:focus-visible,
.hot-event:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hot-term-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hot-term-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.hot-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--hot-accent, var(--faint));
}
.hot-term-no {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.hot-term-name {
  margin-top: 11px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.hot-term-meaning {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.78;
  color: var(--ink-2);
}
.hot-term-use {
  margin-top: 10px;
  padding: 9px 12px;
  border-left: 2px solid var(--hot-accent, var(--line-strong));
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  background: var(--surface-2);
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--muted);
}
.hot-term-label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--faint);
}
.hot-term-label.is-use { color: var(--hot-accent, var(--faint)); opacity: 0.85; }
.hot-term-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal);
}
.hot-term-more svg { width: 14px; height: 14px; transition: transform 0.18s var(--ease); }
.hot-term-card:hover .hot-term-more svg { transform: translateX(3px); }

/* 12 个分类的分类色：只用于小圆点与卡片左侧细线 */
.hot-c0 { --hot-accent: var(--teal); }
.hot-c1 { --hot-accent: var(--gold); }
.hot-c2 { --hot-accent: var(--navy); }
.hot-c3 { --hot-accent: var(--copper); }
.hot-c4 { --hot-accent: #7a5a3a; }
.hot-c5 { --hot-accent: var(--plum); }
.hot-c6 { --hot-accent: #3d5a7a; }
.hot-c7 { --hot-accent: #8a4b3b; }
.hot-c8 { --hot-accent: #4c7a4f; }
.hot-c9 { --hot-accent: #2f7d5b; }
.hot-c10 { --hot-accent: #74507e; }
.hot-c11 { --hot-accent: #a3722c; }

/* ------------------------------------------------------------- 时间线 -- */
.hot-timeline {
  position: relative;
  padding: 6px 0 8px;
}
.hot-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 12px;
  left: 100px;
  width: 1px;
  background: linear-gradient(180deg, rgba(27, 58, 82, 0.02), rgba(27, 58, 82, 0.32) 3%, rgba(27, 58, 82, 0.2) 95%, transparent);
}
.hot-month {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 30px;
  position: relative;
}
.hot-month-label {
  position: relative;
  padding-top: 2px;
  text-align: right;
}
.hot-month-label::after {
  content: "";
  position: absolute;
  top: 25px;
  right: -22px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--copper);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--paper);
}
.hot-month-label::before {
  content: "";
  position: absolute;
  top: 31px;
  right: -32px;
  width: 9px;
  height: 1px;
  background: var(--line-strong);
}
.hot-month-year {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.hot-month-name {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.15;
  color: var(--navy);
}
.hot-month-name small {
  margin-left: 2px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.hot-month-count {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.hot-month-list { display: grid; gap: 14px; }

.hot-event {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 22px 14px;
  cursor: pointer;
}
.hot-event-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.hot-event-date {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--copper);
}
.hot-event-top .tag { font-size: 11px; padding: 1px 8px; }
.hot-event-title { font-size: 19px; line-height: 1.4; }
.hot-event-summary { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.hot-event-angle {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--copper);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  background: var(--surface-2);
}
.hot-event-angle-label {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--copper);
}
.hot-event-angle p { font-size: 12.8px; line-height: 1.72; color: var(--muted); }
.hot-event-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 2px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
}
.hot-event-source { font-size: 11.5px; color: var(--faint); }
.hot-event-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
}
.hot-event-more svg { width: 14px; height: 14px; }

/* --------------------------------------------------------- 分类导航区 -- */
.hot-catnav {
  margin-top: 30px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.hot-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.hot-cat-item { overflow: hidden; }
.hot-cat-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.hot-cat-summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}
.hot-cat-summary::-webkit-details-marker { display: none; }
.hot-cat-summary:hover { background: rgba(27, 58, 82, 0.025); }
.hot-cat-no {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--copper);
}
.hot-cat-text { display: grid; gap: 2px; min-width: 0; }
.hot-cat-name { font-size: 17px; line-height: 1.35; }
.hot-cat-cover { font-size: 12px; line-height: 1.55; color: var(--muted); }
.hot-cat-count {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
  white-space: nowrap;
}
.hot-cat-chevron { color: var(--faint); display: grid; place-items: center; }
.hot-cat-chevron svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.hot-cat-item[open] .hot-cat-chevron svg { transform: rotate(180deg); }
.hot-cat-body {
  display: grid;
  gap: 10px;
  padding: 14px 18px 18px 60px;
  border-top: 1px dashed var(--line);
  background: rgba(251, 246, 236, 0.7);
}
.hot-cat-tip { font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.hot-cat-tip .kicker { display: block; margin-bottom: 3px; color: var(--teal); }
.hot-cat-jump { justify-self: start; margin-top: 2px; }
.hot-cat-jump svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------- 资料注 -- */
.hot-note { padding: 34px 0 12px; }
.hot-note-callout .small { margin-top: 6px; color: var(--ink-2); }
.hot-note-callout b { font-family: var(--font-mono); font-weight: 600; color: var(--copper); }

/* ------------------------------------------------------- 抽屉 / 详情 -- */
/* 长内容抽屉：把解析纸高度限制在视口内，内部滚动区才能正常滚动。
   仅作用于本页（body[data-view]），不改动 pages.css 的公共抽屉样式。 */
body[data-view="hotnews"] .paper-drawer { max-height: 100vh; }
body[data-view="hotnews"] .paper-drawer-scroll { min-height: 0; }
@supports (height: 100dvh) {
  body[data-view="hotnews"] .paper-drawer { max-height: 100dvh; }
}
.hot-detail { max-width: 720px; }
.hot-detail-title {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.hot-detail-tags { margin-top: 14px; gap: 7px; }
.hot-detail-tags .tag { display: inline-flex; align-items: center; gap: 5px; }
.hot-detail-tags .tag svg { width: 13px; height: 13px; }
.hot-detail-cat { margin-top: 10px; color: var(--muted); }
.hot-detail-sec { margin-top: 30px; }
.hot-detail-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--copper);
}
.hot-detail-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.hot-detail-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}
.hot-detail-tip { margin-top: 14px; font-size: 13.5px; }
.hot-detail-angle {
  margin: 0;
  padding: 18px 22px;
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  background: var(--surface-2);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink);
}
.hot-kws { gap: 7px; }
.hot-pill-list { gap: 7px; }
.hot-pill-list .chip { font-size: 12.5px; }
.hot-detail-none { color: var(--muted); }
.hot-event-links { display: grid; gap: 10px; }
.hot-event-link {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  text-align: left;
  cursor: pointer;
  transition: 0.18s var(--ease);
}
.hot-event-link:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateX(2px);
  box-shadow: var(--shadow-1);
}
.hot-event-link-date {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--copper);
}
.hot-event-link-title { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.hot-event-link-sum {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.hot-detail-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hot-detail-cta .tiny { flex: 1 1 240px; }
.hot-added { flex: 1 1 100%; }
.hot-added .callout-title { display: flex; align-items: center; gap: 6px; }
.hot-added .callout-title svg { width: 15px; height: 15px; }
.hot-added .small { margin-top: 4px; color: var(--ink-2); }

/* ----------------------------------------------------------- 响应式 -- */
@media (max-width: 900px) {
  .hot-terms { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .hot-cat-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
@media (max-width: 760px) {
  .hot-head { padding-bottom: 24px; }
  .hot-tagline { font-size: 16px; }
  .hot-stats { max-width: none; margin-top: 20px; }
  .hot-stat { padding: 12px 14px 10px; }
  .hot-stat b { font-size: 25px; }
  .hot-stat span { font-size: 12px; }
  .hot-tabs-row { padding-top: 16px; }
  .hot-cat-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  .hot-cat-head .small { max-width: none; text-align: left; }
  .hot-toolbar {
    position: static;
    margin-bottom: 18px;
    padding: 10px 0 8px;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 0;
  }
  .hot-search { max-width: none; }
  .hot-search .input { font-size: 16px; }
  .hot-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .hot-chips::-webkit-scrollbar { display: none; }
  .hot-chips .chip { flex: 0 0 auto; }
  .hot-panel { min-height: 280px; }
  .hot-terms { grid-template-columns: minmax(0, 1fr); }
  .hot-term-card { padding: 16px 18px 15px 20px; }

  /* 时间线改为左侧细线 + 单列 */
  .hot-timeline::before { left: 7px; top: 8px; bottom: 8px; }
  .hot-month {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-left: 28px;
    padding-bottom: 28px;
  }
  .hot-month-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 0;
    text-align: left;
  }
  .hot-month-label::after {
    top: 6px;
    right: auto;
    left: -26.5px;
    box-shadow: 0 0 0 3px var(--paper);
  }
  .hot-month-label::before { display: none; }
  .hot-month-year { display: inline; }
  .hot-month-name { display: inline; margin-top: 0; font-size: 21px; }
  .hot-month-count { display: inline; margin-top: 0; }
  .hot-event { padding: 16px 18px 13px; }

  .hot-catnav { margin-top: 24px; padding-top: 28px; }
  .hot-cat-grid { grid-template-columns: minmax(0, 1fr); }
  .hot-cat-summary { padding: 13px 14px; gap: 10px; grid-template-columns: 24px minmax(0, 1fr) auto 16px; }
  .hot-cat-name { font-size: 16px; }
  .hot-cat-body { padding: 12px 14px 16px 48px; }
  .hot-note { padding-top: 28px; }
  .hot-detail-title { font-size: 27px; }
  .hot-detail-angle { padding: 15px 16px; font-size: 16.5px; }
  .hot-detail-cta { margin-top: 28px; padding-top: 18px; }
}
@media (max-width: 480px) {
  .hot-head-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .hot-head-top .tiny { white-space: nowrap; }
  .hot-stat { padding: 10px 10px 9px; }
  .hot-stat b { font-size: 22px; }
  .hot-stat span { font-size: 11.5px; }
  .hot-stat small { letter-spacing: 0.1em; }
  .hot-tabs button { padding: 7px 13px; font-size: 13px; }
  .hot-tab-count { display: none; }
  .hot-count { width: 100%; }
  .hot-term-meaning { font-size: 12.8px; }
  .hot-event-title { font-size: 17.5px; }
  .hot-event-angle p { font-size: 12.5px; }
  .hot-cat-body { padding-left: 14px; }
}
