/* Ez 产品演示。颜色全部取自 assets/ez-tokens.css（EzDesign 908d623 的副本）。 */

@font-face { font-family: "Urbanist Variable"; src: url(assets/urbanist-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono Variable"; src: url(assets/geist-mono-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; }

:root {
  /* 各产品的识别色取自它在 EzDesign 里的出处配色：EzCNet 黑黄、奇点X 明橙、EzEComOP 冰川蓝 */
  --c-cnet: #c79a17; --c-cnet-soft: #f8e9b8; --c-cnet-ink: #7a5a08;
  --c-erp: #2f8a7c;  --c-erp-soft: #ddf3ee;  --c-erp-ink: #22665c;
  --c-shop: #6e68c4; --c-shop-soft: #eceafb; --c-shop-ink: #4d48a0;
  --c-qx: #f2741f;   --c-qx-soft: #fdeadb;   --c-qx-ink: #b24e0e;
  --c: var(--ez-accent); --c-soft: var(--ez-accent-soft); --c-ink: var(--ez-accent-ink);
}
html[data-ez-mode='dark'] {
  --c-cnet: #f5cf55; --c-cnet-soft: rgba(245, 207, 85, .16); --c-cnet-ink: #f8e3a0;
  --c-erp: #4fb3a2;  --c-erp-soft: rgba(79, 179, 162, .17);  --c-erp-ink: #a5ddd2;
  --c-shop: #8e88e0; --c-shop-soft: rgba(142, 136, 224, .17); --c-shop-ink: #c5c1f2;
  --c-qx: #f58a42;   --c-qx-soft: rgba(242, 116, 31, .17);   --c-qx-ink: #f9b98a;
}
.c-op    { --c: var(--ez-accent); --c-soft: var(--ez-accent-soft); --c-ink: var(--ez-accent-ink); }
.c-cnet  { --c: var(--c-cnet);    --c-soft: var(--c-cnet-soft);    --c-ink: var(--c-cnet-ink); }
.c-erp   { --c: var(--c-erp);     --c-soft: var(--c-erp-soft);     --c-ink: var(--c-erp-ink); }
.c-human { --c: var(--ez-ink-2);  --c-soft: var(--ez-surface-strong); --c-ink: var(--ez-ink); }
.c-shop  { --c: var(--c-shop);    --c-soft: var(--c-shop-soft);    --c-ink: var(--c-shop-ink); }
.c-qx    { --c: var(--c-qx);      --c-soft: var(--c-qx-soft);      --c-ink: var(--c-qx-ink); }

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  font-family: var(--ez-font-sans); color: var(--ez-ink); background: var(--ez-page);
  font-size: 15px; line-height: 1.55; overflow: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }
.mono { font-family: var(--ez-font-mono); font-variant-numeric: tabular-nums; }

.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 88% -5%, rgba(var(--ez-m6), .55), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, rgba(var(--ez-m4), .28), transparent 70%),
    var(--ez-page);
}
.bg::after { content: ""; position: absolute; inset: 0; background-image: var(--ez-grain); opacity: .05; mix-blend-mode: multiply; }
html[data-ez-mode='dark'] .bg {
  background:
    radial-gradient(60% 55% at 88% -5%, rgba(var(--ez-accent-rgb), .18), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, rgba(142, 136, 224, .10), transparent 70%),
    var(--ez-page);
}

/* ---------- chrome ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; height: 60px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px); pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ez-ink); }
.mark {
  display: inline-block; width: 40px; height: 23px; font-size: 0; background: var(--ez-ink);
  -webkit-mask: url(assets/ez-logo.png) center / contain no-repeat; mask: url(assets/ez-logo.png) center / contain no-repeat;
}
.brand-t { font-size: 14px; font-weight: 600; color: var(--ez-ink-2); }
.top-r { display: flex; align-items: center; gap: 8px; }
.count { font-size: 12px; color: var(--ez-ink-3); margin-right: 6px; }
.count b { color: var(--ez-ink); font-weight: 600; }
.tb {
  height: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ez-ink-2);
  background: var(--ez-surface); border: 1px solid var(--ez-line-2); box-shadow: var(--ez-shadow-xs);
  transition: background var(--ez-dur-1), color var(--ez-dur-1), transform var(--ez-dur-1);
}
.tb:hover { color: var(--ez-ink); background: var(--ez-surface-soft); }
.tb:active { transform: scale(.97); }
.tb:focus-visible, #rail button:focus-visible { outline: 2px solid var(--ez-accent); outline-offset: 2px; }
.tb.sq { width: 34px; padding: 0; justify-content: center; font-size: 15px; }
.tb.sq.txt { font-size: 11.5px; font-weight: 650; letter-spacing: .02em; }
/* 英文模式下，等词典套用完再显示，避免先闪一下中文 */
html[lang="en"]:not(.i18n-ready) body { visibility: hidden; }
.tb .ic { font-size: 10px; }
.tb.on { background: var(--ez-accent); color: var(--ez-on-accent); border-color: transparent; }

