/* ============================================================
   act2.css — high-fidelity overrides for Act 2 (owned by Act2 agent)
   loads after acts.css → can override. accent = var(--ch) ≈ #0e9f8e
   transparent containers (aurora shows through); cards = glass / solid white.
   ============================================================ */

/* shared scaffold: transparent, centered, breathing room.
   Self-contained: do NOT rely on legacy acts.css Act-2 blocks.
   The scene root fills its .screen and lays out as a flex column. */
.paradigm, .whynow, .market {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  gap: clamp(6px, 1.2vh, 16px);
}
.pd-head, .wn-head, .mk-head {
  flex: none;
  text-align: center;
  margin: 0;
}
.pd-head .h-title, .wn-head .h-title, .mk-head .h-title { margin: clamp(4px, 0.8vh, 8px) 0 0; }
.mk-head .mk-sub { margin: clamp(6px, 1.2vh, 12px) auto 0; max-width: 760px; font-size: var(--t-lead); line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
.mk-head .mk-sub b { color: var(--ink); font-weight: 600; }

/* the chapter accent drives the kicker on these screens */
.paradigm .kicker, .whynow .kicker, .market .kicker { color: var(--ch); }
.paradigm .kicker::before, .whynow .kicker::before, .market .kicker::before { background: var(--ch); }

/* staggered card entrance used across the act */
@keyframes act2Rise {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes act2DrawLine { to { stroke-dashoffset: 0; } }

/* ============================================================
   屏 1 · 范式转移 — 执行过程退到幕后 → 重心移到结果 → 需求/路由/交付 竖向流水线
   ============================================================ */
.pd-stage2 {
  flex: 1; min-height: 0; width: 100%;
  max-width: min(640px, 94%);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: clamp(12px, 2.2vh, 22px);
}

/* 迁移状态标签(.pd-stagelabel/.pdl)已移除：旧/新 pill 的左右互换本身带「替换」语义，
   与「焦点下移、重心转移」的叙事冲突，故去掉。 */

/* —— 面板：容纳单条竖向流水线。预留「满管线」高度并顶对齐：
   节点依次向下出场，顶端固定不动，避免内容高度变化引起的「重新居中→跳动」。 —— */
.pd-panel {
  position: relative; width: 100%;
  min-height: clamp(460px, 66vh, 512px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: clamp(4px, 1.6vh, 16px);
}

/* ============================================================
   ① 竖向流水线：收到需求 → 智能路由(展开分析→收起·主角) → 执行(默默滚动) → 完整结果
   自动播放：phase 0 需求+路由分析；phase 1 路由收起+执行滚动；phase 2 结果交付。
   ============================================================ */
.pp-flow {
  width: 100%; max-width: 416px;
  display: flex; flex-direction: column; align-items: stretch; gap: 7px;
}
/* 转圈 spinner（路由分析头部复用） */
.ppl-spin {
  width: 15px; height: 15px; flex: none; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ink-4) 32%, transparent);
  border-top-color: var(--ch); animation: ppSpin .9s linear infinite;
}
@keyframes ppSpin { to { transform: rotate(360deg); } }

/* 揭示节奏：需求 / 路由 入场即播；执行、结果按相位出现 */
.ppf-step { opacity: 0; }
.s-req   { animation: act2Rise .5s var(--ease-reveal) .15s both; }
.s-route { animation: act2Rise .5s var(--ease-reveal) .45s both; }

/* 连接线：l1 入场画出；l2(→执行) phase1；l3(→结果) phase2 */
.ppf-link {
  align-self: center; width: 1px; height: 14px; transform-origin: top;
  background: linear-gradient(var(--ink-4), transparent); opacity: .5;
}
.l1 { transform: scaleY(0); animation: linkGrow .35s var(--ease-reveal) .4s both; }
.l2, .l3 { display: none; transform: scaleY(0); }
.pd-stage2:is(.ph-1, .ph-2) .l2 { display: block; animation: linkGrow .35s var(--ease-reveal) .45s both; }
.pd-stage2.ph-2 .l3 { display: block; animation: linkGrow .35s var(--ease-reveal) .45s both; }
@keyframes linkGrow { to { transform: scaleY(1); } }

/* 收到需求 —— 用户的一句话(右对齐气泡) */
.s-req { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.ppf-cap { font-size: var(--t-micro); font-weight: 600; color: var(--ink-4); }
.ppf-req {
  font-size: var(--t-small); color: #fff; line-height: 1.4;
  padding: 9px 15px; border-radius: var(--r-lg) var(--r-lg) 5px var(--r-lg);
  background: var(--accent);
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--ch) 50%, transparent);
}

