/* 关于页
   ------------------------------------------------------------------
   版式与尺寸照搬参考项目 AIHOT 的 about.tsx（apps/web/app/routes/about.tsx）：
   kicker → 大字标题 → 导语 → 两个按钮 → 信源河 + 最近精选 → 四个环节 → 版权段 → 页脚。
   信源河本体在 public/assets/signal-river.js，这里只负责它的尺寸与提示框。
   断点沿用 AIHOT：640 / 1024 / 1536，与站内其他页的 961 断点互不影响
   （这一页是独立版式，不参与列表页的栅格）。 */

.about {
  max-width: max(1100px, calc(200dvh - 236px));
  margin: 0 auto;
}

.about .sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- 报头 ---------- */
.about-head { display: grid; align-items: end; gap: 32px; padding-top: 16px; }
@media (min-width: 1024px) {
  .about-head { grid-template-columns: minmax(0, 1fr) auto; padding-top: 0; }
}

/* 小标签：强调色短线 + 宽字距小字（AIHOT 的 Kicker） */
.about-kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .3em; color: var(--accent);
}
.about-kicker::before {
  content: ''; display: block; width: 24px; height: 2px;
  border-radius: 999px; background: var(--accent);
}

.about h1 {
  margin: 20px 0 0;
  font-size: 34px; font-weight: 900; line-height: 1.18;
  letter-spacing: -.03em; color: var(--ink);
  text-wrap: balance;
}
.about h1 .hl { color: var(--accent); }
@media (min-width: 640px) { .about h1 { font-size: 46px; } }
@media (min-width: 1024px) { .about h1 { font-size: 56px; } }
@media (min-width: 1536px) { .about h1 { font-size: 64px; } }

.about-lead {
  margin: 20px 0 0; max-width: 36em;
  font-size: 15.5px; line-height: 1.85; color: var(--ink-3);
}
.about-lead .num { font-weight: 600; color: var(--ink); }
@media (min-width: 1024px) { .about-lead { font-size: 17px; } }

.about-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) { .about-cta { padding-bottom: 8px; } }

/* 胶囊按钮（AIHOT 的 buttonClass）：primary = 强调色底 + 黑字，secondary = 描边 */
.abtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.abtn:active { transform: scale(.98); }
.abtn-primary { background: var(--accent); color: var(--accent-contrast); }
.abtn-primary:hover { background: var(--accent-ink); }
.abtn-secondary {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
}
.abtn-secondary:hover { border-color: var(--ink-4); color: var(--ink); }

/* ---------- 信源河 ---------- */
.about-how { margin-top: 40px; }
@media (min-width: 1024px) { .about-how { margin-top: 56px; } }

.river { position: relative; height: 230px; }
@media (min-width: 640px) { .river { height: 300px; } }
@media (min-width: 1024px) { .river { height: 360px; } }
@media (min-width: 1536px) { .river { height: 420px; } }

.river-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 悬停提示：跟着指针走，坐标由脚本以 transform 给出 */
.river-label {
  position: absolute; left: 0; top: 0; z-index: 10;
  max-width: 240px; padding: 6px 10px;
  border-radius: var(--radius-control);
  background: var(--surface); box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  pointer-events: none;
}
.river-label .rl-t { font-size: 12.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.river-label .rl-n { margin-top: 2px; font-size: 11.5px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 报纸下方那条「最近精选」：桌面版绝对定位在河里，窄屏版落在河下面 */
.river-latest { display: block; text-decoration: none; }
.river-latest .rl-k {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--accent);
}
.river-latest .rl-b { display: block; margin-top: 6px; }
.river-latest .rl-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13.5px; font-weight: 600; line-height: 1.55; color: var(--ink);
  transition: color .15s;
}
.river-latest:hover .rl-title { color: var(--accent); }
.river-latest .rl-src {
  display: block; margin-top: 4px;
  font-size: 12px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.river-latest.is-fresh .rl-b { animation: about-fade-up 280ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes about-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* 桌面：固定在报纸右下（42% + 42px 与画布里报纸的纵向位置对齐） */
.river .river-latest { position: absolute; left: 75%; top: calc(42% + 42px); width: 25%; padding: 0 24px; }
.river-latest-list { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 16px; }

.river .river-latest { display: none; }
@media (min-width: 1024px) {
  .river .river-latest { display: block; }
  .river-latest-list { display: none; }
}
.river-latest[hidden] { display: none; }

/* ---------- 四个环节 ---------- */
.stages {
  display: grid; grid-template-columns: 1fr;
  margin: 16px 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 640px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; } }

.stage {
  padding: 24px 0; outline: none;
  border-top: 1px solid var(--line);
  transition: background-color .15s;
}
.stage:first-child { border-top: 0; }
.stage.is-focus { background: var(--accent-softer); }
@media (min-width: 640px) {
  .stage { border-top: 0; }
  .stage:nth-child(1) { padding-right: 24px; }
  .stage:nth-child(2) { border-left: 1px solid var(--line); padding-left: 24px; }
  .stage:nth-child(3) { border-top: 1px solid var(--line); padding-right: 24px; }
  .stage:nth-child(4) { border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding-left: 24px; }
}
@media (min-width: 1024px) {
  .stage:nth-child(1) { padding: 24px; }
  .stage:nth-child(2) { padding: 24px; border-top: 0; }
  .stage:nth-child(3) { padding: 24px; border-top: 0; border-left: 1px solid var(--line); }
  .stage:nth-child(4) { padding: 24px; border-top: 0; border-left: 1px solid var(--line); }
}

.stage-head { display: flex; align-items: baseline; gap: 10px; }
.stage-no {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent);
}
.stage-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.stage-fig { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; }
.stage-fig .n {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--ink);
}
.stage-fig .u { font-size: 13px; color: var(--ink-3); }
@media (min-width: 1024px) { .stage-fig .n { font-size: 36px; } }
.stage-text { margin: 12px 0 0; font-size: 14px; line-height: 1.8; color: var(--ink-3); }
.stage-note { margin: 12px 0 0; font-size: 12px; color: var(--ink-4); }

/* ---------- 版权段 ---------- */
.about-copy {
  margin: 64px 0 0; padding: 16px 20px;
  border-radius: var(--radius-card); background: var(--bg-sunk);
  font-size: 13px; line-height: 1.85; color: var(--ink-3);
}
.about-copy a { color: var(--accent); text-decoration: none; }
.about-copy a:hover { text-decoration: underline; }
