/* ============================================================
   产线 Pipeline 页(/pipeline)专属样式
   —— 独立文件、全部 .pl-* 命名空间,只在 body.pl-page 下生效,
      不改 styles.css,首页 / field-notes 零影响。
   —— 颜色一律取站内变量:哑金 --mobi-gold 走流程线,墨黑 --ink 做节点卡。
   ============================================================ */

/* ── 头部:本页导航多一项(产线),窄屏收紧避免挤压 ───────────── */
.pl-page .desktop-nav a.is-active {
  color: var(--ink);
  background: rgba(251, 250, 247, 0.92);
}

/* ⚠️ 说明书那组在首页是 position:absolute + left:50% 硬钉在正中 —— 那能成立是因为
   **首页顶栏没有品牌块**,左边第一个在流里的元素就是 .desktop-nav,贴着左缘。
   产线页多一个「莫比宇宙作品集」品牌块,space-between 于是把左栏推到了中间,
   和绝对定位的说明书组正面重叠(实测 1280px 下压了 342px)。
   本页把它放回正常流,四段由 flex 自己分:品牌 | 左栏 | 说明书组 | 语言。
   代价是说明书组不再精确居中 —— 有品牌块占位时本来也居不中,不如让它别压字。 */
.pl-page .manual-nav {
  position: static;
  transform: none;
}

@media (max-width: 1080px) {
  .pl-page .site-header {
    gap: 10px;
  }
  /* 四段挤一行,先收品牌:只留那颗点,省出 ~120px 给说明书三颗 pill */
  .pl-page .brand-mark span:not(.brand-dot) {
    display: none;
  }
  .pl-page .brand-mark {
    padding: 0 10px;
  }
}

@media (max-width: 900px) {
  .pl-page .site-header {
    gap: 8px;
  }
  .pl-page .desktop-nav a {
    padding: 0 9px;
    font-size: 13px;
  }
  /* pill 只收内距,字号字重继续继承 .desktop-nav a —— 别在这里单独写 */
  .pl-page .nav-manual {
    padding: 0 10px;
  }
  .pl-page .manual-nav {
    gap: 6px;
  }
}

/* 品牌收成一颗点的规则已提到 1080px 那档(四段挤一行),这里不再重复 */
@media (max-width: 600px) {
  .pl-page .desktop-nav {
    gap: 2px;
    padding: 3px;
  }
  .pl-page .desktop-nav a {
    min-height: 28px;
    padding: 0 7px;
    font-size: 12px;
  }
}

/* ── 1 · Hero ──────────────────────────────────────────────── */
.pl-hero {
  padding-top: 150px;
  padding-bottom: 24px;
}

.pl-page-title {
  max-width: 860px;
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
}

.pl-subtitle {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  line-height: 1.6;
}

/* Hero 主 CTA:排在数据三格之前,保证首屏内就能点到。
   墨底纸字 = 全站最重的一颗按钮,这一页只给它和收口那颗。 */
.pl-hero-cta {
  display: flex;
  margin-top: 24px;
}

.pl-hero-cta:empty {
  display: none;
}

.pl-hero-btn {
  min-height: 50px;
  padding: 0 30px;
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.pl-hero-btn:hover {
  transform: translateY(-2px);
  background: var(--mobi-charcoal);
  border-color: var(--mobi-charcoal);
}

/* ── 区块小标题 ──────────────────────────────────────────────
   本页节奏比首页紧,不用全局 h2 那个 34-60px 的大字号,单独压一档。 */
.pl-section-heading {
  margin-bottom: 18px;
}

.pl-section-title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 850;
  line-height: 1.25;
}

body[data-lang="zh"] .pl-section-title,
body[data-lang="en"] .pl-section-title {
  max-width: 720px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
}

.pl-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(560px, 100%);
  margin: 26px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.pl-stat {
  padding: 16px 18px;
  background: rgba(251, 250, 247, 0.72);
}