/* ============================================================
   ② 智能路由 —— 这屏主角：展开「分析候选 Agent」→ 收起「已选中」
   ============================================================ */
.s-route { display: flex; flex-direction: column; align-items: stretch; }

/* 展开分析卡：phase 0 显示；phase 1 起收起为 0 高度 */
.rt-analyze {
  overflow: hidden; max-height: 300px;
  background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--ch) 30%, var(--line));
  border-radius: var(--r-lg); padding: 12px 14px;
  box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--ch) 50%, transparent), var(--sh-1);
  transition: max-height .5s var(--ease-ui), opacity .4s var(--ease-reveal),
              padding .45s var(--ease-ui), border-color .4s, box-shadow .4s;
}
.pd-stage2:is(.ph-1, .ph-2) .rt-analyze {
  max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0;
  border-color: transparent; box-shadow: none;
}
.rt-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.rt-head-t { font-size: var(--t-small); font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; }
.rt-cands { display: flex; flex-direction: column; gap: 7px; }
.rt-cand {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 9px; border-radius: var(--r-card);
  background: var(--surface-2); border: 1px solid transparent;
  opacity: 0; animation: rtCandIn .45s var(--ease-reveal) both;
  animation-delay: calc(.55s + var(--ci) * .28s);
}
@keyframes rtCandIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rt-cand .btile { flex: none; }
.rt-cand-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rt-cand-name { font-size: var(--t-caption); font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.rt-cand-note { font-size: var(--t-micro); color: var(--ink-4); }
.rt-cand-bar { flex: none; width: 54px; height: 5px; border-radius: var(--r-pill); background: rgba(120,120,128,.16); overflow: hidden; }
.rt-cand-bar i {
  display: block; height: 100%; width: 0; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--ink-4) 50%, transparent);
  animation: rtBar .6s var(--ease-reveal) both; animation-delay: calc(.75s + var(--ci) * .28s);
}
@keyframes rtBar { to { width: var(--w); } }
.rt-cand-pct { flex: none; width: 22px; text-align: right; font-size: var(--t-micro); font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rt-cand.pick { background: color-mix(in srgb, var(--ch) 9%, transparent); border-color: color-mix(in srgb, var(--ch) 32%, transparent); }
.rt-cand.pick .rt-cand-bar i { background: linear-gradient(90deg, color-mix(in srgb, var(--ch) 60%, transparent), var(--ch)); }
/* 「选中」徽标：所有行都预留固定宽度槽位(未命中行隐藏内容但占位)，
   保证各行的进度条/分数纵向对齐，命中行不会把分数挤到左边 */
.rt-cand-pick {
  flex: none; width: 38px; text-align: center;
  font-size: var(--t-micro); font-weight: 700; color: #fff;
  padding: 2px 0; border-radius: var(--r-pill); background: var(--accent);
  opacity: 0; animation: rtPick .4s var(--ease-reveal) 1.55s both;
}
.rt-cand:not(.pick) .rt-cand-pick { visibility: hidden; animation: none; }
@keyframes rtPick { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }

/* 收起态「已选中」(同一 .ppf-route 元素加 .rt-collapsed)：phase 1 起展开，保留「重」的视觉权重 */
.ppf-route {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: var(--r-lg);
  background: var(--surface);
  border: 1.5px solid color-mix(in srgb, var(--ch) 38%, var(--line));
  box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--ch) 55%, transparent), var(--sh-1);
}
.rt-collapsed {
  overflow: hidden; max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0;
  transition: max-height .5s var(--ease-ui) .12s, opacity .4s var(--ease-reveal) .18s, padding .45s var(--ease-ui) .12s;
}
.pd-stage2:is(.ph-1, .ph-2) .rt-collapsed { max-height: 90px; opacity: 1; padding-top: 13px; padding-bottom: 13px; }
.ppf-route-ic {
  width: 34px; height: 34px; flex: none; border-radius: var(--r-chip);
  display: grid; place-items: center; color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--ch) 60%, transparent);
}
.ppf-route-ic .pp-ic { width: 18px; height: 18px; }
.ppf-route-t { flex: 1; font-size: var(--t-base); font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.ppf-route-tags { display: inline-flex; gap: 5px; }
.ppf-route-tags i {
  font-style: normal; font-size: var(--t-micro); font-weight: 600; color: var(--ch);
  padding: 2px 9px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ch) 12%, transparent);
}

