/* LUMI 家庭大脑 · 解决方案页
   一张会动的建筑轴测图，靠画面讲故事：镜头推到出事的房间，其余房间淡下去。
   灰色排线 = 在看，灰色虚线 = 交给大脑，橙色线 = 去办，回指的虚线 = 反馈。夜里的故事整页入夜。 */

:root {
  --paper: #FFFFFF;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --ink-3: #A1A1A6;
  --soft: #F6F4F1;
  --amber: #C2702C;
  --amber-2: #F4B46C;
  /* 由品牌橙在 oklch 里推出来：蓝 = 色相转 180°，绿 = 转 95° */
  --see: oklch(0.6 0.11 235);
  --good: oklch(0.62 0.12 150);

  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --hand: "LXGW WenKai Screen", "Kaiti SC", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --en: "Hubot Sans", var(--sans);

  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --cam: 1.1s;
  --t-color: .9s;
}
/* 由其它颜色混出来的，放在 body 上，入夜时跟着重算 */
body {
  --rule: color-mix(in oklch, var(--ink) 13%, var(--paper));
  --see-t: color-mix(in oklch, var(--see) 16%, transparent);
  --act-t: color-mix(in oklch, var(--amber) 20%, transparent);
  --floor: color-mix(in oklch, var(--soft) 65%, var(--paper));
}
body.night {
  --paper: #1D1D1F;
  --ink: #F6F4F1;
  --ink-2: #A1A1A6;
  --ink-3: #6E6E73;
  --soft: color-mix(in oklch, var(--ink) 7%, var(--paper));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.8 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color var(--t-color) var(--ease), color var(--t-color) var(--ease); }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ol, ul { margin: 0; padding: 0; }
li { list-style: none; }
em, i { font-style: normal; }
::selection { background: color-mix(in oklch, var(--amber-2) 45%, transparent); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

.ic { display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask: var(--ic) center / 62% no-repeat; mask: var(--ic) center / 62% no-repeat; }
.mark { position: relative; display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--amber); border-left-color: transparent; transform: rotate(-30deg); }
.mark::after { content: ""; position: absolute; right: -3px; top: -3px; width: 4.5px; height: 4.5px; border-radius: 50%; background: var(--amber); }

/* ---------- 导航 ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 32px; height: 56px; padding: 0 var(--pad); background: color-mix(in oklch, var(--paper) 84%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); transition: background-color var(--t-color); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 16px/1 var(--en); font-stretch: 125%; letter-spacing: .2em; }
.nav-ch { display: flex; gap: 28px; margin: 0 auto; font-size: 13px; color: var(--ink-2); }
.nav-ch a { position: relative; padding: 4px 0; transition: color .3s; }
.nav-ch a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav-ch a:hover, .nav-ch a.on { color: var(--ink); }
.nav-ch a.on::after { transform: none; }
.nav-cta { font-size: 13px; padding: 7px 16px; border-radius: 99px; background: var(--ink); color: var(--paper); transition: background-color var(--t-color), color var(--t-color); }

/* ---------- 字 ---------- */
.kicker { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--amber); }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * .12s); }
.in .ln > span { transform: none; }

/* 图例小样：步骤条和「看与动」共用 */
.sw { display: inline-block; flex: none; width: 20px; height: 12px; vertical-align: middle; }
.sw.see { border-radius: 3px; background: var(--see-t); box-shadow: inset 0 0 0 1px var(--see); }
.sw.think { height: 0; border-top: 2px dashed var(--see); }
.sw.act { height: 2.5px; border-radius: 2px; background: var(--amber); }
.sw.back { position: relative; height: 0; border-top: 2px dashed var(--good); }
.sw.back::before { content: ""; position: absolute; left: -1px; top: -5px; width: 7px; height: 7px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(45deg); }

/* ---------- 首屏 ---------- */
.hero { position: relative; min-height: 100svh; padding: 112px var(--pad) 24px; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; }
.hero-t { font: 900 clamp(36px, 4.6vw, 72px)/1.2 var(--serif); letter-spacing: -.01em; }
.hero-s { margin-top: 14px; font-size: 14px; color: var(--ink-2); opacity: 0; transition: opacity 1s var(--ease) 1.4s; }
.hero.in .hero-s { opacity: 1; }
.hero .hero-draw { position: absolute; left: 4vw; right: 4vw; top: 170px; bottom: 3svh; }

