/* ======================================================================
   aniwaffle 1026 · Developers 新段 + Products / Use cases 线框文案（Jes 线框 v25）
   1027：Voices V6a 的样式和试句弹窗换成 V8，移到 css/aw-voices-1027.css
   规则：扁平，无阴影无渐变；卡片无实线描边（只许 dashed）；无框套框；字重 300 / 400 / 500。
   ======================================================================

/* ---------- Products · 1026 线框文案：flow 放进 TTS 文字栏，克隆 / 设计只剩 一句 + 流向 + CTA ---------- */
.aw-pr2-txt .aw-pr2-flow { margin-top: 4px; }
.aw-pr2-c .aw-pr2-foot { justify-content: flex-start; padding-top: 12px; }
.aw-pr2-c h3 { max-width: 26em; }
.aw-pr2 .aw-ext { margin-left: 6px; font-style: normal; }

/* ---------- Use cases · 1026 线框文案：场景名当标题，一句，标签行在发丝线下 ---------- */
.aw-uc2-body h3 { font-size: clamp(22px, 2vw, 27px); }
.aw-uc2-body p { margin-bottom: 22px; }
.aw-uc2-tags { align-self: stretch; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: 13px; color: rgba(255, 255, 255, .72); }
.aw-light .aw-uc2-tags { border-top-color: rgba(113, 128, 255, .22); color: var(--aw-ink5); }

/* ---------- Developers · 1026 新段 ---------- */
.aw-dv2 { --ink: #fff; --ink2: rgba(255, 255, 255, .85); --ink3: rgba(255, 255, 255, .68); --chip: rgba(255, 255, 255, .16); --chip-on: #fff; --chip-on-ink: #7180ff; --line: rgba(255, 255, 255, .55); --dash: rgba(255, 255, 255, .5); --fill: rgba(255, 255, 255, .16); --acc: #fff;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.aw-light .aw-dv2 { --ink: #241c4e; --ink2: rgba(36, 28, 78, .72); --ink3: rgba(36, 28, 78, .55); --chip: #ecebff; --chip-on: #7180ff; --chip-on-ink: #fff; --line: #7180ff; --dash: rgba(113, 128, 255, .5); --fill: #f3f2ff; --acc: #7180ff; }
.dv2-c { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 32px 32px 30px; border-radius: 32px; overflow: hidden; color: var(--ink); }
.dv2-c.is-half { grid-column: span 3; }
.dv2-c.is-third { grid-column: span 2; }
.dv2-c h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.2; font-weight: 500; letter-spacing: -.015em; }
.dv2-c > p { max-width: 30em; margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.dv2-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: 11px; font-weight: 500; letter-spacing: .06em; }
.dv2-art { display: flex; flex-direction: column; flex: 1; margin-top: 28px; }
.dv2-k { display: block; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.dv2-k.is-c { text-align: center; }
.dv2-cap { margin: auto 0 0; padding-top: 18px; font-size: 13px; line-height: 1.5; text-align: center; color: var(--ink3); }
.dv2-cap.is-left { text-align: left; }
.dv2-cap i { font-style: normal; }

/* 1 · Expressive anime voices：三个角色头像 */
.dv2-cast { justify-content: flex-end; }
.dv2-cast-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 2.4vw, 32px); }
.dv2-cast figure { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; }
.dv2-av { display: block; width: clamp(84px, 8.4vw, 124px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--fill); transition: transform .4s var(--aw-ease); }
.dv2-cast .is-mid .dv2-av { width: clamp(100px, 10vw, 148px); background: var(--chip); }
.dv2-av { position: relative; }
.dv2-av img { position: absolute; left: -32%; top: -16%; width: 170%; height: auto; max-width: none; }
.dv2-cast figure:hover .dv2-av { transform: translateY(-6px); }
.dv2-cast figcaption { font-size: 13px; color: var(--ink3); white-space: nowrap; }
.dv2-line { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 24px 0 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.35; font-weight: 500; text-align: center; letter-spacing: -.01em; }
.dv2-line i { font-style: normal; font-size: 22px; color: var(--ink3); animation: dv2tw 3.2s ease-in-out infinite; }
.dv2-line i:last-child { animation-delay: -1.6s; }
@keyframes dv2tw { 0%, 100% { opacity: .45; transform: scale(.9) rotate(0deg); } 50% { opacity: 1; transform: scale(1.12) rotate(20deg); } }

