/* 辅导台导览 V3 —— 与辅导台同一套墨绿 + 暖奶油配色 */
.xt-root{--xt-ink:#163b2c;--xt-green:#24513d;--xt-green2:#2f6b50;--xt-cream:#fffdf6;--xt-gold:#ffd66b;--xt-gold2:#f4b63c;--xt-dim:rgba(10,28,21,.66);
  position:fixed;inset:0;z-index:2147483000;font-family:inherit;color:var(--xt-ink);animation:xtFade .35s ease both}
.xt-root.xt-out{animation:xtFadeOut .3s ease both}
html.xt-open{overflow:hidden}
.xt-shade{position:fixed;inset:0;background:var(--xt-dim);opacity:0;transition:opacity .35s ease}
.xt-shade.on{opacity:1}
.xt-ring{position:fixed;left:50%;top:50%;width:0;height:0;border-radius:18px;pointer-events:none;opacity:0;
  box-shadow:0 0 0 2.5px var(--xt-gold),0 0 0 7px rgba(255,214,107,.28),0 0 0 200vmax var(--xt-dim);
  transition:left .5s cubic-bezier(.3,.75,.25,1),top .5s cubic-bezier(.3,.75,.25,1),width .5s cubic-bezier(.3,.75,.25,1),height .5s cubic-bezier(.3,.75,.25,1),opacity .3s}
.xt-ring::after{content:"";position:absolute;inset:-2px;border-radius:inherit;box-shadow:0 0 0 0 rgba(255,214,107,.7);animation:xtPulse 1.8s ease-out infinite}
.xt-ring.xt-big{border-radius:22px}
.xt-ring2{box-shadow:0 0 0 2px var(--xt-gold),0 0 18px 4px rgba(255,214,107,.55);border-radius:12px;background:rgba(255,236,170,.10)}
.xt-ring2::after{animation-delay:.6s}
.xt-arrow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.xt-arrow-path{fill:none;stroke:var(--xt-gold);stroke-width:2.6;stroke-linecap:round;filter:drop-shadow(0 2px 6px rgba(0,0,0,.35))}

