/* ======================================================================
   aniwaffle 1028 · index.html 动效 pass（她看完 option two：「动效可以，apply 到这个上面」）
   ① Products：option two Voices 01–04 那套 Altum 叠卡（卡 sticky，下一张盖上来，底下那张缩到 .6、rotateX 30 / rotateY 10、淡出）搬到三张产品卡；
      卡在桌面上从三列变成横卡一张一张叠，右边一块「舞台」让卡里的内容自己演（台词逐字打出 + 声音胶囊波形 / 录音轨填满 + 三句新台词 / 三个描述换出三个角色）。
   ② Products 整段转「深色段」（Altum section_info 的做法：进段时整页底色换掉，离开换回）：白版 = 大字色 #83B3FF 底 + 墨字 #1C2E4A；紫版 = 现有深紫 #4653C6 + 白字。
   ③ Use cases：四张卡 sticky 叠起，每张错开 76px，被盖住的卡只留标题那一条、正文淡下去；插画位放现有 Lumi 角色图（没有新图）。
   ④ Start 两张卡：option two 的「圆跟鼠标、悬停铺满」，填色用现有 token（白版 #DBE9FF / 紫版 #4653C6），圆扫过哪个元素哪个元素换成对应的对比色，按钮始终是按钮。
   没有新色值：只用紫版（#7180FF #7B89FF #5B6BFF #4653C6 #241C4E #E3E0FF #fff）和白版（#83B3FF #99BFFC #4575C1 #DBE9FF #EAF2FF #1C2E4A #fff）现有 token。
   ≥ 992px 才叠卡 / 舞台；以下保持原来的卡片版式（只多了 Use cases 的角色图）。
   ====================================================================== */