/* ============================================================
   ③ 执行过程 —— 运行(spinner + 一行滚动) → 完成(✓ + 摘要)
   phase 1 出现并运行(等路由收起完成后延迟出场)；phase 2 切换为「执行完成」。
   ============================================================ */
.s-exec {
  display: none; align-items: center; gap: 9px;
  padding: 8px 13px; border-radius: var(--r-card);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  transition: background .4s var(--ease-reveal), border-color .4s var(--ease-reveal);
}
/* 出现：路由收起完成后(.55s 延迟)再出场，严格顺序、不抢拍 */
.pd-stage2:is(.ph-1, .ph-2) .s-exec { display: flex; animation: act2Rise .45s var(--ease-reveal) .55s both; }
/* 完成态：淡绿描边/底 */
.pd-stage2.ph-2 .s-exec {
  background: color-mix(in srgb, var(--pos) 7%, transparent);
  border-color: color-mix(in srgb, var(--pos) 28%, transparent);
}

/* 指示器（取代原小圆点）：运行=spinner，完成=✓ */
.ex-ind { width: 18px; height: 18px; flex: none; position: relative; display: grid; place-items: center; }
.ex-spin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ink-4) 32%, transparent);
  border-top-color: var(--ch); animation: ppSpin .9s linear infinite;
}
/* 仅作动画/定位容器；圆形与白勾由内部 .done-tick 统一绘制 */
.ex-check {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.6);
  transition: opacity .35s var(--ease-reveal), transform .35s var(--ease-reveal);
}
.pd-stage2.ph-2 .ex-spin { display: none; }
.pd-stage2.ph-2 .ex-check { opacity: 1; transform: none; }

.ex-label { flex: none; font-size: var(--t-caption); font-weight: 600; color: var(--ink-3); }
.ex-label-ok { color: var(--pos); display: none; }
.pd-stage2.ph-2 .ex-label-run { display: none; }
.pd-stage2.ph-2 .ex-label-ok { display: inline; }

/* 运行时滚动文案；完成后隐藏，露出完成摘要 */
.ex-done-meta { flex: 1; font-size: var(--t-micro); color: var(--ink-4); font-variant-numeric: tabular-nums; display: none; }
.pd-stage2.ph-2 .ex-roll { display: none; }
.pd-stage2.ph-2 .ex-done-meta { display: block; }
.ex-roll { flex: 1; min-width: 0; font-size: var(--t-caption); height: 1.6em; overflow: hidden; position: relative; }
.ex-roll-track { display: flex; flex-direction: column; animation: exRoll 7.2s var(--ease-reveal) infinite; }
.ex-roll-line {
  height: 1.6em; line-height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: var(--t-caption); color: var(--ink-4);
}
@keyframes exRoll {
  0%,20%  { transform: translateY(0); }
  25%,45% { transform: translateY(-1.6em); }
  50%,70% { transform: translateY(-3.2em); }
  75%,95% { transform: translateY(-4.8em); }
  100%    { transform: translateY(-6.4em); }
}

/* ============================================================
   ④ 完整结果 —— 主角卡(phase 2 出现；display 切换，无 overflow 裁切阴影)
   ============================================================ */
