/* WIL Studio 页 · 原型 v2
   浅色为主、Apple 式干净玻璃感。背景浅灰，面板纯白浮起来；四个 agent 各有一个点缀色；
   所有角同一个圆角；动画用弹性缓动，丝滑不抢戏。 */

:root {
  --bg: #F2F2F5;           /* 页面底色：带一点冷的浅灰 */
  --surface: #FFFFFF;      /* 面板：纯白，从底色跳出来 */
  --inset: #F2F2F5;        /* 面板里面的嵌入层 */
  --inset-2: #E7E7EC;      /* 再深一层：分段选择的底 */
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --on-ink: #F5F5F7;

  /* ================================================================
     可调整：改这里，整站和所有 Mochi 一起变（两页共用）
     ================================================================ */

  /* Mochi 配色 · 雪糕 Gelato（Desktop/WIL Studio/Mochi）。用 #RRGGBB 写法 */
  --m-white:  #FFFFFF;   /* Manager 白天 */
  --m-night:  #3F3F55;   /* Manager 晚上 */
  --m-yellow: #FFC85A;   /* Sales */
  --m-blue:   #7DB8FF;   /* Marketing */
  --m-green:  #6FD6BE;   /* Account */
  --m-purple: #B79BFF;   /* 备用 */
  --m-pink:   #FF8FBA;   /* 备用 */
  --m-orange: #FFA36B;   /* 备用 */
  --m-brown:  #C3956B;   /* 备用 */
  --m-grey:   #A9A9B6;   /* 备用 */
  --m-eye-dark: #3F3F55; /* 浅色 Mochi 的眼睛（深色 Mochi 自动用白色眼睛） */

  /* 开头重点字“AI 私人助理”和预约按钮的渐变（比 Mochi 色深一点，字才看得清） */
  --hi-1: #8C6CF2;   /* 紫 */
  --hi-2: #4C8EF0;   /* 蓝 */
  --hi-3: #EE6FA6;   /* 粉 */

  --accent: #0B7F52;       /* WhatsApp 动作的绿色（白字对比度够） */

  /* 专员名字当文字用的深色版本（太浅的字在白底上看不清，所以另外定） */
  --x-sales: #8A5E00;
  --x-marketing: #2C67B8;
  --x-account: #17765F;

  /* 动画速度：数字越大越慢 */
  --speed-reveal: .9s;     /* 区块进场 */
  --speed-text-flow: 9s;   /* 开头重点字的颜色流动 */
  --speed-glass-flow: 18s; /* 页尾 WIL 玻璃字的颜色流动 */
  --speed-blob: 20s;       /* 背景彩色光斑飘动 */

  /* ================================================================ */

  /* 由上面自动算出来的：专员颜色、浅色底（不用改） */
  --c-manager: var(--m-night);
  --c-sales: var(--m-yellow);
  --c-marketing: var(--m-blue);
  --c-account: var(--m-green);
  --c-purple: var(--m-purple);
  --c-pink: var(--m-pink);
  --c-grey: var(--m-grey);
  --t-manager: color-mix(in srgb, var(--c-manager) 10%, white);
  --t-sales: color-mix(in srgb, var(--c-sales) 18%, white);
  --t-marketing: color-mix(in srgb, var(--c-marketing) 16%, white);
  --t-account: color-mix(in srgb, var(--c-account) 18%, white);
  --t-purple: color-mix(in srgb, var(--c-purple) 16%, white);
  --t-pink: color-mix(in srgb, var(--c-pink) 16%, white);
  --t-grey: color-mix(in srgb, var(--c-grey) 18%, white);

  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --lift: 0 1px 2px rgba(20, 20, 30, .04), 0 12px 32px -10px rgba(20, 20, 30, .12);
  --lift-hi: 0 2px 6px rgba(20, 20, 30, .05), 0 28px 56px -16px rgba(20, 20, 30, .22);

  --r: 22px;               /* 每个角同一个圆角 */

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --spring: cubic-bezier(.16, 1, .3, 1);      /* 丝滑收尾 */
  --pop: cubic-bezier(.34, 1.4, .64, 1);      /* 轻轻弹一下 */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-marketing); outline-offset: 3px; border-radius: var(--r); }
::selection { background: var(--t-marketing); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--r); }