/* 2 · Adult content support：书 + 心形，克制 */
.dv2-book { justify-content: flex-end; }
.dv2-book-fig { position: relative; width: min(100%, 340px); margin: 0 auto; color: var(--line); }
.dv2-book-fig svg { display: block; width: 100%; height: auto; }
.dv2-book-fig .pg { fill: var(--fill); }
.dv2-book-fig .ln { stroke-width: 1.6; opacity: .55; }
.dv2-book-fig .hrt { fill: var(--chip); transform-origin: 221px 105px; animation: dv2beat 2.4s var(--aw-ease) infinite; }
.dv2-book-fig .sp { stroke-width: 1.6; opacity: .6; }
@keyframes dv2beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.1); } 30% { transform: scale(.98); } 45% { transform: scale(1.05); } }
.dv2-18 { position: absolute; left: 50%; top: -6%; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 10px; background: var(--chip-on); color: var(--chip-on-ink); font-size: 17px; font-weight: 500; letter-spacing: .02em; transform: translateX(-50%) rotate(-5deg); }

/* 3 · Emotion & delivery control */
.dv2-ctl .dv2-k + .dv2-chips { margin-top: 10px; }
.dv2-ctl .dv2-chips + .dv2-k { margin-top: 20px; }
.dv2-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dv2-chips button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--chip); color: var(--ink); font: 400 13px/1 var(--font); cursor: pointer; transition: background .16s var(--aw-ease), color .16s var(--aw-ease); }
.dv2-chips button[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-ink); }
.dv2-chips .more, .dv2-tags .more { padding: 0 4px; color: var(--ink3); }
.dv2-ctl .dv2-cap { padding-top: 22px; }

/* 4 · Expressive vocal reactions：散落的标签 */
.dv2-tags { flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px 8px; padding: 4px 0 8px; }
.dv2-tags span { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--chip); font-size: 14px; color: var(--ink); transform: rotate(var(--r, 0deg)); transition: transform .3s var(--aw-ease), background .2s var(--aw-ease), color .2s var(--aw-ease); }
.dv2-tags span:nth-child(3n+1) { --r: -4deg; } .dv2-tags span:nth-child(3n+2) { --r: 3deg; } .dv2-tags span:nth-child(4n) { --r: -2deg; }
.dv2-tags span.is-on, .dv2-tags span:hover { background: var(--chip-on); color: var(--chip-on-ink); }
.dv2-tags span:hover { transform: rotate(0deg) translateY(-3px); }
.dv2-tags span.more { background: none; transform: none; }

/* 5 · Real-time stereo audio：Mono input 分到 L / R，中间 Lumi 戴耳机 */
.dv2-st { padding-top: 22px; }
.dv2-st-box { position: relative; width: min(100%, 300px); aspect-ratio: 300 / 196; margin: 0 auto; }
.dv2-st-in { position: absolute; left: 50%; top: 0; transform: translate(-50%, -100%); padding-bottom: 6px; font-size: 12px; color: var(--ink2); white-space: nowrap; }
.dv2-st-wire { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; }
.dv2-st-wire > path { stroke: var(--dash); stroke-width: 1.5; stroke-dasharray: 4 5; animation: dv2flow 1.2s linear infinite; }
.dv2-st-wire .arc path { stroke: var(--line); stroke-width: 1.8; stroke-linecap: round; opacity: .3; }
.dv2-st-wire .arc.l path { animation: dv2ch 2.4s ease-in-out infinite; }
.dv2-st-wire .arc.r path { animation: dv2ch 2.4s ease-in-out -1.2s infinite; }
.dv2-st-wire .arc path + path { animation-delay: .15s; }
.dv2-st-wire .arc.r path + path { animation-delay: -1.05s; }
@keyframes dv2flow { to { stroke-dashoffset: -18; } }
@keyframes dv2ch { 0%, 100% { opacity: .2; } 30%, 50% { opacity: 1; } }
.dv2-ch { position: absolute; top: 52.5%; display: grid; place-items: center; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--chip); font-size: 13px; font-weight: 500; color: var(--ink); }
.dv2-ch.l { left: 13.3%; } .dv2-ch.r { left: 86.7%; }
.dv2-st-av { position: absolute; left: 50%; top: 22%; width: 42%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--fill); transform: translateX(-50%); }
.dv2-st-av img { position: absolute; left: -24%; top: -6%; width: 148%; height: auto; }

