:root {
  --ink: #0b0d0f;
  --ink-2: #13171a;
  --ink-3: #1c2225;
  --paper: #f2efe7;
  --paper-2: #e7e2d7;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(11, 13, 15, 0.14);
  --muted-dark: #747d7f; /* 4.62:1 对比度（2026-08-14 审计：原 929b9d 撞色/5f686a 系 3.4:1 不达 AA，统一提亮） */
  --muted-light: #6d706c;
  --coral: #ff674d;
  --coral-soft: #ff917e;
  --lime: #d8ff4f;
  --mint: #70e3bd;
  --blue: #7fb8ff;
  --amber: #ffc15a;
  --violet: #b49bff;
  --max: 1460px;
  --pad: clamp(22px, 4vw, 68px);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: #f7f5ef;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--ink);
  background-size: 42px 42px;
  /* 字体策略（2026-08-14 审计 C 批）：Inter→系统等宽栈。数据台气质 + 表格数字对齐，
     零 webfont 下载成本（首访 656KB 里没有字体预算）。中文走 PingFang/微软雅黑，
     拉丁数字走 SF Mono/Consolas，展示衬线保留 Georgia。 */
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, Menlo, "PingFang SC", "Microsoft YaHei", monospace;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 78% 4%, rgba(255, 103, 77, 0.12), transparent 27%),
    radial-gradient(circle at 12% 34%, rgba(112, 227, 189, 0.05), transparent 22%);
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

/* B1 按钮统一基线（2026-08-14 审计）：全站散装按钮收敛——统一 8px 圆角、
   12px 字号、32px 触达高度。board-button 等既有特化样式在后文覆盖本层。
   变体语义：主操作=青柠实底（既有）、次操作=ghost 描边、chip=筛选小钮。 */
button:not(.board-button) {
  min-height: 32px;
  padding-inline: 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

button[data-sort] {
  font-variant-numeric: tabular-nums;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.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;
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  /* 08-18 P0：两侧原本按 minmax(260px,1fr) / minmax(220px,1fr) 预留 480px，而品牌区
     实测只要 181.9px、状态区只要 104px（宽度由常量 "DATA SIGNAL" 决定，不随状态文案
     变化），194px 被白锁在两侧，中列因此不够放 10 个导航项。改为按内容定宽，把这
     194px 还给导航；搜索钮独立成第三列，不再受导航项数量影响。 */
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 82px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(11, 13, 15, 0.9);
  backdrop-filter: blur(22px);
}

/* P1：顶栏子元素显式指派列号。版块目录会被脚本在顶栏与左栏之间搬家，顶栏的子元素
   数量因此不固定；靠自动流排列会让搜索钮在目录不在场时滑进中间那道弹性列。 */
.topbar > .brand {
  grid-column: 1;
}

.topbar > .primary-nav {
  grid-column: 2;
}

.topbar > .nav-search-trigger {
  grid-column: 3;
}

.topbar > .topbar-status {
  grid-column: 4;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  text-decoration: none;
}

.brand-orbit {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
}

.brand-orbit::before,
.brand-orbit::after,
.brand-orbit i {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.brand-orbit::before {
  inset: 7px;
  background: var(--coral);
}

.brand-orbit::after {
  right: -3px;
  top: 4px;
  width: 7px;
  height: 7px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(216, 255, 79, 0.7);
}

.brand-orbit i {
  left: -4px;
  bottom: 2px;
  width: 5px;
  height: 5px;
  background: var(--blue);
}

.brand-copy strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.primary-nav {
  display: flex;
  align-items: center;
  /* 08-18 P0：间距 clamp 下限与斜率同时下调（20→12 / 3vw→1.9vw）。1181px 是本档
     最窄处，3vw 在那里要 35.4px，10 项放不下；1.9vw 给出 22.4px，留出 16px 余量，
     不至于一有风吹草动就触发裁剪。 */
  gap: clamp(12px, 1.9vw, 44px);
  justify-content: safe center;
  height: 82px;
  /* 08-16 审查修复：中列 auto 不收缩时 9 个导航项 + 搜索钮在 ~1512px 视口
     撑出 ~6px 横向滚动。允许收缩 + 首选不换行，间距用更陡的 clamp 兜底。
     08-18 P0 补上 overflow：只收缩不裁剪时溢出会画到右侧栏上，等于把「横向
     滚动条」换成了「遮挡」。裁剪后再加导航项只会退化成条内滚动，不会压住状态区。 */
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.primary-nav a,
.primary-nav span {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  color: #a7adae;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: #fff;
}

.primary-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--coral);
}

.primary-nav em {
  margin-left: 6px;
  padding: 2px 4px;
  color: var(--ink);
  background: #5e6668;
  border-radius: 3px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.topbar-status {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
  text-align: right;
}

.status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(255, 193, 90, 0.7);
}

body[data-status="live"] .status-light {
  background: var(--mint);
  box-shadow: 0 0 16px rgba(112, 227, 189, 0.7);
}

body[data-status="unavailable"] .status-light {
  background: var(--coral);
}

.topbar-status small,
.topbar-status strong {
  display: block;
}

.topbar-status small {
  color: #757d7f;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.topbar-status strong {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* U3b：hero 压缩——氛围让位给「10 秒四问」，首屏留出真实数据位。 */
/* ===== 今日速览（2026-08-19 首屏改版：问题导向的第一屏） ===== */
.today-brief {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}

.today-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  margin-bottom: 14px;
}

.today-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted-dark);
  max-width: 720px;
}

.today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 14px;
}

.today-col {
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--ink-2);
  min-width: 0;
}

.today-col > h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.today-col > h3 a {
  color: var(--paper);
  text-decoration: none;
}

.today-col > h3 a:hover {
  color: var(--coral-soft);
}

.today-col > h3 small {
  margin-left: 6px;
  font-weight: 400;
  color: var(--muted-dark);
}

.today-item {
  display: block;
  padding: 7px 0;
  border-top: 1px solid var(--line-dark);
  text-decoration: none;
  color: var(--paper);
  font-size: 12.5px;
  line-height: 1.45;
}

.today-item:hover .today-title {
  color: var(--coral-soft);
}

.today-item .today-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  border: 1px solid var(--line-dark);
  color: var(--lime);
  white-space: nowrap;
}

.today-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.today-meta {
  color: var(--muted-dark);
  font-size: 11px;
}

.today-empty {
  margin: 6px 0 0;
  color: var(--muted-dark);
  font-size: 12px;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 60px;
  align-items: end;
  min-height: auto;
  padding-top: clamp(28px, 3.2vw, 44px);
  padding-bottom: 24px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: #9ba2a4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.kicker span {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  letter-spacing: 0;
}