/* ---------- 字 ---------- */
h1 { font-size: min(78px, 8.6cqi); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; white-space: pre-line; }
h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
h4 { font-size: 17px; font-weight: 650; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2 { letter-spacing: -0.02em; }
:lang(zh-Hans) h1 { font-size: min(80px, 10.8cqi); }
h1, h2, h3 { text-wrap: balance; }
h2 { white-space: pre-line; }
:lang(zh-Hans) h2, :lang(zh-Hans) h3 { text-wrap: wrap; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 38em; color: #3A3A3E; }
.fine { font-size: 14px; color: var(--ink-2); }

/* ---------- 表面 ---------- */
.panel { background: var(--surface); border-radius: var(--r); box-shadow: var(--lift); }
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), var(--lift);
}

/* 彩色光斑：玻璃后面有颜色，玻璃感才出得来 */
.blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.b-sales { background: var(--c-sales); opacity: .55; }
.b-marketing { background: var(--c-marketing); opacity: .5; }
.b-account { background: var(--c-account); opacity: .45; }
.blob.c-purple { background: var(--c-purple); }
.blob.c-pink { background: var(--c-pink); }
.blob.c-sales { background: var(--c-sales); }
.blob.c-marketing { background: var(--c-marketing); }
.blob.c-account { background: var(--c-account); }
@keyframes drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 8%) scale(1.12); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, 0) scale(1.05); } 50% { transform: translate(8%, -6%) scale(.92); } }
@keyframes drift-c { 0%, 100% { transform: translate(0, 0) scale(.95); } 50% { transform: translate(-4%, -8%) scale(1.1); } }
.blob:nth-child(1) { animation: drift-a calc(var(--speed-blob) * .9) ease-in-out infinite; }
.blob:nth-child(2) { animation: drift-b calc(var(--speed-blob) * 1.1) ease-in-out infinite; }
.blob:nth-child(3) { animation: drift-c calc(var(--speed-blob) * 1.3) ease-in-out infinite; }

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: var(--r);
  font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform .5s var(--spring), background-color .25s, box-shadow .5s var(--spring);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); transition-duration: .15s; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: #333336; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.btn-light { background: var(--inset-2); color: var(--ink); }
.btn-light:hover { background: #DCDCE2; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0B7449; box-shadow: 0 16px 34px -12px rgba(19,162,107,.6); }
.btn-wide { width: 100%; min-height: 60px; font-size: 18px; }
.link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; color: var(--x-marketing); }
.link::after { content: "→"; transition: transform .5s var(--spring); }
.link:hover::after { transform: translateX(5px); }

/* 分段选择：底下有一块会滑动的白色滑块 */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; background: var(--inset-2); border-radius: var(--r); isolation: isolate; }
.seg .thumb {
  position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: 0;
  background: #fff; border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px -4px rgba(0,0,0,.12);
  transition: transform .55s var(--spring), width .55s var(--spring);
}
.seg button {
  border: 0; background: transparent; cursor: pointer;
  min-height: 34px; padding: 0 12px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; color: #58585E;
  transition: color .3s, transform .3s var(--spring);
}
.seg button:hover { color: var(--ink); }
.seg button:active { transform: scale(.95); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"], .seg button[aria-checked="true"] { color: var(--ink); }
.seg-big button { min-height: 46px; padding: 0 20px; font-size: 16px; }
.seg-full { display: flex; }
.seg-full button { flex: 1; }

/* ---------- 顶栏 ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(242, 242, 245, 0.7);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  transition: box-shadow .4s;
}
.bar.scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 8px 24px -16px rgba(0,0,0,.2); }
.bar-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-mark { width: 62px; height: 21px; fill: var(--ink); }
.brand-sub { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-2); }
.bar-links { display: flex; gap: 28px; margin-left: 16px; }
.bar-links a { position: relative; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .25s; }
.bar-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transition: transform .5s var(--spring); }
.bar-links a:hover { color: var(--ink); }
.bar-links a:hover::after { transform: scaleX(1); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ---------- 1 开头 ---------- */
.hero-sec { position: relative; }
.hero-sec .blobs { inset: -10% 0 -20%; }
.hero-sec .b-sales { width: 46vw; height: 46vw; max-width: 680px; max-height: 680px; right: -6vw; top: -8%; }
.hero-sec .b-marketing { width: 30vw; height: 30vw; max-width: 440px; max-height: 440px; right: 22vw; bottom: 6%; }
.hero-sec .b-account { width: 26vw; height: 26vw; max-width: 380px; max-height: 380px; right: 4vw; bottom: -4%; }
.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: calc(100svh - 68px);
  padding-top: 48px; padding-bottom: 72px;
}
.hero-mark {
  position: absolute; z-index: 0; left: 30%; top: 50%;
  width: min(60vw, 820px); height: auto; aspect-ratio: 541 / 352;
  transform: translateY(-50%);
  fill: #fff; opacity: .7;
  pointer-events: none;
}
.hero-text, .phone { position: relative; z-index: 1; }
.hero-text { container-type: inline-size; }
.hero .lead { margin-top: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; }
.hero-price { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.hero-price::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--t-account); }

