/* AI 口语外教 — minimalist, gunmetal (#2a3439). No web fonts. */
.at-page{background:#fff}
.at{--g:#2a3439;max-width:820px;margin:0 auto;padding:24px 20px 96px;color:var(--dx-ink,#1d1d1f);font-family:var(--dx-sans,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif)}
.at-hero{text-align:center;padding:20px 0 6px}
.at h1{margin:0;font-family:var(--dx-serif,Georgia,serif);font-size:clamp(32px,6vw,48px);font-weight:700;letter-spacing:-.02em;line-height:1.1}
.at-lead{margin:12px auto 0;max-width:520px;color:var(--dx-muted,#6e6e73);font-size:16px;line-height:1.6}
.at-demo{margin:18px auto 0;max-width:520px;text-align:center;font-size:13px;color:#8a5a00;background:#fff7e0;border:1px dashed #e8c66a;border-radius:12px;padding:8px 12px}
.at-gate{margin:28px auto 0;max-width:440px;text-align:center;border:1px solid var(--dx-line,#e5e5ea);border-radius:24px;padding:28px 20px}
.at-gate p{margin:0 0 16px;color:var(--dx-muted,#6e6e73)}
.at-btn{border:1px solid var(--dx-line2,#d2d2d7);background:#fff;color:var(--dx-ink,#1d1d1f);border-radius:999px;padding:10px 22px;font:inherit;font-size:15px;font-weight:500;cursor:pointer}
.at-btn.pri{background:var(--g);border-color:var(--g);color:#fff}.at-btn.pri:hover{background:#1e2629}
.at-btn.sm{padding:8px 16px;font-size:14px}
.at-box{margin-top:22px;border:1px solid var(--dx-line,#e5e5ea);border-radius:24px;padding:14px 14px 10px;background:#fff}
.at-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.at-row{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;min-width:0}
.at-row+.at-row{margin-left:auto}
.at-bar .lh-en{display:none!important}
.at-chip{display:inline-flex;align-items:center;gap:5px;flex:none;border:1px solid var(--dx-line2,#d2d2d7);background:#fff;border-radius:999px;padding:5px 11px;font:inherit;font-size:13px;line-height:1.2;white-space:nowrap;cursor:pointer;color:var(--dx-ink,#1d1d1f)}
.at-chip svg,.at-side svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.at-chip svg{width:15px;height:15px}
.at-seg{display:inline-flex;flex:none;background:var(--dx-surface,#f5f5f7);border-radius:999px;padding:2px}
.at-seg button{border:0;background:none;border-radius:999px;padding:4px 9px;font:inherit;font-size:13px;line-height:1.2;white-space:nowrap;color:var(--dx-muted,#6e6e73);cursor:pointer}
.at-seg button.on{background:#fff;color:var(--g);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.at-tg{display:inline-flex;flex:none;align-items:center;gap:6px;font-size:13px;white-space:nowrap;color:var(--dx-muted,#6e6e73);cursor:pointer;user-select:none}
.at-tg input{position:absolute;opacity:0;pointer-events:none}
.at-tg i{width:28px;height:16px;border-radius:999px;background:#d2d2d7;position:relative;transition:background .2s;flex:none}
.at-tg i:after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;transition:transform .2s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.at-tg input:checked+i{background:var(--g)}.at-tg input:checked+i:after{transform:translateX(12px)}
.at-game{margin:12px 0 0;display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--dx-surface,#f5f5f7);border-radius:14px;padding:8px 12px;font-size:14px}
.at-x{border:0;background:none;color:var(--dx-muted,#6e6e73);font:inherit;font-size:13px;cursor:pointer;padding:4px 6px}
.at-chat{margin:14px 0 0;height:min(42vh,380px);overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:4px 2px;scroll-behavior:smooth}
.at-chat:empty:before{content:"Say hello to Mia!";margin:auto;color:var(--dx-faint,#86868b);font-size:15px}
.at-box.notext .at-chat{height:auto;min-height:0}
.at-box.notext .at-chat>*{display:none}.at-box.notext .at-chat:before{display:none}
.at-msg{max-width:82%;line-height:1.5;font-size:16px}
.at-msg .t{padding:10px 14px;border-radius:18px;white-space:pre-wrap;word-break:break-word}
.at-msg.at-u{align-self:flex-end}.at-msg.at-u .t{background:var(--g);color:#fff;border-bottom-right-radius:6px}
.at-msg.at-a{align-self:flex-start}.at-msg.at-a .t{background:var(--dx-surface,#f5f5f7);border-bottom-left-radius:6px}
.at-msg .zh{margin:6px 4px 0;font-size:14px;color:var(--dx-muted,#6e6e73)}
.at-msg .ops{display:flex;gap:4px;margin:4px 2px 0}
.at-msg .ops button{border:0;background:none;color:var(--dx-faint,#86868b);font:inherit;font-size:12.5px;padding:2px 6px;border-radius:8px;cursor:pointer}
.at-msg .ops button:hover{background:var(--dx-surface,#f5f5f7);color:var(--g)}
.at-msg.at-sys{align-self:center;max-width:92%}.at-msg.at-sys .t{background:none;color:var(--dx-faint,#86868b);font-size:13px;padding:2px 8px;text-align:center}
.at-stage{display:flex;flex-direction:column;align-items:center;padding:10px 0 6px;border-top:1px solid var(--dx-line,#e5e5ea);margin-top:8px}
.at-ava{position:relative;width:260px;max-width:100%;margin-top:8px;border-radius:18px;border:1px solid #e9e0d2;background:#f6efe4;box-shadow:0 6px 20px rgba(42,52,57,.14);animation:miaBreath 4s ease-in-out infinite;transition:box-shadow .3s}
.at-ava img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;border-radius:17px}
.at-ava:before{content:"";position:absolute;inset:-6px;border-radius:23px;border:2px solid transparent;pointer-events:none;transition:border-color .2s}
.mia-dots{position:absolute;right:10px;bottom:10px;display:flex;gap:4px;padding:6px 8px;border-radius:999px;background:rgba(255,255,255,.88);box-shadow:0 1px 4px rgba(42,52,57,.15);opacity:0;transition:opacity .2s}
.mia-dots i{width:6px;height:6px;border-radius:50%;background:#2a3439}
.at-ava[data-s=listening]:before{border-color:#e88a7d;animation:atPulse 1.2s ease-in-out infinite}
.at-ava[data-s=thinking] .mia-dots{opacity:1}
.at-ava[data-s=thinking] .mia-dots i{animation:miaDot 1.2s ease-in-out infinite}
.at-ava[data-s=thinking] .mia-dots i:nth-child(2){animation-delay:.2s}
.at-ava[data-s=thinking] .mia-dots i:nth-child(3){animation-delay:.4s}
.at-ava[data-s=speaking]{animation:miaGlow 1.4s ease-in-out infinite}
@keyframes miaBreath{0%,100%{transform:scale(1)}50%{transform:scale(1.008)}}
@keyframes miaGlow{0%,100%{box-shadow:0 0 0 0 rgba(42,52,57,.10),0 6px 20px rgba(42,52,57,.14)}50%{box-shadow:0 0 0 8px rgba(42,52,57,.07),0 8px 26px rgba(42,52,57,.20)}}
@keyframes miaDot{0%,100%{opacity:.3;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}
@keyframes atPulse{0%,100%{opacity:1}50%{opacity:.35}}
@media(max-width:720px){.at-ava{width:min(210px,58vw)}}
@media(prefers-reduced-motion:reduce){.at-ava,.at-ava *,.at-ava:before{animation:none!important;transition:none!important}.at-ava[data-s=speaking]{box-shadow:0 0 0 6px rgba(42,52,57,.08),0 6px 20px rgba(42,52,57,.14)}}
.at-hint{margin:10px 0 0;font-size:15px;color:var(--g);background:var(--dx-surface,#f5f5f7);border-radius:12px;padding:6px 12px}
.at-status{margin:8px 0 0;font-size:13.5px;color:var(--dx-faint,#86868b);min-height:20px;text-align:center}
.at-status.at-err{color:#b3261e}
.at-status a{color:var(--g);font-weight:600}
.at-ctl{display:flex;align-items:center;gap:28px;margin-top:10px}
.at-mic{position:relative;width:76px;height:76px;border-radius:50%;border:0;background:var(--g);color:#fff;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;box-shadow:0 6px 18px rgba(42,52,57,.25);transition:transform .15s}
.at-mic *{pointer-events:none}.at-mic{-webkit-tap-highlight-color:transparent}
.at-mic svg{position:relative;width:30px;height:30px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.at-mic canvas{position:absolute;inset:-22px;width:120px;height:120px;pointer-events:none}
.at-mic.rec{transform:scale(1.08);background:#1e2629}
.at-mic:disabled{opacity:.45;cursor:default}
.at-side{width:42px;height:42px;border-radius:50%;border:1px solid var(--dx-line2,#d2d2d7);background:#fff;color:var(--g);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.at-side:disabled{opacity:.35;cursor:default}
.at-side.on{background:var(--dx-surface,#f5f5f7)}
.at-micl{margin:10px 0 2px;font-size:13.5px;color:var(--dx-muted,#6e6e73)}
.at-type{display:flex;gap:8px;width:100%;max-width:520px;margin-top:8px}
.at-type input{flex:1;min-width:0;border:1px solid var(--dx-line2,#d2d2d7);border-radius:999px;padding:9px 16px;font:inherit;font-size:16px;outline:none}
.at-type input:focus{border-color:var(--g)}
.at-foot{display:flex;justify-content:space-between;align-items:center;padding:8px 4px 0;font-size:12.5px;color:var(--dx-faint,#86868b)}
.at-link{border:0;background:none;color:var(--dx-faint,#86868b);font:inherit;font-size:12.5px;cursor:pointer}
.at-link:hover{color:var(--g)}
.at-sheet{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.32);display:flex;align-items:center;justify-content:center;padding:16px}
.at-sheet[hidden]{display:none}
.at-panel{background:#fff;border-radius:24px;max-width:640px;width:100%;max-height:86vh;overflow-y:auto;padding:18px 20px 22px;box-shadow:0 12px 48px rgba(0,0,0,.18)}
.at-ph{display:flex;justify-content:space-between;align-items:center}
.at-ph h2{margin:0;font-size:19px}
.at-panel h3{margin:16px 0 8px;font-size:14px;color:var(--dx-muted,#6e6e73);font-weight:600}
.at-topics{display:flex;flex-wrap:wrap;gap:8px}
.at-topics button{border:1px solid var(--dx-line2,#d2d2d7);background:#fff;border-radius:999px;padding:7px 14px;font:inherit;font-size:14px;cursor:pointer}
.at-topics button:hover,.at-gm:hover{border-color:var(--g)}
.at-games{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.at-gm{text-align:left;border:1px solid var(--dx-line,#e5e5ea);background:#fff;border-radius:16px;padding:12px 14px;font:inherit;cursor:pointer;display:flex;flex-direction:column;gap:3px;color:var(--dx-ink,#1d1d1f)}
.at-gm b{font-size:15px}.at-gm small{font-size:12.5px;color:var(--dx-muted,#6e6e73);line-height:1.45}
.at-gm .en{font-size:12px;color:var(--dx-faint,#86868b)}
.at-credit{margin:18px auto 0;max-width:620px;text-align:center;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Geeza Pro","Noto Naskh Arabic","Noto Sans Arabic",Tahoma,sans-serif;font-size:12px;line-height:1.8;color:var(--dx-faint,#86868b)}
.at-credit summary{display:inline-block;cursor:pointer;list-style:none;font-size:12px;color:#2a3439;opacity:.6;padding:2px 10px;border-radius:999px;border:1px solid var(--dx-line,#e5e5ea)}
.at-credit summary::-webkit-details-marker{display:none}
.at-credit summary:hover,.at-credit[open] summary{opacity:.9}
.at-credit p{margin:8px 0 0}
.at-credit a{color:#2a3439}
@media(max-width:720px){
  .at{padding:12px 14px 110px}.at-hero{padding:8px 0 0}.at-lead{font-size:15px}
  .at-box{border:0;padding:6px 0 0;margin-top:14px}
  .at-bar{flex-direction:column;align-items:stretch;gap:8px}.at-row{justify-content:space-between}.at-row+.at-row{margin-left:0}
  .at-chat{height:min(36vh,320px)}
  .at-msg{max-width:88%}
  .at-games{grid-template-columns:1fr}
  .at-sheet{align-items:flex-end;padding:0}.at-panel{border-radius:24px 24px 0 0;max-height:82vh;padding-bottom:calc(22px + env(safe-area-inset-bottom))}
}
.at [hidden],.at-sheet[hidden]{display:none!important}
.at-hero{padding-top:8px}.at-lead{margin-top:8px}
@media(min-width:721px){.at-chat{height:min(34vh,340px)}}