/* ---------- 章节扉页 ---------- */
.opener { display: flex; flex-direction: column; justify-content: center; min-height: 64svh; padding: 100px var(--pad) 60px; }
.opener-t { margin-top: 20px; font: 900 clamp(32px, 4.2vw, 64px)/1.25 var(--serif); letter-spacing: -.01em; }
.opener-s { margin-top: 18px; font: 400 13px/1 var(--mono); letter-spacing: .14em; color: var(--ink-2); opacity: 0; transition: opacity 1s var(--ease) .5s; }
.opener.in .opener-s { opacity: 1; }

/* ---------- 钉住的场景：整屏一张图 ---------- */
.scene { position: relative; height: calc(var(--n) * 70svh + 100svh); }
.pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.pin .draw { position: absolute; inset: 104px 2vw 64px; }
.draw { container-type: size; }
.sc-h { position: absolute; left: var(--pad); top: 76px; z-index: 6; }
.scene-t { display: flex; align-items: center; gap: 12px; margin-top: 10px; font: 700 clamp(17px, 1.45vw, 22px)/1.4 var(--serif); letter-spacing: .02em; }
.beats { display: grid; }
.beat { grid-area: 1 / 1; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.beat:not(.on) { opacity: 0; transform: translateY(8px); }
.stamp-time { position: absolute; right: var(--pad); top: 80px; z-index: 6; font: 400 12px/1 var(--mono); letter-spacing: .1em; color: var(--ink-2); }

/* 步骤条：四步，也是图例 */
.steps { position: absolute; left: 50%; bottom: 22px; z-index: 6; display: flex; gap: 8px; transform: translateX(-50%); }
.steps li { display: flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 99px; font-size: 13px; white-space: nowrap; letter-spacing: .1em; color: var(--ink-3); transition: color .4s, background-color .4s; }
.steps li .sw { opacity: .35; transition: opacity .4s; }
.steps li.past { color: var(--ink-2); }
.steps li.past .sw { opacity: .7; }
.steps li.now { color: var(--ink); background: var(--soft); }
.steps li.now .sw { opacity: 1; }

/* ---------- 轴测图 ---------- */
.world { position: absolute; left: 50%; top: 50%; width: min(100cqw, 100cqh * var(--ar)); aspect-ratio: var(--ar); transform: translate(-50%, -50%); container-type: inline-size; }
.cam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform var(--cam) var(--ease); }
.cam svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ov { position: absolute; inset: 0; pointer-events: none; }
.ov > * { position: absolute; transition: left var(--cam) var(--ease), top var(--cam) var(--ease), opacity .5s var(--ease); }
.world polygon, .world path, .world line, .world circle { transition: fill var(--t-color), stroke var(--t-color), opacity .6s var(--ease); }

.floor { fill: var(--floor); stroke: var(--rule); stroke-width: .8; }
.tint { fill: color-mix(in oklch, var(--ink) 6%, transparent); stroke: none; opacity: 0; }
.tint.share { fill: var(--act-t); }
.tint.on { opacity: 1; }
.w-t { fill: var(--ink); stroke: var(--ink); stroke-width: .6; }
.w-f, .w-s { fill: var(--paper); stroke: var(--ink); stroke-width: .7; stroke-linejoin: round; }
.f-t { fill: var(--paper); stroke: var(--ink-3); stroke-width: .5; stroke-linejoin: round; }
.f-f, .f-s { fill: var(--soft); stroke: var(--ink-3); stroke-width: .5; stroke-linejoin: round; }
.slab { fill: var(--ink); stroke: var(--ink); stroke-width: .6; }
.veil { fill: var(--paper); stroke: none; opacity: 0; pointer-events: none; }
.veil.dim { opacity: .82; }