.phone { padding: 18px; max-width: 440px; justify-self: end; width: 100%; will-change: transform; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 16px; }
.chat-head b { display: block; font-size: 16px; }
.chat-head small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.chat-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.avatar { width: 40px; height: 40px; border-radius: var(--r); background: var(--ink); display: grid; place-items: center; flex: none; }
.avatar svg { width: 24px; height: 16px; fill: var(--on-ink); }
.chat { display: flex; flex-direction: column; gap: 8px; min-height: 360px; }
.msg {
  max-width: 86%; padding: 10px 14px; border-radius: var(--r);
  font-size: 15px; line-height: 1.45; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; }
.msg .draft { margin-top: 8px; padding: 10px 12px; border-radius: var(--r); background: var(--t-marketing); color: #0A3F8A; }
.chat-note { margin-top: 12px; padding: 0 6px; font-size: 13px; color: var(--ink-2); }

.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 14px; border-radius: var(--r); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); animation: swap .4s var(--spring); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #A8A8B0; animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }

.js .msg { opacity: 0; transform: translateY(12px) scale(.92); transform-origin: left bottom; }
.js .msg.me { transform-origin: right bottom; }
.js .msg.show { opacity: 1; transform: none; transition: opacity .4s ease, transform .6s var(--pop); }

/* ---------- 区块通用 ---------- */
.sec { position: relative; padding: clamp(96px, 12vw, 180px) 0 0; }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 860px; }

