/* jigou.css — 「机构主页搭建」台阶页组件样式（全部 jg- 前缀，配合 css/steps.css 引擎）
   结构见 sections/jigou.html；循环动效常驻（组件不激活时不可见），
   入场动效用 .st-steps:not(.st-static) + .st-comp.active 门控（同 sj-/lz- 约定）。
   场景素材：assets/products/jigou/*.webp（拷自真实项目「三重圈·养老机构全景」）。 */

/* ---- 通用入场 ---- */
.st-steps:not(.st-static) .jg-rise { opacity: 0; transform: translateY(16px); }
.st-steps:not(.st-static) .st-comp.active .jg-rise {
  animation: jg-rise-in .5s cubic-bezier(.2,.7,.3,1) both;
}
.st-steps:not(.st-static) .st-comp.active .jg-rise:nth-child(2) { animation-delay: .12s; }
@keyframes jg-rise-in { to { opacity: 1; transform: none; } }

/* ================= L0：五场景缩影巡游 ================= */
.jg-l0 { width: min(680px, 100%); }
.jg-l0-cap { text-align: center; font-size: 14px; color: rgba(0,0,0,.5); margin-bottom: 26px; }
.jg-l0-strip { display: flex; gap: 14px; }
.jg-l0-cell { flex: 1 1 0; min-width: 0; text-align: center; }
.jg-l0-thumb {
  height: 150px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  animation: jg-l0-hl 15s linear infinite;
  animation-delay: calc(var(--i) * 3s);
}
.jg-l0-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: jg-l0-zoom 15s linear infinite;
  animation-delay: calc(var(--i) * 3s);
}
.jg-l0-cell span {
  display: inline-block; margin-top: 10px;
  font-size: 13px; font-weight: 600; color: rgba(0,0,0,.44);
  animation: jg-l0-label 15s linear infinite;
  animation-delay: calc(var(--i) * 3s);
}
/* 每格亮 3s（15s / 5），高亮：上浮 + 金环 + 标签变金 */
@keyframes jg-l0-hl {
  0%, 17%   { box-shadow: 0 0 0 3px #b07d2b, 0 16px 32px rgba(176,125,43,.3); transform: translateY(-8px); }
  22%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,.1); transform: none; }
}
@keyframes jg-l0-zoom {
  0%   { transform: scale(1.12); }
  17%  { transform: scale(1.02); }
  22%, 100% { transform: none; }
}
@keyframes jg-l0-label {
  0%, 17%   { color: #b07d2b; }
  22%, 100% { color: rgba(0,0,0,.44); }
}
.jg-l0-punch { text-align: center; margin-top: 30px; font-size: 17px; font-weight: 700; color: #1d1d1f; }

/* ================= 01：MacBook 内迷你 scrub 穿越 ================= */
.jg-l1 { position: relative; width: 100%; height: 100%; }
.jg-l1-mac {
  position: absolute; left: 50%; top: 45%;
  transform: translate(-56%, -50%) scale(.56);
  transform-origin: center;
  filter: drop-shadow(0 26px 50px rgba(90,60,10,.28));
}
.st-steps:not(.st-static) .st-comp.active .jg-l1-mac { animation: jg-l1-mac-in .45s cubic-bezier(.2,.9,.25,1) both; }
@keyframes jg-l1-mac-in {
  from { opacity: 0; transform: translate(-56%, -47%) scale(.52); }
  to   { opacity: 1; transform: translate(-56%, -50%) scale(.56); }
}
.jg-l1-view { position: absolute; inset: 0; overflow: hidden; background: #111; }
.jg-l1-scene {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  animation: jg-l1-scene 20s linear infinite;
  animation-delay: calc(var(--i) * 4s);
}
/* 每场 4s（20s / 5）：淡入 + Ken Burns 缓推，到点快切 */
@keyframes jg-l1-scene {
  0%   { opacity: 0; transform: scale(1.1); }
  2.5% { opacity: 1; }
  20%  { opacity: 1; transform: scale(1); }
  22%, 100% { opacity: 0; transform: scale(1); }
}
.jg-l1-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
}
.jg-l1-cap {
  position: absolute; left: 6%; bottom: 9%; color: #fff;
  opacity: 0;
  animation: jg-l1-cap 20s linear infinite;
  animation-delay: calc(var(--i) * 4s);
}
.jg-l1-cap em {
  display: block; font-style: normal; font-size: 13px; font-weight: 600;
  letter-spacing: .12em; color: #f3d9a8; margin-bottom: 6px;
}
.jg-l1-cap b { font-size: 30px; letter-spacing: -.01em; }
@keyframes jg-l1-cap {
  0%   { opacity: 0; transform: translateY(12px); }
  3%, 18% { opacity: 1; transform: none; }
  21%, 100% { opacity: 0; transform: translateY(-6px); }
}
.jg-l1-hud {
  position: absolute; top: 4.5%; left: 5%;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.25);
  border-radius: 980px; padding: 4px 12px; backdrop-filter: blur(4px);
}
/* 右侧：滚轮提示 + 场景进度点 */
.jg-l1-rail {
  position: absolute; right: 1.5%; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.jg-l1-mouse {
  width: 18px; height: 28px; border: 2px solid rgba(0,0,0,.4); border-radius: 10px;
  display: flex; justify-content: center; margin-bottom: 6px;
}
.jg-l1-mouse i {
  width: 3px; height: 6px; border-radius: 2px; background: #b07d2b; margin-top: 4px;
  animation: jg-l1-wheel 1.6s ease-in-out infinite;
}
@keyframes jg-l1-wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(8px); opacity: .25; }
}
.jg-l1-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.18);
  animation: jg-l1-dot 20s linear infinite;
  animation-delay: calc(var(--i) * 4s);
}
@keyframes jg-l1-dot {
  0%, 18%   { background: #b07d2b; transform: scale(1.35); }
  23%, 100% { background: rgba(0,0,0,.18); transform: none; }
}

/* ================= 02：实景素材 → AI 生成 → 主页场景 ================= */
.jg-l2 {
  position: relative; width: min(660px, 100%);
  display: flex; align-items: center; gap: 56px;
}
.jg-l2-src { flex: none; width: 176px; display: flex; flex-direction: column; gap: 12px; }
.jg-l2-photo {
  position: relative; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.jg-l2-photo img { width: 100%; height: 96px; object-fit: cover; display: block; }
.jg-l2-photo span {
  position: absolute; left: 8px; bottom: 7px;
  font-size: 10.5px; font-weight: 600; color: #fff;
  background: rgba(0,0,0,.45); border-radius: 980px; padding: 2px 8px;
}
.jg-l2-pick { animation: jg-l2-pick 7s linear infinite; }
@keyframes jg-l2-pick {
  0%, 6%  { box-shadow: 0 4px 14px rgba(0,0,0,.12); }
  10%, 42% { box-shadow: 0 0 0 3px #b07d2b, 0 10px 24px rgba(176,125,43,.35); }
  48%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,.12); }
}
.jg-l2-ai {
  position: relative; align-self: center; overflow: hidden;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #b07d2b;
  border: 1px solid rgba(176,125,43,.4); border-radius: 980px; padding: 4px 12px;
  animation: jg-l2-ai 7s linear infinite;
}
@keyframes jg-l2-ai {
  0%, 12% { background: rgba(176,125,43,.06); color: #b07d2b; }
  18%, 40% { background: #b07d2b; color: #fff; }
  46%, 100% { background: rgba(176,125,43,.06); color: #b07d2b; }
}
.jg-l2-page {
  position: relative; flex: 1; min-width: 0; height: 300px;
  border: 1.5px dashed rgba(176,125,43,.45); border-radius: 16px;
  overflow: hidden; background: rgba(255,255,255,.6);
  animation: jg-l2-page 7s linear infinite;
}
@keyframes jg-l2-page {
  0%, 46%  { border-style: dashed; border-color: rgba(176,125,43,.45); }
  54%, 88% { border-style: solid; border-color: #b07d2b; box-shadow: 0 18px 40px rgba(176,125,43,.22); }
  96%, 100% { border-style: dashed; border-color: rgba(176,125,43,.45); box-shadow: none; }
}
.jg-l2-idle {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(0,0,0,.35);
  animation: jg-l2-idle 7s linear infinite;
}
@keyframes jg-l2-idle {
  0%, 44% { opacity: 1; }
  52%, 92% { opacity: 0; }
  98%, 100% { opacity: 1; }
}
.jg-l2-scene {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: jg-l2-scene 7s linear infinite;
}
.jg-l2-page::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  opacity: 0; animation: jg-l2-scrim 7s linear infinite; pointer-events: none;
}
@keyframes jg-l2-scrim {
  0%, 48% { opacity: 0; }
  56%, 88% { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes jg-l2-scene {
  0%, 48% { opacity: 0; transform: scale(1.08); }
  56%, 88% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(1); }
}
.jg-l2-scene-cap {
  position: absolute; left: 6%; bottom: 7%; z-index: 2; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
  opacity: 0; animation: jg-l2-scenecap 7s linear infinite;
}
.jg-l2-scene-cap em {
  display: block; font-style: normal; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; color: #f3d9a8; margin-bottom: 4px;
}
.jg-l2-scene-cap b { font-size: 20px; }
@keyframes jg-l2-scenecap {
  0%, 52% { opacity: 0; transform: translateY(10px); }
  60%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
/* 素材卡飞入页面 */
.jg-l2-fly {
  position: absolute; left: 22px; top: 52%; width: 120px; z-index: 3;
  border-radius: 10px; overflow: hidden; pointer-events: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  opacity: 0; animation: jg-l2-fly 7s cubic-bezier(.3,.6,.3,1) infinite;
}
.jg-l2-fly img { width: 100%; height: 76px; object-fit: cover; display: block; }
@keyframes jg-l2-fly {
  0%, 10% { opacity: 0; left: 22px; top: 52%; transform: scale(.85); }
  14% { opacity: 1; }
  42% { opacity: 1; left: 62%; top: 30%; transform: scale(1.3); }
  47%, 100% { opacity: 0; left: 62%; top: 30%; transform: scale(1.3); }
}

/* ================= 03：预约参观 → 管理端线索 ================= */
.jg-l3 {
  position: relative; width: min(640px, 100%);
  display: flex; align-items: center; gap: 64px;
}
.jg-l3-form {
  flex: none; width: 216px; background: #fff; border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px; padding: 16px 16px 14px; box-shadow: 0 10px 30px rgba(90,60,10,.1);
}
.jg-l3-form > b { display: block; font-size: 15px; margin-bottom: 12px; }
.jg-l3-field { margin-bottom: 10px; }
.jg-l3-field label { display: block; font-size: 10.5px; color: rgba(0,0,0,.44); margin-bottom: 3px; }
.jg-l3-fill {
  display: block; height: 26px; line-height: 26px; padding: 0 9px;
  font-size: 12.5px; color: #1d1d1f;
  background: #f7f4ee; border: 1px solid rgba(176,125,43,.25); border-radius: 8px;
  opacity: 0;
}
.jg-l3-f1 { animation: jg-l3-f1 9s linear infinite; }
.jg-l3-f2 { animation: jg-l3-f2 9s linear infinite; }
.jg-l3-f3 { animation: jg-l3-f3 9s linear infinite; }
/* 三格依次落字，92% 同步清空进入下一轮 */
@keyframes jg-l3-f1 {
  0%, 5%  { opacity: 0; transform: translateY(4px); }
  9%, 92% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes jg-l3-f2 {
  0%, 13% { opacity: 0; transform: translateY(4px); }
  17%, 92% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes jg-l3-f3 {
  0%, 21% { opacity: 0; transform: translateY(4px); }
  25%, 92% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
.jg-l3-btn {
  margin-top: 4px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; background: #b07d2b;
  animation: jg-l3-btn 9s linear infinite;
}
@keyframes jg-l3-btn {
  0%, 28% { transform: none; background: #b07d2b; }
  32% { transform: scale(.94); background: #8f6521; }
  38%, 92% { transform: none; background: #8f6521; }
  96%, 100% { transform: none; background: #b07d2b; }
}
/* 提交后的卡片飞入管理端 */
.jg-l3-fly {
  position: absolute; left: 40px; top: 62%; z-index: 3; width: 150px;
  background: #fff; border-radius: 10px; padding: 9px 12px;
  border-left: 3px solid #b07d2b;
  box-shadow: 0 12px 30px rgba(0,0,0,.22); pointer-events: none;
  opacity: 0; animation: jg-l3-fly 9s cubic-bezier(.3,.6,.3,1) infinite;
}
.jg-l3-fly b { display: block; font-size: 13px; }
.jg-l3-fly span { font-size: 10.5px; color: rgba(0,0,0,.5); }
@keyframes jg-l3-fly {
  0%, 36% { opacity: 0; left: 40px; top: 62%; transform: scale(.9); }
  40% { opacity: 1; }
  58% { opacity: 1; left: 56%; top: 8%; transform: scale(.96); }
  63%, 100% { opacity: 0; left: 56%; top: 8%; transform: scale(.96); }
}
.jg-l3-admin {
  flex: 1; min-width: 0; max-width: 300px;
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 16px;
  padding: 14px 16px; box-shadow: 0 10px 30px rgba(90,60,10,.1);
}
.jg-l3-admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.jg-l3-admin-top > b { font-size: 14px; }
.jg-l3-count { position: relative; width: 22px; height: 22px; }
.jg-l3-count em {
  position: absolute; inset: 0; font-style: normal; font-size: 11.5px; font-weight: 700;
  color: #fff; background: #b07d2b; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.jg-l3-c3 { animation: jg-l3-c3 9s linear infinite; }
.jg-l3-c4 { opacity: 0; animation: jg-l3-c4 9s linear infinite; }
@keyframes jg-l3-c3 {
  0%, 60% { opacity: 1; }
  64%, 100% { opacity: 0; }
}
@keyframes jg-l3-c4 {
  0%, 60% { opacity: 0; transform: scale(.6); }
  66%, 92% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(1); }
}
.jg-l3-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 10px; border-radius: 9px; background: #faf8f3; margin-top: 7px;
  font-size: 12.5px;
}
.jg-l3-row b { font-size: 12.5px; }
.jg-l3-row span { font-size: 10.5px; color: rgba(0,0,0,.45); }
.jg-l3-row em {
  margin-left: auto; font-style: normal; font-size: 10px; font-weight: 700;
  color: #fff; background: #b07d2b; border-radius: 980px; padding: 1px 7px;
}
/* 新线索行：平时折叠，卡片落入后展开 */
.jg-l3-new {
  max-height: 0; opacity: 0; overflow: hidden; padding-top: 0; padding-bottom: 0;
  margin-top: 0; background: rgba(176,125,43,.09); border: 1px solid rgba(176,125,43,.35);
  animation: jg-l3-new 9s linear infinite;
}
@keyframes jg-l3-new {
  0%, 58% { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; }
  68%, 92% { max-height: 44px; opacity: 1; padding-top: 8px; padding-bottom: 8px; margin-top: 7px; }
  97%, 100% { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; }
}

/* ================= 移动端退化（≤900px，组件已插入条目后） ================= */
@media (max-width: 900px) {
  .jg-l0-thumb { height: 88px; }
  .jg-l0-strip { gap: 8px; }
  .jg-l0-cell span { font-size: 11px; }
  .jg-l1 { height: 300px; }
  .jg-l1-mac { transform: translate(-56%, -50%) scale(.34); }
  .st-steps:not(.st-static) .st-comp.active .jg-l1-mac { animation: none; }
  .jg-l1-cap b { font-size: 24px; }
  .jg-l1-rail { display: none; }
  .jg-l2 { flex-direction: column; align-items: stretch; gap: 18px; }
  .jg-l2-src { width: 100%; flex-direction: row; align-items: center; }
  .jg-l2-photo { flex: 1 1 0; }
  .jg-l2-ai { flex: none; }
  .jg-l2-fly { display: none; }
  .jg-l2-page { flex: none; width: 100%; height: 220px; }
  .jg-l3 { flex-direction: column; align-items: stretch; gap: 18px; }
  .jg-l3-form { width: 100%; }
  .jg-l3-fly { display: none; }
  .jg-l3-admin { flex: none; max-width: none; }
}