/* ---------- token ---------- */
:root { --mo-ease: cubic-bezier(.22, 1, .36, 1); --mo-dark: #4653C6; --mo-dark-ink: #fff; --mo-ink: #fff; --mo-ink7: rgba(255, 255, 255, .85); --mo-ink5: rgba(255, 255, 255, .6); --mo-chip: rgba(255, 255, 255, .16); --mo-chip-on: #fff; --mo-chip-on-ink: #7180FF; --mo-acc: #fff; --mo-disc: rgba(255, 255, 255, .16); --mo-fill: #4653C6; }
html.aw-light { --mo-dark: #83B3FF; --mo-dark-ink: #1C2E4A; --mo-ink: #1C2E4A; --mo-ink7: rgba(28, 46, 74, .72); --mo-ink5: rgba(28, 46, 74, .55); --mo-chip: #DBE9FF; --mo-chip-on: #83B3FF; --mo-chip-on-ink: #1C2E4A; --mo-acc: #99BFFC; --mo-disc: #DBE9FF; --mo-fill: #DBE9FF; }

/* ---------- ② 深色段：html.mo-dark 由 js 在 Products 段 top 65% 时加上（Altum mode 切换的起点），离开去掉；500ms .22,1,.36,1 ---------- */
body, .aw-chap[data-chap="products"] .aw-plate { transition: background-color .5s var(--mo-ease); }
.aw-chap[data-chap="products"] .aw-sec-head :is(.aw-tag, h2, p) { transition: color .5s var(--mo-ease); }
html.mo-dark body { background-color: var(--mo-dark); }
html.mo-dark .aw-chap[data-chap="products"] .aw-plate { background-color: transparent; }
html.mo-dark .aw-chap[data-chap="products"] .aw-sec-head :is(.aw-tag, h2) { color: var(--mo-dark-ink); }
html.mo-dark .aw-chap[data-chap="products"] .aw-sec-head p, html.mo-dark .aw-chap[data-chap="products"] .aw-foot-note { color: var(--mo-dark-ink); opacity: .82; }

/* 舞台通用（< 992 不显示） */
.mo-stage { display: none; }

@media (min-width: 992px) {
  /* ---------- ① Products 叠卡 ---------- */
  .aw-chap[data-chap="products"] { --mo-top: max(88px, calc(50vh - var(--mo-h) / 2 + 24px)); --mo-h: clamp(420px, 60vh, 540px); }
  #products .aw-pa { display: block; perspective: 3000px; }
  #products .aw-pa-c { position: sticky; top: var(--mo-top); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: none; grid-row: auto; column-gap: clamp(24px, 3vw, 48px);
    height: var(--mo-h); box-sizing: border-box; margin: 0 0 22vh; padding: clamp(32px, 3vw, 44px); overflow: hidden; transform-origin: 50% 0; will-change: transform, opacity; }
  #products .aw-pa-c:last-child { margin-bottom: 0; }
  #products .mo-txt { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
  #products .mo-txt h3 { font-size: clamp(28px, 2.5vw, 38px); max-width: 15ch; }
  #products .mo-txt .aw-btn { margin-top: auto; align-self: flex-start; }
  #products .mo-txt .aw-pa-io { margin-bottom: 28px; }
  #products .mo-stage { position: relative; display: block; min-width: 0; margin: calc(-1 * clamp(32px, 3vw, 44px)) calc(-1 * clamp(32px, 3vw, 44px)) calc(-1 * clamp(32px, 3vw, 44px)) 0; color: var(--mo-ink); }

  /* TTS：Mika 站在右边，台词逐字打出，声音胶囊里的波形跟着「说」 */
  .mo-tts .mo-fig { position: absolute; right: -6%; bottom: 0; height: 100%; width: auto; max-width: none; pointer-events: none; }
  .mo-tts .mo-say { position: absolute; left: 0; top: 18%; z-index: 2; max-width: 44%; margin: 0; padding: 18px 22px; border-radius: 22px 22px 22px 6px; background: var(--mo-chip); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; font-weight: 500; color: var(--mo-ink); }
  .mo-tts .mo-voice { position: absolute; left: 0; top: calc(18% + 128px); z-index: 2; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 6px; border-radius: 999px; background: var(--mo-chip-on); color: var(--mo-chip-on-ink); font-size: 15px; font-weight: 500; }
  .mo-tts .mo-voice img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
  .mo-wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; margin-left: 6px; }
  .mo-wave b { display: block; width: 3px; height: 4px; border-radius: 2px; background: currentColor; }

  /* Clone：录音轨从左填满（mic 外两圈），再落下三句新台词 */
  .mo-clone .mo-rec { position: absolute; left: 0; right: 8%; top: 16%; display: flex; align-items: center; gap: 18px; }
  .mo-mic { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--mo-chip-on); color: var(--mo-chip-on-ink); }
  .mo-mic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .mo-mic i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--mo-acc); opacity: 0; }
  .mo-track { flex: 1; display: flex; align-items: center; gap: 3px; height: 56px; }
  .mo-track b { flex: 1; min-width: 2px; border-radius: 2px; background: var(--mo-acc); opacity: .35; }
  .mo-track b.on { opacity: 1; }
  .mo-lines { position: absolute; left: 0; right: 8%; top: calc(16% + 104px); display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
  .mo-lines li { display: flex; align-items: center; gap: 12px; width: fit-content; height: 52px; padding: 0 22px 0 6px; border-radius: 999px; background: var(--mo-chip); color: var(--mo-ink); font-size: clamp(16px, 1.3vw, 19px); font-weight: 500; }
  .mo-lines li:nth-child(2) { margin-left: 8%; } .mo-lines li:nth-child(3) { margin-left: 16%; }
  .mo-lines img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

  /* Design：左边三个描述轮流点亮，右边圆里换出对应的角色，四角星从描述飞进圆 */
  .mo-design .mo-desc { position: absolute; left: 0; top: 50%; z-index: 2; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; transform: translateY(-50%); }
  .mo-design .mo-desc li { width: fit-content; padding: 12px 20px; border-radius: 999px; background: var(--mo-chip); color: var(--mo-ink); font-size: clamp(15px, 1.2vw, 18px); font-weight: 500; transition: background-color .32s var(--mo-ease), color .32s var(--mo-ease); }
  .mo-design .mo-desc li.on { background: var(--mo-chip-on); color: var(--mo-chip-on-ink); }
  .mo-design .mo-born { position: absolute; right: 6%; top: 50%; width: min(72%, 360px); aspect-ratio: 1; border-radius: 50%; background: var(--mo-disc); overflow: hidden; transform: translateY(-50%); }
  .mo-design .mo-born img { position: absolute; left: 50%; bottom: 0; height: 96%; width: auto; max-width: none; translate: -50% 0; opacity: 0; }
  .mo-design .mo-born img.on { opacity: 1; }
  .mo-design .mo-spark { position: absolute; left: 13%; top: 13%; z-index: 3; width: 40px; height: 40px; fill: var(--mo-acc); }
  html.aw-light .mo-spark { fill: #4575C1; }

  /* ---------- ③ Use cases 叠卡：每张 sticky，往下错开 76px；标题在卡顶，被盖住时只留标题那一条 ---------- */
  #use-cases .aw-uc2 { display: block; --uc-top: 96px; --uc-step: 76px; --uc-h: clamp(300px, calc(100vh - var(--uc-top) - 3 * var(--uc-step) - 40px), 380px); }
  #use-cases .aw-uc2-card { position: sticky; top: calc(var(--uc-top) + var(--i, 0) * var(--uc-step)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: var(--uc-h); margin-bottom: 14vh; transform-origin: 50% 0; will-change: transform; }
  #use-cases .aw-uc2-card:nth-child(1) { --i: 0; } #use-cases .aw-uc2-card:nth-child(2) { --i: 1; } #use-cases .aw-uc2-card:nth-child(3) { --i: 2; } #use-cases .aw-uc2-card:nth-child(4) { --i: 3; margin-bottom: 0; }
  #use-cases .aw-uc2-art { order: 2; aspect-ratio: auto; height: 100%; }
  #use-cases .aw-uc2-body { order: 1; padding: 26px 36px 32px; }
  #use-cases .aw-uc2-body h3 { margin-top: 0; }
  #use-cases .mo-uc-fig { height: 112%; }
}

/* Use cases 插画（所有宽度）：现有 Lumi 图，贴插画位底边居中，被插画位裁 */
.aw-uc2-art.is-filled { position: relative; overflow: hidden; outline: 0; }
.mo-uc-fig { position: absolute; left: 50%; bottom: 0; height: 118%; width: auto; max-width: none; translate: -50% 0; pointer-events: none; }

/* ---------- ④ Start 卡：跟鼠标的圆 ---------- */
.aw-paths .aw-path { overflow: hidden; isolation: isolate; }
.aw-path .aw-card-body { position: relative; z-index: 1; }
.mo-fill { position: absolute; left: 50%; top: 50%; z-index: 0; width: 80vw; height: 80vw; margin: -40vw 0 0 -40vw; border-radius: 50%; background: var(--mo-fill); transform: scale(0); pointer-events: none; }
.aw-path .aw-card-body :is(.aw-tag, small, .aw-path-mark, p, h3) { transition: color .18s var(--mo-ease); }
/* 圆扫到的元素换对比色（紫版深紫底：说明 / 眉题 / 小字提到 .85 白；白版浅蓝底：眉题和小字从 .55 墨提到 .72 墨、角标用 #4575C1） */
.aw-glass .aw-card-body .mo-under:is(.aw-tag, small, .aw-path-mark) { color: rgba(255, 255, 255, .85) !important; }
html.aw-light .aw-glass .aw-card-body .mo-under:is(.aw-tag, small) { color: rgba(28, 46, 74, .72) !important; }
html.aw-light .aw-glass .aw-card-body .mo-under.aw-path-mark { color: #4575C1 !important; }
html.aw-light .aw-glass .aw-card-body .mo-under.aw-link { color: #1C2E4A; }

@media (prefers-reduced-motion: reduce) { .mo-fill { display: none; } }

/* ---------- 1028 r6 · hero A = 全身水手服，用原来半身 A 的大小（她：「首先 大小是要我们原来那个大小」）----------
   头一样大：两张图按眼距 / 眼到下巴量，全身图要放到半身图的 2.03 倍 → 盒高 = 2.176 × 原来的 clamp(640px, 112svh, 1400px)（1507×1123 时 ≈ 2737px）；
   头顶同一条线：半身发顶（源 y 85）在 26svh，全身对应发顶在源 y 30（1536 的 .0195）。
   这样人约 2.6 屏高。做法 = 「hero 加长，脚落在 hero 里」：桌面（≥ 992，hero 是钉住的）把钉住段从 1 屏加长到「脚底 + 5svh 空气 − 1 屏」，
   钉住期间人跟着滚动 1:1 往上走（js/aw-motion-1028.js 写 --a-y），巨字收进顶栏的动画照旧；钉住结束时脚停在 95svh、脚下有空气，hero 底边在脚下面，没有切口。
   之前看不到的部分一直在屏幕下沿外面，屏幕下沿不是切口。≤ 991（hero 不钉）：hero 直接加高到装下整个人，句子 + 按钮落在脚下面。没有渐变。 */
:root { --a-fh: calc(2.176 * clamp(640px, 112svh, 1400px)); --a-top: calc(26svh - .0195 * var(--a-fh)); --a-ride: calc(var(--a-top) + .972 * var(--a-fh) + 5svh - 100svh); }
.vx-image-block.is-yukata[data-hero-char="sailorfull"] .vx-fig { aspect-ratio: 1024 / 1536 !important; height: 100% !important; width: auto !important; max-width: none !important; -webkit-mask-image: none !important; mask-image: none !important; }
@media (min-width: 992px) {
  .vx-sticky:has([data-hero-char="sailorfull"]) { height: calc(100svh + max(100svh, var(--a-ride))); }
  .vx-image-block.is-yukata[data-hero-char="sailorfull"]:not([data-hero-char="yukata"]) { --hero-fh: var(--a-fh); top: var(--a-top); bottom: auto; height: var(--a-fh); translate: 0 var(--a-y, 0px); }
}
@media (max-width: 991px) {
  .vx-hero:has([data-hero-char="sailorfull"]) { --a-mh: min(233vw, 1.6 * 100svh); height: calc(26svh + .972 * var(--a-mh) + 6svh + 220px); }
  .vx-image-block.is-yukata[data-hero-char="sailorfull"]:not([data-hero-char="yukata"]) { top: 26svh !important; bottom: auto !important; left: 0 !important; right: 0 !important; height: var(--a-mh) !important; justify-content: center; align-items: flex-start; }
}

/* ---------- 1028 r5 · 白版 Voices 去掉板底和背后的一实一空两个圈（她：「这个背景都去掉」），卡直接落在白底上；紫版不动 ---------- */
html.aw-light .aw-chap[data-chap="voices"] > .aw-plate, html.aw-light .aw-chap[data-chap="voices"] > .bm-rh circle[data-rh$="fly"] { display: none; }   /* 只藏飞进板背景的那一实一空两个圈；幕上涟漪照旧 */

/* REVIEW-ONLY：顶栏 option 1 / 2 / 3 / 4 互跳小签（上线前删，和 index.html 里的 .ex-opts 一起删） */
.ex-opts { display: inline-flex; gap: 2px; padding: 3px; margin-right: 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.ex-opts a { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; font: 500 12px/1 proxima-nova, sans-serif; color: #fff; text-decoration: none; }
.ex-opts a[aria-current] { background: #fff; color: #7180FF; }
html.aw-light .ex-opts { background: #DBE9FF; }
html.aw-light .ex-opts a { color: #1C2E4A; }
html.aw-light .ex-opts a[aria-current] { background: #83B3FF; color: #1C2E4A; }