/* ---------- 2 一条线 ---------- */
.line-wrap { position: relative; }
.line { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.line-track, .line-fill { position: absolute; left: 25px; right: 25px; top: 22px; height: 6px; border-radius: var(--r); }
.line-track { background: var(--inset-2); }
.line-fill {
  background: linear-gradient(90deg, var(--c-marketing) 22%, var(--c-sales) 42%, var(--c-sales) 76%, var(--c-account) 92%);
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0);
}
.station { position: relative; display: flex; flex-direction: column; --c: var(--c-manager); --t: var(--t-manager); }
.station[data-agent="sales"] { --c: var(--c-sales); --t: var(--t-sales); --x: var(--x-sales); }
.station[data-agent="marketing"] { --c: var(--c-marketing); --t: var(--t-marketing); --x: var(--x-marketing); }
.station[data-agent="account"] { --c: var(--c-account); --t: var(--t-account); --x: var(--x-account); }
.station-node {
  position: relative; z-index: 1;
  width: 50px; height: 50px; border-radius: var(--r);
  background: #fff; color: var(--ink-2);
  box-shadow: var(--lift);
  display: grid; place-items: center;
  transition: background-color .5s var(--spring), color .5s, transform .6s var(--pop);
}
.station.on .station-node { background: var(--c); color: var(--m-eye-dark); transform: scale(1.06); }
.station-node svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.station h3 { margin-top: 20px; }
.station-body { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.station-pain { font-size: 15px; line-height: 1.5; }
.station-pain > span:first-child, .station-fix > span:first-child { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }
.station-fix {
  margin-top: auto; padding: 16px; border-radius: var(--r); background: #fff; box-shadow: var(--lift);
  font-size: 15px; line-height: 1.45;
  transition: transform .6s var(--spring), box-shadow .6s var(--spring);
}
.station-fix:hover { transform: translateY(-4px); box-shadow: var(--lift-hi); }
.station-fix b { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 4px; color: var(--x, var(--c)); }
.fix-head { display: flex; align-items: center; gap: 6px; margin: 2px 0 4px -4px; }
.fix-head .mochi { --ms: 30px; }
.fix-head b { margin: 0; }

/* ---------- 3 怎么帮你 ---------- */
.team { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 14px; }
.agent {
  --c: var(--c-manager); --t: var(--t-manager);
  position: relative; overflow: hidden;
  padding: 28px; border-radius: var(--r); background: #fff; box-shadow: var(--lift);
  display: flex; flex-direction: column; gap: 6px; min-height: 260px;
}
.agent.in, .plan.in { transition: transform .7s var(--spring), box-shadow .7s var(--spring), opacity .9s var(--spring), filter .9s var(--spring); }
.agent:hover { transform: translateY(-6px); box-shadow: var(--lift-hi); }
.agent[data-agent="sales"] { --c: var(--c-sales); --t: var(--t-sales); --x: var(--x-sales); }
.agent[data-agent="marketing"] { --c: var(--c-marketing); --t: var(--t-marketing); --x: var(--x-marketing); }
.agent[data-agent="account"] { --c: var(--c-account); --t: var(--t-account); --x: var(--x-account); }
.agent-icon {
  width: 52px; height: 52px; border-radius: var(--r); margin-bottom: 18px;
  background: var(--t); color: var(--x, var(--c)); display: grid; place-items: center;
  transition: transform .7s var(--pop);
}
.agent:hover .agent-icon { transform: rotate(-8deg) scale(1.08); }
.agent-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.agent-icon svg.mark { width: 28px; height: 18px; fill: currentColor; stroke: none; }
.agent .role { font-size: 16px; font-weight: 600; color: var(--x, var(--c)); }
.agent h3 { font-size: clamp(24px, 2.2vw, 32px); }
.agent .desc { font-size: 16px; margin-top: auto; padding-top: 16px; color: #3A3A3E; }
.agent.lead-agent { background: var(--ink); color: var(--on-ink); }
.agent.lead-agent .role { color: #9FA0A8; }
.agent.lead-agent .desc { color: #D5D5DA; }
.agent.lead-agent .agent-icon { background: rgba(255,255,255,.1); color: #fff; }
.agent.lead-agent::after { /* 深色卡里一点彩光 */
  content: ""; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -90px; border-radius: 50%;
  background: var(--c-sales); filter: blur(60px); opacity: .55;
  transition: transform 1.2s var(--spring);
}
.agent.lead-agent:hover::after { transform: translate(-30px, -20px) scale(1.2); }
.agent.lead-agent > * { position: relative; z-index: 1; }

.industry {
  position: relative; overflow: hidden;
  margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 4vw, 56px); border-radius: var(--r); background: #fff; box-shadow: var(--lift);
  --c: var(--c-sales); --t: var(--t-sales);
}
.industry[data-ind="0"] { --c: var(--c-purple); --t: var(--t-purple); }
.industry[data-ind="1"] { --c: var(--c-marketing); --t: var(--t-marketing); }
.industry[data-ind="2"] { --c: var(--c-pink); --t: var(--t-pink); }
.industry .b-1 { width: 420px; height: 420px; right: -80px; top: -100px; background: var(--c); opacity: .28; transition: background-color 1s var(--spring); }
.industry .b-2 { width: 300px; height: 300px; right: 34%; bottom: -160px; background: var(--c-sales); opacity: .14; }
.industry-text, .industry-chat { position: relative; z-index: 1; }
.industry-text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.industry-text h4 { margin-top: 16px; }
.did { display: grid; gap: 10px; }
.did li { display: flex; gap: 10px; font-size: 16px; }
.did li::before, .ticks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.7 2.6L14.5 7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.did li::before { background-color: var(--c); transition: background-color .6s; }
.js .did li { opacity: 0; transform: translateX(-12px); }
.js .did li.show { opacity: 1; transform: none; transition: opacity .5s, transform .7s var(--spring); }
.industry-chat { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.industry-chat .chat { min-height: 300px; }
.incoming { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: rgba(255,255,255,.85); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.incoming .who { width: 40px; height: 40px; border-radius: 50%; background: var(--t); color: var(--c); display: grid; place-items: center; font-weight: 700; flex: none; transition: background-color .6s, color .6s; }
.incoming b { font-size: 15px; }
.incoming small { color: var(--ink-2); font-size: 13px; margin-left: 6px; }
.incoming p { font-size: 15px; margin-top: 2px; }
.incoming.swap { animation: swap .7s var(--spring); }
@keyframes swap { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- 4 活案例 ---------- */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.case-photo {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: var(--r); background: #fff; box-shadow: var(--lift);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  color: var(--ink-2); font-weight: 600; text-align: center; padding: 24px;
}
.case-photo .blob { width: 70%; height: 60%; }
.case-photo .b-sales { left: -20%; top: -10%; }
.case-photo .b-marketing { right: -20%; bottom: -10%; }
.case-photo svg { position: relative; width: 46%; height: auto; aspect-ratio: 1028 / 352; fill: var(--ink); }
.case-photo > span { position: relative; }
.case-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; }

/* ---------- 5 价格 ---------- */
.plans { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.plan {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--r);
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
}
.plan > :not(.blobs) { position: relative; z-index: 1; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--lift-hi); }
.plan .btn { margin-top: auto; }
.plan-main {
  background: rgba(255, 255, 255, .5); color: var(--ink);
  -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), var(--lift-hi);
}
.plan-team { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
#pricing { position: relative; }
#pricing .blobs { inset: 30% -5% -10%; }
#pricing .b-sales { width: 520px; height: 520px; left: 4%; top: 0; }
#pricing .b-marketing { width: 460px; height: 460px; left: 32%; bottom: 0; }
#pricing .b-account { width: 420px; height: 420px; right: 4%; top: 10%; }
#pricing .wrap { position: relative; z-index: 1; }

.plan-team { background: #fff; box-shadow: var(--lift); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: clamp(44px, 5.4vw, 76px); letter-spacing: -0.04em; line-height: 1; }
.price span { font-size: 18px; opacity: .7; }
.gift { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; padding: 8px 14px 8px 8px; border-radius: var(--r); background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gift::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c-pink); color: #fff; font-weight: 700; line-height: 1; }
.plan-main .ticks { margin-bottom: 12px; }

/* ---------- 6 常见问题 ---------- */
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq { padding: 8px; }
/* 常见问题左边：一句话 + WhatsApp + 一只冒问号的 Mochi，往下滚会停住 */
.faq-side { position: sticky; top: 100px; display: grid; gap: 22px; justify-items: start; }
.faq-side .lead { white-space: pre-line; text-wrap: wrap; }
.faq-mochi { position: relative; margin-top: 8px; padding-top: 20px; }
.faq-mochi .mochi { --ms: 140px; }
.q-bubble {
  position: absolute; left: 104px; top: 74px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: var(--lift); font-weight: 800; font-size: 20px; color: var(--hi-1);
  animation: q-bob 2.6s ease-in-out infinite;
}
.q-bubble::after { content: ""; position: absolute; left: 6px; bottom: -4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
@keyframes q-bob { 50% { transform: translateY(-6px) rotate(8deg); } }
.faq details { border-radius: var(--r); transition: background-color .4s; }
.faq details + details { margin-top: 4px; }
.faq details.open { background: var(--inset); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  font-size: 18px; font-weight: 600; border-radius: var(--r);
  transition: background-color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--inset); }
.faq summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--inset-2); font-size: 20px; font-weight: 500; line-height: 1;
  transition: transform .6s var(--spring), background-color .3s, color .3s;
}
.faq details.open summary::after { transform: rotate(135deg); background: var(--ink); color: #fff; }
.faq .answer { overflow: hidden; transition: height .6s var(--spring); }
.faq .answer p { padding: 0 22px 22px; max-width: 40em; color: #3A3A3E; }

/* ---------- 7 表单 ---------- */
.form-sec { padding-bottom: clamp(96px, 12vw, 160px); }
.form-sec .blobs { inset: 10% 0 0; }
.form-sec .b-sales { width: 520px; height: 520px; left: 2%; top: 10%; }
.form-sec .b-marketing { width: 420px; height: 420px; right: 4%; top: 30%; }
.form-sec .b-account { width: 460px; height: 460px; left: 30%; bottom: 0; }
.form { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); display: grid; gap: 28px; background: var(--glass-strong); }
.form-head { display: grid; gap: 14px; }
.field { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.field > span, .field legend { font-size: 15px; font-weight: 600; padding: 0; }
.field legend { margin-bottom: 10px; }
.inputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
input:not([type="checkbox"]) {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 0; border-radius: var(--r); background: rgba(255,255,255,.9);
  font-size: 17px; outline: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.07);
  transition: box-shadow .35s var(--spring), background-color .3s;
}
input:not([type="checkbox"]):focus { box-shadow: inset 0 0 0 2px var(--c-marketing), 0 0 0 5px rgba(21,133,255,.15); background: #fff; }
input.bad { box-shadow: inset 0 0 0 2px #D93025, 0 0 0 5px rgba(217,48,37,.12); }
#chipGroups { display: grid; gap: 26px; }
.who-only { overflow: hidden; transition: height .6s var(--spring), opacity .4s; }
.who-only[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; cursor: pointer; min-height: 44px; padding: 0 16px; border-radius: var(--r);
  background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px rgba(0,0,0,.07);
  font-size: 15px; font-weight: 500;
  transition: background-color .3s, color .3s, transform .5s var(--pop), box-shadow .3s;
}
.chip:hover { background: #fff; transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.07), 0 6px 14px -8px rgba(0,0,0,.3); }
.chip:active { transform: scale(.94); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.err { color: #D93025; font-weight: 600; font-size: 15px; }
.err:empty { display: none; }
.form.shake { animation: shake .45s var(--spring); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

/* ---------- 页尾 ---------- */
.foot { position: relative; overflow: hidden; background: #FFFFFF; color: var(--ink); padding: clamp(64px, 8vw, 120px) 0 120px; box-shadow: 0 -1px 0 rgba(0,0,0,.04); }
.foot .b-sales { width: 520px; height: 520px; right: -120px; top: -220px; opacity: .4; }
.foot .b-marketing { width: 380px; height: 380px; left: 10%; bottom: -240px; opacity: .35; }
.foot .wrap { position: relative; z-index: 1; }
.foot-glass {
  position: relative; width: 100%; aspect-ratio: 1028 / 352;
  filter: drop-shadow(0 26px 40px rgba(120, 100, 190, .22)) drop-shadow(0 4px 8px rgba(63, 63, 85, .08));
}
.foot-glass-fill {
  position: absolute; inset: 0;
  -webkit-mask: url("wil-mask.svg") center / 100% 100% no-repeat; mask: url("wil-mask.svg") center / 100% 100% no-repeat;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.08) 55%, rgba(255,255,255,.25) 100%),
    radial-gradient(circle at 12% 30%, var(--m-yellow) 0, transparent 34%),
    radial-gradient(circle at 34% 78%, var(--m-blue) 0, transparent 36%),
    radial-gradient(circle at 55% 22%, var(--m-purple) 0, transparent 34%),
    radial-gradient(circle at 74% 70%, var(--m-pink) 0, transparent 34%),
    radial-gradient(circle at 92% 30%, var(--m-green) 0, transparent 34%),
    color-mix(in srgb, var(--m-purple) 12%, white);
  background-size: 100% 100%, 180% 180%, 180% 180%, 180% 180%, 180% 180%, 180% 180%, 100% 100%;
  animation: glass-flow var(--speed-glass-flow) ease-in-out infinite alternate;
}
@keyframes glass-flow {
  0% { background-position: 0 0, 0% 0%, 100% 0%, 50% 100%, 0% 100%, 100% 100%, 0 0; }
  50% { background-position: 0 0, 60% 40%, 30% 60%, 80% 20%, 50% 30%, 20% 60%, 0 0; }
  100% { background-position: 0 0, 100% 100%, 0% 100%, 20% 0%, 100% 0%, 0% 0%, 0 0; }
}
.foot-glass-line { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255,255,255,.95); stroke-width: 1.6px; vector-effect: non-scaling-stroke; }
.foot-glass-line use { vector-effect: non-scaling-stroke; }
.foot-row { margin-top: 40px; display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; }
.foot-row .fine { color: var(--ink-2); grid-column: 1 / -1; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; font-weight: 600; opacity: .85; transition: opacity .3s; }
.foot-links a:hover { opacity: 1; }

/* ---------- 草稿工具 ---------- */
.draftbar {
  position: fixed; z-index: 30; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 10px 34px -6px rgba(0,0,0,.2);
  max-width: calc(100vw - 24px); overflow-x: auto;
}
.draftbar .btn:hover { transform: none; }
.draft-badge { font-size: 13px; font-weight: 600; padding: 0 10px; white-space: nowrap; color: var(--ink-2); }
.draftbar .btn { white-space: nowrap; }
body.editing [data-t] { outline: 2px dashed rgba(47,107,255,.5); outline-offset: 3px; border-radius: 6px; cursor: text; }
body.editing [data-t]:focus { outline-style: solid; background: rgba(231,238,255,.6); }
body.editing .draftbar [data-t], body.editing .bar [data-t] { outline: none; cursor: auto; }
[data-t].edited { box-shadow: 0 2px 0 var(--c-sales); }
.toast {
  position: fixed; z-index: 31; left: 50%; bottom: 76px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: var(--r);
  font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .5s var(--spring);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 进场：往上浮、由模糊变清楚 ---------- */
.js .rv { opacity: 0; transform: translateY(36px); filter: blur(8px); }
.js .rv.in {
  opacity: 1; transform: none; filter: none;
  transition: opacity var(--speed-reveal) var(--spring), transform calc(var(--speed-reveal) * 1.2) var(--spring), filter var(--speed-reveal) var(--spring), box-shadow .7s var(--spring);
  transition-delay: var(--d, 0ms);
}
.js .rv.in.settled { transition-delay: 0ms; transition-duration: .7s; }
.js .rv.in:hover { transition-delay: 0ms; }
.js .agent.rv.in:hover, .js .plan.rv.in:hover { transform: translateY(-6px); }

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
  /* 一条线改成直的（平板和手机都是） */
  .line { grid-template-columns: 1fr; row-gap: 0; }
  .line-track, .line-fill { display: block; left: 22px; right: auto; top: 25px; bottom: 60px; width: 6px; height: auto; }
  .line-fill { background: linear-gradient(180deg, var(--c-marketing) 22%, var(--c-sales) 42%, var(--c-sales) 76%, var(--c-account) 92%); clip-path: inset(0 0 calc((1 - var(--p, 0)) * 100%) 0); }
  .station { display: grid; grid-template-columns: 50px 1fr; column-gap: 20px; padding-bottom: 36px; }
  .station h3 { margin-top: 8px; grid-column: 2; grid-row: 1; }
  .station-body { grid-column: 2; display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: start; }
  .station-fix { margin-top: 0; }
  .station-node { grid-row: 1 / span 2; }
  .team { grid-template-columns: 1fr 1fr; }
  .inputs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero-mark { top: 80px; transform: none; left: auto; right: -10vw; width: 90vw; }
  .phone { justify-self: stretch; max-width: none; }
  .phone .chat { min-height: 0; }
  .hero-sec .b-sales { width: 80vw; height: 80vw; max-width: none; max-height: none; top: 30%; }
  .hero-sec .b-marketing { width: 50vw; height: 50vw; right: auto; left: -10vw; bottom: 10%; }
}
@media (max-width: 900px) {
  .bar-links { display: none; }
  .industry, .case, .plans, .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .faq-mochi { display: none; }
  .case-photo { aspect-ratio: 4 / 3; }
}

/* ---------- 手机 ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar-in { height: 60px; gap: 10px; }
  .brand-sub, .bar-cta { display: none; }
  .hero { padding-top: 28px; padding-bottom: 24px; }
  .hero .lead { margin-top: 20px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { width: 100%; }
  .msg { font-size: 14.5px; }

  /* 一条线改成直的 */
  .line { grid-template-columns: 1fr; row-gap: 0; }
  .line-track, .line-fill { display: block; left: 22px; right: auto; top: 25px; bottom: 60px; width: 6px; height: auto; }
  .line-fill { background: linear-gradient(180deg, var(--c-marketing) 22%, var(--c-sales) 42%, var(--c-sales) 76%, var(--c-account) 92%); clip-path: inset(0 0 calc((1 - var(--p, 0)) * 100%) 0); }
  .station { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; padding-bottom: 32px; }
  .station h3 { margin-top: 8px; grid-column: 2; grid-row: 1; }
  .station-body { grid-column: 2; grid-template-columns: 1fr; gap: 12px; }
  .station-node { grid-row: 1 / span 2; }

  .team { grid-template-columns: 1fr; }
  .agent { min-height: 0; padding: 22px; }
  .agent-icon { margin-bottom: 10px; }
  .industry { padding: 16px; }
  .industry-text .seg { display: flex; width: 100%; }
  .industry-text .seg button { flex: 1; padding: 0 8px; }
  .inputs { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; padding: 18px; }
  .faq .answer p { padding: 0 18px 18px; }
  .foot-row { grid-template-columns: 1fr; }
  .draft-badge { display: none; }
  .blob { filter: blur(50px); }
}

/* 系统要求减少动画时关掉；网址加 ?motion 可以强制打开（给 Will 看效果用） */
@media (prefers-reduced-motion: reduce) {
  html:not(.lenis):not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion).js .rv, html:not(.force-motion).js .msg, html:not(.force-motion).js .did li { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  html:not(.force-motion) .blob { animation: none !important; }
  html:not(.force-motion) .form.shake, html:not(.force-motion) .incoming.swap { animation: none; }
}

/* ---------- 开头：重点字放大、渐变；按钮放大、渐变；按钮上坐一只 Mochi ---------- */
.hero h1 .hi {
  display: inline-block;
  background: linear-gradient(90deg, var(--hi-1), var(--hi-2) 35%, var(--hi-3) 70%, var(--hi-1));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hi-flow var(--speed-text-flow) linear infinite;
  padding-bottom: .06em;
}
:lang(zh-Hans) .hero h1 .hi { font-size: 1.22em; }
@keyframes hi-flow { to { background-position: 300% 0; } }
.btn-hero {
  min-height: 64px; padding: 0 36px; font-size: 19px; color: #fff;
  background: linear-gradient(100deg, var(--hi-1), var(--hi-2) 50%, var(--hi-3));
  background-size: 200% 100%;
  box-shadow: 0 18px 36px -16px rgba(120, 90, 230, .75);
  transition: transform .5s var(--spring), box-shadow .5s var(--spring), background-position .8s var(--spring);
}
.btn-hero:hover { background-position: 100% 0; box-shadow: 0 22px 44px -16px rgba(238, 122, 176, .7); }
.cta-wrap { position: relative; display: inline-flex; }
.cta-mochi { position: absolute; right: -8px; top: -44px; z-index: 2; }
.cta-mochi .mochi { --ms: 50px; display: block; }

/* ---------- 表单：WhatsApp 按钮上的 Mochi 和泡泡 ---------- */
.submit-wrap { position: relative; margin-top: 34px; }
.submit-mochi { position: absolute; right: 40px; bottom: calc(100% - 14px); z-index: 2; display: flex; align-items: flex-start; gap: 6px; pointer-events: none; }
.submit-mochi .mochi { --ms: 64px; pointer-events: auto; }
.nudge {
  position: relative; margin-top: 4px; padding: 8px 14px; border-radius: var(--r); background: #fff; box-shadow: var(--lift);
  font-size: 14px; font-weight: 650; white-space: nowrap; color: var(--ink);
  animation: q-bob 2.6s ease-in-out infinite; transition: background-color .3s, color .3s;
}
.nudge::after { content: ""; position: absolute; right: -5px; top: 14px; width: 12px; height: 12px; background: inherit; border-radius: 3px; transform: rotate(45deg); }
.submit-wrap.ready .nudge { background: var(--accent); color: #fff; }
.submit-wrap.ready .btn-accent { box-shadow: 0 0 0 6px rgba(11, 127, 82, .15), 0 16px 34px -12px rgba(11, 127, 82, .6); }

@media (max-width: 640px) {
  .hero-actions .cta-wrap { width: 100%; }
  .hero-actions .cta-wrap .btn { width: 100%; }
  .cta-mochi { right: 10px; }
  .submit-mochi { right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .hero h1 .hi, html:not(.force-motion) .nudge { animation: none; }
}
