/* 阿贝 · 官网智能接待（2026-10-22） */
#abeiLauncher{position:fixed;right:20px;top:calc(50% - 70px);width:140px;height:140px;border:0;background:transparent;cursor:pointer;padding:0;touch-action:none;
 filter:drop-shadow(0 8px 18px rgba(37,99,235,.25));z-index:9998}
#abeiLauncher video,#abeiLauncher img{width:100%;height:100%;object-fit:contain;pointer-events:none}
#abeiLauncher .abei-dot{position:absolute;right:8px;top:10px;width:12px;height:12px;border-radius:50%;background:#16a34a;border:2px solid #fff}
#abeiLauncher .abei-dot.off{background:#9ca3af}
#abeiPanel{position:fixed;right:172px;top:calc(50% - 280px);width:380px;height:560px;background:#fff;border-radius:18px;
 box-shadow:0 18px 50px rgba(15,23,42,.22);display:none;flex-direction:column;overflow:hidden;z-index:9998;
 font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#1f2937}
#abeiPanel.open{display:flex}
#abeiPanel .abei-hd{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #e5e7eb;
 background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff}
#abeiPanel .abei-hd img{width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.18);object-fit:contain}
#abeiPanel .abei-nm{font-weight:600;font-size:15px;line-height:1.2}
#abeiPanel .abei-st{font-size:12px;opacity:.9}
#abeiPanel .abei-x{margin-left:6px;background:rgba(255,255,255,.16);border:0;color:#fff;width:28px;height:28px;border-radius:8px;cursor:pointer;font-size:15px}
#abeiPanel .abei-human{margin-left:auto;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.45);color:#fff;height:28px;padding:0 10px;border-radius:14px;cursor:pointer;font-size:12px;white-space:nowrap;line-height:1}
#abeiPanel .abei-human:hover{background:rgba(255,255,255,.3)}
#abeiPanel .abei-human:disabled{opacity:.7;cursor:default}
#abeiBody{flex:1;overflow-y:auto;padding:14px;background:#f8fafc}
#abeiPanel .msg{display:flex;gap:8px;margin-bottom:12px;align-items:flex-end}
#abeiPanel .msg.me{flex-direction:row-reverse}
#abeiPanel .msg img.av{width:30px;height:30px;object-fit:contain;flex:none}
#abeiPanel .bub{max-width:78%;background:#fff;border:1px solid #e5e7eb;border-radius:14px 14px 14px 4px;padding:10px 12px;font-size:13.5px;line-height:1.65;word-break:break-word}
#abeiPanel .msg.me .bub{background:#2563eb;color:#fff;border-color:#2563eb;border-radius:14px 14px 4px 14px}
#abeiPanel .card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px;margin:8px 0 12px 38px;font-size:13px}
#abeiPanel .card h4{margin:0 0 6px;font-size:13px}
#abeiPanel .card p{margin:0 0 10px;color:#6b7280;line-height:1.6}
#abeiPanel .card a.btn,#abeiPanel .card button.btn{display:inline-block;padding:8px 12px;border-radius:9px;background:#2563eb;color:#fff;
 text-decoration:none;font-size:12.5px;border:0;cursor:pointer;margin:0 8px 4px 0;font-family:inherit}
#abeiPanel .card button.btn.ghost{background:#fff;color:#2563eb;border:1px solid #2563eb}
#abeiPanel .pick .q{font-size:13px;color:#6b7280;margin-bottom:10px}
#abeiPanel .pick button{display:block;width:100%;text-align:left;padding:11px 12px;margin-bottom:8px;border:1px solid #e5e7eb;
 background:#fff;border-radius:12px;font-size:13.5px;cursor:pointer;font-family:inherit;transition:.15s}
#abeiPanel .pick button:hover{border-color:#2563eb;box-shadow:0 2px 8px rgba(37,99,235,.12)}
#abeiPanel .pick button small{display:block;color:#6b7280;font-size:12px;margin-top:2px}
#abeiPanel .quick{display:flex;flex-wrap:wrap;gap:8px;margin-left:38px}
#abeiPanel .quick button{background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:7px 12px;font-size:12.5px;
 cursor:pointer;color:#374151;font-family:inherit}