/* 6 · Under 500 ms latency */
.dv2-lat { justify-content: center; }
.dv2-big { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 0; font-size: clamp(64px, 6.4vw, 96px); line-height: 1; font-weight: 300; letter-spacing: -.04em; }
.dv2-big small { font-size: .3em; font-weight: 400; letter-spacing: 0; }
.dv2-lat .dv2-k { margin-top: 12px; }
.dv2-track { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 30px; }
.dv2-track .s { flex: none; width: 10px; height: 10px; border: 1.5px dashed var(--line); border-radius: 50%; }
.dv2-track .rail { position: relative; flex: 1; height: 0; border-top: 1.5px dashed var(--dash); }
.dv2-track .run { position: absolute; left: 0; top: -4.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: dv2run 2.6s var(--aw-ease) infinite; }
.dv2-track .e { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--chip); color: var(--ink); animation: dv2hit 2.6s ease-out infinite; }
.dv2-track .e svg { width: 12px; height: 12px; }
@keyframes dv2run { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 42% { left: calc(100% - 8px); opacity: 1; } 50%, 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes dv2hit { 0%, 40% { background: var(--chip); color: var(--ink); } 46%, 70% { background: var(--chip-on); color: var(--chip-on-ink); } 100% { background: var(--chip); color: var(--ink); } }
.dv2-track-l { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--ink3); }

/* 7 · Real-time streaming：字进来，音频段跟着出 */
.dv2-stream .dv2-k + * { margin-top: 10px; }
.dv2-typed { margin: 0; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; letter-spacing: -.01em; }
.dv2-typed span { opacity: .25; animation: dv2word 4.8s steps(1, end) infinite; }
.dv2-typed .w2 { animation-name: dv2word2; }
.dv2-typed .caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 3px; vertical-align: -.12em; background: currentColor; animation: dv2caret 1s steps(1, end) infinite; }
@keyframes dv2word { 0% { opacity: .25; } 8%, 100% { opacity: 1; } }
@keyframes dv2word2 { 0% { opacity: .25; } 30%, 100% { opacity: 1; } }
@keyframes dv2caret { 50% { opacity: 0; } }
.dv2-arrows { display: flex; gap: 22%; padding: 10px 0 12px 8%; color: var(--ink3); }
.dv2-arrows i { font-style: normal; animation: dv2drop 4.8s var(--aw-ease) infinite; }
.dv2-arrows i:nth-child(2) { animation-delay: .5s; } .dv2-arrows i:nth-child(3) { animation-delay: 1s; }
@keyframes dv2drop { 0%, 6% { opacity: .2; transform: translateY(-4px); } 14%, 100% { opacity: 1; transform: none; } }
.dv2-segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dv2-segs i { height: 22px; border-radius: 6px; border: 1.5px dashed var(--dash); background: none; animation: dv2seg 4.8s steps(1, end) infinite; }
.dv2-segs i:nth-child(2) { animation-name: dv2seg2; } .dv2-segs i:nth-child(3) { animation-name: dv2seg3; } .dv2-segs i:nth-child(4) { animation-name: dv2seg4; }
@keyframes dv2seg  { 0% { background: none; border-color: var(--dash); } 14%, 100% { background: var(--acc); border-color: transparent; } }
@keyframes dv2seg2 { 0% { background: none; border-color: var(--dash); } 30%, 100% { background: var(--acc); border-color: transparent; opacity: .75; } }
@keyframes dv2seg3 { 0% { background: none; border-color: var(--dash); } 46%, 100% { background: var(--acc); border-color: transparent; opacity: .5; } }
@keyframes dv2seg4 { 0% { background: none; border-color: var(--dash); } 62%, 100% { background: var(--acc); border-color: transparent; opacity: .3; } }

