/* 小方页的设计语言：“暖光”。
   骨架和首页一样（ark.css：白底、石墨色的字、细线、圆角按钮），区别只有三处：
   一、唯一的颜色是暖光（灯光黄），只在关键处亮起：胸口、名字背后、结尾；不用蓝青色，也不用围炉绿。
   二、标题分深浅两层，重点的半句是石墨色，其余是灰色；不用记号笔，也不用渐变字。
   三、温馨交给真实的家庭照片。
   动起来的规矩：光会呼吸，纱帘会轻轻地摆，但身影始终是虚的，任何动画都不会让它变清楚。 */
.xf { --soft: #F5F6F8; --grey: #7F8C9A; --hair: rgba(10, 26, 43, .08); }
.xf ::selection { background: rgba(255, 201, 51, .4); }
.xf :focus-visible { outline-color: var(--ink); }

/* 小标签：一个亮着的小圆点 */
.xf .label { color: var(--ink); letter-spacing: .1em; }
.xf .label::before { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 201, 51, .28); }
.xf .head.center .label::after { content: none; }
.xf .label.wl::before { background: #20D88C; box-shadow: 0 0 0 4px rgba(32, 216, 140, .24); }
.xf .eyebrow i { background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 201, 51, .3); animation-name: beat-warm; }
@keyframes beat-warm { 50% { box-shadow: 0 0 0 7px rgba(255, 201, 51, .14); } }

/* 深浅两层的标题 */
.xf h2, .xf h3.two { color: var(--grey); }
.xf h2 .k, .xf h3.two .k { color: var(--ink); }
/* 名字背后的一团暖光，和胸口的光一起呼吸 */
.glow { position: relative; z-index: 0; white-space: nowrap; }
.glow::before { content: ""; position: absolute; z-index: -1; left: -16%; right: -16%; top: 2%; bottom: -14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 201, 51, .95), rgba(255, 201, 51, .5) 55%, rgba(255, 201, 51, 0)); filter: blur(6px); animation: pulse 4.2s ease-in-out infinite; }
@keyframes pulse { 50% { scale: 1.12; opacity: .78; } }

.xf .sec.soft { background: var(--soft); }
.xf .sig { animation-duration: 1.2s; }

