/* startups.css · 【金融 → 初创企业库】列表页 /startups + 详情页 /startups/<slug>
 *
 * 设计取向：编辑部数据台 —— 克制、信息密度高、单一强调色、深色优先。
 *   · 列表是主角：行 + 发丝分隔线，不做卡片网格、不堆阴影；
 *   · 单一强调色走 --sage-deep（与 filings.css 同源，深浅主题对比都达标），
 *     其余交给 --ink / --ink-soft / --ink-faint 三档文字色；
 *   · 数字（评分 / 融资 / 日期 / 进度）一律 tabular-nums，扫一列就能比较；
 *   · 颜色与主题全部走 core.css 的 CSS 变量，data-theme 切换自动跟随。
 * 类名前缀统一 stp-，避免与站内既有 fil- / co- 体系互相踩脚。
 */

:root {
  --stp-hair: 1px solid var(--line);
  --stp-tint: color-mix(in srgb, var(--ink) 3%, transparent);
  --stp-strip: color-mix(in srgb, var(--ink) 5%, transparent);
  --stp-accent: var(--sage-deep);
  --stp-accent-soft: color-mix(in srgb, var(--sage) 24%, transparent);
}

/* ============================ 页头 ============================ */

.stp-page-head { padding: 34px 0 22px; max-width: 78ch; }
.stp-eyebrow {
  margin: 0 0 9px;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.stp-page-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
}
.stp-page-lead {
  margin: 0 0 10px;
  font-size: .94rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.stp-count {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* ============================ 工具条 ============================ */

.stp-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 14px 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: var(--stp-hair);
  border-bottom: var(--stp-hair);
}
.stp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stp-field-label {
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.stp-search { flex: 1 1 240px; }
.stp-search input {
  width: 100%;
  font-family: var(--sans);
  font-size: .95rem;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--card);
  border: var(--stp-hair);
  border-radius: var(--r-2, 4px);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.stp-search input::placeholder { color: var(--ink-faint); }
.stp-search input:focus {
  outline: none;
  border-color: var(--stp-accent);
  box-shadow: 0 0 0 3px var(--stp-accent-soft);
}
.stp-select {
  font-family: var(--sans);
  font-size: .88rem;
  padding: 9px 12px;
  min-width: 8.5rem;
  color: var(--ink);
  background: var(--card);
  border: var(--stp-hair);
  border-radius: var(--r-2, 4px);
  transition: border-color .18s var(--ease);
}
.stp-select:focus { outline: none; border-color: var(--stp-accent); }
.stp-select:focus-visible { outline: 2px solid var(--stp-accent); outline-offset: 2px; }

.stp-reset {
  font-family: var(--sans);
  font-size: .78rem;
  padding: 8px 12px;
  border: var(--stp-hair);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.stp-reset:hover { color: var(--ink); border-color: var(--ink-faint); }
.stp-reset[hidden] { display: none; }

/* 右侧进度：今日新增 + 目标 + 一条细进度条 */
.stp-progress { margin-left: auto; min-width: 190px; }
.stp-progress-text {
  display: block;
  margin-bottom: 7px;
  font-size: .74rem;
  letter-spacing: .02em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.stp-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--stp-strip);
  overflow: hidden;
}
.stp-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--stp-accent);
  transition: width .9s var(--ease);
}

.stp-result {
  margin: 12px 2px 0;
  font-size: .78rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.stp-result:empty { display: none; }

.stp-hint {
  margin: 10px 2px 0;
  font-size: .76rem;
  line-height: 1.7;
  color: var(--ink-faint);
}

/* ============================ 主列表：表格 ============================ */

.stp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 4px;
  animation: stp-rise .5s var(--ease) both;
}
@keyframes stp-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.stp-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: .88rem;
}
.stp-table thead th {
  padding: 12px 10px 10px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  color: var(--ink-faint);
  border-bottom: var(--stp-hair);
}
.stp-table thead th:first-child { padding-left: 2px; }

.stp-row { transition: background .18s var(--ease), opacity .16s var(--ease); }
.stp-row > td {
  padding: 12px 10px;
  border-bottom: var(--stp-hair);
  vertical-align: baseline;
}
.stp-row > td:first-child { padding-left: 2px; }
.stp-row:hover, .stp-row:focus-within { background: var(--stp-tint); }

