/* 妙唱发布会 · deck 外壳样式（slides 的版式；原理动画在 scenes/ 里） */
.deck { position: fixed; inset: 0; background: #000; cursor: none; }
.deck.cursor { cursor: default; }
.deck-stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 50% 50%; }

.slide {
  position: absolute; inset: 0; overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(1.015);
  transition: opacity 650ms var(--ease), transform 900ms var(--ease-out), visibility 0s linear 650ms;
}
.slide.active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity 650ms var(--ease), transform 900ms var(--ease-out), visibility 0s; }
.slide.past { transform: scale(0.985); }

/* 元素依次入场：给元素加 .in 和 style="--d:120"（毫秒） */
.slide .in { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: 0ms; }
.slide.active .in { opacity: 1; transform: none; transition-delay: calc(var(--d, 0) * 1ms + 200ms); }

.eyebrow { font-size: 30px; font-weight: 600; letter-spacing: 0.02em; }
.muted { color: var(--fg-2); }
.faint { color: var(--fg-3); }

/* ---------- 封面 ---------- */
.cover { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cover .orb {
  position: absolute; left: 50%; top: 46%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff9f0a, #ff375f, #bf5af2, #5e5ce6, #0a84ff, #64d2ff, #30d158, #ffd60a, #ff9f0a);
  filter: blur(140px); opacity: 0; transform: scale(0.6);
}
.slide.active .cover .orb { animation: orbIn 2.4s var(--ease-out) 0.1s forwards, orbSpin 26s linear infinite; }
@keyframes orbIn { to { opacity: 0.32; transform: scale(1); } }
@keyframes orbSpin { from { rotate: 0deg; } to { rotate: 360deg; } }
.cover .brand { font-size: 40px; font-weight: 600; letter-spacing: 0.3em; color: var(--fg-2); position: relative; }
.cover .word {
  position: relative; font-size: 300px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin-top: 10px;
  background: linear-gradient(100deg, #ffd60a 0%, #ff9f0a 18%, #ff375f 40%, #bf5af2 62%, #5e5ce6 80%, #64d2ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
}
.slide.active .cover .word { animation: shimmer 8s ease-in-out infinite alternate; }
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.cover .tag { position: relative; font-size: 64px; font-weight: 600; letter-spacing: -0.01em; margin-top: 18px; }
.cover .meta { position: absolute; left: 140px; right: 140px; bottom: 96px; display: flex; justify-content: space-between; align-items: flex-end; text-align: left; }
.person .name { font-size: 40px; font-weight: 600; }
.person .role { font-size: 26px; color: var(--fg-2); margin-top: 8px; }
.cover .date { font-size: 26px; color: var(--fg-2); text-align: right; line-height: 1.6; }

/* ---------- 议程 ---------- */
.agenda { padding: 150px 160px; }
.agenda .rows { margin-top: 90px; display: grid; gap: 28px; }
.agenda .row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; padding: 44px 56px; border-radius: 32px; background: var(--card); border: 1px solid var(--line); }
.agenda .row.now { background: linear-gradient(100deg, rgba(255,55,95,0.16), rgba(191,90,242,0.12)); border-color: rgba(255,255,255,0.18); }
.agenda .num { font-size: 56px; font-weight: 700; color: var(--fg-3); }
.agenda .row.now .num { color: var(--fg); }
.agenda .what { font-size: 56px; font-weight: 700; letter-spacing: -0.02em; }
.agenda .who { text-align: right; }

/* ---------- 宣言页 ---------- */
.statement { display: flex; flex-direction: column; justify-content: center; padding: 0 160px; }
.statement .lines { margin-top: 56px; display: grid; gap: 10px; }
.statement .lines div { font-size: 64px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
/* 逐行：先以白色出现，下一行出现时退成灰色 */
.slide.active .statement .lines div.in {
  color: var(--fg-3);
  transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out), color 700ms var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms + 200ms), calc(var(--d, 0) * 1ms + 200ms), calc(var(--d, 0) * 1ms + 1000ms);
}
.statement .final { margin-top: 64px; font-size: 76px; font-weight: 700; letter-spacing: -0.025em; }