.pl-stats dt {
  color: var(--ink);
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.pl-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.pl-error {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ── 2 · 流程接力图 ────────────────────────────────────────── */
/* 六节点横排时每张卡很窄,这一段比正文栏宽一点,少让中文在词中间断行 */
.pl-flow-section {
  width: min(1280px, calc(100% - 36px));
  padding-top: 28px;
}

.pl-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 节点卡:纸色 + 细线,和站内 fn-card / video-card 同一套语言。
   墨黑只留给序号与流程线上的哑金,整段维持 paper/ink/gold 的 80/15/5。
   ⚠️ 卡片本体是 <a>(整卡可点 → 工作台对应那一段),外面套一层 .pl-node-cell 做 flex 格子:
   入场动画的 --i 与 .pl-reveal 挂在格子上,链接自己只管卡片样式与 hover。 */
.pl-node-cell {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
}

.pl-node {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(251, 250, 247, 0.72);
  box-shadow: 0 1px 0 rgba(251, 250, 247, 0.72) inset;
  text-decoration: none;
}

.pl-node-no {
  color: var(--mobi-gold);
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.pl-node-tool {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 780;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* 第二行:这一环节的产出物。和环节名之间要拉开,别读成一句话。
   ⚠️ 六张卡横排时每张只有 ~190px,中文默认会在词中间断(「道具资/产 prompt」)。
   所以这里 **不能** 用 overflow-wrap: anywhere —— 断点由 json 里的 \n 手动指定,
   渲染走 escapeWithBreaks。加长文案时记得一起加断点。 */
.pl-node-out {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: break-word;
}

.pl-node-role {
  margin: 6px 0 0;
  color: var(--toro-honey);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pl-node-why {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* 连接线:哑金,线上小字「交棒」 */
.pl-relay {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 6px;
}

.pl-relay-line {
  flex: 1 1 auto;
  min-width: 8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 147, 90, 0), var(--mobi-gold), rgba(185, 147, 90, 0));
}

.pl-relay-label {
  flex: 0 0 auto;
  color: var(--mobi-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

/* 移动端转纵向:节点堆叠,连接线竖起来 */
@media (max-width: 1000px) {
  .pl-flow {
    flex-direction: column;
  }

  .pl-node-cell {
    flex: 0 0 auto;
  }

  .pl-relay {
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
  }

  .pl-relay-line {
    width: 1px;
    min-width: 0;
    min-height: 12px;
    height: auto;
    flex: 1 1 auto;
    background: linear-gradient(180deg, rgba(185, 147, 90, 0), var(--mobi-gold), rgba(185, 147, 90, 0));
  }

  .pl-relay-label {
    letter-spacing: 0.1em;
  }
}

/* ── 3 · 成品陈列 ──────────────────────────────────────────── */
.pl-works-section {
  padding-top: 28px;
}

.pl-works {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pl-work {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.72);
  transition: transform 180ms ease, border-color 180ms ease;
}

.pl-work.is-ready:hover {
  transform: translateY(-1px);
  border-color: rgba(185, 147, 90, 0.45);
}

/* 封面位:没有图时是一块哑金渐变占位 */
.pl-work-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(185, 147, 90, 0.22), rgba(214, 190, 138, 0.1) 55%, rgba(17, 19, 22, 0.06));
}

.pl-work-cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pl-work-title {
  margin-top: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.pl-work.is-placeholder .pl-work-title {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 1000px) {
  .pl-works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pl-works {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ── 4 · 对比行 ────────────────────────────────────────────── */
.pl-compare-section {
  padding-top: 28px;
}

.pl-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pl-compare-col {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 0 8px 8px 0;
  background: rgba(251, 250, 247, 0.72);
}

.pl-compare-col.pl-compare-pipeline {
  border-left-color: var(--mobi-gold);
  background: rgba(185, 147, 90, 0.05);
}

.pl-compare-label {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.pl-compare-col.pl-compare-pipeline .pl-compare-label {
  color: var(--mobi-gold);
}

.pl-compare-detail {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .pl-compare {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ── 5 · 收口 ──────────────────────────────────────────────── */
.pl-cta-section {
  padding-top: 28px;
}

.pl-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.pl-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pl-cta-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .pl-cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .pl-btn {
    width: 100%;
  }
}

/* ── 页脚 ──────────────────────────────────────────────────── */
.pl-footer {
  margin-top: 8px;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .pl-hero {
    padding-top: 120px;
  }
}

@media (max-width: 767px) {
  .pl-hero {
    padding-top: 96px;
    padding-bottom: 8px;
  }

  .pl-flow-section,
  .pl-works-section,
  .pl-compare-section,
  .pl-cta-section {
    padding-top: 16px;
  }

  .pl-closing-section {
    padding-top: 26px;
  }

  .pl-section-heading {
    margin-bottom: 14px;
  }

  .pl-stats {
    width: 100%;
  }

  .pl-stat {
    padding: 14px 14px;
  }

  .pl-stats dt {
    font-size: 22px;
  }
}

/* ── 访问码:预览页低调一行 + 完整页/工作台口令闸 ───────────────
   只用站内现有色值变量,不新增任何颜色。措辞里不出现购买 / 付费。 */
.pl-unlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.pl-unlock-toggle {
  padding: 4px 2px;
  border: 0;
  border-bottom: 1px dashed var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.6;
}

.pl-unlock-toggle:hover {
  color: var(--mobi-gold);
  border-bottom-color: rgba(185, 147, 90, 0.6);
}

.pl-gate-section { padding-top: 8px; }
.pl-gate { display: flex; justify-content: center; }
.pl-code-form { width: min(420px, 100%); }
.pl-code-row { display: flex; flex-wrap: wrap; gap: 8px; }

.pl-code-input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.pl-code-input:focus { outline: none; border-color: var(--mobi-gold); }

.pl-code-submit,
.pl-code-cancel {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
  border-color: rgba(185, 147, 90, 0.6);
  font-size: 13px;
}

.pl-code-submit:hover,
.pl-code-cancel:hover { background: rgba(185, 147, 90, 0.1); border-color: var(--mobi-gold); }
.pl-code-cancel { border-color: var(--line); }
.pl-code-submit[disabled] { opacity: 0.6; cursor: default; }

.pl-code-msg { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.pl-code-msg.is-error { color: var(--toro-honey); }

/* ── 产线工作台(owner-only,私有工具:样式从简) ───────────── */
.st-section { padding-top: 8px; }

.st-panel {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 250, 247, 0.72);
}

.st-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.st-input-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.st-select,
.st-input,
.st-textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.st-textarea { min-height: auto; resize: vertical; line-height: 1.6; }
.st-select:focus,
.st-input:focus,
.st-textarea:focus { outline: none; border-color: var(--mobi-gold); }

.st-line-row { display: grid; }

.st-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.st-run {
  color: var(--ink);
  background: transparent;
  border-color: rgba(185, 147, 90, 0.6);
}
.st-run:hover { background: rgba(185, 147, 90, 0.1); border-color: var(--mobi-gold); }

.st-auto {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.st-hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.st-hint.is-error { color: var(--toro-honey); }

.st-segments { display: grid; gap: 12px; margin-top: 18px; }

.st-seg {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 250, 247, 0.72);
  overflow: hidden;
}

.st-seg[data-state="running"] { border-color: rgba(185, 147, 90, 0.55); }
.st-seg[data-state="done"] { border-color: rgba(185, 147, 90, 0.35); }
.st-seg[data-state="error"] { border-color: rgba(184, 138, 99, 0.6); }

.st-seg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
}

.st-seg-no {
  color: var(--mobi-gold);
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.st-seg-title { margin: 0; font-size: 15px; font-weight: 760; }

.st-seg-state {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.st-seg-copy,
.st-seg-retry {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12.5px;
}

.st-seg-copy:hover,
.st-seg-retry:hover { border-color: var(--mobi-gold); background: rgba(185, 147, 90, 0.08); }

.st-seg-body {
  max-height: 460px;
  margin: 0;
  padding: 0 18px 16px;
  overflow: auto;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.st-seg-next { padding: 0 18px 16px; }

.st-next {
  min-height: 38px;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
  border-color: rgba(185, 147, 90, 0.6);
  font-size: 13px;
}
.st-next:hover { background: rgba(185, 147, 90, 0.1); border-color: var(--mobi-gold); }

.st-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.st-download {
  color: var(--ink);
  background: transparent;
  border-color: rgba(185, 147, 90, 0.6);
}
.st-download:hover { background: rgba(185, 147, 90, 0.1); border-color: var(--mobi-gold); }

.st-usage { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

@media (max-width: 560px) {
  .st-input-grid { grid-template-columns: 1fr; }
  .st-panel { padding: 16px; }
  .st-seg-head { flex-wrap: wrap; }
  .st-seg-state { margin-left: 0; }
}

/* ── 工作台面板(标签页)──────────────────────────────────────
   六段一段一个标签,点标签切面板;标签右侧小圆点显示该段状态。 */
.st-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 250, 247, 0.72);
}

.st-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
}

.st-tab:hover { background: rgba(185, 147, 90, 0.08); color: var(--ink); }

.st-tab[aria-selected="true"] {
  color: var(--ink);
  background: rgba(185, 147, 90, 0.14);
}

.st-tab-no {
  color: var(--mobi-gold);
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.st-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.st-tab[data-state="running"] .st-tab-dot { background: var(--toro-champagne); }
.st-tab[data-state="done"] .st-tab-dot { background: var(--mobi-gold); }
.st-tab[data-state="error"] .st-tab-dot { background: var(--toro-honey); }

.st-panel-body {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 250, 247, 0.72);
  overflow: hidden;
}

.st-panel-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
}

.st-panel-head .st-seg-state { margin-right: auto; }

.st-panel-head .st-next {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

@media (max-width: 560px) {
  .st-tab { padding: 8px 10px; font-size: 12.5px; }
  .st-panel-head { gap: 8px; }
  .st-panel-head .st-seg-state { margin-right: 0; width: 100%; }
}

/* ── 工作台付费墙(dormant:即将上线)──────────────────────────
   访客只看到这一屏,页面上没有输入口令的地方。只用站内既有色值。 */
.st-wall-section { padding-top: 8px; }

.st-wall {
  max-width: 640px;
  padding: 30px 32px;
  border: 1px solid rgba(185, 147, 90, 0.45);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(185, 147, 90, 0.1), rgba(185, 147, 90, 0.03));
}

.st-wall-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(185, 147, 90, 0.55);
  border-radius: 999px;
  color: var(--mobi-gold);
  font-size: 12.5px;
  font-weight: 760;
  letter-spacing: 0.06em;
}

.st-wall-title {
  margin: 14px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.25;
}

.st-wall-desc {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.st-wall-form { margin-top: 22px; }
.st-wall-form .st-label { margin-bottom: 8px; }

@media (max-width: 560px) {
  .st-wall { padding: 22px 18px; }
}

/* 站长入口:只在带 mobi_owner 标记的浏览器里由 JS 插入,访客 DOM 里没有这一段 */
.pl-owner-entry-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.pl-owner-entry {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px dashed rgba(185, 147, 90, 0.6);
  border-radius: 8px;
  color: var(--mobi-gold);
  font-size: 13.5px;
  font-weight: 700;
}

.pl-owner-entry:hover {
  border-style: solid;
  background: rgba(185, 147, 90, 0.08);
}

/* ── 收口:眉标 + 一颗按钮 ───────────────────────────────────────
   2026-07-27 前这里是一张哑金大卡(标题 / 描述 / 六条清单 / 按钮 / 小字)。
   六条清单已经拆进上面六张环节卡的第二行,一页里陈列两次是冗余 —— Estelle 指定删掉整块。
   现在只留一条收口带:不加边框、不加底色,靠居中和留白站住,别再把它做回一个区块。 */
.pl-closing-section { padding-top: 36px; }

.pl-closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pl-closing-eyebrow {
  margin: 0 0 14px;
  color: var(--mobi-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.pl-closing-cta {
  min-height: 50px;
  padding: 0 30px;
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.pl-closing-cta:hover {
  background: var(--mobi-charcoal);
  border-color: var(--mobi-charcoal);
}

.pl-closing-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 560px) {
  .pl-closing-cta { width: 100%; }
}

/* ============================================================
   页面动效 —— 纯 CSS/JS,零依赖。
   全部包在 prefers-reduced-motion 之外:系统开了「减弱动态效果」就整体关闭。
   ============================================================ */

/* 入场:滚到视口内才播,只播一次(JS 加 .is-in) */
.pl-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms cubic-bezier(.22,.61,.36,1), transform 620ms cubic-bezier(.22,.61,.36,1);
}
.pl-reveal.is-in { opacity: 1; transform: none; }

/* 六节点依次亮起(同排错开,像接力一样一个个接上)
   ⚠️ --i 与 .pl-reveal 都在 .pl-node-cell 上,延迟要挂格子不能挂卡片 */
.pl-flow .pl-node-cell { transition-delay: calc(var(--i, 0) * 90ms); }
.pl-flow .pl-relay { transition-delay: calc(var(--i, 0) * 90ms + 45ms); }

/* 交棒线:从中间往两端画出来 */
.pl-relay-line {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 520ms cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--i, 0) * 90ms + 45ms);
}
.pl-relay.is-in .pl-relay-line { transform: scaleX(1); }

@media (max-width: 1000px) {
  .pl-relay-line { transform: scaleY(0); }
  .pl-relay.is-in .pl-relay-line { transform: scaleY(1); }
}

/* 节点卡:悬停轻微抬起,哑金描边亮一下 */
.pl-node {
  transition:
    opacity 620ms cubic-bezier(.22,.61,.36,1),
    transform 620ms cubic-bezier(.22,.61,.36,1),
    border-color 240ms ease,
    box-shadow 240ms ease;
}
.pl-node-cell.is-in .pl-node:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 147, 90, 0.55);
  box-shadow: 0 12px 28px rgba(17, 19, 22, 0.08);
}

/* 数据点:数字滚动时用等宽,免得位数变化把布局撑来撑去 */
.pl-stats dt { font-variant-numeric: tabular-nums; }

/* 收口按钮:进入视口后来一次呼吸,把眼睛拉过去,然后停住不再骚扰。
   Hero 那颗不做呼吸 —— 它一进页面就在眼前,再动就是聒噪。 */
@keyframes pl-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185, 147, 90, 0); }
  35%      { box-shadow: 0 0 0 10px rgba(185, 147, 90, 0.18); }
  70%      { box-shadow: 0 0 0 18px rgba(185, 147, 90, 0); }
}
.pl-closing-inner.is-in .pl-closing-cta { animation: pl-pulse 1600ms ease-out 500ms 2; }

.pl-closing-cta {
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}
.pl-closing-cta:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .pl-reveal { opacity: 1; transform: none; transition: none; }
  .pl-relay-line { transform: none !important; transition: none; }
  .pl-closing-inner.is-in .pl-closing-cta { animation: none; }
  .pl-node-cell.is-in .pl-node:hover { transform: none; }
  .pl-hero-btn:hover { transform: none; }
}

/* ── Hero 背景视频 ────────────────────────────────────────────
   视频是暗色木桌,正文是墨黑字——中间必须垫一层纸色 scrim,
   否则字压在暗背景上读不清。scrim 之后视频只作为一层会动的质感,
   不抢戏;这也守住 VI 的 paper 主导(80/15/5)。 */
.pl-hero-wrap {
  position: relative;
  isolation: isolate;
}

.pl-hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 原片偏暗偏黄,提亮降饱和后更贴纸色底 */
  filter: brightness(1.18) saturate(0.72);
}