#rail {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 20;
  display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: var(--ez-glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--ez-line-2); box-shadow: var(--ez-shadow-card);
}
#rail button {
  position: relative; overflow: hidden; height: 30px; padding: 0 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--ez-ink-3); white-space: nowrap;
  transition: color var(--ez-dur-2), background var(--ez-dur-2);
}
#rail button:hover { color: var(--ez-ink); }
#rail button.on { color: var(--ez-on-deep); background: var(--ez-deep); }
html[data-ez-mode='dark'] #rail button.on { background: var(--ez-accent); color: var(--ez-on-accent); }
#rail button::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: currentColor; opacity: .55; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
/* 口播字幕：导航条上方的一行；口播开着时每一幕的底部让出位置 */
.cc {
  position: fixed; left: 50%; bottom: 72px; z-index: 21; transform: translate(-50%, 6px);
  max-width: min(880px, calc(100vw - 32px)); padding: 9px 20px; border-radius: 14px;
  background: rgba(14, 18, 24, .8); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 16.5px; line-height: 1.5; text-align: center; text-wrap: balance; letter-spacing: .01em;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.cc.on { opacity: 1; transform: translate(-50%, 0); }
.cc:lang(en) { font-size: 15.5px; letter-spacing: 0; }
@media (min-width: 901px) { .vo-on .scene { padding-bottom: 136px; } }
@media (max-width: 900px) { .cc { bottom: 64px; font-size: 14px; padding: 7px 14px; border-radius: 12px; } .cc:lang(en) { font-size: 13.5px; } }
@media (max-height: 480px) { .cc { bottom: 46px; font-size: 13px; padding: 5px 12px; } }
.disclaimer { position: fixed; left: clamp(20px, 5vw, 72px); bottom: 24px; z-index: 19; font-size: 11.5px; color: var(--ez-ink-4); }

/* ---------- deck ---------- */
#deck { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; scrollbar-width: none; }
#deck::-webkit-scrollbar { display: none; }
.scene { height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; padding: 76px clamp(20px, 5vw, 72px) 78px; }
.scene-grid {
  height: 100%; max-width: 1560px; margin: 0 auto; display: grid; align-items: center;
  grid-template-columns: minmax(300px, .74fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 64px);
}
.copy { max-width: 500px; }
.hero-copy { max-width: 620px; }
@media (min-width: 901px) { .scene[data-scene='hero'] .scene-grid { grid-template-columns: minmax(300px, 1fr) minmax(0, 1.15fr); } }
.kicker { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; letter-spacing: .04em; color: var(--c-ink); margin-bottom: 18px; }
.kicker i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
h1, h2 { font-weight: 700; letter-spacing: -.02em; line-height: 1.14; text-wrap: balance; }
h1 { font-size: clamp(34px, 4vw, 62px); letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(27px, 3vw, 44px); }
.lead { margin-top: 20px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.7; color: var(--ez-ink-2); text-wrap: pretty; }
.hint { margin-top: 34px; font-size: 13px; color: var(--ez-ink-3); }
.hint .sep { margin: 0 6px; color: var(--ez-ink-4); }
kbd {
  display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; margin: 0 2px; border-radius: 6px;
  font: 600 11.5px var(--ez-font-sans); color: var(--ez-ink-2); background: var(--ez-surface); border: 1px solid var(--ez-line-2); box-shadow: 0 1px 0 var(--ez-line-2);
}
.points { margin-top: 26px; display: grid; gap: 16px; }
.points li { display: grid; gap: 3px; padding-left: 16px; border-left: 2px solid var(--ez-line-2); }
.points b { font-size: clamp(15px, 1.15vw, 17px); font-weight: 650; }
.points span { font-size: clamp(13.5px, 1vw, 15px); color: var(--ez-ink-2); line-height: 1.6; text-wrap: pretty; }
.points.prod li { border-left-color: var(--c); }
.points.prod b { color: var(--c-ink); display: flex; align-items: baseline; gap: 10px; }
.points.prod em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--ez-ink-3); }
.status { margin-top: 22px; font-size: 13px; color: var(--ez-ink-2); display: grid; gap: 7px; }
.status span:not(.tag) { display: flex; align-items: center; gap: 8px; }
.tag { height: 21px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 650; }
.tag.ok { background: var(--ez-ok-bg); color: var(--ez-ok); }
.tag.plan { background: var(--ez-surface-strong); color: var(--ez-ink-2); }
.legend { margin-top: 24px; display: grid; gap: 9px; font-size: 14px; color: var(--ez-ink-2); }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.fine { margin-top: 18px; font-size: 12px; color: var(--ez-ink-4); }
.endline { margin-top: 30px; font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; letter-spacing: -.01em; }