.fld { opacity: 0; }
.fld.on { opacity: 1; }
.fld .area { fill: var(--see-t); stroke: var(--see); stroke-width: 1; }
.fld .rng { fill: none; stroke: var(--see); stroke-width: 1.1; stroke-dasharray: 3 3; }
.smoke { fill: none; stroke: var(--ink-2); stroke-width: 1.2; stroke-dasharray: 5 4; marker-end: url(#arrowG); opacity: 0; }
.smoke.on { opacity: 1; animation: march 1.6s linear infinite; }
.block { stroke: var(--amber); stroke-width: 3; stroke-linecap: round; opacity: 0; }
.block.on { opacity: 1; }
@keyframes march { to { stroke-dashoffset: -18; } }

.mv { opacity: 0; }
.mv.on { opacity: 1; }
.mv .run { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.mv.on .run { stroke-dashoffset: 0; }
.mv .run.arrow { marker-end: url(#arrowA); }
.mv .ghost { fill: none; stroke: var(--amber); stroke-width: .8; stroke-dasharray: 3 4; opacity: .6; }
.mv .cone { fill: var(--act-t); stroke: var(--amber); stroke-width: 1; }

/* 大脑的线：交给大脑（灰虚线）、派出去（橙虚线）、反馈（灰虚线回指） */
.wire { fill: none; stroke-width: 1.2; stroke-dasharray: 4 5; opacity: 0; }
.wire.see { stroke: var(--see); stroke-width: 1.5; marker-end: url(#arrowS); }
.wire.back { stroke: var(--good); stroke-width: 1.5; marker-end: url(#arrowK); }
.wire.act { stroke: var(--amber); stroke-width: 1.4; marker-end: url(#arrowA); }
.wire.on { opacity: 1; animation: march 1.8s linear infinite; }
.link { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease), stroke var(--t-color); }
.link.on { stroke-dashoffset: 0; }
.link-end { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; opacity: 0; }
.link-end.on { opacity: 1; }
.loopline { fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; }

/* ---------- 叠在图上的东西（不跟镜头缩放，字号不变） ---------- */
.o:not(.on) { opacity: 0; }
.dev { z-index: 5; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; color: #fff; background: var(--see); box-shadow: 0 0 0 3px var(--paper), 0 4px 12px rgba(0, 0, 0, .18); pointer-events: auto; cursor: help; }
.dev.act { background: var(--amber); }

.pp { z-index: 4; width: 0; height: 0; }
.pp:not(.on) { opacity: 0; }
.pp b { position: absolute; left: 0; bottom: 16px; transform: translateX(-50%); display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--soft); color: var(--ink-2); box-shadow: 0 0 0 2.5px var(--paper), 0 6px 16px rgba(0, 0, 0, .22); transition: box-shadow var(--t-color); }
.pp img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.pp::before { content: ""; position: absolute; left: -.75px; bottom: 0; width: 1.5px; height: 16px; background: var(--ink-3); }
.pp-ghost b { filter: grayscale(1); opacity: .55; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink-3); }
.pp-guest b { background: var(--act-t); color: var(--amber); }
.pp-stranger b { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--ink), 0 6px 16px rgba(0, 0, 0, .2); }

.q { z-index: 6; transform: translate(-50%, calc(-100% - 56px)); text-align: center; white-space: nowrap; }
.q p { display: inline-block; padding: 1px 8px; background: var(--paper); font: 400 18px/1.45 var(--hand); color: var(--ink); transition: background-color var(--t-color); }
.q.big p { font-size: 24px; }
.q small { display: block; width: max-content; margin: 2px auto 0; padding: 0 6px; background: var(--paper); font: 400 11px/1.4 var(--mono); color: var(--amber); letter-spacing: .04em; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: .9em; margin-right: .45em; vertical-align: -.08em; }
.wave i { width: 2px; border-radius: 1px; background: var(--amber); }

.lab { z-index: 5; transform: translate(-50%, -50%); white-space: nowrap; }
.lab span { display: inline-block; padding: 2px 8px; background: var(--paper); font: 500 13px/1.4 var(--mono); color: var(--ink); transition: background-color var(--t-color); }
.lab.big span { font-size: 18px; }
.lab.no span { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; font-weight: 400; }
.lab.yes span { color: #fff; background: var(--good); }
.lab.good span { color: var(--good); }
.lab.act span { color: var(--amber); }
.part { z-index: 5; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--ink-2); color: #fff; box-shadow: 0 0 0 3px var(--paper); }
.part.share { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: var(--amber); }
.rec { z-index: 6; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--ink); background: var(--paper); font: 500 13px/1.4 var(--sans); white-space: nowrap; transition: opacity .5s, left var(--cam) var(--ease), top var(--cam) var(--ease), background-color var(--t-color), border-color var(--t-color); }
.rec small { font: 400 11px var(--mono); color: var(--ink-2); }
.hub { z-index: 7; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--ink); color: var(--paper); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--ink-3); transition: opacity .5s, left var(--cam) var(--ease), top var(--cam) var(--ease), background-color var(--t-color), color var(--t-color); }
.week { z-index: 5; transform: translate(-50%, -50%); display: flex; gap: 4px; padding: 5px 7px; background: var(--paper); }
.week i { width: 11px; height: 11px; border: 1px solid var(--ink-2); }
.week i.x { background: var(--ink); border-color: var(--ink); }
.station { z-index: 7; transform: translate(-50%, -50%); padding: 2px 10px; background: var(--paper); font: 700 16px/1.4 var(--serif); letter-spacing: .12em; color: var(--ink-3); transition: color .4s, background-color var(--t-color), left var(--cam) var(--ease), top var(--cam) var(--ease); }
.station.lit { color: var(--amber); }

/* 首屏：图一笔一笔画出来 */
.hero .world polygon { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 1.4s var(--ease), fill-opacity .9s var(--ease); transition-delay: var(--d, 0s); }
.hero.in .world polygon { stroke-dashoffset: 0; fill-opacity: 1; }
.hero .pp { opacity: 0; transition: opacity .8s var(--ease) 1.9s; }
.hero.in .pp { opacity: 1; }

/* ---------- 收尾 ---------- */
.finale { display: flex; flex-direction: column; justify-content: center; min-height: 100svh; padding: 140px var(--pad) 40px; }
.finale-t { font: 900 clamp(32px, 4.2vw, 64px)/1.3 var(--serif); letter-spacing: -.01em; }
.finale-t .ln:nth-child(2) > span { --i: 1; }
.finale-s { margin-top: 22px; font: 400 13px/1 var(--mono); letter-spacing: .14em; color: var(--ink-2); }
.finale-cta { display: flex; align-items: center; gap: 28px; margin-top: 44px; }
.btn { padding: 11px 24px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 14px; letter-spacing: .04em; transition: transform .2s; }
.btn:active { transform: scale(.97); }
.text-link { font-size: 14px; color: var(--amber); }
.text-link::after { content: " ›"; }
.foot { margin-top: auto; padding-top: 96px; font: 400 11px var(--mono); color: var(--ink-3); letter-spacing: .06em; }
.foot em { font: 700 11px var(--en); font-stretch: 125%; letter-spacing: .2em; color: var(--ink); }

.tip { position: fixed; z-index: 100; max-width: 240px; padding: 9px 12px; background: var(--ink); color: var(--paper); font-size: 12.5px; line-height: 1.6; pointer-events: none; opacity: 0; transition: opacity .2s; }
.tip.on { opacity: 1; }
.tip b { display: block; font-weight: 500; }

@media (max-width: 900px) {
  .nav-ch { display: none; }
  .nav { justify-content: space-between; }
  .pin .draw { inset: 120px 0 64px; }
  .sc-h { top: 68px; right: var(--pad); }
  .stamp-time { display: none; }
  .steps { gap: 2px; bottom: 16px; }
  .steps li { padding: 6px 9px; font-size: 12px; gap: 6px; }
  .steps .sw { width: 14px; }
  .q p { font-size: 14px; }
  .q.big p { font-size: 17px; }
  .rec { font-size: 11px; }
  .pp b { width: 30px; height: 30px; }
  .dev { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
  .hero .hero-draw { top: 150px; left: 0; right: 0; bottom: 8svh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation: none !important; transition-delay: 0s !important; }
}
