/* 平台用户端 · 在线咨询悬浮组件 */
.msw-fab{position:fixed;right:22px;bottom:22px;z-index:900;width:54px;height:54px;border-radius:50%;border:none;cursor:pointer;
  background:linear-gradient(135deg,#00d4ff,#4a9eff);color:#06101f;display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 30px rgba(0,212,255,.35);transition:transform .2s,box-shadow .2s;}
.msw-fab:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 14px 36px rgba(0,212,255,.5);}
.msw-fab svg{width:25px;height:25px;}
.msw-fab .dot{position:absolute;top:3px;right:3px;width:11px;height:11px;border-radius:50%;background:#ff5d73;border:2px solid #0a0e1a;display:none;}
.msw-fab .dot.show{display:block;}

.msw-panel{position:fixed;right:22px;bottom:86px;z-index:901;width:360px;max-width:calc(100vw - 28px);height:520px;max-height:calc(100vh - 120px);
  background:#0d1424;border:1px solid rgba(0,212,255,.18);border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.55);
  display:none;flex-direction:column;overflow:hidden;animation:mswIn .22s ease;}
.msw-panel.open{display:flex;}
@keyframes mswIn{from{opacity:0;transform:translateY(14px) scale(.97);}to{opacity:1;transform:none;}}

.msw-head{padding:14px 16px;background:linear-gradient(135deg,rgba(0,212,255,.16),rgba(74,158,255,.12));border-bottom:1px solid rgba(0,212,255,.14);
  display:flex;align-items:center;gap:10px;}
.msw-head .ic{width:34px;height:34px;border-radius:10px;background:rgba(0,212,255,.15);display:flex;align-items:center;justify-content:center;color:#00d4ff;flex-shrink:0;}
.msw-head h4{font-size:14px;color:#fff;margin:0;font-weight:600;}
.msw-head p{font-size:11.5px;color:#8fa3c8;margin:2px 0 0;}
.msw-close{margin-left:auto;background:none;border:none;color:#8fa3c8;font-size:20px;cursor:pointer;line-height:1;padding:2px 4px;}
.msw-close:hover{color:#fff;}

.msw-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#0a0e1a;}
.msw-empty{margin:auto;text-align:center;color:#64748b;font-size:12.5px;padding:0 24px;line-height:1.8;}
.msw-empty .big{font-size:34px;display:block;margin-bottom:10px;}

.msw-msg{max-width:82%;padding:9px 12px;border-radius:12px;font-size:12.8px;line-height:1.65;white-space:pre-wrap;word-break:break-word;}
.msw-msg .t{display:block;font-size:10.5px;color:#7d8db0;margin-top:4px;}
.msw-msg.user{align-self:flex-end;background:linear-gradient(135deg,#00d4ff,#4a9eff);color:#06101f;border-bottom-right-radius:4px;}
.msw-msg.user .t{color:rgba(6,16,31,.6);}
.msw-msg.staff{align-self:flex-start;background:#1a2236;color:#dbe7ff;border:1px solid rgba(0,212,255,.12);border-bottom-left-radius:4px;}
.msw-msg.sys{align-self:center;background:transparent;color:#7d8db0;font-size:11px;padding:2px 10px;border:1px dashed #26314a;border-radius:20px;}

.msw-foot{border-top:1px solid rgba(0,212,255,.12);padding:11px 12px;background:#0d1424;}
.msw-cat{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px;}
.msw-cat button{font-size:11px;padding:4px 10px;border-radius:20px;border:1px solid #26314a;background:#0a0e1a;color:#8fa3c8;cursor:pointer;font-family:inherit;}
.msw-cat button.on{background:rgba(0,212,255,.15);border-color:#00d4ff;color:#00d4ff;}
.msw-input-row{display:flex;gap:8px;align-items:flex-end;}
.msw-input-row textarea{flex:1;resize:none;background:#0a0e1a;border:1px solid #26314a;border-radius:10px;color:#fff;font-size:12.8px;
  padding:9px 11px;font-family:inherit;outline:none;max-height:90px;line-height:1.5;}
.msw-input-row textarea:focus{border-color:#00d4ff;}
.msw-send{width:38px;height:38px;border-radius:10px;border:none;background:linear-gradient(135deg,#00d4ff,#4a9eff);color:#06101f;cursor:pointer;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.msw-send:disabled{opacity:.4;cursor:not-allowed;}
.msw-login-tip{font-size:12px;color:#8fa3c8;text-align:center;padding:18px;line-height:1.9;}
.msw-login-tip a{color:#00d4ff;}
.msw-toast{position:absolute;top:14px;left:50%;transform:translateX(-50%);background:#1a2236;border:1px solid rgba(0,212,255,.3);
  color:#dbe7ff;font-size:12px;padding:7px 14px;border-radius:20px;opacity:0;pointer-events:none;transition:opacity .25s;white-space:nowrap;z-index:5;}
.msw-toast.show{opacity:1;}
.msw-status{align-self:center;font-size:11px;padding:2px 10px;border-radius:10px;}
.msw-status.pending{background:rgba(245,166,35,.12);color:#f5a623;}
.msw-status.resolved{background:rgba(34,197,94,.12);color:#22c55e;}

/* 顶部下拉里的咨询入口 */

/* ---------- 未登录访客留言版 ---------- */
.msw-guest{height:auto;max-height:calc(100vh - 120px);}
.msw-guest .msw-body{flex:none;}
.msw-guest .msw-body label{display:block;font-size:12px;color:#aab8d6;margin:0 0 5px;}
.msw-guest .msw-body input,.msw-guest .msw-body textarea,.msw-guest .msw-body select{
  width:100%;box-sizing:border-box;background:#0a0e1a;border:1px solid #26314a;border-radius:10px;color:#fff;
  font-size:13px;padding:9px 11px;margin-bottom:11px;font-family:inherit;outline:none;}
.msw-guest .msw-body input:focus,.msw-guest .msw-body textarea:focus,.msw-guest .msw-body select:focus{border-color:#00d4ff;}
.msw-guest .msw-body textarea{resize:vertical;min-height:74px;line-height:1.5;}
.msw-grow{display:flex;gap:10px;}
.msw-grow>div{flex:1;}
.msw-gsubmit{width:100%;border:none;border-radius:10px;padding:11px;font-size:13.5px;font-weight:600;cursor:pointer;
  background:linear-gradient(135deg,#00d4ff,#4a9eff);color:#06101f;font-family:inherit;transition:opacity .2s;}
.msw-gsubmit:hover{opacity:.92;}
.msw-gsubmit:disabled{opacity:.55;cursor:not-allowed;}
.msw-guest .msw-login-tip{padding:10px 0 2px;font-size:11.5px;}