.masthead h1 {
  max-width: 920px;
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.masthead h1 em {
  color: var(--coral);
  font-style: italic;
}

.masthead-intro {
  max-width: 620px;
  margin: 14px 0 0;
  color: #a4abad;
  font-size: 14px;
  line-height: 1.7;
}

.masthead-meta {
  padding: 0 0 11px 28px;
  border-left: 1px solid var(--line-dark);
}

.masthead-meta p,
.masthead-meta span,
.masthead-meta small,
.masthead-meta strong,
.masthead-meta b {
  display: block;
}

/* A1 压缩：meta 栏整体横排化，LAST SNAPSHOT 一行化。 */
.masthead-meta {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  gap: 4px 12px;
  padding-bottom: 4px;
}

.masthead-meta .meta-rule {
  flex-basis: 100%;
  margin: 6px 0 2px;
}

.masthead-meta strong {
  font-size: 20px;
}

.masthead-digest small {
  width: auto;
}

.masthead-meta p,
.masthead-meta small {
  margin: 0;
  color: #757d7f;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.masthead-meta strong {
  margin-top: 4px;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.masthead-meta span {
  margin-top: 4px;
  color: #9da4a5;
  font-size: 11px;
}

.meta-rule {
  height: 1px;
  margin: 16px 0;
  background: var(--line-dark);
}

.masthead-meta b {
  margin-top: 10px;
  color: var(--lime);
  font-size: 13px;
}

/* U3b：右栏摘要——榜首 + 上升 Top3，「什么最热 / 什么在上升」零滚动可答。
   A1 压缩（2026-08-14）：竖排 133px → 横排紧凑。 */
.masthead-digest {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 2px 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-dark);
}

.masthead-digest small + small,
.masthead-digest .digest-rising + small {
  margin-top: 0;
}

.masthead-digest .digest-lead {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #f2efe7;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.masthead-digest .digest-lead:hover {
  color: var(--coral);
}

.digest-rising {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.digest-rising a {
  display: flex;
  gap: 8px;
  align-items: baseline;
  overflow: hidden;
  color: #b6bcbe;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.digest-rising a b {
  display: inline;
  flex: 0 0 auto;
  margin: 0;
  color: var(--lime);
  font-size: 11px;
}

.digest-rising a span {
  display: inline;
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  text-overflow: ellipsis;
}

.digest-rising a:hover {
  color: #fff;
}

.digest-empty {
  display: block;
  margin-top: 8px;
  color: #757d7f;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.control-deck {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px 16px 12px 26px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 16px 16px 0 0;
}

.window-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-label {
  margin-right: 16px;
  color: #757d7f;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.window-button {
  min-width: 58px;
  min-height: 44px;
  padding: 0 14px;
  color: #a5acad;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.window-button:hover {
  color: #fff;
  border-color: var(--line-dark);
}

.window-button.active {
  color: var(--ink);
  background: var(--lime);
}

.window-button b {
  font-weight: 800;
}

.window-button .window-flag {
  display: none;
}

.window-button.unavailable {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  color: #5f6668;
  border-color: var(--line-dark);
  border-style: dashed;
  cursor: not-allowed;
}

.window-button.unavailable:hover {
  color: #5f6668;
}

.window-button.unavailable .window-flag {
  display: inline;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.search-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 360px);
  height: 48px;
  padding: 0 12px 0 16px;
  color: #8e9698;
  background: #0c0f11;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
}

.search-control:focus-within {
  border-color: rgba(216, 255, 79, 0.55);
}

.search-control input {
  min-width: 0;
  flex: 1;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.search-control input::placeholder {
  color: #596164;
}

.search-control kbd {
  min-width: 34px;
  padding: 5px 7px;
  color: #9ca3a5;
  background: #1b2023;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  font-family: inherit;
  font-size: 10px;
  text-align: center;
}

.source-notice {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 10px 26px;
  color: var(--ink);
  background: var(--amber);
  border-radius: 0 0 16px 16px;
}

.source-notice[data-status="live"] {
  background: var(--mint);
}

.source-notice[data-status="stale"],
.source-notice[data-status="unavailable"] {
  background: var(--coral-soft);
}

.notice-index,
.source-chip {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.source-notice strong {
  display: block;
  font-size: 13px;
}

.source-notice p {
  margin: 5px 0 0;
  color: rgba(11, 13, 15, 0.66);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.source-chip {
  padding: 8px 10px;
  border: 1px solid rgba(11, 13, 15, 0.3);
  border-radius: 999px;
}

.signal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1.65fr) minmax(260px, 0.86fr);
  gap: 16px;
  margin-top: 18px;
}

.leader-card,
.pulse-card,
.rising-card {
  min-width: 0;
  border-radius: var(--radius);
}

.leader-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 210px auto auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 23px 16px;
  border-bottom: 1px solid var(--line-light);
}

.card-topline span,
.card-topline b {
  font-size: 10px;
  letter-spacing: 0.18em;
}

.card-topline b {
  font-size: 13px;
}

.leader-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--coral);
}

.leader-visual[data-tone="violet"] { background: var(--violet); }
.leader-visual[data-tone="blue"] { background: var(--blue); }
.leader-visual[data-tone="green"] { background: var(--mint); }
.leader-visual[data-tone="amber"] { background: var(--amber); }
.leader-visual[data-tone="slate"] { background: #9fa9aa; }

.leader-visual::before,
.leader-visual::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(11, 13, 15, 0.22);
  border-radius: 50%;
}

.leader-visual::before {
  width: 240px;
  height: 240px;
}

.leader-visual::after {
  width: 150px;
  height: 150px;
}

.leader-visual span {
  position: relative;
  z-index: 2;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(38px, 4vw, 64px);
  letter-spacing: -0.08em;
}

.leader-visual i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
}

.leader-visual i:nth-of-type(1) { top: 20%; left: 17%; }
.leader-visual i:nth-of-type(2) { top: 24%; right: 15%; width: 12px; height: 12px; }
.leader-visual i:nth-of-type(3) { right: 29%; bottom: 14%; width: 4px; height: 4px; }

.leader-copy {
  padding: 22px 23px 19px;
}

.content-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 8px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.leader-copy a {
  display: block;
  text-decoration: none;
  font-family: Georgia, "Songti SC", serif;
  font-size: 24px;
  line-height: 1.34;
}

.leader-copy a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.leader-copy p {
  margin: 10px 0 0;
  color: var(--muted-light);
  font-size: 11px;
}

.leader-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
}

.leader-metrics div {
  padding: 16px 20px 18px;
}

.leader-metrics div + div {
  border-left: 1px solid var(--line-light);
}

.leader-metrics span,
.leader-metrics strong {
  display: block;
}