#abeiPanel .quick button:hover{border-color:#2563eb;color:#2563eb}
#abeiPanel .abei-ft{border-top:1px solid #e5e7eb;padding:10px 12px;background:#fff}
#abeiPanel .abei-in{display:flex;gap:8px}
#abeiPanel .abei-in input{flex:1;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;font-size:13.5px;outline:0;font-family:inherit}
#abeiPanel .abei-in input:focus{border-color:#2563eb}
#abeiPanel .abei-in button{background:#2563eb;color:#fff;border:0;border-radius:10px;padding:0 16px;font-size:13.5px;cursor:pointer;font-family:inherit}
#abeiPanel .abei-tip{font-size:11.5px;color:#9ca3af;margin-top:8px;line-height:1.5}
#abeiPanel .typing{display:inline-flex;gap:3px;align-items:center}
#abeiPanel .typing i{width:5px;height:5px;border-radius:50%;background:#9ca3af;animation:abeiBl 1s infinite}
#abeiPanel .typing i:nth-child(2){animation-delay:.15s}
#abeiPanel .typing i:nth-child(3){animation-delay:.3s}
@keyframes abeiBl{0%,80%,100%{opacity:.3}40%{opacity:1}}
#abeiPanel .abei-ph{width:100%;padding:9px 11px;border:1px solid #e5e7eb;border-radius:9px;font-size:13px;margin-bottom:8px;font-family:inherit}
#abeiPanel .abei-consent{display:flex;gap:7px;align-items:flex-start;font-size:12px;color:#6b7280;margin-bottom:10px;line-height:1.5}
#abeiPanel .abei-consent input{margin-top:2px}
@media (max-width:575.98px){
 #abeiPanel{right:0;left:0;bottom:0;width:100%;height:92vh;border-radius:16px 16px 0 0}
 #abeiLauncher{width:96px;height:96px;right:14px}
}
@media (prefers-reduced-motion:reduce){
 #abeiLauncher video{display:none}
 #abeiLauncher{background:url(/static/abei/abei_idle.png) center/contain no-repeat}
}

/* ===== 显眼包模式（2026-10-22）===== */
#abeiLauncher .abei-bub{position:absolute;right:6px;bottom:150px;width:262px;background:#fff;border:1px solid #e5e7eb;
 border-radius:14px;padding:11px 30px 11px 13px;font-size:13.5px;line-height:1.6;color:#1f2937;text-align:left;
 box-shadow:0 10px 28px rgba(15,23,42,.16);opacity:0;transform:translateY(8px) scale(.96);pointer-events:none;
 transition:opacity .25s,transform .25s;font-weight:400}
#abeiLauncher .abei-bub.show{opacity:1;transform:none;pointer-events:auto}
#abeiLauncher .abei-bub:after{content:'';position:absolute;right:26px;bottom:-7px;width:14px;height:14px;background:#fff;
 border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;transform:rotate(45deg)}
#abeiLauncher .abei-bub b{color:#2563eb}
#abeiLauncher .abei-bub .abei-bubx{position:absolute;right:6px;top:4px;border:0;background:transparent;color:#9ca3af;
 font-size:14px;cursor:pointer;line-height:1;padding:4px}
#abeiLauncher .abei-waveimg{display:none;width:100%;height:100%;object-fit:contain;pointer-events:none}
#abeiLauncher.waving video{display:none}
#abeiLauncher.waving .abei-waveimg{display:block;animation:abeiWave .6s ease-in-out 5 alternate;transform-origin:50% 92%}
@keyframes abeiWave{from{transform:rotate(-6deg) translateY(0)}to{transform:rotate(6deg) translateY(-5px)}}
#abeiLauncher:hover{filter:drop-shadow(0 12px 26px rgba(37,99,235,.4))}

/* 拖动抓手 & 大号显示 */
#abeiLauncher{cursor:grab}
#abeiLauncher.dragging{cursor:grabbing}
#abeiLauncher .abei-dot{width:14px;height:14px;right:12px;top:14px}
.abei-tag{display:inline-block;font-size:10.5px;font-weight:400;padding:1px 6px;border-radius:6px;
 background:rgba(255,255,255,.22);margin-left:4px;vertical-align:1px}
/* 圆形头像（孙老师 2026-10-22：凸显脑袋，不被蓝底压住） */
#abeiPanel .abei-avatar{width:42px;height:42px;border-radius:50%;background:#fff;overflow:hidden;flex:none;
 display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px rgba(255,255,255,.65),0 2px 6px rgba(15,23,42,.18)}
#abeiPanel .abei-avatar img{width:112%;height:112%;object-fit:contain;display:block}
#abeiPanel .msg img.av{width:30px;height:30px;border-radius:50%;background:#fff;padding:1px;object-fit:contain;
 box-shadow:0 0 0 1px rgba(15,23,42,.06)}
