/* =====================================================================
   Fable 另一版（fable2）：这一版的样式改动全部在这个文件，最后载入。
   正式版没有这个文件。每一段都写了“为什么”，要搬回正式版时可以一段一段搬。
   颜色、圆角、动画速度仍然用 style.css 最上面那一块，这里没有写死新的色号
   （除了“等太久”的橘色和提示用的浅色，沿用 mochi.css 原本的写法）。
   ===================================================================== */

/* ---------- 1 主要按钮只有一种长相 ----------
   “预约免费诊断”在顶栏、开头、价格、手机底部都是同一个渐变；
   绿色只留给表单里“真的打开 WhatsApp”那一下。 */
.btn-go {
  color: #fff;
  background: linear-gradient(100deg, var(--hi-1), var(--hi-2) 50%, var(--hi-3));
  background-size: 200% 100%;
  box-shadow: 0 12px 26px -14px rgba(120, 90, 230, .7);
  transition: transform .5s var(--spring), box-shadow .5s var(--spring), background-position .8s var(--spring);
}
.btn-go:hover { background-position: 100% 0; box-shadow: 0 16px 32px -14px rgba(238, 122, 176, .65); }

/* ---------- 2 对话播放时不再推动下面的内容 ----------
   每条讯息先占好位置（透明），“正在输入”盖在下一条的位置上。 */
.chat { position: relative; }
.chat .typing { position: absolute; left: 0; }

/* ---------- 3 专员四行 = Settle Studio ----------
   每一行就是一张桌子：Mochi 的形状和下面那条状态会跟着示范剧本变。 */
.live-wrap { position: relative; }
.live-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: -8px 0 18px; padding: 0 4px; }
.studio-name em {
  font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 3px 10px; border-radius: var(--r); background: var(--inset-2);
}
.crew-live {
  justify-self: start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 12px;
  min-height: 40px; margin-top: 6px; padding: 8px 14px; border-radius: var(--r); background: var(--t);
}
.crew-live .desk-state { font-size: 14.5px; white-space: nowrap; }
.crew-live .desk-task { min-height: 0; font-size: 15px; line-height: 1.4; color: var(--ink); }
.crew-row[data-state="tooLong"] .desk-state { color: #C2410C; }
.crew-row[data-state="tooLong"] .desk-state::before { background: #F97316; animation: live 1.2s infinite; }
.crew-row[data-state="idle"] .desk-state { color: var(--ink-2); }
.crew-row[data-state="idle"] .desk-state::before { background: #B4B4BB; }
.crew-stage { cursor: default; }
.live-wrap .legend { margin-top: 14px; background: none; padding: 6px 4px 0; }
.live-wrap .studio-you { top: 0; }

/* ---------- 4 表单：左边讲“提交之后会怎样”，右边先点选、最后才留联系方式 ---------- */
.form-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 4vw, 64px);
}
.form { max-width: none; margin: 0; }
.form-side { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.form-side h2 { font-size: clamp(32px, 3.6vw, 52px); }
.next-title { font-size: 17px; font-weight: 650; margin-top: 14px; }
.next { display: grid; gap: 12px; counter-reset: n; }
.next li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.5; }
.next li::before {
  content: counter(n); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; box-shadow: var(--lift); font-weight: 700; font-size: 14px;
}
.preview { position: sticky; top: 92px; margin-top: 14px; padding: 16px; display: grid; gap: 10px; }
.preview-label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.bubble {
  justify-self: end; max-width: 94%; padding: 10px 14px; border-radius: var(--r);
  background: var(--accent); color: #fff; font-size: 13.5px; line-height: 1.5;
  white-space: pre-line; overflow-wrap: anywhere;
}
.form-part { display: grid; gap: 2px; margin-top: 6px; }
.form-part b { font-size: 20px; letter-spacing: -0.015em; }
.form-part span { font-size: 14.5px; color: var(--ink-2); }
.form .submit-wrap { margin-top: 58px; }   /* 表单变窄了，按钮上的 Mochi 泡泡要多一点空间，才不会盖到“同意”那一行 */
.after-note { text-align: center; margin-top: -14px; }
.preview-m { display: none; }
.sent { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--r); background: var(--t-account); }
.sent[hidden] { display: none; }
.sent b { font-size: 17px; }
.sent p { font-size: 15px; }
.sent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sent .btn:hover { transform: none; }
.sent.pop { animation: swap .6s var(--spring); }