/* ---------- 头图 ---------- */
.xhero { background: linear-gradient(#F8F9FB, #F1F3F6); }
.xhero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 40px; align-items: center; padding: 64px 0 96px; }
.xhero h1 { margin-top: 30px; font-size: clamp(54px, 6.4vw, 92px); line-height: 1.16; letter-spacing: -.025em; }
.xhero .lead { max-width: 30em; margin-top: 30px; font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.9; }
.xhero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.xhero .note { margin-top: 22px; font-size: 14px; color: var(--mute); }
.xhero .art { position: relative; }
.xhero .art::before { content: ""; position: absolute; left: 50%; top: 52%; width: 980px; height: 980px; margin: -490px 0 0 -412px; background: radial-gradient(closest-side, rgba(255, 201, 51, .42), rgba(255, 201, 51, .14) 52%, rgba(255, 201, 51, 0)); animation: pulse 4.2s ease-in-out infinite; pointer-events: none; }
.arch { --w: 470px; --h: 600px; position: relative; width: var(--w); height: var(--h); margin-left: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.arch .in { position: absolute; inset: 0; border-radius: calc(var(--w) / 2) calc(var(--w) / 2) 28px 28px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--hair), 0 44px 80px -28px rgba(10, 26, 43, .32); transition: box-shadow .5s, translate .5s var(--ease); isolation: isolate; }
.arch:hover .in { translate: 0 -4px; box-shadow: 0 0 0 1px var(--hair), 0 54px 90px -30px rgba(10, 26, 43, .4), 0 0 80px -10px rgba(255, 201, 51, .5); }
.arch .v-back { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateX(calc(var(--px, 0) * -5px)); transition: transform .6s var(--ease); }
/* 纱帘：自己轻轻地摆，鼠标动的时候跟着偏一点 */
.arch .v-front { position: absolute; left: -5%; top: 0; width: 110%; height: 100%; max-width: none; will-change: transform; transform: translateX(calc(var(--px, 0) * 14px)); transition: transform .6s var(--ease); animation: sway 9s ease-in-out infinite; }
@keyframes sway { 0%, 100% { translate: -.7% 0; } 50% { translate: .7% 0; } }
/* 胸口的光：呼吸；鼠标靠近时亮一些、快一些 */
.arch .v-heart, .arch .v-aura { transform-box: fill-box; transform-origin: center; animation: heart 4.2s ease-in-out infinite; }
.arch:hover .v-heart, .arch:hover .v-aura { animation-duration: 1.5s; }
@keyframes heart { 50% { transform: scale(1.24); } }
/* 点一下：一圈暖光从胸口荡开（在纱帘后面） */
.arch .wave { position: absolute; left: var(--cx); top: var(--cy); width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 92, 0) 52%, rgba(255, 201, 51, .75) 72%, rgba(255, 201, 51, 0)); opacity: 0; pointer-events: none; }
.arch.pulse .wave { animation: wave 1.5s var(--ease); }
@keyframes wave { 0% { scale: .4; opacity: .9; } 100% { scale: 7; opacity: 0; } }
.talk { position: absolute; left: -118px; bottom: 86px; display: flex; gap: 12px; align-items: center; padding: 12px 20px 12px 12px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--hair), 0 22px 44px -16px rgba(10, 26, 43, .3); white-space: nowrap; transition: translate .5s var(--spring); }
.arch:hover .talk { translate: 0 -6px; }
.talk .dot { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun-soft); }
.talk .dot::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px 2px rgba(255, 201, 51, .8); }
.arch.speaking .talk .dot::after { animation: speak .5s ease-in-out infinite alternate; }
@keyframes speak { to { scale: 1.3; box-shadow: 0 0 16px 6px rgba(255, 201, 51, .7); } }
.talk small { display: block; font-size: 12px; line-height: 1.4; color: var(--mute); }
.talk .line { position: relative; display: block; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.line .ch { opacity: 0; }
.line .ch.on { opacity: 1; transition: opacity .12s; }
.line.wait::after { content: ""; position: absolute; left: 0; top: 50%; width: 36px; height: 8px; margin-top: -4px; background: radial-gradient(circle at 4px 4px, var(--mute) 3.5px, transparent 4px) 0 0 / 14px 8px repeat-x; animation: dots 1s ease-in-out infinite; }
@keyframes dots { 50% { opacity: .3; } }

/* ---------- 三幕场景 ---------- */
.scenes { display: grid; gap: 104px; margin-top: 84px; }
.scene { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 80px; align-items: center; }
.scene.flip { grid-template-columns: minmax(0, 1fr) 560px; }
.scene.flip .photo { order: 2; }
.photo { position: relative; height: 420px; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10, 26, 43, .35); }
.photo picture { display: contents; }   /* 照片有两种格式，外面这层不占地方 */
.photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); }
.photo:hover img { scale: 1.06; }
/* 鼠标移到照片上：一小团暖光跟着走 */
.photo::after { content: ""; position: absolute; left: var(--mx, 50%); top: var(--my, 50%); width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 92, .34), rgba(255, 201, 51, 0)); opacity: 0; transition: opacity .4s; pointer-events: none; mix-blend-mode: soft-light; }
.photo.glowing::after { opacity: 1; }
.photo small { position: absolute; z-index: 1; left: 18px; bottom: 16px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .88); font-size: 12px; color: var(--text); }
.when { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--ink); font-variant-numeric: tabular-nums; }
.when::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 201, 51, .28); animation: beat-warm 2.4s ease-in-out infinite; }
.scene h3 { margin: 18px 0 18px; font-size: clamp(27px, 2.7vw, 38px); line-height: 1.3; }
.scene p { font-size: 18px; line-height: 1.85; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips span { padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink); transition: background-color .3s, border-color .3s, translate .35s var(--spring); }
.chips span:hover { background: var(--sun-soft); border-color: var(--sun); translate: 0 -2px; }
.remark { display: flex; gap: 12px; align-items: baseline; margin-top: 88px; padding: 18px 26px; border-radius: 16px; background: var(--soft); font-size: 15px; }
.remark::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }

/* ---------- 研发原则 ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.card { padding: 30px 28px 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.card:hover { translate: 0 -6px; border-color: #C6D1DC; box-shadow: 0 30px 50px -34px rgba(10, 26, 43, .5); }
.card .n { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--mute); font-variant-numeric: tabular-nums; transition: color .3s; }
.card .n::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--line); transition: background-color .3s, box-shadow .3s; }
.card:hover .n { color: var(--ink); }
.card:hover .n::after { background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 201, 51, .28), 0 0 12px 2px rgba(255, 201, 51, .6); }
.card h3 { font-size: 21px; letter-spacing: 0; }
.card p { margin-top: 10px; font-size: 15px; line-height: 1.75; }

/* ---------- 小方和围炉 ---------- */
.split { display: grid; grid-template-columns: 500px minmax(0, 1fr); gap: 76px; align-items: center; }
.split .cta { margin-top: 34px; }
.xf .diagram { padding: 34px 0 26px; }
.duo .heart { transform-box: fill-box; transform-origin: center; animation: heart 4.2s ease-in-out infinite; }
.duo .dev:hover .say { animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- 常见问题 ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.faq li { padding: 28px 32px 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.faq li:hover { translate: 0 -4px; border-color: #C6D1DC; box-shadow: 0 26px 44px -34px rgba(10, 26, 43, .5); }
.faq h3 { display: flex; gap: 12px; align-items: baseline; font-size: 20px; letter-spacing: 0; }
.faq h3::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line); translate: 0 -2px; transition: background-color .3s, box-shadow .3s; }
.faq li:hover h3::before { background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 201, 51, .28); }
.faq p { margin-top: 8px; padding-left: 20px; font-size: 16px; }