.leader-metrics span {
  color: var(--muted-light);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.leader-metrics strong {
  margin-top: 7px;
  font-size: 16px;
}

.pulse-card {
  padding: 24px;
  color: var(--ink);
  background: var(--paper);
}

.rising-card {
  padding: 24px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-heading h2 {
  margin: 5px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
  font-weight: 400;
}

.section-code {
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.rising-card .section-code {
  color: var(--muted-dark);
}

.rising-card .card-heading h2 {
  color: #fff;
}

.read-only-mark {
  padding: 6px 8px;
  color: #72766f;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.arrow-mark {
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.pulse-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.pulse-stats > div {
  min-width: 0;
  padding: 22px 15px 20px 0;
}

.pulse-stats > div + div {
  padding-left: 17px;
  border-left: 1px solid var(--line-light);
}

.pulse-stats span,
.pulse-stats strong,
.pulse-stats small {
  display: block;
}

.pulse-stats span,
.pulse-stats small {
  color: var(--muted-light);
  font-size: 10px;
}

.pulse-stats strong {
  margin: 9px 0 8px;
  font-family: Georgia, serif;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.heat-track {
  margin-top: 28px;
}

.mini-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.mini-heading span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.mini-heading small {
  color: var(--muted-light);
  font-size: 10px;
}

.heat-bars {
  display: grid;
  gap: 13px;
}

.heat-bar {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
}

.heat-bar > span,
.heat-bar > b {
  font-size: 10px;
}

.heat-bar > span {
  color: var(--muted-light);
}

.heat-bar > b {
  text-align: right;
}

.bar-rail {
  height: 8px;
  overflow: hidden;
  background: #d8d4ca;
  border-radius: 999px;
}

.bar-fill {
  height: 100%;
  background: var(--coral);
  border-radius: inherit;
  transform-origin: left;
}

.heat-bar:nth-child(2) .bar-fill { background: var(--amber); }
.heat-bar:nth-child(3) .bar-fill { background: var(--mint); }
.heat-bar:nth-child(4) .bar-fill { background: var(--blue); }
.heat-bar:nth-child(5) .bar-fill { background: var(--violet); }

.rising-list {
  display: grid;
  gap: 0;
  margin-top: 23px;
}

.rising-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
}

.rising-rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 11px;
}

.rising-item strong,
.rising-item small {
  display: block;
}

.rising-item strong {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rising-item small {
  margin-top: 5px;
  color: var(--muted-dark);
  font-size: 10px;
}

.rising-delta {
  color: var(--mint);
  font-family: Georgia, serif;
  font-size: 18px;
}

.rising-empty {
  padding: 30px 0;
  color: var(--muted-dark);
  font-size: 11px;
  line-height: 1.7;
}

.editor-note {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-top: 18px;
  padding: 25px 28px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
}

.editor-note span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.editor-note p {
  max-width: 1050px;
  margin: 0;
  color: #b5bbbc;
  font-family: Georgia, "Songti SC", serif;
  font-size: 16px;
  line-height: 1.75;
}

.ranking-section {
  margin-top: 108px;
  padding-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding-bottom: 30px;
}

.section-header .kicker {
  margin-bottom: 19px;
}

.section-header h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  /* 上限压到 56px：hero h1 72px 保持一档首位度，版块标题不与之同级。 */
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.section-meta {
  padding-left: 24px;
  border-left: 1px solid var(--line-dark);
}

.section-meta strong,
.section-meta span {
  display: block;
}

.section-meta strong {
  font-size: 12px;
}

.section-meta span {
  margin-top: 7px;
  color: var(--muted-dark);
  font-size: 10px;
}

.ranking-head,
.ranking-row {
  display: grid;
  grid-template-columns: minmax(360px, 2.2fr) minmax(140px, 0.85fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) 100px;
  gap: 24px;
  align-items: center;
}

.ranking-head {
  min-height: 46px;
  padding: 0 22px;
  color: #6f7779;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.ranking-list {
  border-bottom: 1px solid var(--line-dark);
}

.ranking-row {
  min-height: 116px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-dark);
  transition: background 160ms ease, transform 160ms ease;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.rank-content {
  display: grid;
  grid-template-columns: 42px 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.rank-number {
  color: #747c7e;
  font-family: Georgia, serif;
  font-size: 24px;
}

.ranking-row:nth-child(-n + 3) .rank-number {
  color: var(--coral);
}

.row-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 68px;
  overflow: hidden;
  color: var(--ink);
  background: var(--coral);
  border-radius: 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 13px;
}

.row-cover.violet { background: var(--violet); }
.row-cover.blue { background: var(--blue); }
.row-cover.green { background: var(--mint); }
.row-cover.amber { background: var(--amber); }
.row-cover.slate { background: #9fa9aa; }

.row-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 榜首卡与详情弹窗的封面覆盖层：占位字母在下，图挂掉被移除后自动露出。 */
.leader-visual img.cover-photo,
.dialog-visual img.cover-photo {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -4px;
  object-fit: cover;
  border-radius: 50%;
}

.row-title {
  min-width: 0;
}

.row-title a,
.row-title .unlinked-title {
  display: block;
  overflow: hidden;
  font-family: Georgia, "Songti SC", serif;
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-title a:hover {
  color: var(--lime);
}

.row-title .unlinked-title {
  font-weight: 400;
}

a[aria-disabled="true"] {
  color: inherit;
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

.row-title span {
  display: inline-block;
  margin-top: 8px;
  color: #8b9395;
  font-size: 10px;
}

.creator strong,
.creator span,
.metric-stack strong,
.metric-stack span {
  display: block;
}

.creator strong,
.metric-stack strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator span,
.metric-stack span {
  margin-top: 6px;
  color: #747c7e;
  font-size: 10px;
}

.heat-cell strong {
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.move-pill {
  justify-self: start;
  padding: 7px 9px;
  color: #a0a7a8;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}

.move-pill.up {
  color: var(--mint);
  border-color: rgba(112, 227, 189, 0.35);
}

.move-pill.down {
  color: var(--coral-soft);
  border-color: rgba(255, 145, 126, 0.35);
}

.move-pill.unknown {
  color: #8b9395;
  border-style: dashed;
}

.empty-state {
  padding: 80px 24px;
  color: #8d9698;
  border-bottom: 1px solid var(--line-dark);
  text-align: center;
}

.empty-state span,
.empty-state strong {
  display: block;
}

.empty-state span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.empty-state strong {
  margin-top: 16px;
  color: #fff;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
  font-weight: 400;
}

.empty-state p {
  margin: 12px auto 0;
  font-size: 11px;
  line-height: 1.7;
}

.dialog-signals,
.dialog-trends {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line-dark);
}

.dialog-signals-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin: 0 0 10px;
  color: #c8cecf;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.dialog-signals-head small {
  color: #7f888a;
  font-size: 10px;
}

.dialog-signals dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: 8px 16px;
  margin: 0;
}

.dialog-signals dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-dark);
}

.dialog-signals dt {
  color: #7f888a;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.dialog-signals dd {
  margin: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.trend-spark {
  color: var(--mint);
}

.trend-spark svg {
  display: block;
  width: 100%;
  height: 52px;
  overflow: visible;
}

.trend-spark-axis {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: #7f888a;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.competitor-section {
  margin-top: 108px;
}

.competitor-notice {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 10px 26px;
  color: var(--ink);
  background: var(--amber);
  border-radius: 16px;
}

.competitor-notice[data-status="live"] {
  background: var(--mint);
}

.competitor-notice[data-status="stale"],
.competitor-notice[data-status="unavailable"] {
  background: var(--coral-soft);
}

.competitor-notice strong {
  display: block;
  font-size: 13px;
}

.competitor-notice p {
  margin: 5px 0 0;
  color: rgba(11, 13, 15, 0.66);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* 340px 的卡片减去内边距和 5 个定宽列（30 + 4×44 + 5×8 = 246px）后，
   标题列只剩 60px——截断也只看得到四个字。460px 让 1280–1920 稳定两列、
   标题列回到 174–313px；再宽一档会在 1280 掉成单列，密度反而更差。 */
.competitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
  gap: 16px;
}

.competitor-card {
  min-width: 0;
  padding: 22px 24px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.competitor-card-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.competitor-card-heading span.section-code {
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.competitor-card-heading h3 {
  margin: 7px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.competitor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.competitor-badge {
  padding: 5px 9px;
  color: #c8cecf;
  font-size: 10px;
  letter-spacing: 0.04em;
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}

.competitor-badge.subtle {
  color: #7f888a;
}

/* 环比信号徽标（08-29）：与 ch_id 徽标同形，绿色系强调「涨」的语义。 */
.competitor-badge.interp {
  color: #9fd6b4;
  border-color: rgba(159, 214, 180, 0.35);
  cursor: help;
}

.competitor-table {
  display: grid;
  gap: 4px;
}

.competitor-head,
.competitor-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) repeat(4, minmax(0, 44px));
  gap: 8px;
  align-items: center;
}

.competitor-head {
  padding: 0 0 7px;
  color: #7f888a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: right;
  border-bottom: 1px solid var(--line-dark);
}

.competitor-head span:nth-child(-n + 2) {
  text-align: left;
}

.competitor-row {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-dark);
}

.competitor-row:last-child {
  border-bottom: none;
}

.competitor-position {
  color: #7f888a;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.competitor-copy {
  min-width: 0;
}

/* 补链后标题会由 <strong> 变成 <a>，两个分支必须共用同一套截断，
   否则中文标题在窄列里逐字换行、把行高撑成竖条（与 .row-title 同一范式）。 */
.competitor-copy strong,
.competitor-copy a {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-copy a:hover {
  color: var(--lime);
}

.competitor-copy small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #7f888a;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.competitor-metric {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.competitor-empty-topic,
.competitor-card-note {
  margin: 12px 0 0;
  color: #7f888a;
  font-size: 10px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.competitor-foot {
  margin: 16px 0 0;
  color: #7f888a;
  font-size: 10px;
  line-height: 1.7;
}

.health-section {
  margin-top: 108px;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 0.72fr)) minmax(0, 1.56fr);
  gap: 16px;
}

.health-card {
  min-width: 0;
  padding: 25px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.health-card-wide {
  background:
    radial-gradient(circle at 94% 6%, rgba(112, 227, 189, 0.06), transparent 30%),
    var(--ink-2);
}

.health-card-heading span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.health-card-heading h3 {
  margin: 7px 0 18px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 24px;
  font-weight: 400;
}

.health-facts {
  margin: 0;
}

.health-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--line-dark);
}

.health-facts dt {
  flex: 0 0 auto;
  color: #7f888a;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.health-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  text-align: right;
}

.health-windows {
  display: grid;
  gap: 8px;
}

.health-window {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 11px 13px;
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  font-size: 11px;
}

.health-window b {
  color: var(--mint);
  font-size: 11px;
}

.health-window.missing {
  border-style: dashed;
  color: #7f888a;
}

.health-window.missing b {
  color: #7f888a;
  font-weight: 700;
}

.health-fields {
  display: grid;
  gap: 7px;
}

.health-field {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 54px 38px;
  gap: 12px;
  align-items: center;
  font-size: 10px;
}

.health-field-label {
  color: #c8cecf;
}

.health-field-rail {
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.health-field-rail i {
  display: block;
  height: 100%;
  background: var(--mint);
  border-radius: 999px;
}

.health-field b {
  color: #e7e2d7;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.health-field em {
  color: #7f888a;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-align: right;
}

.health-field.partial .health-field-rail i {
  background: var(--amber);
}

.health-field.partial em {
  color: var(--amber);
}

.health-field.missing .health-field-rail i {
  background: transparent;
}

.health-field.missing em {
  color: var(--coral-soft);
}

.health-empty {
  margin: 0;
  color: #899193;
  font-size: 10px;
}

.health-note {
  margin: 16px 0 0;
  padding-top: 13px;
  color: #7f888a;
  border-top: 1px solid var(--line-dark);
  font-size: 10px;
  line-height: 1.7;
}

.roadmap-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 86px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 18px;
}

.roadmap-strip > div {
  min-width: 0;
  padding: 30px;
}

.roadmap-strip > div + div {
  border-left: 1px solid var(--line-light);
}

.roadmap-strip span,
.roadmap-strip strong {
  display: block;
}

.roadmap-strip span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.roadmap-strip strong {
  margin-top: 12px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
  font-weight: 400;
}

.roadmap-strip p {
  margin: 10px 0 0;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  min-height: 190px;
  padding-top: 58px;
  padding-bottom: 48px;
  color: #697173;
  border-top: 1px solid var(--line-dark);
  margin-top: 84px;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #b4babb;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.site-footer span,
.site-footer p {
  margin: 7px 0 0;
  font-size: 10px;
  line-height: 1.6;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-main {
  min-width: 0;
}

.board-rail {
  position: sticky;
  top: 100px;
  max-height: calc(100dvh - 118px);
  overflow: auto;
  background: rgba(19, 23, 26, 0.94);
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  scrollbar-width: thin;
  scrollbar-color: #353d40 transparent;
}

.rail-heading {
  padding: 23px 20px 20px;
  border-bottom: 1px solid var(--line-dark);
}

/* ---- P1：左栏两段式 ----
   上段版块目录管全页，下段榜单中心只管两个版块。两者同列但各自带标题和管辖范围，
   不允许再出现「一个控件钉满整页却只对 16% 生效」。 */

/* 这些声明都在覆盖 ≤1180 档给顶栏横滚锚点条写的那套（横向 flex、负外边距、
   药丸边框）。锚点条在窄屏仍归顶栏，所以那套规则必须留着；用祖先选择器把
   左栏里的这一份拆出来，而不是去动原规则。 */
.board-rail > .primary-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: auto;
  margin: 0;
  padding: 9px;
  overflow: visible;
  justify-content: flex-start;
  border-top: 0;
}

.board-rail > .primary-nav a {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 0 11px;
  color: #a1a9aa;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease;
}

.board-rail > .primary-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.board-rail > .primary-nav a.active {
  color: var(--ink);
  background: var(--paper);
  border-color: transparent;
}

/* 基础样式给 active 项画的是底部下划线条，竖排列表里那条会横穿整行。 */
.board-rail > .primary-nav a.active::after {
  display: none;
}

.rail-board {
  border-top: 1px solid var(--line-dark);
}

.rail-board-head {
  padding: 18px 20px 14px;
}

.rail-board-head > span {
  display: block;
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.rail-board-head > strong {
  display: block;
  margin-top: 9px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
  font-weight: 400;
}

.rail-scope-note,
.rail-scope-current {
  margin: 8px 0 0;
  color: #727b7d;
  font-size: 10px;
  line-height: 1.6;
}

/* 折叠态那行必须说清「当前选的是什么」，否则收起来等于把状态藏了。 */
.rail-scope-current {
  color: var(--lime);
  font-weight: 700;
}

.rail-board[data-scope="in"] .rail-scope-current {
  display: none;
}

.rail-board[data-scope="out"] .board-nav,
.rail-board[data-scope="out"] .rail-status {
  display: none;
}

.rail-heading span,
.rail-heading strong {
  display: block;
}

.rail-heading span,
.rail-status > span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.rail-heading strong {
  margin-top: 9px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
  font-weight: 400;
}

.rail-heading p,
.rail-status p {
  margin: 7px 0 0;
  color: #727b7d;
  font-size: 10px;
  line-height: 1.6;
}

.board-nav {
  padding: 11px;
}

.board-group-label {
  margin: 13px 9px 8px;
  color: #626b6d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.derived-label {
  margin-top: 21px;
}

.upstream-board-buttons {
  display: contents;
}

.board-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  color: #a1a9aa;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.board-button + .board-button {
  margin-top: 3px;
}

.board-button > span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
}

.board-button > span > b {
  overflow: hidden;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-button em {
  flex: 0 0 auto;
  min-width: 24px;
  padding: 4px 5px;
  color: #747d7f;
  background: #0c0f11;
  border-radius: 5px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.board-button:hover:not(:disabled),
.board-button:focus-visible:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-dark);
  outline: 0;
}

.board-button.active {
  color: var(--ink);
  background: var(--paper);
}

.board-button.active em {
  color: var(--paper);
  background: var(--ink);
}

.board-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 103, 77, 0.45);
}

.board-dot.lime { background: var(--lime); box-shadow: 0 0 10px rgba(216, 255, 79, 0.4); }
.board-dot.blue { background: var(--blue); box-shadow: 0 0 10px rgba(127, 184, 255, 0.4); }
.board-dot.amber { background: var(--amber); box-shadow: 0 0 10px rgba(255, 193, 90, 0.4); }
.board-dot.violet { background: var(--violet); box-shadow: 0 0 10px rgba(180, 155, 255, 0.4); }

.board-button.unavailable {
  color: #747d7f;
  border-style: dashed;
  border-color: var(--line-dark);
  cursor: not-allowed;
}

.board-button.unavailable em {
  color: #545d5f;
  background: #171b1e;
}

.board-button.unavailable > span::after {
  margin-left: 6px;
  color: #545d5f;
  content: attr(data-unavailable-reason);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.rail-status {
  padding: 19px 20px 22px;
  border-top: 1px solid var(--line-dark);
}

.rail-status strong {
  display: block;
  margin-top: 8px;
  color: var(--lime);
  font-size: 11px;
}

.analysis-section {
  margin-top: 108px;
}

.analysis-header {
  padding-bottom: 30px;
}

.chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(360px, 0.86fr);
  gap: 16px;
}

.chart-card {
  min-width: 0;
  padding: 25px;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.chart-card-wide {
  background:
    radial-gradient(circle at 92% 4%, rgba(216, 255, 79, 0.06), transparent 28%),
    var(--ink-2);
}

.chart-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  min-height: 52px;
}

.chart-card-heading span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.chart-card-heading h3 {
  margin: 7px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
  font-weight: 400;
}

.chart-card-heading p {
  margin: 0;
  color: #747c7e;
  font-size: 10px;
  text-align: right;
}

.chart-canvas {
  width: 100%;
  height: 360px;
  margin-top: 18px;
}

.chart-unavailable {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  color: #899193;
  border: 1px dashed var(--line-dark);
  font-size: 11px;
  text-align: center;
}

.derived-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-top: 15px;
  color: #7f888a;
  border-top: 1px solid var(--line-dark);
  font-size: 10px;
  line-height: 1.6;
}

/* 08-18 P2：注记正文改成 <p> 以便按榜换文案；只有标签那个 span 保留胶囊样式。 */
.derived-note p {
  margin: 0;
}

.derived-note span {
  flex: 0 0 auto;
  padding: 3px 5px;
  color: var(--ink);
  background: var(--amber);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.row-detail {
  display: grid;
  justify-items: start;
  gap: 7px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.row-detail b {
  color: #7f888a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.row-detail:hover b,
.row-detail:focus-visible b {
  color: var(--lime);
}

.row-detail:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 7px;
  border-radius: 4px;
}

.signal-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(850px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.62);
}

.signal-dialog::backdrop {
  background: rgba(4, 6, 7, 0.76);
  backdrop-filter: blur(12px);
}

.dialog-shell {
  display: grid;
}

.dialog-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 14px 18px 14px 24px;
  border-bottom: 1px solid var(--line-light);
}

.dialog-topline span,
.dialog-topline small {
  display: block;
}

.dialog-topline span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.dialog-topline small {
  margin-top: 5px;
  color: var(--muted-light);
  font-size: 10px;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 20px;
}

.dialog-close:hover {
  color: var(--paper);
  background: var(--ink);
}

.dialog-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 210px;
  overflow: hidden;
  background: var(--coral);
}