/* ---------- 5 手机底下的预约按钮 ---------- */
.sticky-go {
  position: fixed; z-index: 25; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom));
  display: none; justify-content: center; pointer-events: none;
  transform: translateY(calc(100% + 110px)); transition: transform .6s var(--spring);
}
.sticky-go.show { transform: none; }
.sticky-go .btn { pointer-events: auto; min-height: 50px; padding: 0 28px; white-space: nowrap; box-shadow: 0 14px 30px -10px rgba(90, 70, 200, .6); }

@media (max-width: 900px) {
  .sticky-go { display: flex; }
  /* 草稿工具栏上线前会拿掉；它还在的时候，预约按钮先坐在它上面 */
  body:has(.draftbar) .sticky-go { bottom: 72px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-side .preview { display: none; }
  .preview-m { display: block; border-radius: var(--r); background: rgba(255, 255, 255, .7); padding: 4px 14px; }
  .preview-m summary { cursor: pointer; padding: 10px 0; font-size: 15px; font-weight: 600; }
  .preview-m .bubble { margin: 4px 0 12px auto; display: block; width: fit-content; }

  /* ---------- 6 手机不用“由模糊变清楚”进场 ----------
     大面积模糊 + 玻璃，是中阶手机上最吃力的一种动画；改成只往上浮一点。 */
  .js .rv { filter: none; transform: translateY(20px); }
}

/* ---------- 7 手机：少滚动 ---------- */
@media (max-width: 640px) {
  .sec { padding-top: 76px; }
  .sec-head { gap: 14px; margin-bottom: 32px; }

  /* 一条线：卡点的标签跟句子同一行；专员那格变成一条浅色带，名字和做法同一段 */
  .station { padding-bottom: 20px; }
  .station h3 { font-size: 21px; margin-top: 10px; }
  .station-body { margin-top: 6px; gap: 8px; }
  .station-pain { font-size: 15px; }
  .station-pain > span:first-child { display: inline; margin: 0 8px 0 0; font-size: 12.5px; }
  .station-fix { padding: 10px 12px; background: var(--t); box-shadow: none; font-size: 14.5px; line-height: 1.5; }
  .station-fix:hover { transform: none; box-shadow: none; }
  .station-fix > span:first-child { display: none; }
  .fix-head { display: inline-flex; vertical-align: -6px; margin: 0 6px 0 -2px; }
  .fix-head .mochi { --ms: 24px; }
  .station-fix b { font-size: 14.5px; }

  /* 专员功能：标签会叠成 4 到 5 排，改成一段用点隔开的字 */
  .crew-items { display: block; padding: 0 4px 4px; line-height: 1.65; }
  .crew-items li { display: inline; min-height: 0; padding: 0; background: none; font-size: 14px; color: #3A3A3E; }
  .crew-items li:hover { background: none; }
  .crew-items li::before { display: none; }
  .crew-items li + li::before { display: inline; content: " · "; width: auto; height: auto; background: none; color: var(--x); font-weight: 700; }
  .crew-live { min-height: 0; padding: 7px 12px; }
  .crew-live .desk-state { font-size: 13.5px; }
  .crew-live .desk-task { font-size: 14px; }
  .live-bar { margin-top: -4px; }

  .form-side { gap: 14px; }
  /* 选项收紧一点：四个选项刚好排成一行，不会剩一个掉到第二行 */
  .form { padding: 22px 18px; }
  .chips { gap: 6px; }
  .chip { padding: 0 12px; font-size: 14.5px; }
  .next li { font-size: 15px; }
  .form-part b { font-size: 18px; }
  .foot { padding-bottom: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .sticky-go { transition: none; }
  html:not(.force-motion) .sent.pop { animation: none; }
}
