:root {
      color-scheme: dark;
      --bg: #0a0b10;
      --surface: #12141c;
      --surface2: #171a24;
      --line: rgba(255,255,255,.08);
      --line2: rgba(255,255,255,.16);
      --text: #f0ece2;
      --muted: #9a948a;
      --dim: #635e57;
      --peach: #ff9d76;
      --mint: #63e6bd;
      --amber: #f7c76c;
      --violet: #8c72ff;
      --blue: #6aa8ff;
      --mono: "DepartureMono","SFMono-Regular",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
    }
    * { box-sizing: border-box; }
    html, body { height: 100%; }
    body {
      margin: 0; overflow: hidden;
      background: var(--bg); color: var(--text);
      font-family: var(--mono); font-size: 13px; line-height: 1.5;
    }
    button, input { font-family: inherit; }
    button { color: inherit; cursor: pointer; }

    /* ---------- 顶栏 ---------- */
    #topbar {
      position: absolute; top: 0; left: 0; right: 0; height: 56px; z-index: 40;
      display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
      background: rgba(10,11,16,.94); border-bottom: 1px solid var(--line);
      backdrop-filter: blur(14px);
    }
    #brand, #topRight { display: flex; align-items: center; gap: 12px; }
    #brandMark { width: 32px; height: 32px; object-fit: contain; filter: invert(1) brightness(1.35) drop-shadow(0 6px 16px rgba(255,255,255,.15)); }
    #brandCopy strong { display: block; font-size: 13px; letter-spacing: .14em; }
    #brandCopy span { color: var(--dim); font-size: 10px; letter-spacing: .08em; }
    #statePill {
      display: flex; align-items: center; gap: 8px;
      border: 1px solid var(--line); background: var(--surface);
      border-radius: 99px; padding: 6px 15px; font-size: 11px; color: var(--muted);
    }
    #statePill b { font-weight: 600; letter-spacing: .12em; }
    #statePill i { width: 7px; height: 7px; border-radius: 50%; background: #8a8f9a; transition: .3s; }
    #statePill.greet i, #statePill.speak i, #statePill.unlock i { background: var(--mint); box-shadow: 0 0 0 4px rgba(99,230,189,.12); }
    #statePill.present i { background: #8fa5c9; box-shadow: 0 0 0 4px rgba(143,165,201,.12); }
    #statePill.listen i { background: var(--amber); box-shadow: 0 0 0 4px rgba(247,199,108,.12); }
    #statePill.think i { background: var(--violet); box-shadow: 0 0 0 4px rgba(140,114,255,.12); }
    #statePill.drag i { background: var(--blue); box-shadow: 0 0 0 4px rgba(106,168,255,.12); }
    .chip {
      font-size: 10px; color: var(--dim); border: 1px solid var(--line);
      border-radius: 99px; padding: 4px 10px; letter-spacing: .06em; transition: .3s;
    }
    .chip.on { color: var(--mint); border-color: rgba(99,230,189,.35); background: rgba(99,230,189,.07); }
    #specBtn {
      border: 1px solid var(--line); background: var(--surface); color: var(--muted);
      border-radius: 9px; padding: 7px 12px; font-size: 11px; letter-spacing: .08em;
    }
    #specBtn:hover { color: var(--text); border-color: var(--line2); }

    /* ---------- 舞台（她的房间） ---------- */
    #stage {
      position: absolute; left: 0; right: 0; top: 56px; bottom: 116px; overflow: hidden;
      background: linear-gradient(180deg, #10121a 0%, #141622 46%, #0c0d14 100%);
    }
    #stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, transparent 55%, rgba(5,6,10,.5)); }

    .star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .5; animation: tw 5s ease-in-out infinite; }
    @keyframes tw { 50% { opacity: .18; } }

    #window {
      position: absolute; right: 6%; top: 11%; width: 190px; height: 264px;
      border: 7px solid #1b1724; border-radius: 12px; overflow: hidden;
      background: linear-gradient(180deg, #161c33, #241a38 68%, #0d0e18);
      box-shadow: 0 24px 60px rgba(0,0,0,.35);
    }
    #window::before { content: ""; position: absolute; left: 26%; top: 14%; width: 30px; height: 30px; border-radius: 50%; background: #f2e7d2; box-shadow: 0 0 26px rgba(242,231,210,.5); }
    #window::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: #0e0f19; }
    .dot { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffd9a0; opacity: .75; animation: tw 3.6s ease-in-out infinite; }

    #lamp { position: absolute; left: 12%; bottom: 24%; width: 130px; height: 230px; pointer-events: none; z-index: 3; }
    .lamp-stem { position: absolute; left: 50%; bottom: 0; width: 9px; height: 150px; transform: translateX(-50%); border-radius: 4px; background: #2c2836; }
    .lamp-base { position: absolute; left: 50%; bottom: -6px; width: 64px; height: 14px; transform: translateX(-50%); border-radius: 8px; background: #241f2e; }
    .lamp-shade { position: absolute; left: 50%; top: 0; width: 120px; height: 56px; transform: translateX(-50%); background: linear-gradient(180deg, #b98b52, #6e4f33); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); border-radius: 6px 6px 0 0; }
    #lampGlow {
      position: absolute; left: 50%; top: 56px; width: 180px; height: 180px; transform: translateX(-50%);
      border-radius: 50%; background: radial-gradient(circle at 50% 30%, rgba(255,196,130,.32), transparent 68%);
      filter: blur(14px); animation: glowPulse 6s ease-in-out infinite;
    }
    #lampGlow.dim { opacity: .3 !important; transition: opacity 2s; }
    @keyframes glowPulse { 50% { opacity: .72; } }
    #deskLight { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; pointer-events: none; background: radial-gradient(ellipse 55% 90% at 24% 0%, rgba(255,196,126,.13), transparent 62%); }

    #desk {
      position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
      background: linear-gradient(180deg, #262031, #16121c);
    }
    #desk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, rgba(255,214,150,.18), rgba(255,255,255,.07) 30%, rgba(255,214,150,.12) 70%, rgba(255,255,255,.06)); }
    #desk::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; bottom: 0; background: linear-gradient(180deg, #1e1a27, #141019); }

    #paper {
      position: absolute; left: calc(50% - 216px); bottom: 5%; width: 96px; height: 122px; z-index: 5;
      background: #e9e2d2; border-radius: 5px; transform: rotate(-2.5deg); box-shadow: 0 12px 30px rgba(0,0,0,.35);
    }
    #paper::before { content: ""; position: absolute; inset: 12px 10px; background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(110,96,120,.5) 9px 10px); }
    #paper::after { content: ""; position: absolute; right: 16px; top: 14px; width: 14px; height: 14px; border: 2px solid rgba(140,114,255,.5); border-radius: 50%; }
    #cup { position: absolute; left: calc(50% + 236px); bottom: 5.5%; width: 26px; height: 30px; z-index: 5; border-radius: 4px 4px 9px 9px; background: linear-gradient(180deg, #d9d2c6, #b8af9e); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
    #cup::before { content: ""; position: absolute; right: -8px; top: 6px; width: 10px; height: 12px; border: 3px solid #b8af9e; border-left: 0; border-radius: 0 8px 8px 0; }
    #steam { position: absolute; left: calc(50% + 240px); bottom: 12%; width: 10px; height: 26px; z-index: 5; border-radius: 50%; border-left: 2px solid rgba(255,255,255,.22); animation: steam 4s ease-in-out infinite; }
    @keyframes steam { 50% { opacity: .2; transform: translateY(-6px); } }

    /* ---------- 她 ---------- */
    #girl { position: absolute; left: 50%; bottom: 24%; width: 340px; height: 430px; transform: translateX(-50%); z-index: 6; transition: transform .45s ease; }
    #girl.lean { transform: translateX(-50%) translateY(-5px) scale(1.015); }
    #girlShadow { position: absolute; left: 50%; bottom: calc(24% - 22px); width: 300px; height: 30px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0,0,0,.42), transparent 70%); z-index: 5; }

    .body {
      position: absolute; left: 50%; bottom: 0; width: 200px; height: 238px; transform: translateX(-50%);
      border-radius: 96px 96px 34px 34px; background: linear-gradient(180deg, #d9cdbb, #c0b29c);
      animation: breath 4.6s ease-in-out infinite;
    }
    .body::before { content: ""; position: absolute; left: 50%; top: 16px; width: 70px; height: 26px; transform: translateX(-50%); border-radius: 14px; background: rgba(120,100,80,.16); }
    @keyframes breath { 50% { transform: translateX(-50%) scaleY(1.012); } }

    .neck { position: absolute; left: 50%; top: 150px; width: 36px; height: 52px; transform: translateX(-50%); background: linear-gradient(180deg, #e8c3a4, #d9a887); }
    .neck::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; border-radius: 50%; background: rgba(150,90,60,.18); }

    /* 头：低头 / 抬头 都在这一个旋转轴上 */
    .head { position: absolute; left: 50%; top: 0; width: 176px; height: 186px; transform: translateX(-50%); transform-origin: 50% 90%; transition: transform .6s cubic-bezier(.2,.85,.25,1); }
    .head.bow { transform: translateX(-50%) rotate(17deg) translateY(8px); }
    .head.semi { transform: translateX(-50%) rotate(5deg); }
    .head.tilt { transform: translateX(-50%) rotate(-6deg); }
    .head-inner { position: absolute; inset: 0; transform-origin: 50% 88%; }
    .head-inner.nod { animation: nod .55s ease; }
    .head-inner.shake { animation: shakeH .5s ease; }
    @keyframes nod { 30% { transform: rotate(6deg); } 100% { transform: none; } }
    @keyframes shakeH { 22% { transform: rotate(-3deg); } 55% { transform: rotate(2.5deg); } 100% { transform: none; } }

    .hair-back { position: absolute; left: 50%; top: 2px; width: 196px; height: 232px; transform: translateX(-50%); border-radius: 50% 50% 42% 42% / 56% 56% 42% 42%; background: linear-gradient(180deg, #3a3349, #262132); }
    .face { position: absolute; left: 50%; top: 24px; width: 148px; height: 150px; transform: translateX(-50%); border-radius: 46% 46% 48% 48% / 50% 50% 46% 46%; background: linear-gradient(165deg, #f2d2b4, #e3b795); box-shadow: inset -10px -6px 0 rgba(190,120,90,.14), inset 6px 4px 0 rgba(255,240,220,.25); }
    .hair-front { position: absolute; left: 50%; top: 14px; width: 162px; height: 70px; transform: translateX(-50%); border-radius: 56% 56% 44% 44% / 78% 78% 30% 30%; background: linear-gradient(180deg, #332c42, #282334); }
    .hair-front::before, .hair-front::after { content: ""; position: absolute; top: 46px; width: 20px; height: 118px; background: linear-gradient(180deg, #2c2638, #241f2f); }
    .hair-front::before { left: -6px; border-radius: 14px 0 0 14px; }
    .hair-front::after { right: -6px; border-radius: 0 14px 14px 0; }
    .pin { position: absolute; right: 30px; top: 40px; width: 15px; height: 8px; border-radius: 3px; background: linear-gradient(180deg, #ffb38c, #f2765c); transform: rotate(-26deg); box-shadow: 0 1px 3px rgba(0,0,0,.3); }

    .brow { position: absolute; top: 92px; width: 27px; height: 4.5px; border-radius: 3px; background: #4a3945; opacity: .8; transition: transform .3s; }
    .brow.l { left: 37px; } .brow.r { right: 37px; }
    .head-inner.greeting .brow { transform: translateY(-3px); }

    .eye { position: absolute; top: 106px; width: 46px; height: 17px; }
    .eye.l { left: 33px; } .eye.r { right: 33px; }
    .eye .white { position: absolute; inset: 0; border-radius: 50%; background: #fdfaf4; box-shadow: 0 2px 0 rgba(0,0,0,.05); }
    .eye .pupil { position: absolute; left: 50%; top: 52%; width: 13px; height: 14px; margin: -7px 0 0 -6.5px; border-radius: 50%; background: #2c2231; transition: transform .3s ease; }
    .eye .pupil::after { content: ""; position: absolute; left: 3px; top: 2.5px; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .85; }
    .eye .lid { position: absolute; inset: -1px -2px; border-radius: 50%; background: linear-gradient(180deg, #eecbad, #ddb190); transform: scaleY(0); transform-origin: 50% 0; transition: transform .14s ease; }
    .eye .lid::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 1.5px; height: 2.5px; border-radius: 50%; background: #57424e; opacity: .85; }
    .eyes.blink .lid, .eyes.closed .lid { transform: scaleY(1); }

    .nose { position: absolute; left: 50%; top: 130px; width: 6px; height: 13px; transform: translateX(-50%); border-radius: 3px; background: rgba(190,120,90,.35); }
    .blush { position: absolute; top: 136px; width: 22px; height: 9px; border-radius: 50%; background: #f6ab8e; opacity: .55; }
    .blush.l { left: 30px; } .blush.r { right: 30px; }
    .mouth { position: absolute; left: 50%; top: 150px; width: 18px; height: 7px; transform: translateX(-50%); border-radius: 0 0 9px 9px; border-bottom: 3px solid #b56a72; transition: all .12s ease; }
    .mouth.smile { width: 22px; height: 10px; border-bottom-width: 3.5px; }
    .mouth.talk1 { width: 11px; height: 12px; border: 0; border-radius: 50%; background: #8d3f4c; }
    .mouth.talk2 { width: 15px; height: 14px; border: 0; border-radius: 50%; background: #8d3f4c; }
    .mouth.talk3 { width: 9px; height: 10px; border: 0; border-radius: 50%; background: #8d3f4c; }
    .mouth.flat { width: 18px; height: 3px; border: 0; border-radius: 2px; background: #b56a72; opacity: .85; }

    .arm { position: absolute; width: 54px; border-radius: 26px; background: linear-gradient(180deg, #d2c5b1, #b9aa92); transform-origin: 50% 6%; }
    .arm.recv { right: -2px; bottom: 44px; height: 158px; transform: rotate(9deg); }
    .arm.work { left: -10px; bottom: 40px; height: 150px; transform: rotate(-13deg); }
    .arm-inner { position: absolute; inset: 0; transform-origin: 50% 6%; }
    .arm-inner.wave { animation: wave 1.05s ease-in-out 2; }
    @keyframes wave { 0% { transform: none; } 30% { transform: rotate(18deg) translateY(-6px); } 60% { transform: rotate(-10deg) translateY(-3px); } 100% { transform: none; } }
    .palm { position: absolute; left: 50%; bottom: -10px; width: 70px; height: 36px; transform: translateX(-50%); border-radius: 16px 16px 18px 18px; background: #ecc9a9; box-shadow: inset 0 -4px 0 rgba(190,130,95,.22); }
    .palm::before { content: ""; position: absolute; left: -9px; top: 10px; width: 14px; height: 12px; border-radius: 7px; background: #ecc9a9; }
    .hand { position: absolute; left: 50%; bottom: -8px; width: 26px; height: 26px; transform: translateX(-50%); border-radius: 50%; background: #ecc9a9; }
    .pen { position: absolute; left: 56%; bottom: -2px; width: 7px; height: 54px; border-radius: 4px; background: linear-gradient(180deg, #40394e, #5f5474); transform-origin: 50% 8%; transform: rotate(-28deg); animation: penW 3.4s ease-in-out infinite; }
    @keyframes penW { 50% { transform: rotate(-20deg) translate(4px, 3px); } }

    /* 手心接收区 */
    #palmZone { position: absolute; right: -34px; bottom: 42px; width: 130px; height: 130px; border-radius: 50%; z-index: 7; }
    #palmZone::before {
      content: ""; position: absolute; inset: 22px; border-radius: 50%;
      border: 2px dashed rgba(255,255,255,0); transition: .25s;
    }
    body.dragging-any #palmZone::before { border-color: rgba(255,255,255,.14); }
    #palmZone.hover::before { border-color: #ffd9a0; background: rgba(255,210,150,.07); box-shadow: 0 0 34px rgba(255,190,120,.4), inset 0 0 24px rgba(255,190,120,.14); animation: zonePulse 1s ease-in-out infinite; }
    @keyframes zonePulse { 50% { transform: scale(1.06); } }

    /* ---------- 字幕 ---------- */
    #subtitle {
      position: absolute; left: 50%; bottom: 134px; transform: translateX(-50%); z-index: 28;
      max-width: min(720px, 88%); text-align: center; pointer-events: none;
      font-size: 15px; letter-spacing: .12em; line-height: 2; color: #f0ebe0;
      white-space: pre-line; opacity: 0; transition: opacity .35s;
      text-shadow: 0 1px 14px rgba(0,0,0,.6);
    }
    #subtitle.on { opacity: 1; }
    #subCaret { display: none; margin-left: 2px; width: 2px; height: 15px; background: #f0ebe0; vertical-align: -2px; animation: caret 1s steps(1) infinite; }
    #subtitle.typing #subCaret { display: inline-block; }
    @keyframes caret { 50% { opacity: 0; } }

    /* ---------- 底部操作台 ---------- */
    #dock {
      position: absolute; left: 0; right: 0; bottom: 0; height: 116px; z-index: 30;
      display: flex; align-items: center; gap: 20px; padding: 0 22px;
      background: rgba(10,11,16,.92); border-top: 1px solid var(--line);
      backdrop-filter: blur(16px);
    }
    #cards { display: flex; gap: 12px; }
    .pcard {
      position: relative; width: 212px; height: 76px; display: flex; align-items: center; gap: 12px; padding: 0 16px;
      background: var(--surface2); border: 1px solid var(--line); border-radius: 14px;
      cursor: grab; user-select: none; touch-action: none;
      transition: border-color .2s, box-shadow .2s, opacity .2s, transform .2s;
    }
    .pcard:hover { border-color: var(--line2); transform: translateY(-2px); }
    .pcard.dragging { opacity: .28; }
    .pcard.unlocked { border-color: rgba(99,230,189,.4); box-shadow: 0 0 0 3px rgba(99,230,189,.08), 0 10px 30px rgba(0,0,0,.3); cursor: pointer; }
    .pcopy b { display: block; font-size: 14px; letter-spacing: .06em; }
    .pcopy span { color: var(--muted); font-size: 10.5px; letter-spacing: .04em; }
    .pbadge { position: absolute; top: 8px; right: 10px; font-size: 9px; color: #c9a86b; letter-spacing: .08em; transition: .3s; }
    .pcard.unlocked .pbadge { color: var(--mint); }
    .phint { position: absolute; bottom: 7px; right: 10px; font-size: 9px; color: var(--dim); }
    .pcard.unlocked .phint { display: none; }
    .picon { position: relative; width: 34px; height: 32px; flex: none; }
    .picon.peach i { position: absolute; left: 3px; top: 3px; width: 26px; height: 24px; border-radius: 50% 50% 44% 44%; background: linear-gradient(160deg, #ffb38c, #f2755d); box-shadow: inset -3px -3px 0 rgba(190,70,50,.25); }
    .picon.peach i::after { content: ""; position: absolute; left: 50%; top: 2px; width: 2px; height: 20px; margin-left: -1px; border-radius: 2px; background: rgba(150,60,45,.35); }
    .picon.peach::before { content: ""; position: absolute; left: 18px; top: -1px; width: 11px; height: 7px; border-radius: 6px 1px 6px 1px; background: #8fae7c; transform: rotate(24deg); }
    .picon.cassie i { position: absolute; left: 1px; top: 6px; width: 32px; height: 20px; border-radius: 4px; background: #26252f; border: 1px solid rgba(255,255,255,.16); }
    .picon.cassie i::before { content: ""; position: absolute; left: -1px; top: -7px; width: 32px; height: 7px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #9d8cff, #7a63e8); }
    .picon.cassie i::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: repeating-linear-gradient(115deg, transparent 0 6px, rgba(255,255,255,.3) 6px 8px); }

    #micWrap { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
    #micWrap small { color: var(--dim); font-size: 9px; letter-spacing: .1em; }
    #micBtn {
      width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line2);
      background: var(--surface2); color: var(--text); font-size: 16px; transition: .2s;
    }
    #micBtn.on { background: rgba(247,199,108,.14); border-color: rgba(247,199,108,.5); color: var(--amber); box-shadow: 0 0 24px rgba(247,199,108,.25); }
    .wf { display: flex; gap: 3px; height: 12px; align-items: flex-end; }
    .wf i { width: 3px; height: 3px; border-radius: 2px; background: var(--dim); transition: .3s; }
    .wf.on i { background: var(--amber); animation: wfB .8s ease-in-out infinite; }
    .wf i:nth-child(2) { animation-delay: .15s; } .wf i:nth-child(3) { animation-delay: .3s; } .wf i:nth-child(4) { animation-delay: .45s; }
    @keyframes wfB { 50% { height: 12px; } }

    #chatForm { flex: 1; max-width: 470px; display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 6px 0 16px; transition: border-color .2s; }
    #chatForm:focus-within { border-color: var(--line2); }
    #chatInput { flex: 1; border: 0; background: transparent; color: var(--text); padding: 12px 0; font-size: 13px; }
    #chatInput::placeholder { color: var(--dim); }
    #sendBtn { border: 0; border-radius: 9px; padding: 8px 13px; background: linear-gradient(135deg, #9d8cff, #6b52e6); color: #fff; font-size: 12px; }
    #dockHint { flex: none; color: var(--dim); font-size: 10.5px; line-height: 1.9; text-align: right; letter-spacing: .06em; }

    /* ---------- 拖拽幽灵 ---------- */
    #ghost {
      position: fixed; z-index: 80; pointer-events: none; display: flex; align-items: center; gap: 10px;
      padding: 10px 14px; background: rgba(20,21,28,.95); border: 1px solid rgba(255,255,255,.14);
      border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.5);
      transform: translate(-50%,-50%) scale(1.05);
      transition: left .3s ease, top .3s ease, transform .4s ease, opacity .35s ease;
    }
    #ghost.free { transition: none; }
    #ghost.vanish { opacity: 0; }
    #ghost .gname { font-size: 13px; letter-spacing: .06em; }

    /* ---------- 规格面板 ---------- */
    #spec {
      position: fixed; top: 0; right: 0; bottom: 0; width: 402px; z-index: 60;
      background: rgba(13,14,20,.97); border-left: 1px solid var(--line2);
      transform: translateX(100%); transition: transform .3s ease;
      overflow-y: auto; padding: 26px 24px 40px;
    }
    #spec.open { transform: translateX(0); }
    .spec-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
    .spec-head strong { display: block; font-size: 14px; letter-spacing: .06em; margin-top: 4px; }
    .eyebrow { color: var(--dim); font-size: 9px; letter-spacing: .22em; }
    #specClose { border: 0; background: transparent; color: var(--muted); font-size: 16px; padding: 2px 6px; }
    #spec section { margin-bottom: 22px; }
    #spec h4 { font-size: 10px; color: var(--dim); letter-spacing: .2em; margin: 0 0 9px; font-weight: 600; }
    #spec p, #spec li { color: var(--muted); font-size: 11px; line-height: 1.9; }
    #spec ul { margin: 0; padding-left: 16px; }
    .srow { display: flex; gap: 10px; padding: 9px 10px; border: 1px solid transparent; border-radius: 10px; margin-bottom: 6px; transition: .25s; }
    .srow i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); margin-top: 7px; transition: .25s; }
    .srow b { font-size: 11px; display: block; }
    .srow p { margin: 2px 0 0; font-size: 10.5px; line-height: 1.7; }
    .srow.live { border-color: rgba(99,230,189,.3); background: rgba(99,230,189,.06); }
    .srow.live i { background: var(--mint); box-shadow: 0 0 0 4px rgba(99,230,189,.12); }
    #spec table { width: 100%; border-collapse: collapse; font-size: 10.5px; color: var(--muted); }
    #spec td { border: 1px solid var(--line); padding: 6px 8px; line-height: 1.6; }
    #spec td:first-child { color: var(--text); white-space: nowrap; }
    #resetBtn { width: 100%; border: 1px solid var(--line); background: transparent; color: var(--dim); border-radius: 10px; padding: 9px; font-size: 10.5px; letter-spacing: .1em; }
    #resetBtn:hover { color: var(--muted); border-color: var(--line2); }

    /* ---------- 产品挂载占位 ---------- */
    #frameModal {
      position: fixed; inset: 0; z-index: 70; display: block;
      background: var(--bg);
      opacity: 0; pointer-events: none; transition: .25s;
    }
    #frameModal.open { opacity: 1; pointer-events: auto; }
    .fm-box { width: 100%; height: 100%; height: 100dvh; background: var(--surface); display: flex; flex-direction: column; overflow: hidden; }
    .fm-head { flex: 0 0 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(10,11,17,.96); }
    .fm-head b { font-size: 13px; letter-spacing: .08em; }
    #fmClose, #fmClose2 { border: 1px solid var(--line2); border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; letter-spacing: .08em; padding: 7px 12px; }
    #fmClose:hover, #fmClose2:hover { color: var(--text); border-color: var(--muted); }
    .fm-frame { flex: 1 1 auto; min-height: 0; display: block; margin: 0; border: 0; color: var(--muted); text-align: center; }
    .fm-frame iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; background: #fff; }
    .fm-frame span { color: var(--dim); font-size: 11px; }
    .fm-note { display: none; }

    @media (max-width: 900px) {
      #girl { transform: translateX(-50%) scale(.8); }
      #girl.lean { transform: translateX(-50%) translateY(-5px) scale(.815); }
      .pcard { width: 150px; }
      #dock { gap: 10px; padding: 0 12px; }
      #chatForm { max-width: none; }
      #dockHint { display: none; }
      #spec { width: 100%; }
    }

    /* ---------- V2 · 真实角色母版 ---------- */
    #girl {
      bottom: 13%; width: clamp(300px, 46vw, 520px); height: clamp(300px, 46vw, 520px);
      transform: translateX(-50%); filter: drop-shadow(0 30px 50px rgba(0,0,0,.38));
    }
    #girl.lean { transform: translateX(-50%) translateY(-8px) scale(1.018); }
    #girl > .head, #girl > .neck, #girl > .body, #girl > .arm { display: none; }
    #girlShadow { width: min(460px, 58vw); bottom: calc(20% - 20px); }
    .girl-sprite {
      position: absolute; inset: 0; border-radius: 42% 42% 18% 18% / 36% 36% 14% 14%;
      background-image: url('/assets/luckie-host/host-states-v4.png');
      background-repeat: no-repeat; background-size: 400% 200%; background-position: 0 0;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 20px 70px rgba(28,18,52,.3);
      transition: filter .35s ease, transform .45s cubic-bezier(.2,.85,.25,1), opacity .18s ease;
      animation: portraitBreath 5.2s ease-in-out infinite;
    }
    @keyframes portraitBreath { 50% { transform: translateY(-3px) scale(1.003); } }
    #girl[data-state="busy"] .girl-sprite { background-position: 0 0; filter: brightness(.84) saturate(.9); }
    #girl[data-state="greet"] .girl-sprite { background-position: 33.333% 0; }
    #girl[data-state="present"] .girl-sprite { background-position: 0 0; filter: brightness(.94); }
    #girl[data-state="present"].glancing .girl-sprite { background-position: 66.666% 0; filter: brightness(1); }
    #girl[data-state="listen"] .girl-sprite { background-position: 100% 0; filter: brightness(1.08); }
    #girl[data-state="think"] .girl-sprite { background-position: 0 100%; }
    #girl[data-state="speak"] .girl-sprite { background-position: 33.333% 100%; }
    #girl[data-state="drag"] .girl-sprite { background-position: 66.666% 100%; filter: brightness(1.08); }
    #girl[data-state="unlock"] .girl-sprite { background-position: 100% 100%; filter: brightness(1.1); }
    #palmZone { left: 14%; right: auto; bottom: 18%; width: 150px; height: 150px; }
    #lamp, #paper, #cup, #steam { opacity: 0; }
    body.goodnight #stage { filter: brightness(.52) saturate(.72); transition: filter 1.8s ease; }
    body[data-daypart="day"] #stage { background: linear-gradient(180deg,#162033 0%,#171827 46%,#0d1019 100%); }
    body[data-daypart="day"] #window::before { background:#dce9ff; box-shadow:0 0 30px rgba(220,233,255,.38); }
    .pcard:focus-visible, #micBtn:focus-visible, #sendBtn:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
    @media (max-width: 900px) {
      #girl, #girl.lean { width: clamp(290px, 80vw, 420px); height: clamp(290px, 80vw, 420px); transform: translateX(-50%); bottom: 18%; }
      #palmZone { left: 12%; bottom: 16%; width: 120px; height: 120px; }
    }
    @media (max-width: 680px) {
      #topbar { height: 54px; padding: 0 12px; }
      #brandCopy span, #topRight .chip { display: none; }
      #stage { top: 54px; bottom: 176px; }
      #dock { height: 176px; padding: 10px 12px; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: 72px 62px; gap: 8px 10px; }
      #cards { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
      .pcard { width: 100%; height: 66px; padding: 0 10px; gap: 8px; }
      .pcopy span, .phint { display: none; }
      .pbadge { top: 7px; right: 8px; font-size: 8px; }
      #micWrap { grid-column: 1; grid-row: 2; }
      #micWrap small, #wf { display: none; }
      #micBtn { width: 44px; height: 44px; }
      #chatForm { grid-column: 2; grid-row: 2; width: 100%; }
      #girl, #girl.lean { bottom: 11%; }
      #subtitle { bottom: 190px; font-size: 13px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .girl-sprite { animation: none; }
    }

    /* ---------- V2.1 · 融入式油画工作室 ---------- */
    #topbar {
      height: 72px; padding: 0 clamp(14px, 3vw, 34px);
      background: linear-gradient(180deg, rgba(9,12,18,.6), rgba(9,12,18,0));
      border-bottom: 0; backdrop-filter: none;
    }
    #brandCopy strong, #brandCopy span, #statePill, #specBtn, #topRight .chip { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
    #statePill, #specBtn, #topRight .chip {
      background: rgba(11,14,20,.32); border-color: rgba(255,255,255,.16); backdrop-filter: blur(12px);
    }
    .theme-toggle {
      width: 34px; height: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 1px;
      border: 1px solid rgba(255,255,255,.2); border-radius: 99px; padding: 0;
      color: rgba(255,255,255,.76); background: rgba(11,14,20,.34); backdrop-filter: blur(12px);
      font-size: 12px; line-height: 1; transition: border-color .25s, color .25s, background .25s;
    }
    .theme-toggle:hover { border-color: rgba(255,255,255,.48); color: #fff; }
    .theme-toggle .theme-sun, .theme-toggle .theme-moon { opacity: .58; transition: opacity .25s, transform .25s; }
    body[data-theme="day"] .theme-toggle .theme-sun { opacity: 1; transform: translateY(-.5px); }
    body[data-theme="night"] .theme-toggle .theme-moon { opacity: 1; transform: translateY(-.5px); }
    body[data-theme="day"] #brandMark { filter: drop-shadow(0 6px 16px rgba(20,16,24,.16)); }

    #stage {
      top: 0; bottom: 94px; isolation: isolate; background: #45404a; overflow: hidden;
    }
    #stage::before {
      content: ""; position: absolute; inset: -5%; z-index: -2; pointer-events: none;
      background: url('/assets/luckie-host/room-painting-v1.jpg') center / cover no-repeat;
      filter: blur(10px) brightness(.58) saturate(.88); transform: scale(1.07); opacity: .98;
      transition: filter 1.2s ease, opacity 1.2s ease;
    }
    #stage::after {
      z-index: -1; background: radial-gradient(ellipse at 50% 42%, rgba(34,25,38,.02) 22%, rgba(7,9,15,.32) 100%), linear-gradient(180deg, rgba(10,12,18,.08), rgba(8,9,14,.42));
    }
    body[data-theme="day"] #stage::before { filter: blur(8px) brightness(1.03) saturate(.98); }
    body[data-theme="day"] #stage::after { background: linear-gradient(180deg, rgba(255,226,205,.04), rgba(20,18,24,.26)); }
    body[data-theme="night"] #stage::before { filter: blur(11px) brightness(.38) saturate(.72) hue-rotate(8deg); }
    body[data-theme="night"] #stage::after { background: radial-gradient(ellipse at 50% 38%, rgba(37,31,55,.02) 22%, rgba(4,6,13,.58) 100%), linear-gradient(180deg, rgba(9,12,24,.12), rgba(4,5,10,.52)); }
    body.goodnight #stage::before { filter: blur(12px) brightness(.27) saturate(.62) hue-rotate(11deg); }
    .star, .dot, #window, #lamp { display: none; }
    #deskLight {
      display: block; z-index: 2; height: 28%; opacity: .88; pointer-events: none;
      background: radial-gradient(ellipse 62% 86% at 48% 2%, rgba(255,202,158,.18), transparent 68%);
    }
    #desk {
      display: block; z-index: 2; height: 24%; overflow: hidden;
      background:
        radial-gradient(ellipse 62% 90% at 50% 0%, rgba(121,84,83,.22), transparent 70%),
        repeating-linear-gradient(172deg, rgba(255,214,171,.012) 0 1px, transparent 1px 18px),
        linear-gradient(180deg, rgba(51,39,47,.26), rgba(17,15,22,.86));
      border-top: 1px solid rgba(255,224,194,.13);
      box-shadow: 0 -18px 42px rgba(20,12,24,.18);
    }
    #desk::before { height: 1px; top: 0; background: linear-gradient(90deg, transparent, rgba(255,220,187,.32) 30%, rgba(255,255,255,.12) 53%, rgba(255,220,187,.22) 76%, transparent); }
    #desk::after { top: 1px; background: linear-gradient(180deg, rgba(42,30,40,.04), rgba(9,9,14,.34)); opacity: .75; }
    #paper, #cup, #steam { display: block; opacity: .66; z-index: 4; }
    #paper { background: rgba(240,230,213,.8); box-shadow: 0 12px 30px rgba(0,0,0,.22); }
    #cup { background: linear-gradient(180deg, rgba(217,210,198,.88), rgba(137,124,120,.8)); }
    #girlShadow { bottom: calc(24% - 14px); z-index: 4; background: radial-gradient(ellipse at center, rgba(8,7,12,.5), transparent 70%); }
    #girl {
      bottom: 16%; width: clamp(300px, 46vw, 520px); height: clamp(300px, 46vw, 520px);
      filter: drop-shadow(0 28px 48px rgba(20,12,28,.36));
    }
    #girl.lean { transform: translateX(-50%) translateY(-8px) scale(1.018); }
    .girl-sprite {
      border-radius: 0; background-image: url('/assets/luckie-host/host-states-v4.png'); background-size: 400% 200%;
      box-shadow: none; filter: drop-shadow(0 12px 18px rgba(16,10,24,.08));
      -webkit-mask-image: linear-gradient(180deg, #000 0 83%, transparent 100%); mask-image: linear-gradient(180deg, #000 0 83%, transparent 100%);
      transition: filter .4s ease, transform .45s cubic-bezier(.2,.85,.25,1), opacity .28s ease;
    }
    #girl[data-state="busy"] .girl-sprite { background-position: 0 0; filter: brightness(.8) saturate(.9) drop-shadow(0 12px 18px rgba(16,10,24,.08)); }
    #girl[data-state="greet"] .girl-sprite { background-position: 33.333% 0; }
    /* 陪伴态保持静止；抬眼时由 JS 短暂触发 host-motion-present.gif。 */
    #girl[data-state="present"] .girl-sprite { background-image: url('/assets/luckie-host/host-states-v4.png'); background-size: 400% 200%; background-position: 0 0; filter: brightness(.94) saturate(.92) drop-shadow(0 12px 18px rgba(16,10,24,.08)); }
    #girl[data-state="present"].glancing .girl-sprite { background-image: url('/assets/luckie-host/host-states-v4.png'); background-size: 400% 200%; background-position: 66.666% 0; filter: brightness(1) drop-shadow(0 12px 18px rgba(16,10,24,.08)); }
    #girl[data-state="listen"] .girl-sprite { background-position: 100% 0; filter: brightness(1.08) drop-shadow(0 12px 18px rgba(16,10,24,.08)); }
    #girl[data-state="think"] .girl-sprite { background-position: 0 100%; }
    #girl[data-state="speak"] .girl-sprite { background-position: 33.333% 100%; }
    #girl[data-state="drag"] .girl-sprite { background-position: 66.666% 100%; filter: brightness(1.08) drop-shadow(0 12px 18px rgba(16,10,24,.08)); }
    #girl[data-state="unlock"] .girl-sprite { background-position: 100% 100%; filter: brightness(1.1) drop-shadow(0 12px 18px rgba(16,10,24,.08)); }
    #palmZone { left: 14%; right: auto; bottom: 18%; width: 150px; height: 150px; }
    #subtitle { bottom: 22px; text-shadow: 0 2px 18px rgba(0,0,0,.72); }

    #dock {
      height: 94px; display: grid; grid-template-columns: auto auto minmax(150px, 1fr) auto; align-items: center; gap: clamp(10px, 2vw, 24px);
      padding: 0 clamp(12px, 3vw, 34px); background: linear-gradient(180deg, rgba(9,11,16,.38), rgba(8,9,14,.72));
      border-top: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(18px) saturate(1.08);
    }
    #dockLabel { display: flex; flex-direction: column; gap: 2px; min-width: 102px; color: rgba(255,255,255,.88); letter-spacing: .12em; line-height: 1.15; }
    #dockLabel span { font-size: 9px; color: rgba(255,255,255,.56); }
    #dockLabel b { font-size: 13px; font-weight: 500; }
    #cards { display: flex; gap: 10px; }
    .pcard { width: 196px; height: 66px; padding: 0 12px; gap: 10px; background: rgba(18,19,27,.54); border-color: rgba(255,255,255,.16); backdrop-filter: blur(12px); }
    .pcard:hover { border-color: rgba(255,255,255,.38); }
    .pnew { position: absolute; left: 12px; top: -15px; color: var(--peach); font-size: 8px; letter-spacing: .18em; }
    .pcopy b { font-size: 13px; }
    .pcopy span { font-size: 10px; color: rgba(255,255,255,.64); }
    .pbadge { top: 7px; right: 8px; font-size: 8px; }
    .phint { bottom: 6px; right: 8px; font-size: 8px; }
    #chatForm { max-width: none; min-width: 0; width: 100%; height: 42px; background: rgba(13,15,22,.48); border-color: rgba(255,255,255,.18); backdrop-filter: blur(12px); }
    #chatInput { min-width: 0; padding-top: 10px; padding-bottom: 10px; }
    #sendBtn { padding: 7px 11px; }
    #micWrap { flex-direction: row; align-items: center; gap: 5px; }
    #micWrap small, #wf { display: none; }
    #micBtn { width: 32px; height: 32px; display: grid; place-items: center; border-color: rgba(255,255,255,.26); background: rgba(16,18,26,.48); font-size: 0; }
    #micBtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    #micBtn.on { background: rgba(247,199,108,.16); }

    @media (max-width: 900px) {
      #dock { gap: 10px; padding: 0 14px; }
      #dockLabel { min-width: 82px; }
      .pcard { width: 158px; }
      #girl { width: clamp(290px, 70vw, 420px); height: clamp(290px, 70vw, 420px); bottom: 16%; }
      #palmZone { left: 12%; bottom: 16%; width: 120px; height: 120px; }
    }
    @media (max-width: 680px) {
      #topbar { height: 54px; padding: 0 12px; }
      #brandCopy span, #topRight .chip, #specBtn { display: none; }
      #topRight { gap: 7px; }
      #stage { top: 0; bottom: 174px; }
      #dock { height: 174px; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 23px 68px 43px; gap: 8px 10px; align-content: center; }
      #dockLabel { grid-column: 1 / -1; grid-row: 1; flex-direction: row; align-items: baseline; gap: 7px; min-width: 0; }
      #dockLabel span { font-size: 8px; }
      #dockLabel b { font-size: 11px; }
      #cards { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; width: 100%; }
      .pcard { width: 100%; height: 68px; padding: 0 9px; gap: 7px; }
      .pcopy span, .phint { display: none; }
      .pnew { left: 9px; top: -13px; font-size: 7px; }
      .pbadge { top: 7px; right: 7px; font-size: 7px; }
      #chatForm { grid-column: 1; grid-row: 3; width: 100%; height: 40px; }
      #micWrap { grid-column: 2; grid-row: 3; }
      #micBtn { width: 36px; height: 36px; }
      #girl, #girl.lean { width: clamp(260px, 78vw, 360px); height: clamp(260px, 78vw, 360px); bottom: 16%; transform: translateX(-50%); }
      #palmZone { left: 9%; bottom: 17%; width: 112px; height: 112px; }
      #subtitle { bottom: 18px; max-width: 88%; font-size: 12px; line-height: 1.8; }
    }
    @media (prefers-reduced-motion: reduce) {
      #stage::before, .girl-sprite, #girl, #subtitle { transition: none !important; animation: none !important; }
    }

    /* ---------- 状态触发式 GIF：只在进入动作时播放，结束后回到状态母版 ---------- */
    #girl[data-state="greet"].motion-greet .girl-sprite,
    #girl[data-state="present"].motion-present .girl-sprite,
    #girl[data-state="listen"].motion-listen .girl-sprite,
    #girl[data-state="think"].motion-think .girl-sprite,
    #girl[data-state="speak"].motion-speak .girl-sprite,
    #girl[data-state="drag"].motion-drag .girl-sprite,
    #girl[data-state="unlock"].motion-unlock .girl-sprite {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      filter: brightness(1) saturate(.96) drop-shadow(0 12px 18px rgba(16,10,24,.08));
    }
    #girl[data-state="greet"].motion-greet .girl-sprite { background-image: url('/assets/luckie-host/host-motion-greet.gif'); }
    #girl[data-state="present"].motion-present .girl-sprite { background-image: url('/assets/luckie-host/host-motion-present.gif'); }
    #girl[data-state="listen"].motion-listen .girl-sprite { background-image: url('/assets/luckie-host/host-motion-listen.gif'); }
    #girl[data-state="think"].motion-think .girl-sprite { background-image: url('/assets/luckie-host/host-motion-think.gif'); }
    #girl[data-state="speak"].motion-speak .girl-sprite { background-image: url('/assets/luckie-host/host-motion-speak.gif'); }
    #girl[data-state="drag"].motion-drag .girl-sprite { background-image: url('/assets/luckie-host/host-motion-drag.gif'); }
    #girl[data-state="unlock"].motion-unlock .girl-sprite { background-image: url('/assets/luckie-host/host-motion-unlock.gif'); }
    @media (prefers-reduced-motion: reduce) {
      #girl[data-state="greet"].motion-greet .girl-sprite,
      #girl[data-state="present"].motion-present .girl-sprite,
      #girl[data-state="listen"].motion-listen .girl-sprite,
      #girl[data-state="think"].motion-think .girl-sprite,
      #girl[data-state="speak"].motion-speak .girl-sprite,
      #girl[data-state="drag"].motion-drag .girl-sprite,
      #girl[data-state="unlock"].motion-unlock .girl-sprite {
        background-image: url('/assets/luckie-host/host-states-v4.png');
        background-size: 400% 200%;
      }
    }
