/* ======================================================================
   aw-hiw-0906.css · Character API「How it works」舞台
   来源：iris `_iris/char-howitworks.html`（2026-09-06）。
   按她的整合说明带走 [CSS 1] HIW TOKENS + [CSS 2] HIW STAGE + [CSS 5] OPTION C。
   rv- 评审外壳没带。舞台入口三个：stage.set(p) / setSpeech(u) / setVoicing(b)。
   末尾一块是落到 AW 版式里的适配（白卡里不再套白卡、紫地上的段头走 option6）。
   ====================================================================== */

/* ---------------------------------------------------------- [CSS 1] TOKENS */

:root{
  --hiw-violet:#7180FF;
  --hiw-violet-deep:#5361E6;
  --hiw-lav:#E3E0FF;
  --hiw-lav-soft:#EFEDFF;
  --hiw-ground:#F3F1FD;
  --hiw-surface:#FFFFFF;
  --hiw-ink:#241C4E;
  --hiw-t2:rgba(36,28,78,.72);
  --hiw-t3:rgba(36,28,78,.48);
  --hiw-t4:rgba(36,28,78,.30);
  --hiw-line:#C9C2FF;
  --hiw-font:"Proxima Nova","proxima-nova","Inter",-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;
  --hiw-ease:cubic-bezier(.22,1,.36,1);
  --hiw-r-card:28px;
  --hiw-r-pill:100px;
}
.hiw,.hiw *{box-sizing:border-box;}
.hiw{
  font-family:var(--hiw-font);
  color:var(--hiw-ink);
  background:var(--hiw-ground);
  -webkit-font-smoothing:antialiased;
}
.hiw-wrap{max-width:1180px;margin:0 auto;padding:0 clamp(20px,4vw,56px);}

/* 段头 */
.hiw-eyebrow{
  display:inline-flex;align-items:center;gap:8px;margin:0 0 22px;
  font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--hiw-violet);
}
.hiw-eyebrow i{width:6px;height:6px;border-radius:50%;background:var(--hiw-violet);display:block;}
.hiw-h2{
  margin:0;font-size:clamp(32px,4.4vw,58px);font-weight:800;
  letter-spacing:-.03em;line-height:1.02;color:var(--hiw-ink);
}
.hiw-h2 em{font-style:normal;color:var(--hiw-violet);}
.hiw-sub{
  margin:18px 0 0;max-width:44ch;
  font-size:clamp(15px,1.25vw,18px);line-height:1.6;color:var(--hiw-t2);
}


/* ----------------------------------------------------------- [CSS 2] STAGE */

.hiw-stage{
  position:relative;
  background:var(--hiw-surface);
  border-radius:var(--hiw-r-card);
  padding:clamp(18px,2vw,26px);
  display:flex;flex-direction:column;gap:14px;
}
.hiw-stage-view{
  position:relative;
  background:var(--hiw-lav-soft);
  border-radius:20px;
  aspect-ratio:5/4;
  overflow:hidden;
}
.hiw-stage-view svg{display:block;width:100%;height:100%;}

/* 舞台里的静态标签（VRM · FBX 那颗小药丸） */
.hiw-tag{
  position:absolute;left:18px;top:16px;
  display:inline-flex;align-items:center;gap:7px;
  height:26px;padding:0 12px;border-radius:var(--hiw-r-pill);
  background:var(--hiw-lav);color:var(--hiw-violet-deep);
  font-size:11px;font-weight:700;letter-spacing:.1em;
  opacity:var(--hiw-tag-o,1);transition:opacity .35s var(--hiw-ease);
}

