@font-face { font-family: NipaSerif; src: url(/next-assets/fonts/nipa-serif.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: NipaNext; src: url(/next-assets/fonts/nipa-next.woff2) format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: NipaHand; src: url(/next-assets/fonts/nipa-hand.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #000; --ink2: #0f0f14; --ink3: #17171e;
  --paper: #f5f1ea; --p2: rgba(245,241,234,.72); --p3: rgba(245,241,234,.48); --p4: rgba(245,241,234,.26);
  --line: rgba(245,241,234,.09); --line2: rgba(245,241,234,.16);
  --accent: #ff2e55; --accent2: #ff6f8a; --mint: #5be3b0;
  --glass: rgba(20,20,26,.56);
  --serif: NipaSerif, "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --hand: NipaHand, "Kaiti SC", "STKaiti", "KaiTi", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #000; color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { display: block; }
a { color: inherit; text-decoration: none; }

/* —— 通用 —— */
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .32em; color: var(--accent); }
h1, h2 { font-family: var(--serif); font-weight: 900; letter-spacing: .01em; }
h2 { font-size: clamp(38px, 4.8vw, 72px); line-height: 1.12; margin-top: 18px; }
section p { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.85; color: var(--p2); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 600; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s; }
.btn.pink { background: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(255,46,85,.32); }
.btn.ghost { background: rgba(245,241,234,.08); border: 1px solid var(--line2); }
a.btn:hover { transform: translateY(-2px); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* —— 导航 —— */
#nav { position: fixed; z-index: 50; inset: 0 0 auto 0; height: 56px; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
#nav.solid { background: rgba(8,8,11,.78); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border-bottom-color: var(--line); }
#nav .nav-in { height: 100%; max-width: 1560px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; }
#nav .brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
#nav .brand img { width: 26px; height: 26px; border-radius: 7px; }
#nav .brand em { font: 400 20px/1 NipaNext, var(--serif); color: var(--accent); margin-left: -3px; transform: translateY(1px); }
#nav nav { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: 18px; }
#nav nav a { position: relative; height: 32px; padding: 0 12px; display: flex; align-items: center; font-size: 13.5px; line-height: 1; color: var(--p3); transition: color .3s; }
#nav nav a .lat { position: relative; top: .07em; letter-spacing: .02em; }
#nav nav a:hover, #nav nav a.on { color: var(--paper); }
#nav nav a::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease); }
#nav nav a.on::after { opacity: 1; transform: none; }
#nav .nav-get { height: 32px; padding: 0 16px; display: flex; align-items: center; border-radius: 16px; font-size: 13.5px; font-weight: 600; line-height: 1; background: var(--accent); color: #fff; transition: background .25s; }
#nav .nav-get:hover { background: #ff4a6b; }

/* —— 首屏 —— */
#hero { padding: clamp(120px, 16vh, 170px) 0 clamp(80px, 10vh, 120px); display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.hero-copy { padding: 0 24px; display: flex; flex-direction: column; align-items: center; }
#hero h1 { margin-top: 26px; font-size: clamp(60px, 10vw, 148px); line-height: 1.04; letter-spacing: -.01em; padding-bottom: .04em; }
#hero .lead { margin-top: 36px; font-size: clamp(17px, 1.5vw, 22px); color: var(--p2); }
#hero .cta { margin-top: 40px; justify-content: center; }

/* —— 窗口与按比例缩放的应用画面 —— */
.window { position: relative; width: 100%; aspect-ratio: 1440 / 900; border-radius: clamp(10px, 1.4vw, 20px); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 50px 140px rgba(0,0,0,.7), 0 0 120px rgba(255,46,85,.06); }
.scaler { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0; }
.app { position: absolute; inset: 0; font-family: var(--sans); color: var(--paper); text-align: left; }
.app p { color: inherit; line-height: normal; font-size: inherit; }
.app-bd { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.55) 34%, rgba(0,0,0,.08) 62%, rgba(0,0,0,.25) 100%),
  linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 18%, transparent 55%, rgba(0,0,0,.92) 84%, #000 100%); }
.app-dim { position: absolute; inset: 0; background: rgba(6,6,9,.74); opacity: 0; transition: opacity .7s var(--ease); }
.app-bar { position: absolute; left: 0; right: 0; top: 0; height: 52px; display: flex; align-items: center; padding: 0 28px 0 22px; }
.lights { display: flex; gap: 8px; margin-right: 36px; }
.lights b { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights b:nth-child(2) { background: #febc2e; } .lights b:nth-child(3) { background: #28c840; }
.app-bar nav { display: flex; gap: 30px; font-size: 17px; font-weight: 700; color: var(--p3); }
.app-bar nav .on { color: var(--paper); position: relative; }
.app-bar nav .on::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.app-tools { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.tasks { position: relative; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; }
.wg { display: grid; align-content: center; gap: 2.6px; width: 16px; height: 16px; }
.wg b { display: flex; align-items: center; gap: 3px; height: 3.4px; }
.wg b::before { content: ""; flex: none; width: 3.4px; height: 3.4px; border-radius: 50%; background: var(--p3); animation: wg 1.8s linear infinite; }
.wg b:nth-child(2)::before { animation-delay: .6s; } .wg b:nth-child(3)::before { animation-delay: 1.2s; }
.wg b::after { content: ""; width: 7px; height: 1.6px; border-radius: 1px; background: var(--p3); }
.wg b:nth-child(2)::after { width: 4.5px; }
@keyframes wg { 0% { background: var(--accent); } 30% { background: var(--accent); } 55%, 100% { background: var(--p3); } }
.tasks em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--p2); font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }
.me { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); }
.hero-work { position: absolute; left: 96px; bottom: 292px; width: 640px; transition: opacity .8s var(--ease), transform .9s var(--ease); }
.hero-work .logo { max-width: 420px; max-height: 170px; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 6px 24px rgba(0,0,0,.4)); }
.hero-work .meta { margin-top: 24px; font-size: 15px; color: var(--p2); display: flex; gap: 12px; align-items: baseline; }
.hero-work .meta b { color: var(--paper); font-weight: 600; }
.hero-work .meta i { font-style: normal; color: var(--p4); }
.hero-work .ov { margin-top: 16px; max-width: 520px; font-size: 14.5px; line-height: 1.75; color: var(--p2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app .btns { margin-top: 26px; display: flex; gap: 12px; }
.app .btn { height: 46px; padding: 0 24px; font-size: 15px; }
.app .btn.ghost { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ask { position: absolute; left: 96px; top: 636px; width: 820px; height: 62px; display: flex; align-items: center; gap: 14px; padding: 0 10px; border-radius: 999px;
  background: rgba(20,20,26,.62); border: 1px solid var(--line2); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.ask > img { width: 42px; height: 42px; border-radius: 50%; }
.ask-text { font-size: 17px; white-space: pre; }
.ask-text:not(:empty)::after { content: ""; display: inline-block; width: 2px; height: 20px; margin-left: 2px; vertical-align: -4px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ask-ph { font-size: 17px; color: var(--p3); }
.ask-text:not(:empty) + .ask-ph { display: none; }
.send { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); transition: background .3s; }
.send svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app.running .send { background: var(--paper); }
.app.running .send svg { display: none; }
.app.running .send::after { content: ""; width: 14px; height: 14px; border-radius: 3px; background: #111; }
.shelf { position: absolute; left: 96px; top: 742px; right: -400px; transition: opacity .7s; }
.shelf h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.shelf .row { display: flex; gap: 18px; transition: transform 1s var(--ease); }
.shelf figure { position: relative; flex: none; width: 400px; height: 225px; border-radius: 14px; overflow: hidden; background: var(--ink3); }
.shelf figure img { width: 100%; height: 100%; object-fit: cover; }
.shelf figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.78)); }
.shelf figcaption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 22px; display: flex; flex-direction: column; gap: 4px; }
.shelf figcaption b { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf figcaption span { font-size: 13px; color: var(--p2); }
.shelf figure u { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 11px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); }
.shelf figure u::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 2px; background: var(--paper); }
.shelf figure em { position: absolute; z-index: 1; top: 12px; left: 12px; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--accent); }
.app-dm { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.app-dm span { position: absolute; left: 100%; top: var(--y); white-space: nowrap; font-size: 24px; font-weight: 600; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 3px #000; animation: dm1440 11s linear infinite; animation-delay: var(--d); }
.app-dm span.p, .pl-dm span.p { color: #ffb3c4; } .app-dm span.y, .pl-dm span.y { color: #ffe08a; }
@keyframes dm1440 { to { transform: translateX(calc(-1440px - 100%)); } }

/* 对话 */
.turn { position: absolute; left: 96px; top: 96px; width: 820px; height: 524px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; pointer-events: none; }
.turn > * { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.turn > .on { opacity: 1; transform: none; }
.you-bubble { align-self: flex-end; max-width: 560px; padding: 12px 18px; border-radius: 20px 20px 6px 20px; background: rgba(245,241,234,.14); border: 1px solid var(--line); font-size: 16px !important; }
.thinking { font-size: 14px !important; color: var(--p3) !important; display: flex; align-items: center; gap: 10px; }
.thinking i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .3; } }
.thinking em { font-style: normal; font-variant-numeric: tabular-nums; }
.reply, .reply2 { font-size: 17px !important; line-height: 1.75 !important; min-height: 1.75em; }
.cards { display: flex; gap: 14px; align-items: stretch; }
.workcard { display: flex; gap: 14px; padding: 12px; width: 300px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.workcard img { width: 76px; height: 114px; border-radius: 8px; object-fit: cover; }
.workcard div { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.workcard b { font-family: var(--serif); font-weight: 900; font-size: 20px; }
.workcard span { font-size: 13px; color: var(--p2); }
.workcard .rate { color: var(--paper); }
.prep { flex: 1; padding: 14px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.prep-h { font-size: 13px !important; color: var(--p3) !important; margin-bottom: 10px; }
.prep ol { list-style: none; display: grid; gap: 9px; }
.prep li { position: relative; display: grid; grid-template-columns: 20px auto 1fr; align-items: center; gap: 10px; font-size: 14px; color: var(--p3); transition: color .3s; }
.prep li span { justify-self: end; font-size: 12.5px; color: var(--p3); font-variant-numeric: tabular-nums; transition: opacity .3s; }
.prep li:not(.ok) span:not(.pct) { opacity: 0; }
.prep li i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--p4); position: relative; }
.prep li.go, .prep li.ok { color: var(--paper); }
.prep li.go i { border-color: var(--accent); border-top-color: transparent; animation: spin .9s linear infinite; }
.prep li.ok i { border: 0; background: var(--mint); }
.prep li.ok i::after { content: ""; position: absolute; left: 4px; top: 2.5px; width: 4px; height: 7px; border: solid #0b0b0f; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.prep .bar { position: absolute; left: 30px; right: 0; bottom: -5px; height: 2px; background: var(--line2); border-radius: 1px; }
.prep .bar u { position: absolute; inset: 0 auto 0 0; width: var(--dl, 0%); background: var(--accent); border-radius: 1px; }

/* 三个状态：说 / 准备 / 完成 */
.how-app .bd-to, .how-app .w-to { opacity: 0; }
.how-app .w-to { transform: translateY(14px); }
.how-app .shelf .row { transform: translateX(-418px); }
.how-app .fresh { opacity: 0; transition: opacity .8s; }
.how-app .app-bd { transition: opacity 1s; }
.how-app.talking .app-dim { opacity: 1; }
.how-app.talking .w-from { opacity: 0; }
.how-app.talking .shelf { opacity: .3; }
.how-app.done .bd-from { opacity: 0; }
.how-app.done .bd-to { opacity: 1; }
.how-app.done .w-from { opacity: 0; transform: translateY(-14px); }
.how-app.done .w-to { opacity: 1; transform: none; transition-delay: .25s; }
.how-app.done .shelf .row { transform: none; transition-delay: .4s; }
.how-app.done .fresh { opacity: 1; transition-delay: .5s; }

/* —— 分步场景 —— */
.steps { position: relative; height: calc(var(--n, 3) * 100vh + 40vh); }
.steps .stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(340px, .8fr) 1.6fr; gap: clamp(28px, 4vw, 64px); align-items: center;
  max-width: 1560px; margin: 0 auto; padding: 60px clamp(20px, 4vw, 64px) 0; }
.step-copy { position: relative; min-width: 0; }
.step-texts { position: relative; min-height: 300px; margin-top: 8px; }
.st { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.st h2 { margin-top: 10px; }
.st p { margin-top: 22px; max-width: 440px; }
.steps[data-step="0"] .st[data-s="0"], .steps[data-step="1"] .st[data-s="1"], .steps[data-step="2"] .st[data-s="2"] { opacity: 1; transform: none; transition-delay: .12s; }
.step-dots { list-style: none; display: flex; gap: 10px; margin-top: 34px; }
.step-dots li { position: relative; flex: none; width: 76px; padding-top: 12px; font-size: 12.5px; color: var(--p3); transition: color .4s; }
.step-dots li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 1px; background: var(--line2); }
.step-dots li::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; border-radius: 1px; background: var(--accent); transition: width .6s var(--ease); }
.steps[data-step="0"] .step-dots li:nth-child(1), .steps[data-step="1"] .step-dots li:nth-child(-n+2), .steps[data-step="2"] .step-dots li { color: var(--paper); }
.steps[data-step="0"] .step-dots li:nth-child(1)::after, .steps[data-step="1"] .step-dots li:nth-child(-n+2)::after, .steps[data-step="2"] .step-dots li::after { width: 100%; }
.step-visual { position: relative; min-width: 0; }
.st h2 { font-size: clamp(32px, 3.3vw, 54px); }

/* —— 设备 —— */
.room-scaler { position: absolute; left: 0; top: 0; }
.room { position: absolute; inset: 0; }
.room::before { content: ""; position: absolute; left: -40%; right: -40%; top: 756px; height: 420px; background: radial-gradient(ellipse 42% 55% at 50% 0%, rgba(245,241,234,.08), transparent 72%); }
.mesh { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mesh path { fill: none; stroke: rgba(245,241,234,.3); stroke-width: 1.5; stroke-dasharray: 5 8; opacity: 0; transition: opacity 1.2s var(--ease) .6s; animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -26; } }
#devices.lit .mesh path { opacity: 1; }
.mesh .pulse { fill: var(--accent); filter: drop-shadow(0 0 10px var(--accent)); opacity: 0; }
.dev { position: absolute; opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i) * 150ms); -webkit-box-reflect: below 6px linear-gradient(transparent 78%, rgba(255,255,255,.1)); }
#devices.lit .dev { opacity: 1; transform: none; }
#devices.lit .phone { transform: rotate(-7deg); }
.scr { position: absolute; overflow: hidden; background: #040406; }
.tv { left: 430px; top: 70px; width: 600px; height: 354px; }
.tv::before { content: ""; position: absolute; inset: -40% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(255,186,170,.32), rgba(255,120,150,.08) 60%, transparent); opacity: 0; filter: blur(20px); transition: opacity 1.4s var(--ease) .5s; pointer-events: none; }
#devices.on-tv .tv::before { opacity: 1; }
.tv .scr { inset: 0 0 16px 0; border-radius: 6px; border: 8px solid #0d0d10; box-shadow: 0 0 0 1px #2a2a33, 0 30px 80px rgba(0,0,0,.6); }
.tv .stand { position: absolute; left: 50%; bottom: -22px; width: 200px; height: 22px; margin-left: -100px; border-radius: 0 0 4px 4px; background: linear-gradient(#1b1b22, #0e0e12); }
.tv-on { position: absolute; inset: 0; opacity: 0; }
#devices.on-tv .tv-on { animation: crt 1s var(--ease) forwards; }
@keyframes crt { 0% { opacity: 1; transform: scaleY(.004) scaleX(0); filter: brightness(3); } 35% { transform: scaleY(.004) scaleX(1); filter: brightness(3); } 100% { opacity: 1; transform: none; filter: none; } }
.tv-on img { width: 100%; height: 100%; object-fit: cover; }
.tv-dm { position: absolute; inset: 0; overflow: hidden; }
.tv-dm span { position: absolute; left: 100%; top: var(--y); white-space: nowrap; font-size: 15px; font-weight: 600; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; animation: dmtv 7s linear infinite; animation-delay: var(--d); animation-play-state: paused; }
#devices.on-tv .tv-dm span { animation-play-state: running; }
@keyframes dmtv { to { transform: translateX(calc(-600px - 100%)); } }
.tv-sub { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-size: 15px !important; font-weight: 600; color: #fff !important; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 1px 4px #000; line-height: 1.4 !important; }
.tv-bar { position: absolute; left: 14px; right: 14px; bottom: 10px; height: 3px; background: rgba(255,255,255,.25); border-radius: 2px; }
.tv-bar u { position: absolute; inset: 0 auto 0 0; width: 31%; background: var(--accent); border-radius: 2px; }
.mac { left: 70px; top: 470px; width: 420px; height: 282px; }
.mac .scr { left: 14px; right: 14px; top: 0; height: 252px; border-radius: 10px 10px 0 0; border: 7px solid #111116; border-bottom: 0; box-shadow: 0 0 0 1px #2a2a33; }
.mac .scr > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.mac .mini-ask { position: absolute; left: 22px; right: 70px; bottom: 26px; height: 24px; border-radius: 12px; background: rgba(20,20,26,.7); border: 1px solid var(--line2); }
.mac .mini-ask img { width: 18px; height: 18px; border-radius: 50%; margin: 2px; }
.mac .ring { position: absolute; left: 20px; bottom: 24px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); opacity: 0; animation: spin .8s linear infinite; transition: opacity .3s; }
#devices.think .mac .ring { opacity: 1; }
.mac .base { position: absolute; left: -6px; right: -6px; bottom: 16px; height: 14px; border-radius: 0 0 14px 14px; background: linear-gradient(#2b2b33, #15151a); }
.srv { left: 560px; top: 652px; width: 150px; height: 80px; border-radius: 10px; background: linear-gradient(#1e1e25, #111116); box-shadow: 0 0 0 1px #2a2a33, 0 20px 40px rgba(0,0,0,.5); display: flex; gap: 8px; align-items: flex-end; padding: 0 0 14px 16px; }
.srv .led { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 6px var(--mint); animation: breathe 1.7s infinite; }
.srv .led:nth-child(2) { animation-delay: .4s; } .srv .led:nth-child(3) { background: var(--accent); box-shadow: 0 0 6px var(--accent); animation-duration: .6s; }
.phone { left: 1120px; top: 392px; width: 176px; height: 364px; transform-origin: 50% 100%; }
.phone .scr { inset: 0; border-radius: 30px; border: 6px solid #050506; overflow: hidden; background: #000; box-shadow: 0 0 0 1px #141417, 0 0 0 2px #5d5d66, 0 0 0 2.6px #1b1b1f, 0 30px 70px rgba(0,0,0,.6); }
/* 设备场景里的手机：和应用一致的对话面板，按 360 宽排版后缩小 */
.pm { position: absolute; left: 0; top: 0; width: 360px; height: 780px; transform: scale(.45); transform-origin: 0 0; font-family: var(--sans); color: var(--paper); text-align: left; }
.pm p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.pm svg { display: block; }
.pm-back { position: absolute; left: 16px; right: 16px; top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; opacity: .3; }
.pm-back img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; }
.pm-island { position: absolute; z-index: 3; left: 50%; top: 10px; width: 112px; height: 33px; margin-left: -56px; border-radius: 17px; background: #000; }
.pm-status { position: absolute; z-index: 2; inset: 0 0 auto; height: 52px; display: flex; align-items: center; gap: 6px; padding: 2px 30px 0 52px; font-size: 16px !important; font-weight: 600; fill: #fff; }
.pm-status span { margin-right: auto; }
.pm-status svg:first-of-type { width: 18px; height: 12px; } .pm-status svg:last-of-type { width: 27px; height: 13px; }
.pm-sheet { position: absolute; inset: 62px 0 0; border-radius: 30px 30px 0 0; background: linear-gradient(180deg, #1d1d23, #0e0e12 60%); box-shadow: 0 -12px 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.09); }
.pm-grab { position: absolute; left: 50%; top: 8px; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(255,255,255,.24); }
.pm-head { position: absolute; left: 16px; right: 16px; top: 24px; display: flex; align-items: center; gap: 11px; }
.pm-head img { width: 40px; height: 40px; border-radius: 50%; }
.pm-head p { flex: 1; display: grid; gap: 2px; }
.pm-head b { font-family: var(--serif); font-weight: 900; font-size: 20px; line-height: 24px; }
.pm-head small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 16px; color: var(--p3); }
.pm-head small i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.pm-x { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.3); }
.pm-x svg { width: 18px; height: 18px; fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; }
.pm-thread { position: absolute; left: 18px; right: 18px; top: 84px; bottom: 104px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; overflow: hidden; -webkit-mask: linear-gradient(180deg, transparent, #000 34%); mask: linear-gradient(180deg, transparent, #000 34%); font-size: 18px; line-height: 1.55; }
.pm-you { align-self: flex-end; max-width: 270px; padding: 10px 16px; border-radius: 20px 20px 6px 20px; background: rgba(245,241,234,.15); }
.pm-nipa { max-width: 300px; }
.pm .old { color: var(--p3); }
.pm-you.new, .pm-think, .pm-nipa.reply { display: none; }
#devices.sent .pm-you.new { display: block; animation: pmIn .55s var(--ease) both; }
#devices.sent.think:not(.on-tv) .pm-think { display: flex; animation: pmIn .4s var(--ease) both; }
#devices.on-tv .pm-nipa.reply { display: block; animation: pmIn .6s var(--ease) both; }
@keyframes pmIn { from { opacity: 0; transform: translateY(14px); } }
.pm-think { gap: 6px; padding: 6px 0; }
.pm-think i { width: 8px; height: 8px; border-radius: 50%; background: var(--p3); animation: pmDot 1.2s ease-in-out infinite; }
.pm-think i:nth-child(2) { animation-delay: .15s; } .pm-think i:nth-child(3) { animation-delay: .3s; }
@keyframes pmDot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
.pm-composer { position: absolute; left: 14px; right: 14px; bottom: 30px; height: 60px; border-radius: 24px; display: flex; align-items: center; padding: 0 8px 0 20px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.pm-input { flex: 1; overflow: hidden; white-space: nowrap; font-size: 18px; }
.pm-input em { font-style: normal; }
.pm-input em:empty::before { content: "继续说…"; color: var(--p3); }
.pm-input em:not(:empty)::after { content: ""; display: inline-block; width: 2px; height: 20px; margin-left: 2px; vertical-align: -3px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.pm-mic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 6px 18px rgba(255,46,85,.35); }
.pm-mic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; }
.tag { position: absolute; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i) * 150ms + .3s); font-size: inherit !important; }
#devices.lit .tag { opacity: 1; transform: none; }
.tag small { font-size: 13px; letter-spacing: .4em; color: var(--p3); }
.tag b { font-family: var(--serif); font-weight: 900; font-size: 28px; display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--paper); }
.tag b span { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--p3); }
.tag .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.t-tv { left: 1060px; top: 84px; } .t-mac { left: 84px; top: 404px; } .t-srv { left: 732px; top: 664px; } .t-ph { left: 1086px; top: 318px; }

/* —— 媒体库 —— */
.band { padding: clamp(110px, 14vh, 170px) 0 clamp(90px, 12vh, 140px); overflow: hidden; }
.band-copy { max-width: 900px; margin: 0 auto; padding: 0 24px; text-align: center; }
.band-copy p { margin: 26px auto 0; max-width: 640px; }
.marquee { margin-top: 70px; display: grid; gap: 18px; }
.mq-row { display: flex; gap: 18px; width: max-content; animation: mq var(--dur) linear infinite; }
.mq-row.rev { animation-direction: reverse; margin-left: -220px; }
.marquee:hover .mq-row { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-card { position: relative; flex: none; width: clamp(280px, 26vw, 420px); aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: var(--ink3); }
.mq-card > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.mq-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.65), transparent 65%), linear-gradient(0deg, rgba(0,0,0,.45), transparent 50%); }
.mq-logo { position: absolute; z-index: 1; left: 7%; bottom: 10%; max-width: 52%; max-height: 42%; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); }

/* —— 弹幕 —— */
.split { display: grid; grid-template-columns: minmax(280px, .75fr) 1.65fr; gap: clamp(28px, 4vw, 64px); align-items: center; max-width: 1560px; margin: 0 auto; padding: clamp(90px, 12vh, 150px) clamp(20px, 4vw, 64px); }
.split-copy p { margin-top: 22px; max-width: 440px; }
.player { position: relative; aspect-ratio: 16/9; border-radius: clamp(10px, 1.4vw, 20px); overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 120px rgba(0,0,0,.7); container-type: inline-size; }
.player > img { width: 100%; height: 100%; object-fit: cover; }
.player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 30%, transparent 62%, rgba(0,0,0,.6)); pointer-events: none; }
.pl-dm { position: absolute; z-index: 1; inset: 0; overflow: hidden; }
.pl-dm span { position: absolute; left: 100%; top: var(--y); white-space: nowrap; font-size: clamp(14px, 2.2cqw, 26px); font-weight: 600; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 3px #000; animation: dmpl 8s linear infinite; animation-delay: var(--d); animation-play-state: paused; }
.player.in .pl-dm span { animation-play-state: running; }
@keyframes dmpl { to { transform: translateX(calc(-100cqw - 100%)); } }
.pl-sub { position: absolute; z-index: 2; left: 0; right: 0; bottom: 22%; text-align: center; font-size: clamp(14px, 2.2cqw, 24px) !important; font-weight: 600; color: #fff !important; line-height: 1.4 !important; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 1px 6px #000; }
.pl-ctl { position: absolute; z-index: 2; left: 4%; right: 4%; bottom: 6%; height: clamp(40px, 6cqw, 58px); border-radius: 999px; display: flex; align-items: center; gap: 14px; padding: 0 12px 0 8px;
  background: linear-gradient(180deg, rgba(40,40,48,.6), rgba(20,20,26,.6)); border: .5px solid rgba(255,255,255,.2); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); box-shadow: inset 0 1px .5px rgba(255,255,255,.4), 0 10px 30px rgba(0,0,0,.4); }
.pl-pp { width: 34px; height: 34px; display: grid; place-items: center; }
.pl-pp svg { width: 16px; height: 16px; fill: var(--paper); }
.pl-ctl time { font-size: 12.5px; color: var(--p2); font-variant-numeric: tabular-nums; }
.pl-track { position: relative; flex: 1; height: 28px; }
.pl-track svg { position: absolute; left: 0; right: 0; bottom: 11px; width: 100%; height: 15px; }
.pl-track svg path { fill: rgba(255,46,85,.42); }
.pl-track i { position: absolute; left: 0; right: 0; bottom: 10px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.pl-track i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 46%; background: var(--accent); }
.pl-track b { position: absolute; left: 46%; bottom: 6px; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--paper); }
.player.in .pl-track i::after { animation: grow 40s linear forwards; }
.player.in .pl-track b { animation: move 40s linear forwards; }
@keyframes grow { to { width: 70%; } } @keyframes move { to { left: 70%; } }
.pl-dmbtn { font-size: 12.5px; font-weight: 700; height: 26px; padding: 0 7px; display: grid; place-items: center; border-radius: 7px; background: var(--accent); }

/* —— 笔记本 —— */
.paper { position: relative; background: #eee7d8; color: #1c1c22; display: grid; grid-template-columns: 1fr 1.25fr; gap: 5vw; align-items: center; padding: clamp(110px, 14vh, 160px) clamp(24px, 8vw, 130px); overflow: hidden; }
.paper::before { content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: multiply; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .32 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.paper .kicker { color: #d81f46; }
.paper p { color: #4b4740; }
.note-copy p { margin-top: 24px; max-width: 460px; }
.crop { position: absolute; width: 34px; height: 34px; }
.crop::before, .crop::after { content: ""; position: absolute; background: #1c1c22; }
.crop::before { width: 34px; height: 1px; top: 17px; } .crop::after { width: 1px; height: 34px; left: 17px; }
.crop.tl { left: 26px; top: 26px; } .crop.tr { right: 26px; top: 26px; } .crop.bl { left: 26px; bottom: 26px; } .crop.br { right: 26px; bottom: 26px; }
.notebook { position: relative; padding: 52px 48px 76px 92px; background: #fbf8f1; border-radius: 3px; box-shadow: 0 1px 0 #d8d0bf, 0 30px 60px rgba(60,48,30,.18);
  background-image: linear-gradient(90deg, transparent 66px, rgba(255,46,85,.35) 66px, rgba(255,46,85,.35) 67.5px, transparent 67.5px), repeating-linear-gradient(180deg, transparent 0 53px, rgba(70,100,160,.18) 53px 54px); background-position: 0 0, 0 46px; }
.notebook.in { transform: rotate(-1.2deg); }
.ln { font-family: var(--hand); font-size: clamp(18px, 1.5vw, 24px) !important; line-height: 54px !important; color: #23232b !important; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.6,.05,.3,1); transition-delay: calc(.5s + var(--i) * .9s); }
.notebook.in .ln { clip-path: inset(0 0 0 0); }
.ln time { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--accent); margin-right: 14px; }
.peek { position: absolute; right: -50px; bottom: -64px; width: 180px; transform: rotate(8deg); filter: drop-shadow(0 10px 18px rgba(60,48,30,.25)); }

/* —— 开放 —— */
#open { max-width: 1320px; margin: 0 auto; padding: clamp(110px, 14vh, 170px) clamp(20px, 4vw, 48px) clamp(60px, 8vh, 100px); }
.open-head { text-align: center; }
.cards4 { margin-top: 60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards4 article { padding: 28px 26px 32px; border-radius: 22px; background: linear-gradient(180deg, rgba(245,241,234,.06), rgba(245,241,234,.02)); border: 1px solid var(--line); }
.cards4 b { font-family: var(--serif); font-weight: 900; font-size: 24px; }
.cards4 p { margin-top: 14px; font-size: 15px; line-height: 1.8; }

/* —— 下载 —— */
#get { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; max-width: 1400px; margin: 0 auto; padding: clamp(60px, 8vh, 100px) clamp(20px, 4vw, 64px) clamp(110px, 14vh, 160px); }
.swing { position: relative; transform-origin: 62% 0; animation: swing 4.6s ease-in-out infinite; }
.swing img { width: 100%; height: auto; }
@keyframes swing { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-3deg); } }
.get-copy h2 { font-size: clamp(42px, 5.6vw, 88px); }
.get-copy .ver { margin-top: 18px; letter-spacing: .06em; }
.get-copy .cta { margin-top: 36px; }
.get-copy .how { margin-top: 30px; font-size: 15px; color: var(--p3); }
.get-copy .warn { margin-top: 12px; font-size: 14px; color: rgba(255,111,138,.9); max-width: 520px; line-height: 1.8; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px; padding: 24px clamp(20px, 4vw, 48px) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 12px; color: var(--p4); }

/* —— 窄屏 —— */
@media (max-width: 860px) {
  #nav nav { display: none; }
  h2 { font-size: clamp(28px, 7.6vw, 40px); }
  #hero .lead br { display: none; }
  #how .window { aspect-ratio: 1 / 1; }
  #devices .step-visual { margin: 0 -20px; overflow-x: clip; }
  #nav .nav-get { margin-left: auto; }
  .steps { height: calc(var(--n, 3) * 100vh + 20vh); }
  .steps .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 18px; padding: 76px 20px 24px; }
  .step-texts { min-height: 210px; }
  .st h2 { font-size: 34px; }
  .st p { margin-top: 12px; font-size: 15px; }
  .step-dots { margin-top: 10px; }
  .step-visual { align-self: center; }
  .split, .paper, #get { grid-template-columns: 1fr; }
  .cards4 { grid-template-columns: 1fr 1fr; }
  .notebook { padding: 34px 20px 44px 52px; background-image: linear-gradient(90deg, transparent 38px, rgba(255,46,85,.35) 38px, rgba(255,46,85,.35) 39.5px, transparent 39.5px), repeating-linear-gradient(180deg, transparent 0 39px, rgba(70,100,160,.18) 39px 40px); background-position: 0 0, 0 18px; }
  .ln { font-size: 16px !important; line-height: 40px !important; }
  .ln time { display: block; line-height: 1; margin: 10px 0 -6px; }
  .peek { width: 110px; right: -16px; bottom: -48px; }
  .swing { width: 70%; margin: 0 auto; }
  .tag b { font-size: 34px; } .tag small { font-size: 16px; }
}
@media (max-width: 520px) { .cards4 { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .st, .dev, .tag, .turn > *, .ln { transition: none !important; }
  .mq-row, .swing, .app-dm span, .pl-dm span, .tv-dm span, .mesh path, .srv .led, .wg b::before, .thinking i, .ph-line .dot, .pm-think i { animation: none !important; }
  .app-dm, .pl-dm, .tv-dm { display: none; }
}

/* ================= 精修 ================= */
h1, h2, h3, .sec-h, .dmb-row { font-feature-settings: "palt"; }
h2, h3 { text-wrap: balance; }
h1.letters .w { white-space: nowrap; }
#hero h1 { text-align: center; align-self: center; }
section p { text-wrap: pretty; }
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* 标题按行从遮罩里升起 */
[data-reveal].lines { opacity: 1; transform: none; }
.hl-mask { display: block; overflow: hidden; padding: .04em 0 .1em; margin: -.04em 0 -.1em; }
.hl-in { display: block; transform: translateY(108%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 100ms + var(--l) * 90ms); }
.lines.in .hl-in { transform: none; }

/* —— 首屏 —— */
.kicker .sep { margin: 0 .7em; color: var(--p4); letter-spacing: 0; }
.kicker .lat { letter-spacing: .16em; }
h1.letters .ch { display: inline-block; opacity: 0; transform: translateY(.32em); filter: blur(12px); transition: opacity .9s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--c) * 42ms + 120ms); }
h1.letters.go .ch { opacity: 1; transform: none; filter: none; }
h1.letters .next { font-family: NipaNext, var(--serif); font-weight: 400; color: var(--accent); margin-left: .04em; }
h1.letters .next .ch { text-shadow: 0 0 46px rgba(255,46,85,.38); }
.hero-stage { position: relative; isolation: isolate; margin-top: clamp(64px, 9vh, 104px); width: min(1240px, 88vw); perspective: 2200px; }
.hero-stage[data-reveal] { transform: none; transition: opacity 1.2s var(--ease) .5s; }
.hero-stage .hero-win { transform: rotateX(24deg) translateY(30px) scale(.95); transform-origin: 50% 0; transition: transform 2.2s var(--ease) .5s; }
.hero-stage.in .hero-win { transform: none; }
.ambient { position: absolute; z-index: -1; inset: 8% 3% -5%; filter: blur(80px) saturate(1.5); opacity: .5; pointer-events: none; }
.ambient img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.4s var(--ease); }
/* 首屏的 iPhone：按 402×874 的真实布局画，和应用里的首页一致 */
.iphone { position: absolute; z-index: 2; right: -3.5%; bottom: -10%; width: 19.5%; aspect-ratio: 418.8 / 890.8; border-radius: 16.33% / 7.68%; background: #030304;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 0 0 1px #141417, 0 0 0 2.4px #5d5d66, 0 0 0 3.2px #1b1b1f, 0 50px 90px rgba(0,0,0,.75), -30px 10px 80px rgba(0,0,0,.6);
  transform: translateY(70px) rotate(3deg); opacity: 0; transition: transform 2s var(--ease) 1.2s, opacity 1.3s var(--ease) 1.2s; }
.hero-stage.in .iphone { transform: none; opacity: 1; }
.ip-key { position: absolute; width: 1.3%; border-radius: 2px; background: linear-gradient(90deg, #2a2a30, #6a6a73 50%, #2a2a30); }
.ip-key.k-action, .ip-key.k-up, .ip-key.k-down { left: -1.9%; }
.ip-key.k-side, .ip-key.k-cam { right: -1.9%; }
.k-action { top: 17%; height: 3.4%; } .k-up { top: 23.6%; height: 6.4%; } .k-down { top: 31.4%; height: 6.4%; }
.k-side { top: 26%; height: 10%; } .k-cam { top: 54%; height: 6%; opacity: .8; }
.iscr { position: absolute; inset: .943% 2.006%; border-radius: 14.93% / 6.86%; overflow: hidden; background: #000; transform: translateZ(0); }
.iscr::after { content: ""; position: absolute; z-index: 9; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.07), rgba(255,255,255,0) 32%); }
.ph { position: absolute; inset: 0; color: var(--paper); font-family: var(--sans); text-align: left; letter-spacing: 0; }
.ph p, .ph figure { margin: 0; }
.ph svg { display: block; }
.ph-page { position: absolute; inset: 0; }
.ph-hero { position: relative; height: 586px; }
.ph-bd { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ph-hero::after { content: ""; position: absolute; inset: 0 0 -2px; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,0) 17%, rgba(0,0,0,0) 40%, rgba(0,0,0,.74) 70%, #000 99%); }
.ph-copy { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 26px; }
.ph-copy .logo { width: 250px; height: 92px; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 4px 16px rgba(0,0,0,.55)); }
.ph .ph-meta { margin-top: 15px; font-size: 15px; line-height: 18px; color: var(--p2); white-space: nowrap; }
.ph-meta b { font-weight: 600; color: var(--paper); }
.ph-meta i { font-style: normal; margin: 0 9px; color: var(--p4); }
.ph .ph-ov { margin-top: 15px; font-size: 15px; line-height: 26px; color: var(--p2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-btns { display: flex; gap: 12px; margin-top: 22px; }
.ph-play, .ph-ghost { height: 46px; border-radius: 23px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.ph-play { flex: 1; background: var(--paper); color: #141418; }
.ph-play svg { width: 14px; height: 14px; margin-right: 10px; fill: #141418; }
.ph-ghost { width: 78px; background: rgba(245,241,234,.1); box-shadow: inset 0 0 0 1px rgba(245,241,234,.16); }
.ph .ph-h3 { margin: 0 20px 19px; font-size: 19px; line-height: 24px; font-weight: 700; color: var(--paper); }
.ph-row { display: flex; gap: 16px; padding: 0 20px; }
.ph-row + .ph-h3 { margin-top: 40px; }
.ph-row figure { position: relative; flex: none; width: 296px; height: 150px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.ph-row figure img { width: 100%; height: 100%; object-fit: cover; }
.ph-row figure::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.ph-row figcaption { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 20px; display: grid; gap: 3px; }
.ph-row figure:has(figcaption) img { -webkit-mask: linear-gradient(0deg, rgba(0,0,0,.35), #000 60%); mask: linear-gradient(0deg, rgba(0,0,0,.35), #000 60%); }
.ph-row figcaption b { font-size: 14.5px; line-height: 18px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.ph-row figcaption span { font-size: 11.5px; line-height: 14px; color: var(--p2); }
.ph-row u { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 11px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); }
.ph-row u::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: inherit; background: var(--paper); }
.ph-island { position: absolute; z-index: 8; left: 50%; top: 11px; width: 126px; height: 37px; margin-left: -63px; border-radius: 19px; background: #000; }
.ph-status { position: absolute; z-index: 7; inset: 0 0 auto; height: 59px; color: #fff; }
.ph-time { position: absolute; left: 8px; width: 138px; top: 20px; text-align: center; font-size: 17px; line-height: 20px; font-weight: 600; letter-spacing: -.01em; }
.ph-sys { position: absolute; left: 272px; width: 136px; top: 24px; display: flex; justify-content: center; align-items: center; gap: 6px; fill: #fff; }
.ph-sys .sig { width: 18px; height: 12px; } .ph-sys .wifi { width: 16px; height: 12px; } .ph-sys .bat { width: 27px; height: 13px; }
.ph-top { position: absolute; z-index: 6; top: 68px; right: 20px; display: flex; align-items: center; gap: 10px; }
.ph-tasks { height: 34px; padding: 0 13px 0 11px; border-radius: 17px; display: flex; align-items: center; gap: 7px; }
.ph-tasks em { font-style: normal; font-size: 14px; color: var(--p2); font-variant-numeric: tabular-nums; }
.ph-more { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.ph-more svg { width: 22px; height: 22px; fill: var(--paper); }
.glass { position: relative; background: linear-gradient(180deg, rgba(38,38,44,.6), rgba(10,10,14,.7)); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 1px 1px rgba(255,255,255,.08); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none;
  background: linear-gradient(165deg, rgba(255,255,255,.6), rgba(255,255,255,.16) 26%, rgba(255,255,255,.08) 56%, rgba(255,255,255,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ph-dock { position: absolute; z-index: 6; left: 16px; right: 16px; bottom: 25px; }
.ph-line { height: 50px; border-radius: 25px; display: flex; align-items: center; padding: 0 6px; }
.ph-line img { width: 38px; height: 38px; border-radius: 50%; }
.ph-line .dot { width: 7px; height: 7px; margin: 0 9px 0 12px; border-radius: 50%; background: var(--accent); animation: phdot 1.8s ease-in-out infinite; }
@keyframes phdot { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,46,85,.55); } 60% { box-shadow: 0 0 0 6px rgba(255,46,85,0); } }
.ph-line > span:not(.mic) { flex: 1; font-size: 15px; line-height: 20px; white-space: nowrap; }
.ph-line .mic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.ph-line .mic svg, .ph-bar svg, .ph-search svg { fill: none; stroke: var(--paper); stroke-linecap: round; stroke-linejoin: round; }
.ph-line .mic svg { width: 19px; height: 19px; stroke-width: 1.8; }
.ph-tabs { display: flex; gap: 10px; margin-top: 10px; }
.ph-bar { flex: 1; height: 62px; border-radius: 31px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 0 5px; }
.ph-bar span { height: 52px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ph-bar svg { width: 24px; height: 24px; stroke-width: 1.7; }
.ph-bar em { font-style: normal; font-size: 10.5px; line-height: 12px; font-weight: 500; }
.ph-bar .on { background: rgba(255,255,255,.07); color: var(--accent); }
.ph-bar .on svg { stroke: var(--accent); stroke-width: 1.9; }
.ph-search { flex: none; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; }
.ph-search svg { width: 24px; height: 24px; stroke-width: 1.8; }

/* —— 分步场景：标题 + 竖排步骤 —— */
.sec-h { font-size: clamp(34px, 3.6vw, 58px); margin-top: 16px; }
.step-list { list-style: none; position: relative; margin-top: clamp(28px, 5vh, 48px); --prog: 0; }
.step-list::before, .step-list::after { content: ""; position: absolute; left: 15px; top: 30px; width: 1px; }
.step-list::before { bottom: 30px; background: var(--line2); }
.step-list::after { height: calc((100% - 60px) * var(--prog)); background: var(--accent); box-shadow: 0 0 10px var(--accent); transition: height .9s var(--ease); }
.step-list li { position: relative; padding: 12px 0 12px 54px; opacity: .4; transition: opacity .6s var(--ease); }
.step-list .num { position: absolute; z-index: 1; left: 0; top: 13px; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums;
  background: #000; border: 1px solid var(--line2); color: var(--p3); transition: background .5s, border-color .5s, color .5s, box-shadow .5s; }
.step-list h3 { font-family: var(--serif); font-weight: 900; font-size: clamp(19px, 1.55vw, 24px); line-height: 1.4; padding-top: 4px; }
.step-list p { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.8; transition: max-height .8s var(--ease), opacity .6s var(--ease), margin .6s var(--ease); }
.steps[data-step="0"] li[data-s="0"], .steps[data-step="1"] li[data-s="1"], .steps[data-step="2"] li[data-s="2"] { opacity: 1; }
.steps[data-step="0"] li[data-s="0"] p, .steps[data-step="1"] li[data-s="1"] p, .steps[data-step="2"] li[data-s="2"] p { max-height: 9em; opacity: 1; margin-top: 10px; transition-delay: .15s; }
.steps[data-step="0"] li[data-s="0"] .num, .steps[data-step="1"] li[data-s="1"] .num, .steps[data-step="2"] li[data-s="2"] .num { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 22px rgba(255,46,85,.55); }
.steps[data-step="1"] li[data-s="0"], .steps[data-step="2"] li[data-s="0"], .steps[data-step="2"] li[data-s="1"] { opacity: .62; }
.steps[data-step="1"] li[data-s="0"] .num, .steps[data-step="2"] li[data-s="0"] .num, .steps[data-step="2"] li[data-s="1"] .num { border-color: var(--accent); color: var(--accent); }
.step-texts, .step-dots { display: none; }
.step-visual { isolation: isolate; }
.step-visual .ambient { inset: 6% 2% -4%; opacity: .45; }
.ambient .a-to { opacity: 0; }
#how[data-step="2"] .ambient .a-to { opacity: 1; }
.how-app { transition: transform 1.4s var(--ease); transform-origin: 8% 58%; }
.window.zoom .how-app { transform: scale(1.38); }

/* —— 媒体库 —— */
#library { position: relative; }
#library::before { content: ""; position: absolute; left: 50%; top: 0; width: 80vw; height: 60vh; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,46,85,.12), transparent); pointer-events: none; }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee.in { transform: perspective(1800px) rotateX(9deg); }
.mq-card { transition: transform .6s var(--ease), box-shadow .6s; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.mq-card:hover { transform: translateY(-8px) scale(1.025); box-shadow: 0 30px 70px rgba(0,0,0,.6); }

/* —— 弹幕字带 —— */
.dm-band { padding: 20px 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.dmb-row { display: flex; width: max-content; gap: .7em; padding-right: .7em; font-family: var(--serif); font-weight: 900; font-size: clamp(54px, 7.6vw, 124px); line-height: 1.18; white-space: nowrap; animation: mq 60s linear infinite; }
.dmb-row.rev { animation-direction: reverse; animation-duration: 72s; }
.dmb-row span { color: transparent; -webkit-text-stroke: 1.2px rgba(245,241,234,.2); }
.dmb-row span.f { color: rgba(245,241,234,.9); -webkit-text-stroke: 0; }
.dmb-row.rev span.f { color: var(--accent); }

/* —— 弹幕播放器 —— */
.player { overflow: visible; }
.player > img { border-radius: inherit; }
.player::before { content: ""; position: absolute; z-index: -1; inset: 8% 4% -6%; background: url(/next-assets/still-gakusei-5.webp) center / cover; filter: blur(70px) saturate(1.5); opacity: .45; }
.player::after { border-radius: inherit; }
.pl-dm { border-radius: inherit; }
#danmaku .player { isolation: isolate; }

/* —— 设备 —— */
.tv .scr::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 30%, transparent 46%, transparent 74%, rgba(255,255,255,.03)); }
#devices { overflow-x: clip; }
#devices .stage { position: sticky; }
#devices .stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(48% 46% at 66% 34%, rgba(255,150,170,.13), transparent 70%); opacity: 0; transition: opacity 1.8s var(--ease) .4s; }
#devices.on-tv .stage::before { opacity: 1; }
.trail circle { fill: var(--accent); opacity: 0; }
.ripple { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ripple.go { animation: ripple 1.2s var(--ease) forwards; }
@keyframes ripple { 0% { transform: scale(1); opacity: .95; stroke-width: 2; } 100% { transform: scale(9); opacity: 0; stroke-width: .3; } }

/* —— 开放 —— */
.cards4 article { position: relative; transition: border-color .4s, transform .6s var(--ease), background .4s; }
.cards4 article:hover { border-color: var(--line2); transform: translateY(-4px); background: linear-gradient(180deg, rgba(245,241,234,.08), rgba(245,241,234,.03)); }
.vig { height: 124px; margin: -8px -8px 24px; padding: 14px; border-radius: 14px; background: rgba(0,0,0,.55); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: hidden; }
.vig-code p { margin: 0 !important; font-family: Menlo, Consolas, monospace; font-size: 11.5px !important; line-height: 1.8 !important; color: var(--p2) !important; white-space: nowrap; }
.vig-code i { font-style: normal; color: var(--accent); margin-right: 6px; }
.vig-code u { display: inline-block; width: 7px; height: 14px; margin-left: 3px; vertical-align: -2px; background: var(--paper); animation: blink 1s steps(1) infinite; }
.vig-form span { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(245,241,234,.05); border: 1px solid var(--line); font-family: Menlo, Consolas, monospace; font-size: 11px; color: var(--paper); white-space: nowrap; overflow: hidden; }
.vig-form small { font-family: var(--sans); font-size: 11px; color: var(--p3); }
.vig-form em { font-style: normal; font-size: 11.5px; color: var(--mint); display: flex; align-items: center; gap: 6px; }
.vig-form em i, .vig-devs i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 6px var(--mint); }
.vig-devs span { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--paper); }
.vig-devs em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent); border: 1px solid rgba(255,46,85,.5); border-radius: 6px; padding: 0 6px; }
.vig-plat { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 8px; }
.vig-plat span { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line2); font-size: 12px; color: var(--paper); }

/* —— 下载 —— */
#get { grid-template-columns: 1fr 1fr; }
.get-art { position: relative; aspect-ratio: 1 / 1; container-type: size; }
.get-art .glow { position: absolute; inset: -6% 2% 24% 22%; background: radial-gradient(closest-side, rgba(255,46,85,.3), rgba(255,46,85,.06) 62%, transparent); filter: blur(30px); }
.get-art .swing { position: absolute; inset: 0; }
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.petals i { position: absolute; top: -4%; left: var(--x); width: 13px; height: 9px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #ffd6e0, #ff8fab); opacity: 0; animation: fall var(--t) linear infinite; animation-delay: var(--d); }
@keyframes fall { 0% { transform: translate(0, 0) rotate(0deg); opacity: 0; } 8% { opacity: .9; } 85% { opacity: .8; } 100% { transform: translate(-90px, calc(100cqh + 30px)) rotate(520deg); opacity: 0; } }
.petals i { --fall: 0; }
.get-copy h2 small { display: block; font-size: .4em; color: var(--p2); margin-bottom: .25em; letter-spacing: .1em; }
.get-copy h2 em { font-style: normal; color: var(--accent); }

@media (max-width: 860px) {
  .iphone { width: 26%; right: -4%; bottom: -14%; }
  .step-list { margin-top: 14px; }
  .step-list li { padding: 7px 0 7px 46px; }
  .step-list .num { top: 8px; width: 27px; height: 27px; }
  .step-list::before, .step-list::after { left: 13px; }
  .step-list h3 { font-size: 17px; }
  .sec-h { font-size: 30px; }
  .dmb-row { font-size: 48px; }
  .get-art { width: 86%; margin: 0 auto; }
  #get { grid-template-columns: 1fr; text-align: left; }
  .get-art .swing { width: auto; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-in, h1.letters .ch { transform: none !important; opacity: 1 !important; filter: none !important; transition: none !important; }
  .hero-stage .hero-win, .iphone { transform: none !important; opacity: 1 !important; }
  .dmb-row, .petals i { animation: none !important; }
  .window.zoom .how-app { transform: none; }
}

/* 电视待机灯：开机后熄灭 */
.tv .standby { position: absolute; z-index: 4; right: 22px; bottom: 21px; width: 5px; height: 5px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 8px #ff3b30; transition: opacity .6s; }
#devices.on-tv .tv .standby { opacity: 0; }

/* ================= 组网：交给另一台 + 事实 ================= */
.mac-toast { position: absolute; left: 16px; right: 16px; top: 16px; margin: 0 !important; padding: 10px 12px; border-radius: 12px; font-size: 12px !important; line-height: 1.5 !important; color: var(--paper) !important;
  background: rgba(20,20,26,.82); border: 1px solid var(--line2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateY(-10px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.mac-toast b { display: block; font-size: 11px; color: var(--accent); margin-bottom: 2px; }
#devices.toast .mac-toast { opacity: 1; transform: none; }
#devices.busy .srv .led { animation-duration: .25s; }
#mesh-facts { max-width: 1320px; margin: 0 auto; padding: 10px clamp(20px, 4vw, 48px) clamp(80px, 10vh, 120px); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line2); }
.facts article { padding: 26px 26px 0 0; }
.facts article + article { padding-left: 26px; border-left: 1px solid var(--line); }
.facts b { font-family: var(--serif); font-weight: 900; font-size: 22px; }
.facts p { margin-top: 10px; font-size: 14.5px; line-height: 1.8; }

/* ================= 架构：爆炸图 ================= */
.iso-wrap { position: relative; height: min(78vh, 760px); display: grid; place-items: center; perspective: 2600px; }
.iso { position: relative; width: min(30vw, 470px); aspect-ratio: 1; transform: rotateX(57deg) rotateZ(-42deg) translateY(4%); transform-style: preserve-3d; --gap: 46px; }
#arch.lit .iso { --gap: 96px; }
.plate { position: absolute; inset: 0; border-radius: 9%; transform-style: preserve-3d; transform: translateZ(calc(var(--k) * var(--gap))); transition: transform 1.2s var(--ease), border-color .6s, background .6s, opacity .6s, box-shadow .6s;
  background: linear-gradient(135deg, rgba(245,241,234,.09), rgba(245,241,234,.025)); border: 1px solid rgba(245,241,234,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 40px 70px rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.plate.on { border-color: rgba(255,46,85,.7); background: linear-gradient(135deg, rgba(255,46,85,.16), rgba(255,46,85,.03)); box-shadow: 0 0 0 1px rgba(255,46,85,.25), 0 0 60px rgba(255,46,85,.25), 0 40px 70px rgba(0,0,0,.55); }
.pl-label { position: absolute; left: 7%; top: 6%; margin: 0 !important; display: flex; flex-direction: column; gap: 3px; color: var(--paper) !important; line-height: 1.1 !important; }
.pl-label b { font-family: var(--serif); font-weight: 900; font-size: clamp(16px, 1.6vw, 24px); }
.pl-label small { font-size: 9px; letter-spacing: .3em; color: var(--p3); }
.pl-tree { list-style: none; position: absolute; left: 7%; top: 26%; font-family: Menlo, Consolas, monospace; font-size: clamp(9px, .85vw, 12px); line-height: 1.9; color: var(--p2); }
.pl-chips, .pl-caps { position: absolute; left: 7%; right: 7%; bottom: 8%; display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chips span, .pl-caps span, .cap-hit, .nipa-call, .models span, .ui-play { padding: 4px 9px; border-radius: 7px; font-size: clamp(9px, .8vw, 11.5px); border: 1px solid var(--line2); color: var(--p2); background: rgba(0,0,0,.35); white-space: nowrap; }
.pl-caps span, .cap-hit, .nipa-call { font-family: Menlo, Consolas, monospace; }
.pl-caps { bottom: 7%; top: auto; opacity: .75; }
.cap-hit { position: absolute; left: 16%; top: 46%; width: 68%; text-align: center; padding: 8px 0; font-size: clamp(11px, 1vw, 14px); color: var(--paper); border-color: rgba(245,241,234,.3); transition: all .5s; }
#arch.hit .cap-hit { color: #fff; border-color: var(--accent); background: rgba(255,46,85,.35); box-shadow: 0 0 30px rgba(255,46,85,.6); }
.erika-hit { position: absolute; left: 30%; top: 46%; width: 40%; text-align: center; padding: 8px 0; border-radius: 7px; font-size: clamp(11px, 1vw, 14px); color: var(--paper); border: 1px solid rgba(245,241,234,.3); background: rgba(0,0,0,.35); transition: all .5s; white-space: nowrap; }
.p-body .pl-chips { bottom: 10%; }
#arch.hit2 .erika-hit { color: #fff; border-color: var(--accent); background: rgba(255,46,85,.35); box-shadow: 0 0 30px rgba(255,46,85,.6); }
.p-top { display: grid; grid-template-columns: 1fr 1fr; }
.half { position: relative; }
.half + .half { border-left: 1px dashed rgba(245,241,234,.18); }
.mini-posters { position: absolute; left: 14%; top: 20%; display: flex; gap: 5px; }
.mini-posters i { width: 22%; min-width: 26px; aspect-ratio: 2/3; border-radius: 4px; background: linear-gradient(160deg, #3b2b4f, #18151f); border: 1px solid var(--line); }
.mini-posters i:nth-child(2) { background: linear-gradient(160deg, #5a2a35, #1c1316); } .mini-posters i:nth-child(3) { background: linear-gradient(160deg, #23405a, #12171c); }
.ui-play { position: absolute; left: 30%; top: 46%; color: #111; background: var(--paper); border: 0; font-weight: 700; transition: box-shadow .4s; }
#arch.hit .ui-play { box-shadow: 0 0 24px rgba(245,241,234,.7); }
.nipa-face { position: absolute; left: 14%; top: 20%; width: 22%; border-radius: 50%; border: 1px solid var(--line2); }
.nipa-call { position: absolute; left: 8%; top: 46%; transition: all .5s; }
#arch.hit .nipa-call { color: #fff; border-color: var(--accent); background: rgba(255,46,85,.3); }
.models { position: absolute; left: 12%; right: 6%; bottom: 7%; display: flex; flex-wrap: wrap; gap: 5px; opacity: 0; transition: opacity .6s; }
#arch[data-step="2"] .models { opacity: 1; }
.beam { position: absolute; width: 2px; margin-left: -1px; height: calc(var(--span, 1) * var(--gap)); transform-origin: 50% 0; transform: rotateX(-90deg); opacity: 0; transition: opacity .5s, height 1.2s var(--ease);
  background: linear-gradient(180deg, transparent, rgba(255,46,85,.95) 40%, rgba(255,111,138,.95) 60%, transparent) 0 0 / 100% 220%; animation: beamflow 1s linear infinite; filter: drop-shadow(0 0 6px var(--accent)); }
@keyframes beamflow { from { background-position: 0 -120%; } to { background-position: 0 120%; } }
.b-ui { left: 22%; top: 49%; }
.b-nipa { left: 72%; top: 49%; }
.b-home { left: 62.5%; top: 26%; --span: 3; }
.b-down { left: 50%; top: 49%; transform: translateZ(calc(2 * var(--gap))) rotateX(-90deg); }
#arch.hit .b-ui, #arch.hit .b-nipa { opacity: 1; }
#arch.hit2 .b-down { opacity: 1; }
#arch[data-step="2"] .b-home { opacity: 1; }
.p-top .b-home, .p-top .b-ui, .p-top .b-nipa { position: absolute; }

/* ================= 她的家：纸面上的仓库 ================= */
.paper-steps .stage { background: #eee7d8; color: #1c1c22; max-width: none; }
.paper-steps .stage::before { content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: multiply; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .32 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.paper-steps .stage { padding-left: clamp(24px, 7vw, 120px); padding-right: clamp(24px, 6vw, 100px); }
.paper-steps .kicker { color: #d81f46; }
.paper-steps .sec-h { color: #1c1c22; }
.paper-steps .step-list li { opacity: .42; }
.paper-steps .step-list h3 { color: #1c1c22; }
.paper-steps .step-list p { color: #4b4740; }
.paper-steps .step-list::before { background: rgba(28,28,34,.18); }
.paper-steps .step-list .num { background: #eee7d8; border-color: rgba(28,28,34,.25); color: rgba(28,28,34,.55); }
.paper-steps[data-step="1"] li[data-s="0"], .paper-steps[data-step="2"] li[data-s="0"], .paper-steps[data-step="2"] li[data-s="1"], .paper-steps[data-step="3"] li[data-s="0"], .paper-steps[data-step="3"] li[data-s="1"], .paper-steps[data-step="3"] li[data-s="2"] { opacity: .66; }
.paper-steps[data-step="3"] li[data-s="3"] { opacity: 1; }
.paper-steps[data-step="3"] li[data-s="3"] p { max-height: 9em; opacity: 1; margin-top: 10px; }
.paper-steps[data-step="3"] li[data-s="3"] .num { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 22px rgba(255,46,85,.45); }
.paper-steps[data-step="3"] .step-list li:not([data-s="3"]) .num { border-color: var(--accent); color: var(--accent); }
.paper-steps .crop { z-index: 1; }
.paper-steps .crop.tl, .paper-steps .crop.tr { top: 76px; }
.repo { position: relative; z-index: 1; width: 100%; max-width: 900px; margin-left: auto; background: #fbf8f1; border-radius: 4px; box-shadow: 0 1px 0 #d8d0bf, 0 40px 80px rgba(60,48,30,.22); transform: rotate(-.6deg); }
.repo-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid rgba(28,28,34,.1); font-family: Menlo, Consolas, monospace; font-size: 12.5px; color: #4b4740; }
.repo-branch { font-size: 11px; padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(216,31,70,.4); color: #d81f46; }
.repo-body { display: grid; grid-template-columns: 210px 1fr; min-height: min(56vh, 470px); }
.tree { list-style: none; padding: 16px 0; border-right: 1px solid rgba(28,28,34,.08); font-family: Menlo, Consolas, monospace; font-size: 12.5px; line-height: 2; color: #3b3832; }
.tree li { padding: 0 18px; position: relative; transition: background .4s, color .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree .in1 { padding-left: 34px; }
.tree .t-dir { color: #7a7368; }
.tree .t-new, .tree .t-hook { color: #3b3832; }
.tree .t-new::after, .tree .t-hook::after { content: "她写的"; margin-left: 8px; font-family: var(--hand); font-size: 12px; color: #d81f46; opacity: 0; transition: opacity .4s; }
#home[data-step="2"] .t-new::after, #home[data-step="2"] .t-hook::after, #home[data-step="3"] .t-new::after, #home[data-step="3"] .t-hook::after { opacity: 1; }
#home[data-step="0"] .t-agents, #home[data-step="1"] .t-pref, #home[data-step="2"] .t-hook { background: rgba(255,46,85,.1); color: #d81f46; }
#home[data-step="0"] .t-agents::before, #home[data-step="1"] .t-pref::before, #home[data-step="2"] .t-hook::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--accent); }
.panes { position: relative; overflow: hidden; }
.pane { position: absolute; inset: 0; padding: 18px 26px; font-family: Menlo, Consolas, "PingFang SC", monospace; font-size: 13px; line-height: 1.95; color: #2a2a31; opacity: 0; transition: opacity .5s var(--ease); counter-reset: ln; }
.pane .cl { display: block; position: relative; padding-left: 38px; white-space: pre; font-weight: 400; clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.6,.05,.3,1); transition-delay: calc(var(--n, 0) * 90ms + .2s); counter-increment: ln; }
.pane .cl::before { content: counter(ln); position: absolute; left: 0; width: 24px; text-align: right; color: rgba(28,28,34,.28); font-size: 11px; }
#home[data-step="0"] .pane[data-s="0"], #home[data-step="1"] .pane[data-s="1"], #home[data-step="2"] .pane[data-s="2"], #home[data-step="3"] .pane[data-s="3"] { opacity: 1; }
#home[data-step="0"] .pane[data-s="0"] .cl, #home[data-step="1"] .pane[data-s="1"] .cl, #home[data-step="2"] .pane[data-s="2"] .cl, #home[data-step="3"] .pane[data-s="3"] .cl { clip-path: inset(0 0 0 0); }
.pane .h1 { font-weight: 700; color: #1c1c22; }
.pane .h2 { font-weight: 700; color: #6a4a8a; }
.pane .cm { color: #8a8378; }
.pane .mark { background: linear-gradient(transparent 58%, rgba(255,46,85,.22) 58%); }
.pane.log .cl i { font-style: normal; color: #b07a1a; margin-right: 14px; }
.pane.log .cl em { font-style: normal; position: absolute; right: 0; color: #8a8378; font-size: 11.5px; }
.pane.log .struck { color: #9a9388; text-decoration: line-through; text-decoration-color: rgba(216,31,70,.7); }
.pane.log .revert { color: #d81f46; }
.note { position: absolute; margin: 0 !important; font-family: var(--hand); font-size: clamp(17px, 1.5vw, 22px) !important; color: #d81f46 !important; line-height: 1.2 !important; transform: rotate(-4deg); opacity: 0; transition: opacity .6s var(--ease) .9s; pointer-events: none; white-space: nowrap; }
.note::before { content: "↙"; margin-right: 6px; }
.n0 { right: 6%; top: 15%; } .n1 { right: 8%; top: 31%; } .n2 { right: 6%; top: 58%; } .n3 { right: 7%; top: 47%; }
#home[data-step="0"] .n0, #home[data-step="1"] .n1, #home[data-step="2"] .n2, #home[data-step="3"] .n3 { opacity: 1; }

@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts article:nth-child(3) { border-left: 0; padding-left: 0; }
  .iso-wrap { height: 52vh; }
  .iso { width: 58vw; }
  .repo-body { grid-template-columns: 1fr; }
  .tree { display: none; }
  .pane { font-size: 10.5px; padding: 12px 14px; }
  .pane .cl { padding-left: 26px; }
  .note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .beam { animation: none; }
  .pane .cl { clip-path: none !important; transition: none; }
}
.pl-dot { position: absolute; left: 62.5%; top: 26%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); opacity: 0; transition: opacity .5s .6s; }
#arch[data-step="2"] .pl-dot { opacity: 1; }
#arch[data-step="0"] .p-cap, #arch[data-step="1"] .p-body, #arch[data-step="2"] .p-top, #arch[data-step="2"] .p-home { }

/* 标签放在每层靠前的一侧，不被上一层挡住；荧光笔只盖住文字 */
.plate:not(.p-top) .pl-label { top: auto; bottom: 24%; }
.p-home .pl-label { bottom: 9%; left: auto; right: 8%; text-align: right; align-items: flex-end; }
.pane .cl.mark { width: fit-content; }
.n0 { right: 2%; top: 9%; }
/* 第四步 */
.steps[data-step="3"] li[data-s="3"] { opacity: 1; }
.steps[data-step="3"] li[data-s="3"] p { max-height: 9em; opacity: 1; margin-top: 10px; transition-delay: .15s; }
.steps[data-step="3"] li[data-s="3"] .num { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 22px rgba(255,46,85,.55); }
.steps[data-step="3"] li:not([data-s="3"]) { opacity: .62; }
.steps[data-step="3"] li:not([data-s="3"]) .num { border-color: var(--accent); color: var(--accent); }
@media (max-width: 860px) {
  #arch .iso-wrap { height: 42vh; margin-top: 4vh; }
  #arch .iso { width: 46vw; --gap: 30px; }
  #arch.lit .iso { --gap: 52px; }
  .paper-steps .crop { display: none; }
}