.s-deliver { display: none; }
/* 结果在「执行完成(✓)」之后(.5s 延迟)才落定，严格顺序 */
.pd-stage2.ph-2 .s-deliver { display: block; animation: act2Rise .55s var(--ease-reveal) .5s both; }

/* 交付物 —— 一份成品级竞品对比（体现难度 + 高质量结果） */
.dv-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 15px 17px 14px; box-shadow: var(--sh-2);
}
.pd-stage2.ph-2 .s-deliver .dv-card {
  border-color: color-mix(in srgb, var(--pos) 34%, transparent);
  box-shadow: var(--sh-3);
  animation: ppLand .7s var(--ease-reveal) .55s both;
}
@keyframes ppLand { 0% { transform: scale(.965); } 55% { transform: scale(1.015); } 100% { transform: scale(1); } }
.dv-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.dv-ic {
  width: 32px; height: 32px; flex: none; border-radius: var(--r-chip);
  display: grid; place-items: center; color: var(--pos);
  background: color-mix(in srgb, var(--pos) 12%, transparent);
}
.dv-ic .pp-ic { width: 17px; height: 17px; }
.dv-tt { flex: 1; min-width: 0; }
.dv-title { font-size: var(--t-small); font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.dv-sub { font-size: var(--t-micro); color: var(--ink-4); margin-top: 1px; }
.dv-badge {
  flex: none; font-size: var(--t-micro); font-weight: 600; color: var(--pos);
  background: color-mix(in srgb, var(--pos) 12%, transparent);
  padding: 3px 10px; border-radius: var(--r-pill);
}
/* 送达清单：结果落到用户真实的工作流(飞书 / Notion / 微信),一行一处 */
.dv-drops { display: flex; flex-direction: column; gap: 8px; }
.dv-drop {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--r-card);
  background: color-mix(in srgb, var(--ink) 2.5%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  opacity: 0; transform: translateY(6px);
  transition: opacity .42s var(--ease-reveal), transform .42s var(--ease-reveal);
}
.dv-drop .btile { flex: none; box-shadow: var(--sh-1); }
.dv-drop-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dv-drop-to { font-size: var(--t-caption); font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.dv-drop-act { font-size: var(--t-micro); color: var(--ink-4); letter-spacing: -.005em; }
.dv-drop-state {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--t-micro); font-weight: 700; color: var(--pos);
  padding: 3px 9px 3px 8px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--pos) 11%, transparent);
}
.dv-verdict {
  margin-top: 11px; font-size: var(--t-caption); color: var(--ink-2); line-height: 1.45;
  padding: 9px 13px; border-radius: var(--r-card);
  background: color-mix(in srgb, var(--pos) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--pos) 20%, transparent);
  opacity: 0; transform: translateY(6px);
  transition: opacity .45s var(--ease-reveal), transform .45s var(--ease-reveal);
}
.dv-verdict b { color: var(--pos); font-weight: 700; margin-right: 5px; }
/* 交付物内部逐行落位（卡片到位后，送达清单依次点亮，最后落结论） */
.pd-stage2.ph-2 .dv-drop,
.pd-stage2.ph-2 .dv-verdict { opacity: 1; transform: none; }
.pd-stage2.ph-2 .dv-drops .dv-drop:nth-child(1) { transition-delay: .95s; }
.pd-stage2.ph-2 .dv-drops .dv-drop:nth-child(2) { transition-delay: 1.09s; }
.pd-stage2.ph-2 .dv-drops .dv-drop:nth-child(3) { transition-delay: 1.23s; }
.pd-stage2.ph-2 .dv-verdict { transition-delay: 1.45s; }

.pd-foot { flex: none; min-height: clamp(52px, 9vh, 88px); display: flex; align-items: center; justify-content: center; padding: clamp(4px, 1vh, 10px) 0; }
.pd-claim {
  max-width: 840px; text-align: center;
  font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2);
  text-wrap: pretty;
}
.pd-claim b { color: var(--ink); font-weight: 600; }
.pd-support { display: block; font-size: var(--t-small); color: var(--ink-3); margin-top: 12px; }

/* ============================================================
   屏 2 · 为什么是现在
   ============================================================ */