.dialog-visual[data-tone="violet"] { background: var(--violet); }
.dialog-visual[data-tone="blue"] { background: var(--blue); }
.dialog-visual[data-tone="green"] { background: var(--mint); }
.dialog-visual[data-tone="amber"] { background: var(--amber); }
.dialog-visual[data-tone="slate"] { background: #9fa9aa; }

.dialog-visual::before,
.dialog-visual::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(11, 13, 15, 0.2);
  border-radius: 50%;
}

.dialog-visual::before { width: 320px; height: 320px; }
.dialog-visual::after { width: 190px; height: 190px; }

.dialog-visual > span {
  position: relative;
  z-index: 2;
  font-family: Georgia, "Songti SC", serif;
  font-size: 62px;
  letter-spacing: -0.08em;
}

.dialog-visual i {
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 9px;
  background: var(--ink);
  border-radius: 50%;
}

.dialog-visual i:nth-child(2) { top: 22%; left: 16%; }
.dialog-visual i:nth-child(3) { right: 18%; bottom: 18%; width: 14px; height: 14px; }

.dialog-copy {
  padding: 28px 28px 24px;
}

.dialog-copy p {
  margin: 0;
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.dialog-copy h2 {
  margin: 12px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.28;
}

.dialog-copy > span {
  display: block;
  margin-top: 12px;
  color: var(--muted-light);
  font-size: 10px;
}

.dialog-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.dialog-metrics > div {
  padding: 19px 22px;
}

.dialog-metrics > div:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--line-light);
}