/* 装配清单：只在 rig 阶段亮 */
.hiw-checks{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(3,1fr);gap:10px;
  opacity:var(--hiw-checks-o,0);transition:opacity .4s var(--hiw-ease);
}
.hiw-check{
  background:var(--hiw-ground);border-radius:12px;padding:11px 12px 10px;
}
.hiw-check-top{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.hiw-check-name{font-size:12px;font-weight:700;letter-spacing:.02em;color:var(--hiw-t2);}
.hiw-check-tick{
  width:13px;height:13px;flex:none;color:var(--hiw-violet);
  opacity:var(--tick,0);transform:scale(calc(.6 + var(--tick,0)*.4));
  transition:opacity .2s linear,transform .3s var(--hiw-ease);
}
.hiw-check-rail{margin-top:9px;height:2px;border-radius:2px;background:var(--hiw-lav);overflow:hidden;}
.hiw-check-rail i{display:block;height:100%;width:calc(var(--fill,0)*100%);background:var(--hiw-violet);border-radius:2px;}

/* 证据条：跟 she-was-a-file 的视觉研究同一套标签语言 */
.hiw-evidence{
  margin:0;height:13px;
  font-size:10px;font-weight:800;letter-spacing:.17em;text-transform:uppercase;
  color:var(--hiw-t4);
}

/* 装配清单和字幕条占同一格，卡的高度不随阶段跳 */
.hiw-stage-foot{display:grid;align-items:start;}
.hiw-stage-foot > *{grid-area:1/1;}

/* 第一段：能吃什么格式 */
.hiw-accepts{
  list-style:none;margin:0;padding:0;display:flex;gap:8px;flex-wrap:wrap;
  opacity:var(--hiw-accepts-o,1);transition:opacity .4s var(--hiw-ease);
}
.hiw-accepts li{
  display:inline-flex;align-items:center;height:30px;padding:0 14px;
  border-radius:var(--hiw-r-pill);background:var(--hiw-ground);color:var(--hiw-t2);
  font-size:12px;font-weight:700;letter-spacing:.02em;
}

/* 波形 + 字幕：只在开演阶段亮 */
.hiw-voice{
  opacity:var(--hiw-voice-o,0);transition:opacity .4s var(--hiw-ease);
  display:flex;flex-direction:column;gap:12px;
}
.hiw-wave{
  display:flex;align-items:center;justify-content:space-between;height:30px;
}
.hiw-wave span{
  flex:none;width:3px;border-radius:3px;background:var(--hiw-violet);
  height:max(3px,calc(var(--h,.06) * 30px));
  transition:background .3s linear;
}
.hiw-wave.is-listening span{background:var(--hiw-line);}
.hiw-cap{
  margin:0;min-height:3.4em;
  font-size:clamp(14px,1.15vw,17px);line-height:1.6;font-weight:600;
  letter-spacing:-.005em;color:var(--hiw-ink);
}
.hiw-cap b{font-weight:600;}
.hiw-caret{
  display:inline-block;width:2px;height:1em;margin-left:2px;
  background:var(--hiw-violet);vertical-align:-.13em;border-radius:1px;
  opacity:var(--caret,0);
}
.hiw-wait{
  margin:0;height:16px;
  font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:var(--hiw-violet);
  opacity:var(--wait,0);transition:opacity .4s var(--hiw-ease);
}

/* 步骤文案行（A / B / C 共用） */
.hiw-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;}
.hiw-step{
  display:grid;grid-template-columns:auto 1fr;gap:0 18px;
  padding:22px 0;position:relative;
}
.hiw-step + .hiw-step{border-top:1px dashed var(--hiw-line);}
.hiw-step-no{
  grid-row:1/3;width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  font-size:12px;font-weight:800;letter-spacing:.04em;
  background:var(--hiw-lav);color:var(--hiw-violet-deep);
  transition:background .35s var(--hiw-ease),color .35s var(--hiw-ease);
}
.hiw-step.is-on .hiw-step-no{background:var(--hiw-violet);color:#fff;}
.hiw-step-t{
  margin:5px 0 0;font-size:clamp(19px,1.7vw,23px);font-weight:700;
  letter-spacing:-.018em;line-height:1.2;
  color:var(--hiw-t4);transition:color .35s var(--hiw-ease);
}
.hiw-step.is-on .hiw-step-t{color:var(--hiw-ink);}
.hiw-step-d{
  margin:8px 0 0;max-width:40ch;font-size:15px;line-height:1.62;
  color:var(--hiw-t3);
  opacity:var(--d,.45);transition:opacity .35s var(--hiw-ease),color .35s var(--hiw-ease);
}
.hiw-step.is-on .hiw-step-d{color:var(--hiw-t2);--d:1;}

/* SVG 骨架内部 */
.hiw-frame{fill:none;stroke:var(--hiw-line);stroke-width:1.5;stroke-dasharray:7 7;}
.hiw-card-body{fill:#fff;}
.hiw-card-fold{fill:var(--hiw-lav);}
.hiw-card-line{fill:var(--hiw-lav);}
.hiw-card-label{fill:var(--hiw-t3);font-family:var(--hiw-font);font-size:11px;font-weight:700;letter-spacing:.1em;text-anchor:middle;}
.hiw-bone{fill:none;stroke:var(--hiw-violet);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;}
.hiw-joint{fill:var(--hiw-violet);}
.hiw-lm{fill:var(--hiw-line);}
.hiw-eye{fill:var(--hiw-ink);}
.hiw-mouth{fill:var(--hiw-ink);}
.hiw-face{fill:#FFFFFF;}
.hiw-blush{fill:#D6D1FF;}

@media (max-width:900px){
  .hiw-checks{grid-template-columns:1fr;}
}
@media (prefers-reduced-motion:reduce){
  .hiw *{animation-duration:.01ms !important;transition-duration:.01ms !important;}
}


/* -------------------------------------------------------- [CSS 5] OPTION C */

.hiwC{background:var(--hiw-ground);}
.hiwC-body{
  margin-top:clamp(34px,4.4vw,58px);
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);
  gap:clamp(28px,4vw,56px);align-items:start;
}
.hiwC-rows{list-style:none;margin:0;padding:0;}
.hiwC-row{
  background:var(--hiw-surface);border-radius:22px;overflow:hidden;
  transition:background .35s var(--hiw-ease);
}
.hiwC-row + .hiwC-row{margin-top:10px;}
.hiwC-row:not(.is-on){background:transparent;}
.hiwC-row button{
  appearance:none;background:none;border:0;margin:0;cursor:pointer;
  width:100%;text-align:left;font-family:inherit;color:inherit;
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;
  padding:22px clamp(18px,2vw,26px);
}
.hiwC-no{
  width:32px;height:32px;border-radius:50%;display:grid;place-items:center;
  font-size:11px;font-weight:800;letter-spacing:.04em;
  background:var(--hiw-lav);color:var(--hiw-violet-deep);
  transition:background .3s var(--hiw-ease),color .3s var(--hiw-ease);
}
.hiwC-row.is-on .hiwC-no{background:var(--hiw-violet);color:#fff;}
.hiwC-t{font-size:clamp(18px,1.6vw,22px);font-weight:700;letter-spacing:-.02em;color:var(--hiw-t3);transition:color .3s var(--hiw-ease);}
.hiwC-row.is-on .hiwC-t{color:var(--hiw-ink);}
.hiwC-chev{width:11px;height:11px;color:var(--hiw-line);transition:transform .4s var(--hiw-ease),color .3s var(--hiw-ease);}
.hiwC-row.is-on .hiwC-chev{transform:rotate(90deg);color:var(--hiw-violet);}
.hiwC-drop{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s var(--hiw-ease);}
.hiwC-row.is-on .hiwC-drop{grid-template-rows:1fr;}
.hiwC-drop > div{overflow:hidden;}
.hiwC-drop p{
  margin:0;padding:0 clamp(18px,2vw,26px) 24px 66px;
  max-width:44ch;font-size:15px;line-height:1.66;color:var(--hiw-t2);
}
.hiwC-panel{position:sticky;top:clamp(24px,6vh,64px);}
.hiwC-tools{
  margin-top:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  opacity:var(--tools,0);pointer-events:none;transition:opacity .4s var(--hiw-ease);
}
.hiwC-tools.is-live{opacity:1;pointer-events:auto;}
.hiwC-btn{
  appearance:none;border:0;cursor:pointer;font-family:inherit;
  height:40px;padding:0 20px;border-radius:var(--hiw-r-pill);
  font-size:13px;font-weight:700;letter-spacing:.02em;
  background:var(--hiw-violet);color:#fff;
  transition:background .25s var(--hiw-ease);
}
.hiwC-btn:hover{background:var(--hiw-violet-deep);}
.hiwC-btn.is-quiet{background:var(--hiw-lav);color:var(--hiw-violet-deep);}
.hiwC-btn.is-quiet:hover{background:#D6D1FF;}
.hiwC-hint{font-size:13px;line-height:1.5;color:var(--hiw-t3);}
@media (max-width:900px){
  .hiwC-body{grid-template-columns:1fr;}
  .hiwC-panel{position:static;}
}


/* -------------------------------------------------------- [CSS 3] OPTION A */

.hiwA{background:var(--hiw-ground);}
.hiwA-track{position:relative;height:320svh;}
.hiwA-pin{position:sticky;top:0;min-height:100svh;display:flex;align-items:center;padding:clamp(48px,7vh,88px) 0;}
.hiwA-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:center;width:100%;}
.hiwA-rail{position:relative;}
.hiwA-progress{
  position:absolute;left:-22px;top:0;bottom:0;width:2px;background:var(--hiw-lav);border-radius:2px;
}
.hiwA-progress i{display:block;width:100%;height:calc(var(--p,0)*100%);background:var(--hiw-violet);border-radius:2px;}
.hiwA-steps{margin-top:34px;}
.hiwA-cue{
  margin:26px 0 0;display:flex;align-items:center;gap:10px;
  font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--hiw-t4);
  opacity:var(--cue,1);transition:opacity .4s var(--hiw-ease);
}
.hiwA-cue i{
  width:18px;height:28px;border-radius:9px;border:1.5px solid var(--hiw-line);
  position:relative;flex:none;
}
.hiwA-cue i b{position:absolute;left:50%;top:6px;width:3px;height:3px;margin-left:-1.5px;border-radius:50%;background:var(--hiw-violet);animation:hiwA-mouse 1.7s ease-in-out infinite;}
@keyframes hiwA-mouse{0%,100%{top:6px;opacity:1}50%{top:16px;opacity:.5}}
@media (max-width:900px){
  .hiwA-track{height:auto;}
  .hiwA-pin{position:static;min-height:0;}
  .hiwA-grid{grid-template-columns:1fr;}
  .hiwA-progress{display:none;}
  .hiwA-cue{display:none;}
}
@media (prefers-reduced-motion:reduce){
  .hiwA-cue i b{animation:none;}
}


/* ======================================================================
   0906 lill · 落到 AW 版式
   ① 舞台本体进 option6 的白 .dv-plate：.hiw-stage 自己那层白卡和圆角撤掉，
      浅内胆（#EFEDFF）和 ink 字在白卡里成立，不动。
   ② 段头不用 iris 的 .hiw-eyebrow / .hiw-h2 / .hiw-sub，走 option6 的
      .dv-head + .dv-h2 + .dv-sub（紫地上白字）。
   ③ 手风琴行的「未选中 = 透明」在白卡里就是白底，改成浅一档的 lav-soft，
      免得三行糊成一片。
   ====================================================================== */
.dv-plate .hiw { background: none; }
.dv-plate .hiwC { background: none; }
.dv-plate .hiwC-body { margin-top: 0; }
.dv-plate .hiw-wrap { max-width: none; padding: 0; }
.dv-plate .hiw-stage { background: none; border-radius: 0; padding: 0; }
.dv-plate .hiwC-row:not(.is-on) { background: none; }
.dv-plate .hiwC-row.is-on { background: var(--hiw-lav-soft); }
.dv-plate .hiwC-panel { top: clamp(24px, 6vh, 64px); }
@media (max-width: 900px) { .dv-plate .hiwC-panel { position: static; } }

/* ======================================================================
   0906 lill · Option A 落到首页（紫地）
   ① 段头 / 步骤列表在紫地上：字翻白，虚线分隔改透白，序号药丸走白 .16 / 选中白底紫字。
   ② 舞台整块坐进白 .dv-plate（同子页那套），浅内胆和 ink 字在白卡里成立。
   ③ iris 自己点出的未做项：窄屏 track 高度是 auto，骨架那一段扫得太快 →
      ≤900 给一个固定 track 高度（下面 .hiwA-track），让三段各自有行程。
   ====================================================================== */
.nf .hiwA { background: none; }
.nf .hiwA-pin { padding: clamp(56px,9vh,110px) 0; }
.nf .hiwA-grid { align-items: center; }
.nf .hiwA .hiw-eyebrow { color: #fff; opacity: .78; }
.nf .hiwA .hiw-eyebrow i { background: #fff; }
.nf .hiwA .hiw-h2 { color: #fff; font-size: clamp(30px,3.6vw,50px); letter-spacing: -.03em; line-height: 1.06; }
.nf .hiwA .hiw-h2 em { color: #e3e0ff; }
.nf .hiwA .hiw-step + .hiw-step { border-top: 1px dashed rgba(255,255,255,.28); }
.nf .hiwA .hiw-step-no { background: rgba(255,255,255,.16); color: #fff; }
.nf .hiwA .hiw-step.is-on .hiw-step-no { background: #fff; color: #5361e6; }
.nf .hiwA .hiw-step-t { color: rgba(255,255,255,.52); }
.nf .hiwA .hiw-step.is-on .hiw-step-t { color: #fff; }
.nf .hiwA .hiw-step-d { color: rgba(255,255,255,.62); }
.nf .hiwA .hiw-step.is-on .hiw-step-d { color: rgba(255,255,255,.86); }
.nf .hiwA .hiwA-progress { background: rgba(255,255,255,.24); }
.nf .hiwA .hiwA-progress i { background: #fff; }
.nf .hiwA .hiwA-cue { color: rgba(255,255,255,.6); }
.nf .hiwA .hiwA-cue i { border-color: rgba(255,255,255,.5); }
.nf .hiwA .hiwA-cue i b { background: #fff; }
/* 舞台包一层白卡 */
.hiwA-stagewrap { box-sizing: border-box; border-radius: 24px; background: #fff; padding: clamp(20px,2vw,32px); }
.hiwA-stagewrap .hiw-stage { background: none; border-radius: 0; padding: 0; }

@media (max-width: 900px) {
  /* iris 标的未做项：窄屏 auto 高度让骨架那一段扫太快。给一个真 track，三段各得行程。 */
  .nf .hiwA-track { height: 300svh; }
  .nf .hiwA-pin { position: sticky; top: 0; min-height: 100svh; }
  .nf .hiwA-grid { grid-template-columns: 1fr; gap: 28px; }
  .nf .hiwA .hiwA-progress { display: block; left: -14px; }
  .nf .hiwA .hiwA-cue { display: flex; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .nf .hiwA-track { height: auto; }
  .nf .hiwA-pin { position: static; min-height: 0; }
}

/* option6 的 `.nf p { color: rgba(255,255,255,.85) }` 会盖过舞台里的墨色文字
   （字幕在白卡里变成白字看不见）。白卡内的那几行按 iris 原色钉回去。 */
.nf .hiwA-stagewrap .hiw-cap { color: var(--hiw-ink); }
.nf .hiwA-stagewrap .hiw-wait { color: var(--hiw-violet); }
.nf .hiwA-stagewrap .hiw-evidence { color: var(--hiw-t4); }
.nf .hiwA-stagewrap .hiw-accepts li { color: var(--hiw-t2); }
.nf .hiwA-stagewrap .hiw-check-name { color: var(--hiw-t2); }
.nf .hiwA-stagewrap .hiw-tag { color: var(--hiw-violet-deep); }