.pl-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(251, 250, 247, 0.9) 0%, rgba(251, 250, 247, 0.82) 55%, var(--paper) 100%);
}

.pl-hero-wrap .pl-hero { position: relative; }

/* 移动端不放视频:省流量、省电,直接用 poster 静态图 */
@media (max-width: 767px) {
  .pl-hero-video { display: none; }
  .pl-hero-wrap {
    background: url("/assets/pipeline-hero-poster.jpg") center / cover no-repeat;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pl-hero-video { display: none; }
  .pl-hero-wrap {
    background: url("/assets/pipeline-hero-poster.jpg") center / cover no-repeat;
  }
}

/* ── 分段内容:说明文字 + 逐条 prompt 卡 ─────────────────────────
   代码框 = 一条完整 prompt,是用户真正复制的单位,所以各自成卡各自一个键。 */
.st-seg-body {
  max-height: 620px;
  padding: 4px 18px 18px;
  overflow: auto;
}

.st-md {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.st-block {
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.st-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(185, 147, 90, 0.06);
}

.st-block-no {
  margin-right: auto;
  color: var(--mobi-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.st-block-copy {
  padding: 5px 14px;
  border: 1px solid rgba(185, 147, 90, 0.55);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
}

.st-block-copy:hover { background: rgba(185, 147, 90, 0.12); border-color: var(--mobi-gold); }
.st-block-copy.is-done { color: var(--mobi-gold); border-color: var(--mobi-gold); }

.st-block-body {
  margin: 0;
  padding: 12px 14px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.st-count {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.st-count.is-over { color: var(--toro-honey); font-weight: 700; }

/* 字段下面的一句说明:用字段本身教会用户规矩,比另开文档管用 */
.st-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.st-req {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(185, 147, 90, 0.14);
  color: var(--mobi-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

/* ── 第一问 + 参考图上传 ─────────────────────────────────────── */
.st-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.st-choice label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  font-size: 14px;
}

.st-choice label:has(input:checked) {
  border-color: var(--mobi-gold);
  background: rgba(185, 147, 90, 0.08);
  font-weight: 700;
}

.st-file {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px dashed rgba(185, 147, 90, 0.55);
  border-radius: 8px;
  background: rgba(185, 147, 90, 0.04);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.st-ip-list {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
}

/* 一张参考图一张卡:缩略图 + 可改的名字 + 它自己的识别结果。
   不合并成一个大框——那样看不出哪段描述对应哪张图,改起来也容易串。 */
.st-ip-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  overflow: hidden;
}

.st-ip-card.is-error { border-color: rgba(184, 138, 99, 0.6); }

.st-ip-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.st-ip-thumb {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 7px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: rgba(185, 147, 90, 0.06);
}

.st-ip-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin-right: auto;
}

.st-ip-name {
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.st-ip-name:hover { border-color: var(--line); }
.st-ip-name:focus { outline: none; border-color: var(--mobi-gold); background: var(--paper); }

.st-ip-state { padding-left: 7px; color: var(--muted); font-size: 12.5px; }
.st-ip-card.is-error .st-ip-state { color: var(--toro-honey); }

.st-ip-del {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.st-ip-del:hover { border-color: var(--toro-honey); color: var(--toro-honey); }

.st-ip-text {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.6);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  resize: vertical;
}

.st-ip-text:focus { outline: none; background: var(--paper); }

/* ── 生成进度:紧贴按钮下方 ───────────────────────────────────
   点完到第一段出结果有 1-3 分钟。这段时间必须一直有东西在动,
   否则用户会以为卡死——实际发生过。计时器每秒跳一次就是最好的「还活着」信号。 */
.st-progress {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(185, 147, 90, 0.45);
  border-radius: 9px;
  background: rgba(185, 147, 90, 0.06);
}

.st-progress-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.st-progress-text {
  margin-right: auto;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.st-progress-time {
  color: var(--mobi-gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.st-spinner {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(185, 147, 90, 0.3);
  border-top-color: var(--mobi-gold);
  border-radius: 50%;
  animation: st-spin 800ms linear infinite;
}

@keyframes st-spin { to { transform: rotate(360deg); } }

.st-progress-bar {
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(185, 147, 90, 0.16);
  overflow: hidden;
}

.st-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--mobi-gold);
  transition: width 400ms ease;
}

.st-progress-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.st-run[disabled] { opacity: 0.65; cursor: default; }
.st-run[disabled]:hover { background: transparent; }

/* 标签上正在跑的那一段:小圆点也跟着闪,余光里能看见进度 */
.st-tab[data-state="running"] .st-tab-dot { animation: st-blink 1s ease-in-out infinite; }
@keyframes st-blink { 50% { opacity: 0.25; } }

@media (prefers-reduced-motion: reduce) {
  .st-spinner { animation: none; }
  .st-tab[data-state="running"] .st-tab-dot { animation: none; }
}

.st-skip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.st-tab[data-state="skipped"] { opacity: 0.5; }
.st-tab[data-state="skipped"] .st-tab-dot { background: transparent; border: 1px dashed var(--line); }

/* 「继续生成」:只在这一段被截断时出现,样式比「重新生成」更主动 */
.st-seg-cont {
  padding: 5px 13px;
  border: 1px solid var(--mobi-gold);
  border-radius: 6px;
  background: rgba(185, 147, 90, 0.12);
  color: var(--ink);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
}

.st-seg-cont:hover { background: rgba(185, 147, 90, 0.22); }

.st-ip-kind {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.st-ip-kind:focus { outline: none; border-color: var(--mobi-gold); }

@media (max-width: 560px) {
  .st-ip-head { flex-wrap: wrap; }
  .st-ip-kind { order: 3; width: 100%; }
}

/* ── 历史记录 ────────────────────────────────────────────────
   一次运行十几分钟、几块到十几块钱,页面一关就没了(2026-07-26 丢过一次)。
   每段跑完自动落盘,列在输入区上方随时能打开或重新下载。 */
.st-history {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.st-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.st-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.st-history-when {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* 标题吃掉剩余宽度;min-width:0 是让长标题能被 ellipsis 截住而不是把行撑开 */
.st-history-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-history-count {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.st-history-btn {
  flex: none;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}

.st-history-btn:hover { border-color: var(--mobi-gold); color: var(--mobi-gold); }
.st-history-btn.is-danger:hover { border-color: #b4544f; color: #b4544f; }

@media (max-width: 560px) {
  .st-history-row { flex-wrap: wrap; }
  .st-history-title { flex-basis: 100%; order: -1; white-space: normal; }
}

/* 参考图张数:正常时只是个灰标,超上限整张卡变警示色 */
.st-block-refs {
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.st-block.is-over-refs { border-color: #b4544f; }
.st-block.is-over-refs .st-block-refs { color: #b4544f; }

.st-block-err {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(180, 84, 79, 0.07);
  color: #b4544f;
  font-size: 12.5px;
  line-height: 1.6;
}

/* 警告层:比报错弱一档,可以点「确认放行」。用琥珀色,和报错的砖红分开 */
.st-block.is-warn { border-color: #b98a3e; }

.st-block-warn {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(185, 138, 62, 0.09);
  color: #8a6526;
  font-size: 12.5px;
  line-height: 1.6;
}

.st-block-ack {
  margin-left: 8px;
  padding: 2px 10px;
  border: 1px solid #b98a3e;
  border-radius: 999px;
  background: transparent;
  color: #8a6526;
  font-size: 12px;
  cursor: pointer;
}

.st-block-ack:hover { background: rgba(185, 138, 62, 0.16); }