.wn-sub {
  margin: clamp(6px, 1vh, 12px) auto 0; max-width: 640px;
  font-size: var(--t-small); color: var(--ink-3); line-height: 1.5; text-wrap: pretty;
}

/* ---- 图像化盘点：四块极简磁贴 ---- */
.wn-tiles {
  flex: 1; min-height: 0; width: 100%; max-width: min(1080px, 96%); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 24px); align-content: center;
}
.wtile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(8px, 1.1vh, 13px);
  padding: clamp(18px, 2.6vh, 30px) clamp(15px, 1.4vw, 22px) clamp(16px, 2.2vh, 24px);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  box-shadow: var(--sh-2), var(--glass-edge);
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s var(--ease-reveal) var(--d), transform .55s var(--ease-reveal) var(--d),
              box-shadow .4s var(--ease-reveal), border-color .4s var(--ease-reveal);
}
.wn-tiles.counted .wtile { opacity: 1; transform: none; }
.wtile-num {
  position: absolute; top: 15px; right: 17px;
  font-size: var(--t-caption); font-weight: 700; letter-spacing: .06em;
  color: color-mix(in srgb, var(--ink) 20%, transparent);
  transition: color .5s var(--ease-reveal) var(--d);
}
.wn-tiles.counted .wtile .wtile-num { color: color-mix(in srgb, var(--ch) 55%, transparent); }

.wtile-ic {
  width: clamp(48px, 4.4vw, 62px); height: clamp(48px, 4.4vw, 62px); flex: none;
  border-radius: var(--r-card); display: grid; place-items: center;
  color: var(--ink-3); background: color-mix(in srgb, var(--line-2) 26%, transparent);
  transition: color .5s var(--spring) var(--d), background .5s var(--spring) var(--d), box-shadow .5s var(--ease-reveal) var(--d);
}
.wtile-ic svg { width: 54%; height: 54%; }
.wn-tiles.counted .wtile .wtile-ic {
  color: #fff; background: var(--ch);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ch) 38%, transparent);
}
.wtile-head {
  font-size: var(--t-h3); font-weight: 650; line-height: var(--lh-h3);
  letter-spacing: var(--tr-h3); color: var(--ink);
}
.wtile-cap { font-size: var(--t-small); color: var(--ink-3); line-height: 1.35; }
.wtile-brands { display: flex; gap: 5px; margin-top: 2px; }
.wtile-brands .btile { box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.wtile-pill {
  margin-top: auto; font-size: var(--t-caption); font-weight: 700; white-space: nowrap;
  padding: 5px 13px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--line-2) 32%, transparent); color: var(--ink-3);
  transition: background .5s var(--spring) var(--d), color .5s var(--ease-reveal) var(--d), box-shadow .5s var(--ease-reveal) var(--d);
}
.wtile-pill::before { content: "✓ "; }
.wn-tiles.counted .wtile .wtile-pill {
  background: color-mix(in srgb, var(--ch) 13%, transparent); color: var(--ch);
}