.xt-card{position:fixed;left:0;top:0;width:360px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;padding:18px 20px 16px;border-radius:24px;
  background:linear-gradient(160deg,#fffef9 0%,#fbf6e6 100%);box-shadow:0 24px 60px rgba(4,20,14,.38),0 2px 0 rgba(255,255,255,.9) inset,0 0 0 1px rgba(36,81,61,.10);
  transition:transform .5s cubic-bezier(.3,.75,.25,1)}
.xt-card.xt-in .xt-title,.xt-card.xt-in .xt-text{animation:xtRise .45s cubic-bezier(.3,.75,.25,1) both}
.xt-card.xt-in .xt-text{animation-delay:.08s}
.xt-card.xt-nudge{animation:xtNudge .4s ease}
.xt-card.xt-center{width:380px}
.xt-card.xt-center .xt-head{flex-direction:column;align-items:center;text-align:center;gap:10px}
.xt-card.xt-center .xt-avatar{width:92px;height:92px}
.xt-card.xt-center .xt-who{align-items:center}
.xt-card.xt-center .xt-title,.xt-card.xt-center .xt-text{text-align:center}
.xt-card.xt-center .xt-actions{justify-content:center}
.xt-card.xt-center .xt-skip-all{position:absolute;left:0;top:0}
.xt-card.xt-center .xt-sound{position:absolute;right:40px;top:0}
.xt-card.xt-center .xt-close{position:absolute;right:0;top:0}

.xt-head{display:flex;align-items:center;gap:10px;margin-bottom:10px;position:relative;flex:none}
.xt-avatar{position:relative;width:52px;height:52px;flex:none;border-radius:50%;padding:3px;background:conic-gradient(from 200deg,var(--xt-gold),#9be3c4,var(--xt-green2),var(--xt-gold));transition:width .4s,height .4s}
.xt-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block;background:#e8eadf;border:2px solid #fffdf6;box-sizing:border-box}
.xt-wave{position:absolute;right:-4px;bottom:-2px;display:flex;gap:2px;align-items:flex-end;height:16px;padding:3px 5px;border-radius:999px;background:var(--xt-green);opacity:0;transform:scale(.6);transition:.25s}
.xt-wave i{width:3px;height:4px;border-radius:2px;background:#fff}
.xt-speaking .xt-wave{opacity:1;transform:none}
.xt-speaking .xt-wave i{animation:xtBar .7s ease-in-out infinite}
.xt-speaking .xt-wave i:nth-child(2){animation-delay:.15s}.xt-speaking .xt-wave i:nth-child(3){animation-delay:.3s}
.xt-speaking .xt-avatar{animation:xtBreath 1.6s ease-in-out infinite}
.xt-who{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.xt-who b{font-size:15px;letter-spacing:.02em}
.xt-count{font-size:12px;color:#7b8b80;font-variant-numeric:tabular-nums}
.xt-skip-all{height:30px;padding:0 11px;border-radius:999px;border:1px solid rgba(36,81,61,.18);background:rgba(36,81,61,.07);color:var(--xt-green);font-size:12.5px;font-weight:700;cursor:pointer;flex:none;white-space:nowrap}
.xt-skip-all:hover{background:rgba(36,81,61,.15);color:var(--xt-ink)}
.xt-sound,.xt-close{width:34px;height:34px;border-radius:50%;border:0;background:rgba(36,81,61,.08);color:var(--xt-green);display:grid;place-items:center;cursor:pointer;flex:none}
.xt-sound svg{width:18px;height:18px}.xt-sound.off{color:#9aa79f}
.xt-close{font-size:16px;line-height:1;font-weight:700;color:#5a7266}
.xt-sound:hover,.xt-close:hover{background:rgba(36,81,61,.15);color:var(--xt-ink)}

.xt-title{margin:2px 0 6px;font-size:20px;line-height:1.3;font-weight:800;letter-spacing:.01em;color:var(--xt-ink);flex:none}
.xt-text{margin:0;font-size:15.5px;line-height:1.65;color:#3d5448;flex:0 1 auto;min-height:0;overflow-y:auto}
.xt-menu{list-style:none;margin:8px 0 0;padding:0 4px 0 0;display:grid;gap:4px;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.xt-menu[hidden]{display:none}
.xt-menu li{display:flex;gap:10px;align-items:baseline;padding:7px 10px;border-radius:12px;font-size:14px;color:#4a5e53;animation:xtRise .4s cubic-bezier(.3,.75,.25,1) both;animation-delay:var(--d);transition:background .25s,color .25s,transform .25s}
.xt-menu li b{flex:none;min-width:5.2em;color:var(--xt-ink);font-weight:700}
.xt-menu li.on{background:linear-gradient(90deg,rgba(255,214,107,.42),rgba(255,214,107,.08));color:var(--xt-ink);transform:translateX(3px)}
.xt-dots{display:flex;gap:6px;margin:14px 0 0;flex:none}
.xt-dots:empty{display:none}
.xt-dots i{height:6px;width:6px;border-radius:999px;background:rgba(36,81,61,.18);transition:width .35s,background .35s}
.xt-dots i.on{background:var(--xt-green2)}
.xt-dots i.on:last-of-type{width:18px;background:var(--xt-gold2)}
.xt-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-top:14px;flex:none}
.xt-btn{font:inherit;border:0;cursor:pointer;border-radius:999px;padding:10px 18px;font-size:15px;font-weight:700;transition:transform .15s,box-shadow .2s,background .2s}
.xt-btn:active{transform:scale(.97)}
.xt-primary{background:linear-gradient(180deg,var(--xt-green2),var(--xt-green));color:#fff;box-shadow:0 6px 16px rgba(36,81,61,.32),0 1px 0 rgba(255,255,255,.25) inset}
.xt-primary:hover{box-shadow:0 8px 22px rgba(36,81,61,.42)}
.xt-primary:focus-visible,.xt-ghost:focus-visible{outline:3px solid var(--xt-gold);outline-offset:2px}
.xt-ghost{background:rgba(36,81,61,.08);color:var(--xt-green)}
.xt-ghost:hover{background:rgba(36,81,61,.14)}
.xt-link{background:none;color:#8a978f;font-weight:600;padding:10px 6px;margin-right:auto}
.xt-center .xt-actions{flex-direction:column;align-items:stretch}
.xt-center .xt-actions .xt-btn{width:100%;padding:13px 18px}
.xt-tip{display:block;text-align:center;font-size:12px;color:#8a978f;margin-top:2px}

@media (max-width:640px){.xt-card,.xt-card.xt-center{width:calc(100vw - 32px)!important;padding:16px}.xt-title{font-size:18px}.xt-text{font-size:15px}}
@media (max-height:700px){
  .xt-card{padding:14px 16px 12px;border-radius:20px}
  .xt-head{margin-bottom:6px;gap:8px}
  .xt-avatar{width:42px;height:42px}
  .xt-card.xt-center .xt-avatar{width:64px;height:64px}
  .xt-title{font-size:17px;margin:0 0 4px}
  .xt-text{font-size:14px;line-height:1.5}
  .xt-menu{margin-top:4px;gap:2px}
  .xt-menu li{padding:5px 8px;font-size:13px;border-radius:9px}
  .xt-dots{margin-top:8px}
  .xt-actions{margin-top:10px;gap:6px}
  .xt-btn{padding:8px 14px;font-size:14px}
  .xt-center .xt-actions .xt-btn{padding:10px 14px}
}
@media (prefers-reduced-motion:reduce){.xt-root *,.xt-root{animation:none!important;transition:none!important}}

@keyframes xtFade{from{opacity:0}}
@keyframes xtFadeOut{to{opacity:0}}
@keyframes xtRise{from{opacity:0;transform:translateY(8px)}}
@keyframes xtPulse{0%{box-shadow:0 0 0 0 rgba(255,214,107,.65)}100%{box-shadow:0 0 0 16px rgba(255,214,107,0)}}
@keyframes xtBar{0%,100%{height:4px}50%{height:11px}}
@keyframes xtBreath{0%,100%{box-shadow:0 0 0 0 rgba(255,214,107,.0)}50%{box-shadow:0 0 0 6px rgba(255,214,107,.35)}}
@keyframes xtNudge{40%{box-shadow:0 24px 60px rgba(4,20,14,.38),0 0 0 4px var(--xt-gold)}}
/* 菜单里的「看看怎么用」 */
a.xt-nav-replay::before{content:"";display:inline-block;width:16px;height:16px;margin-right:8px;vertical-align:-3px;border-radius:50%;background:radial-gradient(circle at 50% 50%,#fff 0 2px,transparent 3px),conic-gradient(var(--xt-gold,#ffd66b),#7ee8d2,var(--xt-gold,#ffd66b))}

/* 菜单 v2 的左上角菜单/返回钮和导览同一层级：导览开着时先收起，免得压在遮罩上 */
html.xt-open .xq-b{visibility:hidden!important}