/* 进入场景时文案依次浮现（仅在脚本可用时隐藏初始状态） */
.js .copy > *, .js .points li { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ez-ease-out), transform .7s var(--ez-ease-out); }
.js .scene.active .copy > *, .js .scene.active .points li { opacity: 1; transform: none; }
.scene.active .copy > :nth-child(2) { transition-delay: .08s; }
.scene.active .copy > :nth-child(3) { transition-delay: .16s; }
.scene.active .copy > :nth-child(4) { transition-delay: .24s; }
.scene.active .copy > :nth-child(5) { transition-delay: .32s; }
.scene.active .points li:nth-child(1) { transition-delay: .22s; }
.scene.active .points li:nth-child(2) { transition-delay: .32s; }
.scene.active .points li:nth-child(3) { transition-delay: .42s; }
.scene.active .points li:nth-child(4) { transition-delay: .52s; }
.scene.active .points li:nth-child(5) { transition-delay: .62s; }
.points.prod { gap: 13px; }

/* ---------- stage：800×580 的逻辑画布，按容器等比缩放 ---------- */
.stage-wrap { height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; --s: 1; }
.stage-box { position: relative; width: calc(800px * var(--s)); height: calc(580px * var(--s)); }
.stage { position: absolute; left: 0; top: 0; width: 800px; height: 580px; transform: scale(var(--s)); transform-origin: 0 0; font-size: 12.5px; line-height: 1.45; }
.stage.card { background: var(--ez-surface); border: 1px solid var(--ez-line-2); border-radius: 22px; box-shadow: var(--ez-shadow-pop); overflow: hidden; }
.js .stage-box { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .8s var(--ez-ease-out) .1s, transform .8s var(--ez-ease-out) .1s; }
.js .scene.active .stage-box { opacity: 1; transform: none; }
.sx { position: absolute; inset: 0; }
.sx svg.wires { position: absolute; inset: 0; width: 800px; height: 580px; overflow: visible; pointer-events: none; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 650; background: var(--ez-surface-strong); color: var(--ez-ink-2); white-space: nowrap; transition: background .3s, color .3s; }
.chip.ok { background: var(--ez-ok-bg); color: var(--ez-ok); }
.chip.warn { background: var(--ez-warn-bg); color: var(--ez-warn); }
.chip.bad { background: var(--ez-bad-bg); color: var(--ez-bad); }
.chip.acc { background: var(--c-soft); color: var(--c-ink); }
.chip.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--ez-line-2); color: var(--ez-ink-3); }
.pm { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 750; font-size: 12px; background: var(--ez-deep); color: var(--ez-on-deep); }
.pt { font-size: 11.5px; font-weight: 650; letter-spacing: .04em; color: var(--ez-ink-3); }

/* 演示用光标 */
.cur { position: absolute; left: 0; top: 0; z-index: 30; pointer-events: none; transform: translate(400px, 300px); transition: transform .65s var(--ez-ease-out), opacity .3s; filter: drop-shadow(0 3px 6px rgba(var(--ez-sh-rgb), .35)); }
.cur svg { display: block; }
.cur path { fill: var(--ez-accent); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.cur em { position: absolute; left: 15px; top: 16px; padding: 0 6px; height: 17px; border-radius: 9px; display: grid; place-items: center; font: 700 10px var(--ez-font-sans); font-style: normal; background: var(--ez-accent); color: var(--ez-on-accent); white-space: nowrap; }
.cur.human path { fill: var(--ez-ink); }
.cur.human em { background: var(--ez-ink); color: var(--ez-surface); }
.cur.hide { opacity: 0; }
.cur::before { content: ""; position: absolute; left: -10px; top: -10px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ez-accent); opacity: 0; }
.cur.click::before { animation: clk .42s var(--ez-ease-out); }
@keyframes clk { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.5); } }

