#ls-chat-btn{position:fixed;right:20px;bottom:20px;width:58px;height:58px;border-radius:50%;background:#fd560f;color:#fff;border:none;box-shadow:0 6px 20px rgba(253,86,15,.4);cursor:pointer;z-index:999998;display:flex;align-items:center;justify-content:center;font-size:26px;transition:transform .15s ease}
#ls-chat-btn:hover{transform:scale(1.06)}
#ls-chat-btn .ls-badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;border-radius:10px;background:#e53935;color:#fff;font-size:12px;line-height:20px;text-align:center;padding:0 5px;display:none}
#ls-chat-panel{position:fixed;right:20px;bottom:88px;width:360px;max-width:calc(100vw - 32px);height:520px;max-height:calc(100vh - 120px);background:#fff;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.18);z-index:999999;display:none;flex-direction:column;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif}
#ls-chat-panel.open{display:flex}
.ls-chat-head{background:#fd560f;color:#fff;padding:12px 14px;display:flex;align-items:center;justify-content:space-between}
.ls-chat-head h4{margin:0;font-size:15px;font-weight:600}
.ls-chat-head small{display:block;font-size:11px;opacity:.85;margin-top:2px}
.ls-chat-head .ls-actions{display:flex;gap:10px;align-items:center}
.ls-chat-head button{background:transparent;border:0;color:#fff;font-size:16px;cursor:pointer;line-height:1;padding:2px}
.ls-chat-body{flex:1;overflow-y:auto;padding:12px;background:#f7f8fa}
.ls-msg{margin-bottom:10px;display:flex}
.ls-msg .bubble{max-width:78%;padding:8px 11px;border-radius:10px;font-size:13px;line-height:1.5;word-break:break-word;white-space:pre-wrap}
.ls-msg.customer{justify-content:flex-end}
.ls-msg.customer .bubble{background:#fd560f;color:#fff;border-bottom-right-radius:2px}
.ls-msg.admin .bubble{background:#fff;color:#333;border:1px solid #eceff3;border-bottom-left-radius:2px}
.ls-msg.system{justify-content:center}
.ls-msg.system .bubble{background:#eef1f5;color:#77808c;font-size:12px;max-width:90%;text-align:center}
.ls-msg .time{font-size:10px;color:#b3b9c2;margin-top:3px;text-align:right}
.ls-chat-start{padding:16px;background:#fff}
.ls-chat-start p{font-size:13px;color:#555;margin-bottom:10px}
.ls-chat-start input{width:100%;border:1px solid #dfe3e8;border-radius:8px;padding:8px 10px;font-size:13px;margin-bottom:8px;outline:none}
.ls-chat-start input:focus{border-color:#fd560f}
.ls-chat-start button{width:100%;border:0;border-radius:8px;background:#fd560f;color:#fff;padding:9px;font-size:14px;cursor:pointer}
.ls-chat-foot{border-top:1px solid #eef1f5;padding:8px;display:flex;gap:8px;background:#fff}
.ls-chat-foot textarea{flex:1;resize:none;height:40px;max-height:90px;border:1px solid #dfe3e8;border-radius:8px;padding:9px 10px;font-size:13px;outline:none;line-height:1.4;font-family:inherit}
.ls-chat-foot textarea:focus{border-color:#fd560f}
.ls-chat-foot .send{border:0;border-radius:8px;background:#fd560f;color:#fff;padding:0 16px;font-size:13px;cursor:pointer}
.ls-chat-foot .send:disabled{opacity:.5;cursor:default}
.ls-chat-tip{font-size:11px;color:#98a1ad;text-align:center;padding:4px 8px 8px}
@keyframes ls-pop{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
#ls-chat-panel.open{animation:ls-pop .18s ease-out}

/* 图片消息 */
.ls-msg .bubble .ls-img{display:block;max-width:200px;max-height:200px;border-radius:8px;margin-bottom:4px;cursor:zoom-in}
.ls-chat-foot .ls-attach{border:1px solid #dfe3e8;background:#fff;border-radius:8px;width:40px;height:40px;font-size:16px;cursor:pointer;line-height:1}
.ls-chat-foot .ls-attach:hover{border-color:#fd560f;color:#fd560f}

/* 日期分隔 */
.ls-date{text-align:center;font-size:11px;color:#a8b0ba;margin:10px 0 6px}