.dialog-metrics > div:nth-child(n + 4) {
  border-top: 1px solid var(--line-light);
}

.dialog-metrics span,
.dialog-metrics strong {
  display: block;
}

.dialog-metrics span {
  color: var(--muted-light);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.dialog-metrics strong {
  margin-top: 7px;
  font-size: 18px;
}

.dialog-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 28px 25px;
}

.dialog-foot p {
  max-width: 340px;
  margin: 0;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.6;
}

.dialog-foot a {
  flex: 0 0 auto;
  padding: 11px 13px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

/* 1181–1380px：左侧榜单中心仍常驻，但 5 列固定最小宽会撑破页面，这里只压缩列宽和间距，不隐藏任何列。 */
@media (min-width: 1181px) and (max-width: 1380px) {
  .ranking-head,
  .ranking-row {
    grid-template-columns:
      minmax(0, 2.2fr) minmax(104px, 0.85fr) minmax(112px, 0.8fr) minmax(112px, 0.8fr) 92px;
    gap: 16px;
  }

  .ranking-head {
    padding: 0 16px;
  }

  .ranking-row {
    padding: 16px;
  }

  .rank-content {
    grid-template-columns: 34px 48px minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 1180px) {
  /* U2：窄屏导航不再整个藏掉，改为 sticky 顶栏下的横滚锚点条；
     溢出只发生在锚点条自身容器内，页面不横向滚动。 */
  .topbar {
    /* 08-18 P0：搜索钮移出 primary-nav 后，第一行有 品牌 / 搜索钮 / 状态 三个网格项。 */
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
  }

  /* P1：本档只有三列，必须把基础样式里那套四列指派改掉——`.topbar > X` 的
     特异性高于媒体查询里的 `.primary-nav`，不显式覆盖的话 grid-column: 4
     会凭空生出第四列，1/-1 的通栏锚点条也会被压回第二列。 */
  .topbar > .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .topbar > .nav-search-trigger {
    grid-column: 2;
    grid-row: 1;
  }

  .topbar > .topbar-status {
    grid-column: 3;
    grid-row: 1;
  }

  .topbar > .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .primary-nav {
    display: flex;
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 8px;
    align-items: center;
    height: auto;
    margin: 0 calc(var(--pad) * -1);
    padding: 9px var(--pad) 11px;
    overflow-x: auto;
    border-top: 1px solid var(--line-dark);
    scrollbar-width: none;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .primary-nav a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: auto;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
  }

  .primary-nav a.active {
    border-color: var(--coral);
  }

  .primary-nav a.active::after {
    display: none;
  }

  .signal-grid {
    grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1.35fr);
  }

  .rising-card {
    grid-column: 1 / -1;
  }

  .rising-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .rising-item {
    border-bottom: 1px solid var(--line-dark);
  }

  .ranking-head,
  .ranking-row {
    grid-template-columns: minmax(0, 2fr) minmax(104px, 0.8fr) minmax(112px, 0.7fr) 92px;
    gap: 16px;
  }

  .ranking-head {
    padding: 0 16px;
  }

  .ranking-row {
    padding: 16px;
  }

  .rank-content {
    grid-template-columns: 34px 48px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-head span:nth-child(4),
  .ranking-row > *:nth-child(4) {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --pad: 20px;
  }

  .topbar {
    min-height: 70px;
  }

  .topbar-status small {
    display: none;
  }

  .masthead {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 52px;
  }

  .masthead h1 {
    font-size: clamp(50px, 14vw, 78px);
  }

  .masthead-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 30px;
    padding: 22px 0 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .masthead-meta p,
  .masthead-meta strong,
  .masthead-meta span {
    grid-column: 1;
  }

  .masthead-meta small,
  .masthead-meta b {
    grid-column: 2;
  }

  .masthead-meta small {
    grid-row: 1;
  }

  .masthead-meta b {
    grid-row: 2;
  }

  .masthead-digest {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .masthead-digest small {
    grid-row: auto;
    grid-column: auto;
  }

  .meta-rule {
    display: none;
  }

  .control-deck {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .window-control {
    width: 100%;
  }

  .control-label {
    margin-right: auto;
  }

  .search-control {
    width: 100%;
  }

  .source-notice,
  .competitor-notice {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
  }

  .notice-index {
    grid-column: 1 / -1;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .rising-card {
    grid-column: auto;
  }

  .rising-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pulse-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .pulse-stats > div:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .pulse-stats > div:nth-child(4) {
    border-top: 1px solid var(--line-light);
  }

  .editor-note {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .ranking-head {
    display: none;
  }

  .ranking-list {
    display: grid;
    gap: 12px;
    border-bottom: 0;
  }

  .ranking-row {
    grid-template-columns: 1fr auto;
    gap: 18px;
    min-height: auto;
    padding: 18px;
    background: var(--ink-2);
    border: 1px solid var(--line-dark);
    border-radius: 14px;
  }

  .ranking-row > .creator,
  .ranking-row > .metric-stack:not(.heat-cell) {
    display: none;
  }

  .rank-content {
    grid-template-columns: 34px 48px minmax(0, 1fr);
    gap: 11px;
  }

  .row-cover {
    width: 48px;
    height: 58px;
  }

  .heat-cell {
    text-align: right;
  }

  .move-pill {
    grid-column: 2;
    justify-self: end;
  }

  .row-detail {
    min-height: 44px;
  }

  .roadmap-strip {
    grid-template-columns: 1fr;
  }

  .roadmap-strip > div + div {
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  :root {
    --pad: 14px;
  }

  .topbar {
    padding-inline: 16px;
  }

  .topbar-status {
    display: none;
  }

  .brand-copy strong {
    font-size: 11px;
  }

  .topbar-status strong {
    font-size: 10px;
  }

  .masthead {
    padding-top: 66px;
  }

  .masthead h1 {
    font-size: 48px;
  }

  .masthead-intro {
    font-size: 13px;
  }

  .control-label {
    display: none;
  }

  .window-control {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .window-button {
    flex: 1;
  }

  .source-notice,
  .competitor-notice {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .competitor-head,
  .competitor-row {
    grid-template-columns: 24px minmax(0, 1fr) repeat(4, minmax(0, 38px));
    gap: 6px;
  }

  .source-chip {
    align-self: start;
    justify-self: start;
  }

  .source-notice p,
  .competitor-notice p {
    overflow-wrap: anywhere;
  }

  .leader-copy a {
    font-size: 20px;
  }

  .pulse-card,
  .rising-card {
    padding: 20px;
  }

  .pulse-stats strong {
    font-size: 28px;
  }

  .section-header h2 {
    /* 与 480px 档 h1 48px 保持一档落差 */
    font-size: 40px;
  }

  .ranking-row {
    grid-template-columns: 1fr;
  }

  .heat-cell,
  .move-pill {
    display: none;
  }

  .rank-content {
    grid-template-columns: 28px 44px minmax(0, 1fr);
  }

  .row-cover {
    width: 44px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .board-rail {
    position: static;
    max-height: none;
    overflow: hidden;
  }

  .rail-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
  }

  .rail-heading span {
    margin-right: auto;
  }

  .rail-heading strong {
    margin-top: 0;
    font-size: 18px;
  }

  .rail-heading p,
  .rail-status,
  .board-group-label {
    display: none;
  }

  /* P1：窄屏左栏是静态块、不跟着滚，折叠逻辑关掉（脚本恒置 scope=in）。
     管辖范围那句仍然保留——它是给同事看的口径说明，不是装饰。 */
  .rail-board-head {
    padding: 14px 18px 10px;
  }

  .rail-board-head > strong {
    margin-top: 6px;
    font-size: 18px;
  }

  .board-nav {
    display: flex;
    gap: 6px;
    padding: 10px;
    overflow-x: auto;
    border-top: 1px solid var(--line-dark);
    scrollbar-width: thin;
  }

  .board-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 142px;
  }

  .board-button + .board-button {
    margin-top: 0;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .health-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .health-field {
    grid-template-columns: 56px minmax(0, 1fr) 48px 34px;
    gap: 8px;
  }

  .rail-heading span {
    display: none;
  }

  .rail-heading {
    justify-content: space-between;
  }

  .rail-heading p {
    display: block;
    margin: 0;
  }

  .chart-card {
    padding: 20px 14px;
  }

  .chart-card-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    padding-inline: 6px;
  }

  .chart-card-heading p {
    text-align: left;
  }

  .chart-canvas {
    height: 330px;
  }

  .row-detail {
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--line-dark);
  }

  .dialog-visual {
    height: 170px;
  }

  .dialog-visual > span {
    font-size: 50px;
  }

  .dialog-copy h2 {
    font-size: 28px;
  }

  .dialog-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .dialog-metrics > div:not(:nth-child(3n + 1)) {
    border-left: 0;
  }

  .dialog-metrics > div:not(:nth-child(2n + 1)) {
    border-left: 1px solid var(--line-light);
  }

  .dialog-metrics > div:nth-child(n + 3) {
    border-top: 1px solid var(--line-light);
  }

  .dialog-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-foot a {
    text-align: center;
  }
}

/* ---- B2 话题检索 ---- */
.topic-keyword-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 14px;
}

/* ---- 品类内热点横条（08-20，派生视图） ---- */
.hotspot-strip {
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--card);
}

.hotspot-strip-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hotspot-strip-sub {
  margin-left: 8px;
  color: var(--muted-foreground);
  font-weight: 400;
  font-size: 12px;
}

.hotspot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hotspot-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.hotspot-list a {
  font-weight: 600;
}

.hotspot-ratio {
  color: var(--accent);
  font-weight: 700;
}

.hotspot-nums {
  color: var(--muted-foreground);
  font-size: 12px;
}

/* 自家产品徽标（08-20）：与竞品信号视觉区分，accent 描边小胶囊 */
.hotspot-own-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  line-height: 18px;
  vertical-align: 1px;
  cursor: help;
}

.hotspot-strip-note {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.topic-keyword-button {
  width: auto;
  min-width: 108px;
}

.topic-table-wrap {
  overflow-x: auto;
}

.topic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.topic-table th,
.topic-table td {
  padding: 9px 12px;
  text-align: right;
  border-bottom: 1px solid #1b2023;
  white-space: nowrap;
}

.topic-table thead th {
  color: #7d878a;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.topic-table th[scope="row"],
.topic-table .topic-col-name {
  text-align: left;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  color: #d7dcde;
}

.topic-table thead button {
  /* 命中区扩到 44px 高：负外边距吸收增量，表头视觉行高基本不变。 */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -13px -4px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.topic-table thead button:hover {
  color: #d7dcde;
}

.topic-table thead button.active {
  color: var(--lime);
}

.topic-table thead button.active::after {
  content: " ↓";
}

.topic-table .muted {
  color: #747d7f;
}

@media (max-width: 820px) {
  .topic-table th[scope="row"],
  .topic-table .topic-col-name { max-width: 180px; }
  .topic-table th,
  .topic-table td { padding: 8px 7px; }
}

/* ---- U1/U4：两层文案的折叠块 ---- */
.foot-details {
  margin-top: 10px;
}

.foot-details summary {
  /* 命中区 44px 高：负外边距吸收大部分增量，版面节奏不变。 */
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 44px;
  margin: -12px 0;
  color: #7f888a;
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
}

.foot-details[open] summary {
  margin-bottom: -2px;
}

.foot-details summary:hover {
  color: #c8cecf;
}

/* notice 卡内的口径折叠：亮色卡底上的暗色小字，行高与卡片节奏一致。 */
.notice-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 2px;
  color: rgba(11, 13, 15, 0.55);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.notice-details summary::before {
  content: "+";
  margin-right: 4px;
  font-weight: 700;
}

.notice-details[open] summary::before {
  content: "−";
}

.notice-details summary:hover {
  color: rgba(11, 13, 15, 0.8);
}

.notice-details p {
  margin: 4px 0 0;
  color: rgba(11, 13, 15, 0.66);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.foot-details p {
  margin: 8px 0 0;
  color: #8f989a;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.editor-note-body {
  min-width: 0;
}

/* ---- U3a：话题清单展开/收起 ---- */
.topic-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 44px;
  margin: 14px auto 0;
  padding: 0 26px;
  color: #c8cecf;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.topic-expand:hover {
  color: #fff;
  border-color: rgba(216, 255, 79, 0.55);
}

/* ---- U4：粉丝量 ※ 图例 ---- */
.follower-legend {
  margin: 12px 0 0;
  color: #7f888a;
  font-size: 10px;
  line-height: 1.6;
}

/* U2：锚点落点让出 sticky 顶栏高度，跳转后版块标题不被盖住。 */
/* 08-17 反馈③：scroll-margin 覆盖推送链接用到的全部锚点——老列表漏了
   行业情报/素材/AI 动态三块，sticky 顶栏会盖住落点标题。 */
#top,
#analysis,
#ranking,
#competitor,
#industry-news,
#ai-news,
#materials,
#topics,
#health {
  scroll-margin-top: 94px;
}

@media (max-width: 1180px) {
  #top,
  #analysis,
  #ranking,
  #competitor,
  #industry-news,
  #ai-news,
  #materials,
  #topics,
  #health {
    scroll-margin-top: 134px;
  }
}

@media (max-width: 820px) {
  #top,
  #analysis,
  #ranking,
  #competitor,
  #industry-news,
  #ai-news,
  #materials,
  #topics,
  #health {
    scroll-margin-top: 100px;
  }
}

/* ---- 焦点光圈统一：U 系列新增交互面与既有 lime 光圈同款 ---- */
.primary-nav a:focus-visible,
.brand:focus-visible,
.window-button:focus-visible:not(:disabled),
.topic-expand:focus-visible,
.foot-details summary:focus-visible,
.topic-table thead button:focus-visible,
.topic-keyword-bar .board-button:focus-visible,
.dialog-close:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 3px;
}

/* Safari/WebKit 点击链接后原生红色焦点环会一直残留（截图实证：点 logo 跳 #top 后
   红框留在品牌区）。键盘导航的光圈由上面的 :focus-visible 统一提供，
   点击残留统一清除——Chrome/Firefox 本就不显示，此规则对它们无副作用。 */
a:focus:not(:focus-visible) {
  outline: none;
}

/* ---- 话题榜搜索跳转：与已验证作品链接刻意不同款，一眼看得出是搜索 ---- */
.topic-search-link {
  color: #c8cecf;
  text-decoration: none;
  border-bottom: 1px dashed rgba(200, 206, 207, 0.45);
}

.topic-search-link:hover {
  color: #fff;
  border-bottom-color: var(--lime);
}

/* 标记必须常驻可见：标题过长时截断标题，而不是把「搜索 ↗」挤出视口。 */
.row-title .topic-search-link {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.row-title .topic-search-link > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-search-link i {
  flex: 0 0 auto;
  color: #7f888a;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.topic-search-link:hover i {
  color: var(--lime);
}

.topic-search-link:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 3px;
}

/* B2-p5 逐日走势列：与 A6 的话题日热度 spark 同一形态。缺口断线而不插值——
   跨 null 连线会画出一段并不存在的走势，那正是这份历史刻意要避免的。 */
.topic-col-trend {
  width: 108px;
}

.topic-trend-cell {
  color: var(--lime);
}

.topic-trend {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: stretch;
}

.topic-trend svg {
  width: 100%;
  height: 22px;
}

.topic-trend-range {
  color: #7f888a;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 820px) {
  .topic-col-trend,
  .topic-trend-cell {
    display: none;
  }
}

/* ---- 行业动态 RSS ---- */

.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.news-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.news-filter {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--slate);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.news-filter:hover:not(:disabled) {
  border-color: var(--coral);
  color: var(--coral);
}

.news-filter.active {
  background: rgba(254, 44, 85, 0.1);
  border-color: var(--coral);
  color: var(--coral);
}

.news-filter:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.news-export {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--slate);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.news-export:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.news-export-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-comp-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  font-weight: 600;
  font-size: 10px;
}

.news-slg-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-weight: 600;
  font-size: 10px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.news-row {
  display: block;
  padding: 14px 18px;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.news-row:hover {
  background: var(--ink-2);
}

.news-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.news-source-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(254, 44, 85, 0.08);
  color: var(--coral);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.news-time {
  color: var(--slate);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.news-row-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--ink-bright);
}

.news-row:hover .news-row-title {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.news-row-original {
  font-size: 11px;
  line-height: 1.4;
  color: var(--slate);
  opacity: 0.75;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.news-row-summary {
  font-size: 12px;
  line-height: 1.5;
  color: var(--slate);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .news-row {
    padding: 12px 14px;
  }
  .news-row-title {
    font-size: 13px;
  }
}

/* ---- 榜单导出按钮 ---- */

.ranking-export-btn {
  flex-shrink: 0;
  padding: 0 14px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: transparent;
  color: #a5acad;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}

.ranking-export-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* ---- 全站搜索 ---- */

.nav-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  /* 08-18 P0：右侧 16px 是与 DATA SIGNAL 之间的呼吸位。移出 primary-nav 后它成了
     独立网格列，紧邻状态列，没有这段外边距两者会贴死（1180 实测间隙 0）。 */
  margin-inline: 8px 16px;
  padding: 0 12px;
  color: #a7adae;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s;
}

.nav-search-trigger:hover {
  color: #fff;
  border-color: var(--coral);
  background: rgba(255, 103, 77, 0.08);
}

.nav-search-trigger span {
  font-size: 14px;
}

.search-overlay {
  width: min(640px, calc(100% - 28px));
  max-height: min(600px, calc(100dvh - 56px));
  padding: 0;
  overflow: hidden;
  color: #f7f5ef;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

.search-overlay::backdrop {
  background: rgba(4, 6, 7, 0.78);
  backdrop-filter: blur(12px);
}

.search-overlay-shell {
  display: flex;
  flex-direction: column;
  max-height: min(600px, calc(100dvh - 56px));
}

.search-overlay-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-dark);
}

.gs-search-icon {
  flex-shrink: 0;
  color: var(--muted-dark);
  font-size: 18px;
}

#global-search-input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  color: #f7f5ef;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

#global-search-input::placeholder {
  color: var(--muted-dark);
}

.gs-count {
  flex-shrink: 0;
  color: var(--muted-dark);
  font-size: 11px;
  white-space: nowrap;
}

.search-overlay-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--muted-dark);
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 18px;
  transition: all 0.15s;
}

