/* smart_kefu 挂件样式 —— 全部类名 sk- 前缀防污染 (设计文档 §8) */
.sk-fab{position:fixed;right:22px;bottom:22px;width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#4F46E5,#7C3AED);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 24px rgba(79,70,229,.4);z-index:99998;border:none;font-size:24px;line-height:1;transition:transform .15s;}
.sk-fab:hover{transform:translateY(-3px);}
.sk-dot{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;border-radius:9px;background:#ef4444;color:#fff;font-size:11px;display:none;align-items:center;justify-content:center;padding:0 4px;}
.sk-dot.on{display:flex;}
.sk-panel{position:fixed;right:22px;bottom:90px;width:380px;height:540px;max-height:calc(100vh - 120px);background:#fff;border-radius:16px;box-shadow:0 20px 60px rgba(15,23,42,.25);display:none;flex-direction:column;overflow:hidden;z-index:99999;}
.sk-panel.sk-open{display:flex;}
.sk-head{background:linear-gradient(135deg,#4F46E5,#7C3AED);color:#fff;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;flex:none;}
.sk-head b{font-size:15px;font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px;}
.sk-head .sk-btns{display:flex;gap:6px;}
.sk-head button{background:rgba(255,255,255,.18);border:none;color:#fff;width:26px;height:26px;border-radius:6px;cursor:pointer;font-size:13px;line-height:1;}
.sk-head button.sk-tohuman{width:auto;}
.sk-body{flex:1;overflow-y:auto;padding:14px;background:#F6F7FB;-webkit-overflow-scrolling:touch;}
.sk-tip{font-size:11px;color:#94a3b8;text-align:center;margin:2px 0 10px;line-height:1.5;}
.sk-row{display:flex;margin:8px 0;}
.sk-row.sk-mine{justify-content:flex-end;}
.sk-bubble{max-width:78%;padding:9px 12px;border-radius:12px;font-size:13.5px;line-height:1.65;white-space:pre-wrap;word-break:break-word;background:#fff;color:#0f172a;box-shadow:0 1px 4px rgba(15,23,42,.06);position:relative;}
.sk-mine .sk-bubble{background:#4F46E5;color:#fff;}
.sk-bubble .sk-tag{display:inline-block;font-size:10px;padding:0 6px;border-radius:8px;margin-bottom:4px;background:#ecfdf5;color:#059669;}
.sk-bubble .sk-tag.sk-adm{background:#fef3c7;color:#b45309;}
.sk-time{font-size:10px;color:#94a3b8;margin-top:4px;}
.sk-actions{margin-top:6px;display:flex;gap:8px;font-size:11px;}
.sk-actions a{color:#64748b;cursor:pointer;text-decoration:none;}
.sk-actions a:hover{color:#4F46E5;}
.sk-quick{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0;}
.sk-quick button{border:1px solid #c7d2fe;background:#eef2ff;color:#4338ca;border-radius:99px;padding:4px 12px;font-size:12px;cursor:pointer;}
.sk-foot{flex:none;border-top:1px solid #e2e8f0;background:#fff;padding:8px;}
.sk-foot textarea{width:100%;border:1px solid #e2e8f0;border-radius:10px;resize:none;height:56px;font-size:13px;padding:8px 10px;outline:none;box-sizing:border-box;font-family:inherit;}
.sk-foot textarea:focus{border-color:#4F46E5;}
.sk-sendrow{display:flex;justify-content:space-between;align-items:center;margin-top:6px;}
.sk-meta{font-size:11px;color:#94a3b8;}
.sk-send{background:linear-gradient(135deg,#4F46E5,#7C3AED);color:#fff;border:none;border-radius:99px;padding:7px 22px;font-size:13px;cursor:pointer;}
.sk-send[disabled]{opacity:.5;cursor:not-allowed;}
.sk-cursor::after{content:"▌";animation:sk-blink .8s infinite;}
@keyframes sk-blink{50%{opacity:0;}}
@media (max-width:640px){
  .sk-panel{right:0;left:0;bottom:0;top:0;width:100%;height:100%;max-height:100%;border-radius:0;}
}

/* v1.3 转人工按钮与系统提示 */
.sk-head .sk-tohuman{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);color:#fff;border-radius:13px;font-size:12px;padding:0 10px;height:24px;line-height:22px;margin-right:6px;cursor:pointer;flex:none;white-space:nowrap}
.sk-head .sk-tohuman:hover{background:rgba(255,255,255,.28)}
.sk-row.sk-sysrow{justify-content:center}
.sk-row.sk-sysrow .sk-bubble{background:#eef6ee;color:#4a7a4a;font-size:12px;border:1px dashed #b7d8b7}

/* v1.20 图片消息: 缩略图 + 点击放大 + 发送图片按钮 */
.sk-img{display:block;max-width:220px;max-height:220px;border-radius:8px;cursor:zoom-in;margin:2px 0;}
.sk-mine .sk-bubble{padding:6px;}
.sk-imgbtn{background:#eef2ff;border:1px solid #c7d2fe;color:#4338ca;border-radius:8px;width:32px;height:32px;font-size:15px;cursor:pointer;flex:none;margin-right:8px;line-height:1;padding:0;}
.sk-imgbtn:hover{background:#e0e7ff;}
.sk-imgbtn[disabled]{opacity:.4;cursor:not-allowed;}
.sk-lightbox{position:fixed;inset:0;background:rgba(15,23,42,.82);z-index:100000;display:none;align-items:center;justify-content:center;cursor:zoom-out;}
.sk-lightbox img{max-width:94vw;max-height:92vh;border-radius:6px;background:#fff;}