/* 第四块：没人填的空白 → 虚线空槽，结论时高亮成「机会缺口」 */
.wtile.gap {
  background: transparent;
  border: 1.5px dashed color-mix(in srgb, var(--ch) 32%, var(--line-2));
  box-shadow: none;
}
.wtile.gap .wtile-pill::before { content: "○ "; }
.wn-tiles.counted .wtile.gap .wtile-ic {
  color: var(--ch); background: transparent;
  box-shadow: inset 0 0 0 1.6px color-mix(in srgb, var(--ch) 40%, transparent);
}
.wn-tiles.counted .wtile.gap .wtile-pill {
  background: transparent; color: var(--ch);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ch) 42%, transparent);
}
.wtile-gaptag {
  position: absolute; top: 13px; left: 17px;
  font-size: var(--t-micro); font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--ch); color: #fff; opacity: 0; transform: translateY(-4px);
  transition: opacity .45s var(--ease-reveal) .1s, transform .45s var(--spring) .1s;
}
.wn-tiles.concluded .wtile.gap {
  border-color: var(--ch);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ch) 9%, transparent);
}
.wn-tiles.concluded .wtile.gap .wtile-num { opacity: 0; }
.wn-tiles.concluded .wtile.gap .wtile-gaptag { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .wn-tiles { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
  .wtile-brands { display: none; }
}

/* 高度恒定：预留「痛点 → 解法」桥所需的空间，使总览态(单行结论)与聚焦态(双格桥)
   的脚部等高 —— 中间 flex:1 的磁贴区不再变化，磁贴/标题位置在两态间保持稳定，消除抖动。 */
.wn-foot { flex: none; min-height: clamp(104px, 14vh, 128px); display: flex; align-items: center; justify-content: center; padding: clamp(4px, 1vh, 10px) 0; }
.wn-line { font-size: var(--t-lead); color: var(--ink-2); text-align: center; text-wrap: pretty; }
.wn-line b { color: var(--ink); font-weight: 600; }

/* —— 标题 / 副标题就地替换动画：key 变化触发重渲，文案带动画换上 —— */
.wn-morph { animation: wnMorphIn .46s var(--ease-reveal) both; }
@keyframes wnMorphIn {
  from { opacity: 0; transform: translateY(9px); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* —— 单点高亮枢纽（WhyFocus）：点亮当前、压暗其余，下方「痛点 → 解法」桥 —— */
.wn-tiles.focusing .wtile {
  transition: opacity .5s var(--ease-reveal), transform .5s var(--ease-reveal), filter .5s var(--ease-reveal),
              border-color .5s var(--ease-reveal), box-shadow .5s var(--ease-reveal);
}
.wn-tiles.focusing.counted .wtile.is-dim {
  opacity: .34; filter: grayscale(.65); transform: scale(.95);
}
.wn-tiles.focusing.counted .wtile.is-focus {
  opacity: 1; transform: scale(1.035);
  border-color: color-mix(in srgb, var(--ch) 55%, transparent);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--ch) 22%, transparent);
}
.wn-tiles.focusing.counted .wtile.is-focus .wtile-ic {
  background: var(--ch); color: #fff;
}

.wn-bridge {
  display: flex; align-items: stretch; gap: clamp(12px, 1.6vw, 22px);
  width: 100%; max-width: 940px; margin: 0 auto; padding: 0 16px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease-reveal) .1s, transform .5s var(--ease-reveal) .1s;
}
.wn-bridge.show { opacity: 1; transform: none; }
.wnb-cell {
  flex: 1; display: flex; flex-direction: column; gap: 6px; text-align: left;
  padding: clamp(10px, 1.4vh, 14px) clamp(12px, 1.4vw, 18px);
  border-radius: var(--r-card); background: var(--glass-bg);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.wnb-cell.fix { border-color: color-mix(in srgb, var(--ch) 30%, transparent); background: color-mix(in srgb, var(--ch) 6%, transparent); }
.wnb-cell .wnb-txt { font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }
.wnb-cell.fix .wnb-txt { color: var(--ink); }
.wnb-tag {
  align-self: flex-start; padding: 2px 9px; border-radius: var(--r-pill);
  font-size: var(--t-micro); font-weight: 700; letter-spacing: .03em;
  background: color-mix(in srgb, var(--neg) 14%, transparent); color: var(--neg);
}
.wnb-cell.fix .wnb-tag { background: color-mix(in srgb, var(--ch) 16%, transparent); color: var(--ch); }
.wnb-arrow { flex: none; align-self: center; width: 30px; height: 30px; border-radius: 50%;
  background: color-mix(in srgb, var(--ch) 12%, transparent); position: relative; }
.wnb-arrow::after { content: "→"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ch); font-weight: 800; font-size: var(--t-body); }
@media (max-width: 820px) {
  .wn-bridge { flex-direction: column; gap: 8px; }
  .wnb-arrow { transform: rotate(90deg); }
}

/* ============================================================
   屏 3 · 市场
   ============================================================ */
