/* Mochi 麻糬 + 专员行 + Settle Studio 动态工作室 */

/* ---------- 一只 Mochi ---------- */
.mochi { display: inline-block; width: var(--ms, 64px); aspect-ratio: 100 / 120; line-height: 0; flex: none; }
.mochi svg { width: 100%; height: 100%; overflow: visible; transform-origin: 50% 88%; }
.mochi { cursor: pointer; }   /* 每一只都可以点 */
.mochi.lively { cursor: pointer; pointer-events: auto; }
.mochi[data-state="idle"] { cursor: pointer; pointer-events: auto; }

/* ---------- 走来走去的 Manager ---------- */
.boss { position: absolute; left: 0; bottom: 0; width: 72px; will-change: transform; }
.boss .mochi { --ms: 72px; display: block; margin-bottom: -8px; }
.boss.walking .mochi { animation: m-walk .34s ease-in-out infinite; }
@keyframes m-walk { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9%) rotate(3deg); } }
.boss-track { position: absolute; z-index: 2; left: 14px; right: 14px; top: -76px; height: 76px; pointer-events: none; }
.boss-track .boss { pointer-events: auto; }

/* 一条线下面：Manager 管整条线 */
.overseer {
  position: relative; margin-top: 30px; border-radius: var(--r); background: #fff; box-shadow: var(--lift);
  padding: 100px clamp(20px, 3vw, 36px) 26px;
}
.overseer-track { position: absolute; left: 0; right: 0; top: 10px; height: 86px; border-radius: var(--r) var(--r) 0 0; background: var(--t-manager); }
.overseer-track::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 10px; height: 6px; border-radius: var(--r); background: rgba(17,18,20,.07); }
.overseer .boss { bottom: 14px; transition: transform 1.1s var(--spring); }
.overseer-text { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: baseline; }
.overseer-text h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; grid-row: span 2; }
.overseer-text h3 .pre { color: var(--ink-2); font-weight: 600; }
.overseer-text .role { font-weight: 650; display: inline-flex; align-items: center; gap: 8px; }
.overseer-text .role::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-manager); }
.crew-wrap { position: relative; }
.peek-crew { top: -58px; right: 64px; }
@media (max-width: 640px) {
  .overseer-text { grid-template-columns: 1fr; }
  .overseer-text h3 { grid-row: auto; }
  .boss-track { top: -70px; }
  .phone { margin-top: 44px; }
  .boss, .boss .mochi { --ms: 62px; width: 62px; }
}
.m-shadow { fill: rgba(17, 18, 20, .10); }
.m-mark { font: 800 24px/1 Inter, system-ui, sans-serif; opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.mochi.is-white .m-fill { stroke: #D6D6DD; stroke-width: 1.4; }
.eye { fill: var(--eye, #fff); }
.eye-s { fill: none; stroke: var(--eye, #fff); stroke-width: 2.8; stroke-linecap: round; }
.e-line { display: none; }
.mochi[data-eyes="annoyed"] .e-open, .mochi[data-eyes="sleep"] .e-open, .mochi[data-eyes="happy"] .e-open, .mochi[data-eyes="dizzy"] .e-open { display: none; }
.mochi[data-eyes="annoyed"] .e-line, .mochi[data-eyes="sleep"] .e-line, .mochi[data-eyes="happy"] .e-line, .mochi[data-eyes="dizzy"] .e-line { display: inline; }
.m-eyes { transform-box: fill-box; transform-origin: center; transition: transform .09s ease; }
.mochi.blink .m-eyes { transform: scaleY(.1); }
.m-look { transition: transform .55s var(--spring); }
.m-body { transform-box: view-box; transform-origin: 50px 93px; animation: m-breathe 3.4s ease-in-out infinite; }
@keyframes m-breathe { 50% { transform: scale(1.03, .97); } }

/* 等太久了：冒烟 */
.m-smoke { opacity: 0; transition: opacity .5s; }
.mochi[data-state="tooLong"] .m-smoke { opacity: 1; }
.m-smoke circle { fill: #CDCDD4; transform-box: fill-box; transform-origin: center; animation: m-smoke 2.2s ease-out infinite; }
.m-smoke circle:nth-child(2) { animation-delay: .7s; }
@keyframes m-smoke { 0% { transform: translateY(8px) scale(.5); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(-10px) scale(1.2); opacity: 0; } }
/* 没事做：zZ + 睡觉泡泡 */
.m-zz, .m-bubble { opacity: 0; transition: opacity .5s; }
.mochi[data-state="idle"] .m-zz, .mochi[data-state="idle"] .m-bubble { opacity: 1; }
.m-zz text { font: 700 13px var(--font); fill: #9C9CA4; transform-box: fill-box; transform-origin: center; animation: m-zz 2.6s ease-in-out infinite; }
.m-zz text:nth-child(2) { font-size: 10px; animation-delay: 1.1s; }
@keyframes m-zz { 0% { transform: translate(0, 4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(5px, -8px); opacity: 0; } }
.m-bubble { fill: rgba(255, 255, 255, .75); stroke: rgba(0, 0, 0, .12); stroke-width: .8; transform-box: fill-box; transform-origin: center; animation: m-bubble 3s ease-in-out infinite; }
@keyframes m-bubble { 0%, 100% { transform: scale(.6); } 50% { transform: scale(1.25); } }

/* ---------- 爬出来、掉下来 ---------- */
.peek { position: absolute; z-index: 0; height: 58px; width: 64px; overflow: hidden; pointer-events: none; }
.peek .mochi { --ms: 64px; display: block; transform: translateY(100%); }
.peek-phone { top: -58px; right: 42px; }
.peek-form { top: -58px; right: 56px; }
.peek-form .mochi { --ms: 64px; }
.drop-spot { position: absolute; z-index: 3; pointer-events: none; }
.drop-spot .mochi { display: block; margin-bottom: calc(var(--ms) * -0.11); }

/* 开头对话的 Manager 头像 */
.avatar.mochi { --ms: 40px; width: 40px; height: 48px; background: none; border-radius: 0; display: block; margin-top: -6px; }

/* ---------- 一条线上骑着的 Mochi ---------- */
.rider { position: absolute; z-index: 2; top: 0; left: 0; width: 40px; pointer-events: none; will-change: transform; }
.rider .mochi { --ms: 40px; display: block; }
.rider.hop .mochi { animation: m-hop .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes m-hop { 40% { transform: translateY(-14px) scale(.95, 1.06); } 100% { transform: none; } }

/* ---------- 专员：一行一只 ---------- */
.crew { display: grid; gap: 14px; }
.crew-row {
  --c: var(--c-manager); --t: var(--t-manager); --x: var(--ink);
  display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 48px); align-items: center;
  padding: 20px clamp(20px, 3vw, 40px) 20px 20px; border-radius: var(--r); background: #fff; box-shadow: var(--lift);
}
.crew-row[data-agent="sales"] { --c: var(--c-sales); --t: var(--t-sales); --x: var(--x-sales); }
.crew-row[data-agent="marketing"] { --c: var(--c-marketing); --t: var(--t-marketing); --x: var(--x-marketing); }
.crew-row[data-agent="account"] { --c: var(--c-account); --t: var(--t-account); --x: var(--x-account); }
.js .crew-row.rv.in:hover { transform: translateY(-4px); box-shadow: var(--lift-hi); }
.crew-stage {
  position: relative; height: 180px; border-radius: var(--r); background: var(--t);
  display: grid; place-items: end center; padding-bottom: 14px; overflow: hidden; cursor: pointer;
}
.crew-stage .mochi { --ms: 118px; transition: transform .6s var(--pop); }
.crew-stage:hover .mochi { transform: translateY(-10px) rotate(-4deg); }
.crew-name { display: grid; gap: 8px; }
.crew-name h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.03em; }
.crew-name h3 .pre { color: var(--ink-2); font-weight: 600; }
.crew-name .role { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--x); }
.crew-name .role::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.crew-name .desc { color: #3A3A3E; }
.crew-items { display: flex; flex-wrap: wrap; gap: 8px; }
.crew-items li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r);
  background: var(--inset); font-size: 15px; font-weight: 500;
  transition: background-color .3s, transform .5s var(--pop);
}
.crew-items li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.crew-items li:hover { background: var(--t); transform: translateY(-2px); }

/* ---------- Settle Studio 动态工作室 ---------- */
.studio { position: relative; overflow: hidden; border-radius: var(--r); background: #fff; box-shadow: var(--lift); padding: clamp(16px, 2.4vw, 28px); }
.studio .blobs .blob { opacity: .14; }
.studio .b-sales { width: 420px; height: 420px; left: -120px; top: -160px; }
.studio .b-marketing { width: 380px; height: 380px; right: -100px; top: 30%; }
.studio .b-account { width: 360px; height: 360px; left: 35%; bottom: -220px; }
.studio > :not(.blobs) { position: relative; z-index: 1; }
.studio-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 6px 18px; }
.studio-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.studio-name svg { width: 30px; height: 20px; fill: var(--ink); }
.studio-clock { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.studio-clock b { color: var(--ink); font-variant-numeric: tabular-nums; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 rgba(229,72,77,.5); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }

.desks { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.desk {
  --c: var(--c-manager); --t: var(--t-manager); --x: var(--ink);
  display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); background: rgba(242, 242, 245, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow: hidden;
}
.desk[data-agent="sales"] { --c: var(--c-sales); --t: var(--t-sales); --x: var(--x-sales); }
.desk[data-agent="marketing"] { --c: var(--c-marketing); --t: var(--t-marketing); --x: var(--x-marketing); }
.desk[data-agent="account"] { --c: var(--c-account); --t: var(--t-account); --x: var(--x-account); }
.desk-stage { position: relative; height: 190px; display: grid; place-items: end center; padding-bottom: 18px; background: var(--t); }
.desk-stage::after { /* 桌子 */
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 12px; height: 10px; border-radius: var(--r); background: rgba(17,18,20,.08);
}
.desk-stage .mochi { --ms: 116px; position: relative; z-index: 1; margin-bottom: 4px; }
.desk-info { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.desk-name { font-weight: 700; font-size: 16px; }
.desk-name span { color: var(--ink-2); font-weight: 600; }
.desk-state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--x); }
.desk-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.desk[data-state="tooLong"] .desk-state { color: #C2410C; }
.desk[data-state="tooLong"] .desk-state::before { background: #F97316; animation: live 1.2s infinite; }
.desk[data-state="idle"] .desk-state { color: var(--ink-2); }
.desk[data-state="idle"] .desk-state::before { background: #B4B4BB; }
.desk-task { font-size: 15px; line-height: 1.4; min-height: 2.8em; }

.flycard {
  position: absolute; z-index: 5; width: 46px; height: 34px; border-radius: 10px; background: #fff; pointer-events: none;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.35);
  background-image: linear-gradient(var(--inset-2), var(--inset-2)), linear-gradient(var(--inset-2), var(--inset-2)), linear-gradient(var(--c-marketing), var(--c-marketing));
  background-size: 28px 4px, 20px 4px, 8px 8px; background-position: 9px 16px, 9px 24px, 9px 6px; background-repeat: no-repeat;
}
.studio-you {
  position: absolute; z-index: 6; right: clamp(16px, 3vw, 32px); top: 64px;
  padding: 10px 14px; border-radius: var(--r); background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 12px 28px -10px rgba(11,127,82,.6);
  opacity: 0; transform: translateY(8px) scale(.9); transform-origin: right top; pointer-events: none;
}
.studio-you.show { animation: you-pop 2.4s var(--spring) forwards; }
@keyframes you-pop {
  0% { opacity: 0; transform: translateY(8px) scale(.9); }
  14% { opacity: 1; transform: none; }
  80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); }
}

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: rgba(242,242,245,.8); }
.legend-title { font-weight: 700; font-size: 15px; }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legend-row li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #3A3A3E; }
.legend-row .mochi { --ms: 30px; }
.studio-note { margin-top: 12px; padding: 0 6px; }

/* ---------- 活案例、价格、页尾的 Mochi ---------- */
.case-media { position: relative; }
.drop-case { top: -86px; right: 12%; }
.drop-case .mochi { --ms: 84px; }
.plan-wrap { position: relative; display: flex; flex-direction: column; }
.plan-wrap .plan { flex: 1; }
.drop-plan { top: -70px; right: 36px; }
.drop-plan .mochi { --ms: 70px; }
/* 团队：一群不同颜色、不同大小的 Mochi 挤在一起 */
.mini-team { display: flex; flex-wrap: nowrap; align-items: flex-end; margin: -4px 0 -2px -4px; }
@media (max-width: 1080px) { .mini-team { zoom: .8; } }
@media (max-width: 400px) { .mini-team { zoom: .72; } }
.mini-team .mochi { --ms: 52px; margin-right: -8px; }
.mini-team .mochi:nth-child(2) { --ms: 58px; }
.mini-team .mochi:nth-child(3) { --ms: 46px; }
.mini-team .mochi:nth-child(4) { --ms: 54px; }
.mini-team .mochi:nth-child(5) { --ms: 48px; }
.mini-team .mochi:nth-child(6) { --ms: 56px; }
.mini-team .mochi:nth-child(7) { --ms: 44px; }
.mini-team .mochi:nth-child(8) { --ms: 50px; }

.foot-logo { position: relative; margin-top: clamp(40px, 6vw, 80px); }
.fm .mochi { --ms: clamp(40px, 7vw, 96px); }
.fm { bottom: 100%; margin-bottom: -0.6%; transform: translateX(-50%); }
.fm-1 { left: 6.4%; }
.fm-2 { left: 45%; }
.fm-3 { left: 62%; }
.fm-4 { left: 78%; }
.fm-5 { left: 92%; bottom: auto; top: 75%; transform: translate(-50%, -100%); }
.foot .m-shadow { fill: rgba(17,18,20,.12); }


/* ---------- 平板、手机 ---------- */
@media (max-width: 1080px) {
  .rider { display: none; }
  .crew-row { grid-template-columns: 170px minmax(0, 1fr); }
  .crew-items { grid-column: 1 / -1; }
  .desks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .crew-row { grid-template-columns: 104px minmax(0, 1fr); gap: 14px 16px; padding: 12px; align-items: start; }
  .crew-stage { height: 120px; padding-bottom: 8px; }
  .crew-stage .mochi { --ms: 78px; }
  .crew-name { gap: 4px; padding-top: 6px; }
  .crew-name h3 { font-size: 24px; }
  .crew-name .desc { font-size: 15px; }
  .crew-items li { min-height: 36px; font-size: 14px; padding: 0 12px; }
  .desks { gap: 8px; }
  .desk-stage { height: 130px; padding-bottom: 12px; }
  .desk-stage .mochi { --ms: 80px; }
  .desk-info { padding: 10px 12px 12px; }
  .desk-name { font-size: 14px; }
  .desk-task { font-size: 13.5px; }
  .desk-state { font-size: 12.5px; }
  .studio-you { top: 54px; }
  .peek-phone { right: 24px; }
  .peek-form { right: 24px; }
  .drop-case { top: -70px; }
  .drop-case .mochi { --ms: 70px; }
  .drop-plan { right: 20px; top: -58px; }
  .drop-plan .mochi { --ms: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .m-body, html:not(.force-motion) .m-smoke circle, html:not(.force-motion) .m-zz text,
  html:not(.force-motion) .m-bubble, html:not(.force-motion) .live-dot { animation: none; }
  html:not(.force-motion) .peek .mochi { transform: translateY(34%); }
  html:not(.force-motion) .foot-glass-fill, html:not(.force-motion) .q-bubble { animation: none; }
}