/* ---------- 00 开场：三层等轴堆叠 ---------- */
.iso { position: absolute; left: 300px; top: 405px; width: 300px; height: 300px; margin: -150px 0 0 -150px; transform-style: preserve-3d; transform: scale(1.15) rotateX(58deg) rotateZ(45deg); }
.plate {
  position: absolute; inset: 0; border-radius: 30px; padding: 28px; transform: translateZ(calc(var(--z) * 118px));
  background: color-mix(in srgb, var(--c) 9%, var(--ez-surface)); border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: inset 0 0 0 1px rgba(var(--ez-hi-rgb), .5), 26px 26px 46px -14px rgba(var(--ez-sh-rgb), .32);
  opacity: .95; animation: bob 7s ease-in-out infinite; animation-delay: calc(var(--z) * -1.3s);
}
@keyframes bob { 50% { transform: translateZ(calc(var(--z) * 118px + 12px)); } }
.pl-nodes { height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); place-items: center; background: linear-gradient(var(--ez-line-2) 0 0) 50% 12.5% / 75% 1.5px no-repeat, linear-gradient(var(--ez-line-2) 0 0) 50% 37.5% / 75% 1.5px no-repeat, linear-gradient(var(--ez-line-2) 0 0) 50% 62.5% / 75% 1.5px no-repeat, linear-gradient(var(--ez-line-2) 0 0) 50% 87.5% / 75% 1.5px no-repeat, linear-gradient(var(--ez-line-2) 0 0) 12.5% 50% / 1.5px 75% no-repeat, linear-gradient(var(--ez-line-2) 0 0) 87.5% 50% / 1.5px 75% no-repeat; }
.pl-nodes i { width: 16px; height: 16px; border-radius: 50%; background: var(--ez-surface); border: 3px solid var(--c); }
.pl-nodes i:nth-child(3n+1) { animation: pulse 2.6s ease-in-out infinite; animation-delay: calc(var(--k, 0) * 1s); background: var(--c); }
.pl-nodes i:nth-child(4) { --k: .5; } .pl-nodes i:nth-child(7) { --k: 1.1; } .pl-nodes i:nth-child(10) { --k: 1.7; } .pl-nodes i:nth-child(13) { --k: .8; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 45%, transparent); } 50% { box-shadow: 0 0 0 9px transparent; } }
.pl-rows { height: 100%; display: grid; align-content: space-between; }
.pl-rows i { position: relative; height: 20px; width: var(--w); border-radius: 7px; background: color-mix(in srgb, var(--c) 24%, transparent); overflow: hidden; }
.pl-rows i::before { content: ""; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.pl-rows i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(var(--ez-hi-rgb), .75), transparent); transform: translateX(-100%); animation: shim 3.4s ease-in-out infinite; animation-delay: calc(var(--w) * .03s); }
@keyframes shim { 40%, 100% { transform: translateX(100%); } }
.pl-cards { height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pl-cards i { border-radius: 16px; background: color-mix(in srgb, var(--c) 16%, var(--ez-surface)); border: 1.5px solid color-mix(in srgb, var(--c) 40%, transparent); animation: cardOn 6s ease-in-out infinite; }
.pl-cards i:nth-child(2) { animation-delay: 1.5s; } .pl-cards i:nth-child(4) { animation-delay: 3s; } .pl-cards i:nth-child(3) { animation-delay: 4.5s; }
@keyframes cardOn { 0%, 18%, 100% { background: color-mix(in srgb, var(--c) 16%, var(--ez-surface)); } 6% { background: var(--c); } }
.riser { position: absolute; width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--c) 60%, transparent); opacity: 0; animation: rise 3.4s linear infinite; }
.riser.down { animation-name: sink; }
@keyframes rise { 0% { transform: translateZ(4px); opacity: 0; } 12%, 85% { opacity: 1; } 100% { transform: translateZ(240px); opacity: 0; } }
@keyframes sink { 0% { transform: translateZ(240px); opacity: 0; } 12%, 85% { opacity: 1; } 100% { transform: translateZ(4px); opacity: 0; } }
.callout { position: absolute; left: 580px; width: 216px; display: grid; gap: 1px; }
.callout::before { content: ""; position: absolute; left: -26px; top: 13px; width: 18px; height: 1.5px; background: var(--c); }
.callout b { font-size: 21px; font-weight: 750; letter-spacing: -.01em; color: var(--c-ink); }
.callout span { font-size: 13px; color: var(--ez-ink-2); }
.callout.aux b { font-size: 16px; }
.callout.aux span { font-size: 12px; }
.callout.aux::before { top: 10px; height: 0; background: none; border-top: 1.5px dashed var(--c); }
.iso-base { position: absolute; left: 0; width: 600px; top: 548px; text-align: center; font-size: 12.5px; color: var(--ez-ink-3); letter-spacing: .02em; }