/* ---------- 结尾：留联系方式。整页的暖光在这里最亮；点进输入框，光再亮一些 ---------- */
.get { padding: 120px 0 132px; text-align: center; background: linear-gradient(#fff, #FBF8EE); }
.get::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1100px 520px at var(--gx, 50%) 118%, rgba(255, 201, 51, .7), rgba(255, 201, 51, .22) 55%, rgba(255, 201, 51, 0) 100%); transition: opacity .6s, scale .8s var(--ease); transform-origin: 50% 100%; opacity: .85; }
.get:focus-within::before, .get.done::before { opacity: 1; scale: 1.12; }
.get h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.28; }
.get .sub { max-width: 34em; margin: 20px auto 0; font-size: 18px; color: var(--text); }
.form { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.form .input { width: 400px; max-width: 100%; height: 58px; padding: 0 28px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #C6D1DC; color: var(--ink); font-family: inherit; font-size: 17px; outline: none; transition: box-shadow .3s; -webkit-appearance: none; appearance: none; }
.form .input::placeholder { color: var(--mute); }
.form .input:focus { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 6px rgba(255, 201, 51, .45); }
.form.bad .input { box-shadow: inset 0 0 0 2px #C2410C; animation: shake .4s; }
@keyframes shake { 25% { translate: -6px 0; } 75% { translate: 6px 0; } }
.form .btn { height: 58px; padding: 0 36px; font-size: 17px; }
.form .btn[disabled] { opacity: .6; cursor: default; translate: none; box-shadow: none; }
.get .msg { min-height: 1.8em; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--ink); }
.get .msg[data-kind="bad"] { color: #B4380B; }
.get .fine { margin-top: 6px; font-size: 14px; color: var(--text); }

/* ---------- 平板 ---------- */
@media (max-width: 1100px) {
  .xhero .wrap { grid-template-columns: minmax(0, 1fr) 400px; }
  .arch { --w: 380px; --h: 486px; }
  .talk { left: -60px; bottom: 60px; }
  .scene, .scene.flip { gap: 44px; }
  .scene { grid-template-columns: 420px minmax(0, 1fr); }
  .scene.flip { grid-template-columns: minmax(0, 1fr) 420px; }
  .photo { height: 340px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; }
}
/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  .xhero .wrap { grid-template-columns: 1fr; gap: 56px; padding: 44px 0 72px; }
  .xhero h1 { margin-top: 22px; }
  .xhero .lead { margin-top: 22px; }
  .xhero .cta { margin-top: 30px; }
  .xhero .art { display: flex; justify-content: center; }
  .xhero .art::before { width: 720px; height: 720px; margin: -360px 0 0 -360px; }
  .arch { --w: min(320px, 78vw); --h: calc(var(--w) * 1.277); margin: 0; }
  .talk { left: 50%; bottom: -26px; translate: -50% 0; padding: 10px 18px 10px 10px; }
  .arch:hover .talk { translate: -50% -6px; }
  .scenes { gap: 64px; margin-top: 52px; }
  .scene, .scene.flip { grid-template-columns: 1fr; gap: 28px; }
  .scene.flip .photo { order: 0; }
  .photo { height: auto; aspect-ratio: 4 / 3; border-radius: 22px; }
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(26px); }
  .scene p { font-size: 16.5px; }
  .remark { margin-top: 56px; padding: 16px 20px; }
  .cards { margin-top: 40px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .xf .diagram { max-width: 460px; width: 100%; margin-inline: auto; }
  .faq { grid-template-columns: 1fr; margin-top: 36px; gap: 14px; }
  .faq li { padding: 24px 22px 26px; }
  .get { padding: 84px 0 96px; }
  .form { flex-direction: column; align-items: stretch; max-width: 420px; margin-inline: auto; margin-top: 30px; }
  .form .input { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
}