/* 动态展示片模式（孙老师 2026-10-22）：用 10 秒视频替代静态图 */
#abeiLauncher.mode-video{background:#e2e1e4;border-radius:28px;overflow:visible;
 box-shadow:0 12px 30px rgba(15,23,42,.22),0 0 0 6px #fff,0 0 0 7px rgba(15,23,42,.06)}
#abeiLauncher.mode-video video{border-radius:28px;object-fit:cover;width:100%;height:100%;display:block;overflow:hidden}
#abeiLauncher.mode-video .abei-waveimg{display:none!important}
#abeiLauncher.mode-video .abei-dot{right:10px;top:10px}
/* 语音输入 + 头像放大（孙老师 2026-10-22） */
#abeiPanel .abei-in button.abei-mic{background:#f3f4f6;color:#374151;border:1px solid #e5e7eb;border-radius:10px;width:42px;
 font-size:16px;line-height:1;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center}
#abeiPanel .abei-in button.abei-mic svg{width:19px;height:19px;display:block;color:inherit}
#abeiPanel .abei-in button.abei-mic.on svg{stroke:#fff}
#abeiPanel .abei-in button.abei-mic:hover{background:#eef2ff;border-color:#2563eb}
#abeiPanel .abei-in button.abei-mic.on{background:#dc2626;color:#fff;border-color:#dc2626;animation:abeiMic .9s infinite}
@keyframes abeiMic{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.5)}50%{box-shadow:0 0 0 8px rgba(220,38,38,0)}}
#abeiPanel .abei-avatar{cursor:zoom-in}
#abeiZoom{position:absolute;inset:0;background:rgba(15,23,42,.72);display:flex;flex-direction:column;
 align-items:center;justify-content:center;z-index:20;cursor:zoom-out}
#abeiZoom img{width:78%;max-width:300px;background:#fff;border-radius:24px;padding:10px;box-shadow:0 20px 50px rgba(0,0,0,.35)}
#abeiZoom .abei-zoom-tip{color:#e5e7eb;font-size:12px;margin-top:12px}
/* 朗读按钮 */
#abeiPanel .bub{position:relative;padding-right:30px}
#abeiPanel .abei-say{position:absolute;right:4px;bottom:4px;width:24px;height:24px;border-radius:8px;border:0;
 background:transparent;color:#9ca3af;font-size:13px;cursor:pointer;opacity:.55;transition:.15s}
#abeiPanel .abei-say:hover{background:#eef2ff;color:#2563eb;opacity:1}
#abeiPanel .abei-say.on{background:#2563eb;color:#fff;opacity:1;animation:abeiSay .9s infinite}
#abeiPanel .msg.me .abei-say{display:none}
@keyframes abeiSay{0%,100%{box-shadow:0 0 0 0 rgba(37,99,235,.45)}50%{box-shadow:0 0 0 7px rgba(37,99,235,0)}}
/* 放大按钮 */
#abeiLauncher .abei-expand{position:absolute;left:-6px;top:-6px;width:28px;height:28px;border-radius:50%;
 border:0;background:#fff;color:#2563eb;font-size:14px;line-height:1;cursor:pointer;opacity:.9;transition:.15s;
 display:flex;align-items:center;justify-content:center;
 box-shadow:0 2px 8px rgba(15,23,42,.2)}
#abeiLauncher:hover .abei-expand{opacity:1;transform:scale(1.08)}
/* 视频放大窗 */
#abeiVZoom{position:fixed;z-index:10000;background:#fff;border-radius:16px;overflow:hidden;
 box-shadow:0 20px 60px rgba(15,23,42,.35),0 0 0 1px rgba(15,23,42,.06);touch-action:none;user-select:none}
#abeiVZoom .abei-vz-hd{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 14px;
 background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font-size:13px;cursor:move}
#abeiVZoom .abei-vz-x{border:0;background:rgba(255,255,255,.18);color:#fff;width:28px;height:28px;border-radius:8px;cursor:pointer}
#abeiVZoom video{width:100%;height:calc(100% - 44px);object-fit:contain;background:#e2e1e4;display:block}
#abeiVZoom .abei-vz-grip{position:absolute;right:0;bottom:0;width:26px;height:26px;cursor:nwse-resize;
 background:linear-gradient(135deg,transparent 50%,#2563eb 50%);border-bottom-right-radius:16px;opacity:.75}

#abeiLauncher .abei-bub,#abeiLauncher .abei-expand,#abeiLauncher .abei-dot{z-index:3}
#abeiLauncher.mode-video .abei-bub{bottom:158px}