/* 名称格：名称 + 一句话 + 域名，整格可点 */
.stp-c-name { min-width: 17rem; }
.stp-c-name a {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: padding-left .2s var(--ease);
}
.stp-row:hover .stp-c-name a { padding-left: 7px; }
.stp-c-name a:focus-visible { outline: 2px solid var(--stp-accent); outline-offset: 3px; border-radius: 4px; }
.stp-name {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.stp-tagline {
  display: block;
  margin-top: 3px;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.stp-domain {
  display: block;
  margin-top: 3px;
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--ink-faint);
  word-break: break-all;
}

/* 赛道标签 */
.stp-c-tags { min-width: 8rem; }
.stp-tag {
  display: inline-block;
  margin: 0 4px 4px 0;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .03em;
  padding: 3px 9px;
  border: var(--stp-hair);
  border-radius: var(--r-1, 2px);
  color: var(--ink-soft);
  white-space: nowrap;
}

.stp-c-region, .stp-c-stage {
  white-space: nowrap;
  color: var(--ink-soft);
}
.stp-c-region { font-size: .82rem; }
.stp-c-stage {
  font-size: .74rem;
  letter-spacing: .04em;
}

.stp-c-funding {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.stp-c-score { white-space: nowrap; }
.stp-score-num {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stp-score-max { margin-left: 2px; font-size: .68rem; color: var(--ink-faint); }
.stp-na { font-family: var(--sans); font-size: .8rem; color: var(--ink-faint); }
.stp-c-date {
  white-space: nowrap;
  font-size: .8rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* 本地筛选：未命中的行先淡出再收起，重新命中时反着来 */
.stp-row.is-out { opacity: 0; }
.stp-row.is-hidden { display: none; }

.stp-state { padding: 28px 2px; font-size: .88rem; color: var(--ink-faint); }
.stp-empty { margin: 22px 0 0; font-size: .88rem; color: var(--ink-faint); }
.stp-empty[hidden] { display: none; }

/* ============================ 速览面板（hover 浮出，桌面端） ============================ */

.stp-peek {
  position: fixed;
  right: 22px;
  z-index: 60;
  width: 290px;
  padding: 16px 18px;
  border: var(--stp-hair);
  border-radius: var(--r-2, 4px);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.stp-peek.is-on { opacity: 1; transform: none; }
.stp-peek-name {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
}
.stp-peek-line {
  margin: 0 0 12px;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.stp-peek-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  margin: 0;
  padding-top: 12px;
  border-top: var(--stp-hair);
  font-size: .78rem;
}
.stp-peek-meta dt { color: var(--ink-faint); white-space: nowrap; }
.stp-peek-meta dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.stp-peek-reasons {
  margin: 10px 0 0;
  padding-left: 16px;
  font-size: .74rem;
  line-height: 1.7;
  color: var(--ink-faint);
}
@media (max-width: 1179px) { .stp-peek { display: none; } }

/* ============================ 两个榜 ============================ */

.stp-boards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 44px;
  margin-top: 40px;
}
.stp-board { padding-top: 16px; border-top: 2px solid var(--ink); }
.stp-board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.stp-board h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
}
.stp-board-note { font-size: .74rem; color: var(--ink-faint); }
.stp-board-list { list-style: none; margin: 10px 0 0; padding: 0; }
.stp-board-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: var(--stp-hair);
}
.stp-board-rank {
  flex: none;
  width: 1.5rem;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}
.stp-board-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
}
.stp-board-name a { color: inherit; text-decoration: none; }
.stp-board-name a:hover { color: var(--stp-accent); }
.stp-board-name a:focus-visible { outline: 2px solid var(--stp-accent); outline-offset: 2px; }
.stp-board-val {
  flex: none;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.stp-board-empty { margin: 12px 0 0; font-size: .8rem; color: var(--ink-faint); }
.stp-board-more {
  display: inline-block;
  margin-top: 10px;
  font-size: .78rem;
  color: var(--stp-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ============================ 表尾口径 ============================ */

.stp-foot {
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: var(--stp-hair);
  font-size: .78rem;
  line-height: 1.85;
  color: var(--ink-faint);
}
.stp-foot strong { font-weight: 600; color: var(--ink-soft); }
.stp-disclaimer {
  margin: 18px 0 0;
  font-size: .76rem;
  line-height: 1.7;
  color: var(--ink-faint);
}

/* ============================ 详情页：页头 ============================ */

.stp-head {
  padding: 30px 0 6px;
  animation: stp-rise .5s var(--ease) both;
}
.stp-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 600;
  line-height: 1.2;
}
.stp-title .stp-domain-inline {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .04em;
  padding: 4px 11px;
  border: var(--stp-hair);
  border-radius: 999px;
  color: var(--ink-soft);
}
.stp-oneliner {
  margin: 0 0 16px;
  max-width: 74ch;
  font-size: .98rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.stp-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.stp-tag-link {
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .05em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--stp-tint);
  color: var(--ink);
  text-decoration: none;
}
.stp-tag-link:hover { background: var(--stp-accent-soft); }

/* 关键指标横排 */
.stp-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0 30px;
  margin: 0;
  border-top: var(--stp-hair);
}
.stp-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: var(--stp-hair);
}
.stp-metric dt { font-size: .76rem; color: var(--ink-faint); white-space: nowrap; }
.stp-metric dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
}
.stp-metric dd.is-na { font-family: var(--sans); font-size: .8rem; font-weight: 400; color: var(--ink-faint); }