/* ---------- 01 现状：散乱的后台 → 一个入口 ---------- */
.win {
  position: absolute; left: var(--x); top: var(--y); width: 176px; height: 108px; transform: rotate(var(--r)); z-index: 1;
  background: var(--ez-surface); border: 1px solid var(--ez-line-2); border-radius: 14px; box-shadow: var(--ez-shadow-lift); overflow: hidden;
  transition: left .9s var(--ez-ease-spring), top .9s var(--ez-ease-spring), width .9s var(--ez-ease-out), height .9s var(--ez-ease-out), transform .9s var(--ez-ease-spring), box-shadow .3s, border-color .3s;
  transition-delay: calc(var(--i) * 40ms);
}
.win.focus { z-index: 5; border-color: var(--ez-accent); box-shadow: var(--ez-shadow-pop), 0 0 0 4px var(--ez-focus-ring); }
.win-h { height: 30px; display: flex; align-items: center; gap: 4px; padding: 0 10px; background: var(--ez-surface-soft); border-bottom: 1px solid var(--ez-line); }
.win-h i { width: 7px; height: 7px; border-radius: 50%; background: var(--ez-idle); }
.win-h b { margin-left: 5px; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.win-b { padding: 11px 12px; display: grid; gap: 7px; }
.win-b i { height: 7px; border-radius: 4px; background: var(--ez-surface-strong); }
.win-b i:nth-child(2) { width: 72%; } .win-b i:nth-child(3) { width: 48%; }
.badge { position: absolute; right: 8px; top: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font: 700 10.5px var(--ez-font-mono); background: var(--ez-bad); color: #fff; transition: background .4s, transform .2s; }
.badge.bump { transform: scale(1.35); }
.note { position: absolute; z-index: 8; padding: 6px 11px; border-radius: 12px 12px 12px 3px; font-size: 12.5px; font-weight: 600; background: var(--ez-note-bg); color: var(--ez-note-ink); box-shadow: var(--ez-shadow-card); opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .3s, transform .35s var(--ez-ease-spring); white-space: nowrap; }
.note.show { opacity: 1; transform: none; }
.console { position: absolute; left: 150px; top: 74px; width: 500px; height: 272px; padding: 20px 22px; border-radius: 22px; background: var(--ez-surface); border: 1px solid var(--ez-line-2); box-shadow: var(--ez-shadow-pop); opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .6s .35s, transform .7s var(--ez-ease-spring) .35s; z-index: 6; }
.con-h { display: flex; align-items: center; gap: 10px; }
.con-h b { font-size: 15px; font-weight: 700; flex: 1; }
.goal { margin-top: 16px; min-height: 62px; padding: 11px 14px; border-radius: 14px; background: var(--ez-surface-soft); border: 1px solid var(--ez-line); font-size: 14px; line-height: 1.55; }
.goal-l { margin-right: 8px; font-size: 11.5px; font-weight: 700; color: var(--ez-accent-ink); }
.caret { display: inline-block; width: 2px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--ez-accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.con-p { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pp { padding: 9px 12px; border-radius: 12px; background: var(--c-soft); display: grid; gap: 1px; opacity: .35; transform: translateY(4px); transition: opacity .4s, transform .5s var(--ez-ease-spring); }
.pp.on { opacity: 1; transform: none; }
.pp b { font-size: 13.5px; color: var(--c-ink); } .pp span { font-size: 11px; color: var(--ez-ink-2); }
.con-f { margin-top: 13px; font-size: 12px; color: var(--ez-ink-3); }
.bus { fill: none; stroke: var(--ez-line-2); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ez-ease-out) .7s; }
.calm .win { left: var(--cx); top: var(--cy); width: 146px; height: 38px; transform: none; box-shadow: var(--ez-shadow-card); border-color: var(--ez-line-2); }
.calm .win-h { height: 100%; background: transparent; border: 0; }
.calm .win-h { padding: 0 26px 0 10px; }
.calm .win-h i { display: none; } .calm .win-h b { margin-left: 0; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; }
.calm .win-b { display: none; }
.calm .badge { top: 11px; right: 7px; background: var(--ez-idle); font-size: 0; min-width: 15px; width: 15px; height: 15px; padding: 0; }
.calm .badge.ok { background: var(--ez-ok); } .calm .badge.ok::after { content: "✓"; font-size: 9.5px; }
.calm .console { opacity: 1; transform: none; }
.calm .bus { stroke-dashoffset: 0; }
.calm .note { opacity: 0; }

/* ---------- 02 结构 ---------- */
.nd { position: absolute; display: grid; align-content: center; gap: 2px; padding: 0 16px; border-radius: 16px; background: var(--ez-surface-soft); border: 1.5px solid var(--ez-line-2); transition: border-color .35s, box-shadow .35s, background .35s, transform .5s var(--ez-ease-spring); }
.nd b { font-size: 16px; font-weight: 750; color: var(--c-ink); letter-spacing: -.01em; }
.nd span { font-size: 11.5px; color: var(--ez-ink-2); text-wrap: balance; }
.nd.on { border-color: var(--c); background: var(--c-soft); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 16%, transparent); transform: scale(1.025); }
.nd.sm b { font-size: 13.5px; } .nd.ghost { border-style: dashed; background: transparent; }
.plat.own { color: var(--c-ink); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: var(--c-soft); }
.plat.own.on { color: var(--c-ink); border-color: var(--c); background: var(--c-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 16%, transparent); }
.plat { position: absolute; top: 486px; width: 100px; height: 46px; display: grid; place-items: center; border-radius: 12px; font-size: 11.5px; font-weight: 650; color: var(--ez-ink-2); background: var(--ez-surface-soft); border: 1px solid var(--ez-line-2); transition: border-color .3s, color .3s, background .3s; }
.plat.on { color: var(--ez-ink); border-color: var(--ez-ink-3); background: var(--ez-surface-strong); }
.edge { fill: none; stroke: var(--ez-line-2); stroke-width: 1.5; transition: stroke .35s, stroke-width .35s; }
.edge.dash { stroke-dasharray: 4 5; }
.edge.on { stroke: var(--ez-accent); stroke-width: 2; }
.pkt { fill: var(--ez-accent); filter: drop-shadow(0 0 5px rgba(var(--ez-accent-rgb), .9)); }
.cap { position: absolute; left: 486px; top: 26px; width: 290px; min-height: 70px; padding: 12px 14px; border-radius: 14px; background: var(--ez-deep); color: var(--ez-on-deep); display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; transition: opacity .25s; }
.cap b { font: 650 11.5px var(--ez-font-mono); color: var(--ez-on-ink-3); padding-top: 2px; }
.cap span { font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.cap.swap { opacity: 0; }

/* ---------- 08 闭环 ---------- */
.ring-bg { fill: none; stroke: var(--ez-line-2); stroke-width: 1.5; stroke-dasharray: 3 6; }
.ring-fg { fill: none; stroke: var(--ez-accent); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset .9s var(--ez-ease-out); }
.orb { fill: var(--ez-accent); filter: drop-shadow(0 0 7px rgba(var(--ez-accent-rgb), .9)); }
.ln { position: absolute; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; display: grid; place-content: center; justify-items: center; background: var(--ez-surface); border: 2px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: var(--ez-shadow-card); transition: transform .5s var(--ez-ease-spring), background .35s, border-color .35s, box-shadow .35s; }
.ln small { font: 600 9.5px var(--ez-font-mono); color: var(--ez-ink-4); line-height: 1; }
.ln b { font-size: 14px; font-weight: 700; color: var(--c-ink); line-height: 1.3; }
.ln.done { border-color: var(--c); }
.ln.on { transform: scale(1.22); background: var(--c-soft); border-color: var(--c); box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 16%, transparent), var(--ez-shadow-lift); }
.lc { position: absolute; left: 262px; top: 190px; width: 276px; height: 188px; padding: 16px 18px; border-radius: 20px; background: var(--ez-surface); border: 1px solid var(--ez-line-2); box-shadow: var(--ez-shadow-pop); display: grid; align-content: start; gap: 6px; transition: opacity .25s, transform .3s; }
.lc.swap { opacity: 0; transform: scale(.97); }
.lc .chip { justify-self: start; } .lc b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.lc p { font-size: 12.5px; color: var(--ez-ink-2); line-height: 1.55; }
.lc code { margin-top: auto; font: 500 10.5px var(--ez-font-mono); color: var(--ez-ink-3); padding-top: 7px; border-top: 1px dashed var(--ez-line-2); }

/* ---------- 09 总结：产品星图 ---------- */
.link { stroke: var(--ez-line-2); stroke-width: 1.2; stroke-dasharray: 3 6; animation: flow 3s linear infinite; }
.link.core { stroke: var(--ez-accent); stroke-width: 2; stroke-dasharray: 5 7; opacity: .7; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.core-n { position: absolute; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 1px; background: var(--c-soft); border: 2px solid var(--c); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 12%, transparent), var(--ez-shadow-lift); animation: floaty 6s ease-in-out infinite; animation-delay: calc(var(--i) * -2s); }
html[data-ez-mode='dark'] .core-n { background: color-mix(in srgb, var(--c) 22%, var(--ez-surface)); }
.core-n b { font-size: 15px; font-weight: 750; color: var(--c-ink); } .core-n span { font-size: 11px; color: var(--ez-ink-2); }
.sat { position: absolute; width: 112px; height: 46px; margin: -23px 0 0 -56px; border-radius: 14px; display: grid; place-content: center; text-align: center; background: var(--ez-surface); border: 1px solid var(--ez-line-2); box-shadow: var(--ez-shadow-card); animation: floaty 7s ease-in-out infinite; animation-delay: calc(var(--i) * -.8s); }
.sat b { font-size: 12.5px; font-weight: 700; } .sat span { font-size: 10.5px; color: var(--ez-ink-3); }
.sat.hl { border: 1.5px solid var(--c); background: var(--c-soft); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 12%, transparent), var(--ez-shadow-card); }
html[data-ez-mode='dark'] .sat.hl { background: color-mix(in srgb, var(--c) 20%, var(--ez-surface)); }
.sat.hl b { color: var(--c-ink); } .sat.hl span { color: var(--ez-ink-2); }
@keyframes floaty { 50% { transform: translateY(-6px); } }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  body { overflow: auto; }
  #deck { scroll-snap-type: y proximity; }
  .scene { height: auto; min-height: 100dvh; padding: 76px 16px 84px; }
  .scene-grid { height: auto; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; }
  /* 舞台按宽度缩放；放不下时（手机竖屏）在自己的容器里横向滑动，页面本身不横向滚动 */
  .stage-wrap { height: auto; margin: 0 -16px; padding: 6px 16px 26px; justify-items: start; overflow-x: auto; scrollbar-width: none; }
  .stage-wrap::-webkit-scrollbar { display: none; }
  /* 窄屏时每一幕比屏幕高，正文会滚到固定的顶栏下面，给顶栏一层磨砂底 */
  .top { height: 54px; background: var(--ez-glass); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--ez-line); }
  .copy { max-width: none; }
  #rail button { padding: 0 9px; font-size: 0; width: 26px; }
  #rail button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: currentColor; }
  .disclaimer { position: static; text-align: center; padding: 0 16px 70px; display: none; }
  .tb-l, .count, .hint { display: none; }
  .js .copy > *, .js .points li, .js .stage-box { opacity: 1; transform: none; }
}
@media (max-height: 480px) {
  /* 手机横屏：导航条缩小并半透明，少挡画面 */
  #rail { bottom: 8px; opacity: .6; transform: translateX(-50%) scale(.82); transform-origin: 50% 100%; }
}
@media (max-width: 599px) {
  .scene-grid::after { content: "左右滑动看完整画面，横屏效果更好"; margin-top: -30px; text-align: center; font-size: 11.5px; color: var(--ez-ink-4); }
  .brand-t { display: none; }
  html[lang="en"] .scene-grid::after { content: "Swipe sideways to see the whole stage. Landscape works best."; }
}
@media (prefers-reduced-motion: reduce) {
  #deck { scroll-behavior: auto; }
  .plate, .riser, .core-n, .sat, .link { animation: none; }
  .riser { opacity: 0; }
}