.mk-chart {
  /* self-contained: explicit block layout (children position themselves);
     do NOT inherit display:flex from any legacy acts.css block */
  display: block;
  flex: 1; min-height: clamp(220px, 38vh, 420px);
  width: 100%; max-width: min(880px, 96%);
  position: relative;
  padding: clamp(28px, 5vh, 64px) clamp(12px, 4vw, 48px) 0;
}
.mk-grid { position: absolute; inset: clamp(28px,5vh,64px) clamp(12px,4vw,48px) 64px; pointer-events: none; }
.mk-gridline {
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--line);
}
.mk-bars {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(28px, 8vw, 96px);
}
.bar-col {
  display: flex; flex-direction: column; align-items: center;
  height: 100%; justify-content: flex-end;
  width: clamp(90px, 16vw, 150px); cursor: default;
  transition: transform .3s var(--ease-reveal);
}
.bar-col.hov { transform: translateY(-3px); }
.bar-val {
  font-size: var(--t-h2); font-weight: 600; letter-spacing: -.03em;
  margin-bottom: 14px; color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: opacity .5s var(--ease-reveal), color .3s var(--ease-reveal);
}
.bar-cur { font-size: .62em; color: var(--ink-3); margin-right: 1px; vertical-align: .12em; }
.bar-unit { font-size: .62em; color: var(--ink-3); margin-left: 1px; }
.bar-col.hov .bar-val { color: var(--ch); }
.bar-col.entry.hov .bar-val { color: var(--accent); }
.bar-track {
  width: clamp(64px, 11vw, 96px); flex: 1;
  display: flex; align-items: flex-end; position: relative;
}
.bar-fill {
  width: 100%; border-radius: var(--r-card) var(--r-card) 0 0; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  transition: height 1.1s var(--spring), filter .3s var(--ease-reveal);
}
.bar-col.entry .bar-fill {
  background: linear-gradient(180deg, var(--accent), var(--accent-600));
  box-shadow: 0 10px 30px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.4);
}
/* 非切入柱 = 预测大盘：用更淡的柱体弱化（实心深色 accent 柱 = 我们先切的可验收那块）。
   原虚线顶沿易被误读为「数据截断/不确定」，故去掉，纯靠明度差区分。 */
.bar-col:not(.entry) .bar-fill { opacity: .82; }
.bar-col.hov .bar-fill { filter: brightness(1.05); }
.bar-shine {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 40%);
  pointer-events: none;
}
/* 外层只负责水平居中（text-align，不用 transform）——
   避免入场动画 act2Rise 的 transform 关键帧把 translateX(-50%) 覆盖掉、导致徽标偏移。
   贴在柱顶内侧：徽标坐在 accent 柱顶端，像给「我们要切的那块」插了面标记旗。 */
.bar-entry-tag {
  position: absolute; left: 0; right: 0;
  text-align: center; pointer-events: none; z-index: 3;
  transform: translateY(10px);   /* 下沉一点，让徽标压在柱顶内侧而非悬空 */
}
.bar-entry-badge {
  display: inline-block;
  background: #fff; color: var(--accent);
  font-size: var(--t-micro); font-weight: 700; letter-spacing: .02em;
  padding: 4px 11px; border-radius: var(--r-pill); white-space: nowrap;
  box-shadow: 0 4px 14px var(--accent-glow);
  /* 柱子升完再现身（入柱 i=0：0.2s 延迟 + 1.1s 升起 ≈ 1.3s） */
  animation: act2Rise .5s var(--ease-reveal) both;
  animation-delay: 1.3s;
}
.bar-k { font-size: var(--t-lead); font-weight: 600; margin-top: clamp(8px, 1.6vh, 16px); letter-spacing: -.015em; color: var(--ink); }
.bar-note { font-size: var(--t-caption); color: var(--ink-3); margin-top: 3px; text-align: center; }
.bar-year { font-size: var(--t-micro); color: var(--ink-4); margin-top: 4px; }

.mk-expand {
  position: absolute; left: clamp(12px, 4vw, 48px); top: clamp(28px, 5vh, 64px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  font-size: var(--t-small); font-weight: 600; color: var(--ch);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .6s var(--ease-reveal), transform .6s var(--ease-reveal);
}
.mk-expand.show { opacity: 1; transform: none; }
.mk-expand-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ch);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ch) 18%, transparent);
}

