#xfd-chat-widget{position:fixed;right:18px;bottom:18px;z-index:99999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;}
#xfd-chat-widget .xfd-chat-ball{width:54px;height:54px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.22);font-size:14px;font-weight:600;user-select:none;}
#xfd-chat-widget .xfd-chat-badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#f00;color:#fff;font-size:12px;line-height:18px;text-align:center;display:none;}
#xfd-chat-widget .xfd-chat-panel{width:340px;height:460px;background:#fff;border-radius:10px;box-shadow:0 8px 30px rgba(0,0,0,.25);display:none;flex-direction:column;overflow:hidden;margin-bottom:12px;}
#xfd-chat-widget.xfd-open .xfd-chat-panel{display:flex;}
#xfd-chat-widget .xfd-chat-head{padding:12px 14px;color:#fff;font-size:15px;font-weight:600;display:flex;justify-content:space-between;align-items:center;}
#xfd-chat-widget .xfd-chat-close{cursor:pointer;font-size:20px;line-height:1;}
#xfd-chat-widget .xfd-chat-body{flex:1;overflow-y:auto;padding:12px;background:#f6f6f6;}
#xfd-chat-widget .xfd-chat-msg{margin-bottom:12px;display:flex;}
#xfd-chat-widget .xfd-chat-msg.xfd-me{justify-content:flex-end;}
#xfd-chat-widget .xfd-chat-bubble{max-width:80%;padding:8px 12px;border-radius:8px;background:#fff;font-size:14px;line-height:1.5;word-break:break-all;}
#xfd-chat-widget .xfd-me .xfd-chat-bubble{background:#95ec69;}
#xfd-chat-widget .xfd-system .xfd-chat-bubble{background:#e8e8e8;color:#666;font-size:12px;}
#xfd-chat-widget .xfd-chat-foot{border-top:1px solid #eee;padding:8px;background:#fff;}
#xfd-chat-widget textarea{width:100%;height:64px;border:1px solid #ddd;border-radius:6px;padding:8px;resize:none;box-sizing:border-box;font-size:14px;}
#xfd-chat-widget .xfd-chat-send{margin-top:6px;padding:6px 18px;border:0;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;}
@media (max-width:640px){#xfd-chat-widget{right:10px;bottom:10px;}#xfd-chat-widget .xfd-chat-panel{width:calc(100vw - 20px);height:70vh;}}