/* 8 · Synchronized avatars：Lumi 半身口型帧，卡底裁 */
.dv2-sync { position: relative; justify-content: flex-end; margin-bottom: -30px; }
.dv2-sync .dv2-cap.is-sync { margin-top: auto; }
.dv2-rig { position: relative; flex: none; height: clamp(260px, 24vw, 320px); margin-top: 14px; overflow: hidden; }
.dv2-lumi { position: absolute; left: 58%; top: 4px; width: min(300px, 64%); aspect-ratio: 1609 / 2000; margin-left: max(-150px, -32%); transform-origin: 50% 40%; animation: dv2bob 3.6s ease-in-out infinite; }
.dv2-lumi img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.dv2-lumi .m, .dv2-lumi .k { opacity: 0; }
.dv2-lumi .m.on, .dv2-lumi .k.on { opacity: 1; }
@keyframes dv2bob { 0%, 100% { transform: rotate(0deg) translateY(0); } 30% { transform: rotate(-1.4deg) translateY(-2px); } 70% { transform: rotate(1.2deg) translateY(1px); } }
.dv2-ann { position: absolute; left: 50%; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink2); white-space: nowrap; }
.dv2-ann i { width: clamp(40px, 6vw, 84px); border-top: 1.5px dashed var(--dash); }
.dv2-ann i::before { content: ""; display: block; width: 6px; height: 6px; margin: -4px 0 0 -3px; border-radius: 50%; background: var(--acc); }
.dv2-ann.a1 { top: 12%; margin-left: 14%; }
.dv2-ann.a2 { top: 33%; margin-left: 10%; }
.dv2-ann.a3 { top: 62%; margin-left: 23%; }
.dv2-cap.is-sync { order: -1; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; text-align: left; }
.dv2-cap .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: dv2ch 1.6s ease-in-out infinite; }

/* 9 · Set up with one prompt：虚线框 + 主按钮 */
.dv2-setup { justify-content: flex-end; }
.dv2-prompt { padding: 18px 20px 20px; border: 1.5px dashed var(--dash); border-radius: 18px; }
.dv2-ph { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink3); }
.dv2-prompt p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.dv2-copy { width: 100%; margin-top: 14px; }
.aw-glass .dv2-copy { background: #fff; color: #7180ff; }
.dv2-alt { margin: 14px 0 0; font-size: 13px; color: var(--ink3); }
.dv2-link { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); transition: text-decoration-color .16s var(--aw-ease); }
.dv2-link:hover { text-decoration-color: currentColor; }
.aw-light .dv2-link { color: #7180ff; }

/* 进场后才跑循环动效（data-nf 进视口加 .is-in） */
.dv2-c:not(.is-in) * { animation-play-state: paused !important; }
@media (max-width: 1100px) { .aw-dv2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dv2-c.is-half, .dv2-c.is-third { grid-column: span 1; } .aw-dv2 > .dv2-c:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 760px) { .aw-dv2 { grid-template-columns: 1fr; } .aw-dv2 > .dv2-c:nth-child(5) { grid-column: auto; } .dv2-c { padding: 26px 24px 24px; border-radius: 26px; } }
@media (prefers-reduced-motion: reduce) { .aw-dv2 *, .aw-dv2 *::before { animation: none !important; transition: none !important; } .dv2-typed span { opacity: 1; } .dv2-segs i { background: var(--acc); border-color: transparent; } .dv2-track .run { display: none; } }

.aw-light .dv2-big, .aw-light .dv2-line span { color: #7180ff; }
.aw-pr2 .aw-pr-eyebrow { font-weight: 500; letter-spacing: .12em; }

/* 幕 → 板的接力时序按「章头 + 板」一起升上来调过（hero 光盘 / 涟漪 handoff，check-motion 16.5 / 18）；V6a 去掉了章头，这里留同高的空位，板到达的时刻不变，幕字在这段里淡出 */
.aw-chap[data-chap="voices"] { padding-top: calc(var(--aw-head-pt) + clamp(200px, 18vw, 290px)); }