.mk-foot { flex: none; min-height: clamp(52px, 9vh, 92px); display: flex; align-items: center; justify-content: center; padding: clamp(4px, 1vh, 10px) 0; }
.mk-line { max-width: 900px; text-align: center; font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.mk-line b { color: var(--ink); font-weight: 600; }

/* ============================================================
   responsive: keep everything inside ~1100px stage, no clipping
   ============================================================ */
@media (max-width: 880px) {
  .pd-panel { min-height: clamp(300px, 48vh, 392px); }
}

/* ============================================================
   手机断点 600px —— 单列重排，保留全部动画。只缩放/堆叠，不删任何效果。
   （平板 820/880px 断点保留不动；此块在其后覆盖）
   ============================================================ */
@media (max-width: 600px) {
  /* —— 屏 1 · 范式转移 —— */
  .pd-stage2 {
    max-width: 100%;
    gap: 14px;
    /* 桌面 .pd-stage2 是 flex:1 + justify-content:center；手机上「标签+面板(480px)」高于
       可用高度，居中会向上溢出、把阶段标签顶进标题里 → 改 flex:none + 顶对齐，顺流滚动 */
    flex: none;
    justify-content: flex-start;
  }
  /* 流水线：窄屏给足高度 + 宽度收到容器内 */
  .pd-panel { min-height: clamp(360px, 56vh, 480px); }
  .pp-flow  { max-width: 100%; }
  /* 路由标签行在窄屏可换行，避免「快/省/可信」挤出 */
  .ppf-route { flex-wrap: wrap; gap: 8px 10px; }
  .ppf-route-t { flex: 1 1 auto; min-width: 0; }

  /* —— 屏 2 · 为什么是现在 —— */
  /* 四块磁贴 2 列偏挤（含图标+标题+pill），手机改单列纵向堆叠 */
  .wn-tiles {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 14px;
    align-content: start;
    /* 桌面 .wn-tiles 是 flex:1（高度被限制在一屏内、4 列同排）。手机单列 4 张纵向堆叠
       远超该高度，flex:1 盒子放不下 → 磁贴向下溢出、压到下方「痛点→解法」桥。
       改 flex:none 让其按内容撑高、整屏纵向滚动，桥才落到磁贴真正下方。 */
    flex: none;
  }
  .wtile { padding: 16px 16px 15px; }
  /* 单列时品牌图标行可恢复显示（横排不再拥挤） */
  .wtile-brands { display: flex; }
  /* 痛点 → 解法桥已在 820px 单列，这里收紧间距与内边距 */
  .wn-bridge { padding: 0; gap: 8px; max-width: 100%; }

  /* —— 屏 3 · 市场 —— */
  .mk-chart {
    min-height: clamp(220px, 40vh, 360px);
    padding: 40px 6px 0;
  }
  .mk-grid { inset: 40px 6px 56px; }
  /* 三柱并排：收紧柱宽与间距，确保不溢出、数字不被裁 */
  .mk-bars { gap: 14px; }
  .bar-col { width: clamp(76px, 28vw, 104px); }
  .bar-track { width: clamp(52px, 20vw, 74px); }
  /* 大号数字在窄柱上会撑爆，降一档到 h3 */
  .bar-val { font-size: var(--t-h3); margin-bottom: 10px; }
  .bar-k   { font-size: var(--t-small); margin-top: 10px; text-align: center; }
  /* 窄柱上收紧内边距，让「切入点」胶囊稳稳落在柱顶之内、不溢出柱沿 */
  .bar-entry-badge { padding: 3px 9px; }
  /* 「先切最可验收…」展开提示绝对定位，左内边距对齐新 padding */
  .mk-expand { left: 6px; top: 40px; }
}

/* 超窄机（≤380px）微调：进一步收紧三柱，避免横向溢出 */
@media (max-width: 380px) {
  .mk-bars { gap: 10px; }
  .bar-col { width: clamp(68px, 27vw, 92px); }
  .bar-track { width: clamp(46px, 19vw, 66px); }
  .bar-val { font-size: var(--t-lead); }
}