/* 关注按钮 */
.stp-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}
.stp-follow {
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .03em;
  padding: 9px 20px;
  border: 1px solid var(--stp-accent);
  border-radius: 999px;
  background: transparent;
  color: var(--stp-accent);
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.stp-follow:hover { background: var(--stp-accent-soft); }
.stp-follow:focus-visible { outline: 2px solid var(--stp-accent); outline-offset: 2px; }
.stp-follow[aria-pressed="true"] {
  background: var(--stp-accent-soft);
  color: var(--ink);
}
.stp-follow:disabled,
.stp-follow.is-disabled {
  border-color: var(--ink-faint);
  color: var(--ink-faint);
  background: transparent;
  cursor: default;
}
.stp-cta-note { font-size: .78rem; color: var(--ink-faint); }
.stp-cta-note a { color: var(--stp-accent); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ============================ 详情页：分区 ============================ */

.stp-sec { padding: 32px 0 26px; border-top: var(--stp-hair); }
.stp-sec[hidden] { display: none; }
.stp-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.stp-sec-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 600;
}
.stp-sec-note { font-size: .78rem; color: var(--ink-faint); }
.stp-slot-note {
  margin: 0;
  padding: 16px 18px;
  border: 1px dashed color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: var(--r-2, 4px);
  font-size: .84rem;
  line-height: 1.8;
  color: var(--ink-faint);
}

/* 8 个维度区块 */
.stp-block { padding: 22px 0 18px; border-top: var(--stp-hair); }
.stp-block:first-child { border-top: 0; padding-top: 2px; }
.stp-block h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
}
.stp-block-body {
  max-width: 76ch;
  font-size: .94rem;
  line-height: 1.95;
  color: var(--ink-soft);
}
.stp-block-body p { margin: 0 0 12px; }
.stp-block-body p:last-child { margin-bottom: 0; }
.stp-block-body a { color: var(--stp-accent); text-decoration: none; border-bottom: 1px solid currentColor; }

/* 来源与 AI 标注 */
.stp-note { margin: 0 0 12px; font-size: .82rem; line-height: 1.8; color: var(--ink-faint); }
.stp-src-list { list-style: none; margin: 0; padding: 0; border-top: var(--stp-hair); }
.stp-src-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: var(--stp-hair);
  font-size: .84rem;
}
.stp-src-label { flex: 1; min-width: 0; color: var(--ink-soft); }
.stp-src-list a { color: var(--stp-accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.stp-ai {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 0;
  font-size: .76rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.stp-links { display: flex; gap: 10px 16px; flex-wrap: wrap; margin: 16px 0 0; }
.stp-link {
  font-size: .84rem;
  color: var(--stp-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.stp-link:hover { opacity: .8; }

/* 相关项目 / 同赛道入口 */
.stp-rel { margin-bottom: 26px; }
.stp-rel:last-child { margin-bottom: 0; }
.stp-rel h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}
.stp-rel-note { font-size: .74rem; color: var(--ink-faint); }
.stp-table-compact { min-width: 640px; font-size: .84rem; }
.stp-table-compact .stp-c-name { min-width: 13rem; }
.stp-table-compact .stp-row > td { padding: 10px; }

/* ============================ 进入视口渐显（详情页 8 区块） ============================ */

.stp-block[data-stp-reveal] { opacity: 0; transform: translateY(14px); }
.stp-block[data-stp-reveal].stp-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

/* ============================ 响应式 ============================ */

@media (max-width: 860px) {
  .stp-progress { min-width: 0; margin-left: 0; flex: 1 1 100%; }
  .stp-progress-text { text-align: left; }
}
@media (max-width: 820px) {
  .stp-c-region, .stp-c-stage, .stp-c-date { display: none; }
  .stp-table { min-width: 640px; }
}
@media (max-width: 600px) {
  .stp-page-head { padding: 26px 0 18px; }
  /* 工具条横向滚动：窄屏下不折行，左右滑 */
  .stp-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 0;
  }
  .stp-toolbar > * { flex: 0 0 auto; }
  .stp-search { flex: 0 0 78vw; }
  .stp-select { min-width: 7rem; width: auto; }
  .stp-progress { flex: 0 0 auto; }
  .stp-c-tags { display: none; }
  .stp-table { min-width: 420px; }
  .stp-c-name { min-width: 12rem; }
  .stp-metrics { grid-template-columns: 1fr 1fr; }
  .stp-boards { gap: 0; }
  .stp-board { margin-top: 26px; }
}

/* 尊重「减少动态效果」偏好：不做位移与生长动画，进度条直接给终值 */
@media (prefers-reduced-motion: reduce) {
  .stp-head, .stp-table-wrap { animation: none; }
  .stp-bar > i { transition: none; }
  .stp-block[data-stp-reveal] { opacity: 1; transform: none; }
  .stp-block[data-stp-reveal].stp-in { transition: none; }
  .stp-row, .stp-c-name a { transition: none; }
}