/* ---------- 全屏原理动画 ---------- */
.scene-frame { position: absolute; inset: 0; width: 1920px; height: 1080px; border: 0; background: #000; pointer-events: none; }

/* ---------- Hero：左文右演示 ---------- */
.hero { display: grid; grid-template-columns: 780px 1fr; height: 100%; padding: 0 120px 0 140px; gap: 60px; align-items: center; }
.hero .text { display: flex; flex-direction: column; }
.hero h1 { font-size: 80px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; margin-top: 18px; }
.hero .sub { font-size: 32px; line-height: 1.5; color: var(--fg-2); margin-top: 26px; }
.hero .uses { margin-top: 44px; }
.hero .uses .label { font-size: 24px; color: var(--fg-3); font-weight: 600; letter-spacing: 0.04em; }
.hero .uses ul { list-style: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero .uses li { font-size: 28px; padding: 12px 24px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.hero .nums { margin-top: 48px; display: flex; gap: 44px; }
.num-block .v { font-size: 68px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.num-block .v small { font-size: 32px; font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.num-block .l { font-size: 22px; color: var(--fg-2); margin-top: 12px; max-width: 260px; line-height: 1.4; }
.hero .foot { margin-top: 48px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero .caveat { font-size: 22px; color: var(--fg-3); }
.media { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }

/* 设备框 */
.phone {
  position: relative; width: 420px; height: 910px; border-radius: 62px; overflow: hidden; background: #000;
  border: 10px solid #1c1c1e; box-shadow: 0 0 0 2px #3a3a3c, 0 50px 120px rgba(0,0,0,0.7), 0 0 160px -30px var(--glow, rgba(255,255,255,0.25));
}
.phone video, .phone img, .phone iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; background: #000; }
.screen {
  position: relative; border-radius: 22px; overflow: hidden; background: #000;
  border: 8px solid #1c1c1e; box-shadow: 0 0 0 2px #3a3a3c, 0 50px 120px rgba(0,0,0,0.7), 0 0 160px -30px var(--glow, rgba(255,255,255,0.2));
}
.screen video, .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media .glow { position: absolute; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow, rgba(255,255,255,0.15)), transparent); filter: blur(40px); opacity: 0.55; }
.media .badge { position: absolute; top: 40px; right: 30px; font-size: 22px; color: var(--fg-2); padding: 8px 18px; border-radius: 999px; background: rgba(0,0,0,0.55); border: 1px solid var(--line); backdrop-filter: blur(10px); }

/* 智谱双端：横屏在后，竖屏压前 */
.dual { position: relative; width: 1000px; height: 900px; }
.dual .screen { position: absolute; right: 0; top: 70px; width: 900px; height: 500px; }
.dual .phone { position: absolute; left: 0; bottom: 0; width: 330px; height: 715px; border-radius: 50px; border-width: 8px; }

/* 美声 A/B 播放器 */
.ab { width: 960px; }
.ab .wave { position: relative; height: 220px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); overflow: hidden; margin-top: 22px; }
.ab .wave img { position: absolute; inset: 20px 24px; width: calc(100% - 48px); height: calc(100% - 40px); object-fit: fill; opacity: 0.35; transition: opacity 300ms; }
.ab .wave.on img { opacity: 1; }
.ab .wave .head { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; left: 24px; box-shadow: 0 0 18px #fff; }
.ab .wave .tag { position: absolute; left: 28px; top: 18px; font-size: 24px; font-weight: 600; z-index: 2; }
.ab .controls { display: flex; gap: 18px; margin-top: 30px; align-items: center; }
.btn {
  font: inherit; font-size: 28px; font-weight: 600; color: var(--fg); cursor: pointer;
  padding: 18px 34px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line);
}
.btn.on { background: #fff; color: #000; border-color: #fff; }
.btn.play { min-width: 160px; }
.ab .hint { font-size: 22px; color: var(--fg-3); margin-left: 8px; }

/* 音频卡片列表（创作） */
.tracks { width: 960px; display: grid; gap: 18px; }
.track { display: grid; grid-template-columns: 76px 1fr auto; gap: 26px; align-items: center; padding: 22px 30px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.track.playing { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); }
.track .icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: linear-gradient(135deg, var(--create-a), var(--create-b)); }
.track .t1 { font-size: 30px; font-weight: 600; }
.track .t2 { font-size: 22px; color: var(--fg-2); margin-top: 6px; }
.track .dur { font-size: 22px; color: var(--fg-3); font-family: var(--mono); }
.track .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; display: none; }
.track.playing .bar { display: block; }
.track .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--create-a), var(--create-b)); }