.search-overlay-close:hover {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}

.search-overlay-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.gs-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted-dark);
  font-size: 13px;
}

.gs-group {
  padding: 4px 0;
}

.gs-group + .gs-group {
  border-top: 1px solid var(--line-dark);
}

.gs-group-title {
  margin: 0;
  padding: 8px 20px 4px;
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gs-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gs-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  cursor: default;
  transition: background 0.12s;
}

.gs-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.gs-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #e8e6e0;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-item-author {
  flex-shrink: 1;
  overflow: hidden;
  color: var(--muted-dark);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-item-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  color: #a5acad;
  background: transparent;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.gs-item-link:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.search-overlay-foot {
  padding: 8px 20px;
  border-top: 1px solid var(--line-dark);
}

.search-overlay-foot small {
  color: var(--muted-dark);
  font-size: 10px;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .nav-search-trigger {
    display: none;
  }
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.material-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.material-card:hover {
  border-color: var(--coral);
}

.material-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #1a1a1a;
}

.material-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--slate);
}

.material-body {
  padding: 10px 12px 12px;
}

.material-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.material-rank {
  margin-left: auto;
  font-size: 11px;
  color: var(--slate);
}

.material-title {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.35;
}

.material-stats {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--slate);
}

.material-kws {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.material-kw {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ink-2, rgba(255,255,255,0.04));
}

.material-game-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  font-weight: 600;
  font-size: 10px;
}


/* ===== 深链高亮（2026-08-19：日报缺链竞品条目回站定位） ===== */
.competitor-card.hl-target {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* ---- 短剧风向标（08-21）：DataEye 榜单表格，对齐 news 行风格 ---- */
.duanju-board {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.duanju-board-head,
.duanju-row {
  display: grid;
  grid-template-columns: 72px 1fr 96px;
  align-items: center;
  gap: 14px;
  background: var(--card);
  padding: 10px 16px;
}

.duanju-board-head {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--slate);
  background: var(--ink-2);
  text-transform: uppercase;
}

.duanju-board-head span:last-child,
.duanju-value {
  text-align: right;
}

.duanju-row:hover {
  background: var(--ink-2);
}

.duanju-rank {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--coral);
}

.duanju-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.duanju-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.duanju-tags {
  font-size: 11px;
  color: var(--slate);
  line-height: 1.4;
}

.duanju-meta {
  font-size: 11px;
  color: var(--slate);
}

.duanju-value {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.duanju-foot {
  margin: 0;
  padding: 10px 16px;
  font-size: 11px;
  color: var(--slate);
  background: var(--card);
}