/* 口令墙（声控） */
.chips { width: 980px; display: flex; flex-wrap: wrap; gap: 14px; }
.chip { font-size: 28px; padding: 14px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.chip code { font-family: var(--mono); font-size: 18px; color: var(--fg-3); }
.chip.hot { border-color: rgba(100,210,255,0.6); background: rgba(10,132,255,0.16); }

/* 截图卡 */
.shot { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 120px rgba(0,0,0,0.6); }
.shot img { display: block; width: 100%; }

/* ---------- 矩阵 / 成熟度表 ---------- */
.table-page { padding: 92px 140px 60px; }
.table-page h2 { font-size: 72px; font-weight: 700; letter-spacing: -0.025em; }
.table-page .sub { font-size: 28px; color: var(--fg-2); margin-top: 14px; }
.grid-table { margin-top: 46px; display: grid; border-top: 1px solid var(--line); }
.grid-table .tr { display: grid; align-items: center; border-bottom: 1px solid var(--line); padding: 14px 8px; gap: 30px; }
.grid-table .th { font-size: 22px; color: var(--fg-3); font-weight: 600; letter-spacing: 0.04em; padding: 14px 8px; }
.grid-table .cap { font-size: 32px; font-weight: 600; display: flex; align-items: center; gap: 16px; }
.grid-table .cap i { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); flex: none; }
.grid-table .cell { font-size: 26px; color: var(--fg-2); line-height: 1.45; }
.grid-table .status { font-size: 21px; padding: 7px 16px; }

/* ---------- 开放平台 ---------- */
.platform { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.platform canvas { position: absolute; inset: 0; }
.platform .word {
  position: relative; font-size: 168px; font-weight: 800; letter-spacing: -0.045em; line-height: 1;
  background: linear-gradient(90deg, #d1d1d6 0%, #ff9f0a 22%, #ff375f 45%, #bf5af2 65%, #5e5ce6 82%, #64d2ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.platform .cn { position: relative; font-size: 40px; letter-spacing: 0.5em; color: var(--fg-2); margin-top: 26px; padding-left: 0.5em; }
.platform .pills { position: relative; display: flex; gap: 16px; margin-top: 70px; }
.platform .pills span { font-size: 28px; padding: 14px 28px; border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid var(--line); }
.platform .say { position: relative; font-size: 34px; margin-top: 60px; color: var(--fg); }

/* ---------- 交棒 ---------- */
.handoff { display: grid; grid-template-columns: 1fr 520px; align-items: center; padding: 0 160px; gap: 80px; height: 100%; }
.handoff .big { font-size: 112px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin-top: 20px; }
.handoff .qr { background: #fff; border-radius: 36px; padding: 34px; text-align: center; color: #1d1d1f; }
.handoff .qr img { width: 100%; display: block; }
.handoff .qr .cap { font-size: 26px; font-weight: 600; margin-top: 18px; }
.handoff .qr .cap2 { font-size: 20px; color: #6e6e73; margin-top: 6px; }

/* ---------- 现场演示 ---------- */
.live { display: grid; grid-template-columns: 780px 1fr; height: 100%; padding: 0 120px 0 140px; gap: 60px; align-items: center; }
.live .switch { font-size: 22px; color: var(--fg-3); margin-top: 28px; }

/* ---------- HUD ---------- */
.hud { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 10; }
.hud .progress { position: absolute; inset: 0; background: rgba(255,255,255,0.08); opacity: 0; transition: opacity 400ms; }
.deck.cursor ~ .hud .progress { opacity: 1; }
.hud .meta { position: fixed; right: 18px; bottom: 12px; display: flex; align-items: baseline; gap: 14px; font: 13px var(--mono); color: rgba(255,255,255,0.4); }
.hud .done { font: 13px var(--font); color: rgba(255,255,255,0.5); opacity: 0; transition: opacity 500ms; }
.hud .done.on { opacity: 1; }
.hud .progress i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,0.55); transition: width 500ms var(--ease-out); }
.hud .count { color: rgba(255,255,255,0.4); }
.blackout { position: fixed; inset: 0; background: #000; z-index: 20; display: none; }
.blackout.on { display: block; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 30; font: 15px var(--font); color: #fff; background: rgba(40,40,40,0.9); padding: 10px 18px; border-radius: 999px; opacity: 0; transition: opacity 300ms; pointer-events: none; }
.toast.on { opacity: 1; }
