#dy-chat{--chat-blue:#2855df;--chat-ink:#1a2843;--chat-muted:#8b96aa;font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:var(--chat-ink);font-size:13px}
#dy-chat [hidden]{display:none!important}#dy-chat svg{width:20px;height:20px;flex-shrink:0}#dy-chat button{font:inherit}#dy-chat button:focus-visible,#dy-chat input:focus-visible,#dy-chat textarea:focus-visible{outline:2px solid #7396f5;outline-offset:3px}
#dy-chat .dy-chat-launcher{position:fixed;right:22px;bottom:42px;z-index:1100;width:62px;height:62px;border-radius:22px;background:linear-gradient(145deg,#3d70f3,#244ace);box-shadow:0 8px 28px #254ed738,0 0 0 5px #ffffffb0;color:white;border:1px solid #ffffff85;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;transition:transform .18s,box-shadow .18s}
#dy-chat .dy-chat-launcher:hover{transform:translateY(-3px);box-shadow:0 12px 32px #254ed750,0 0 0 5px #ffffffb0}#dy-chat .dy-chat-launcher svg{width:24px;height:24px}.dy-chat-launch-label{font-size:10px;letter-spacing:2px;padding-left:2px}
#dy-chat .dy-chat-badge{position:absolute;top:-5px;right:-5px;border-radius:20px;background:#ed5c65;color:#fff;padding:2px 5px;min-width:20px;border:2px solid #fff;font-size:10px;line-height:14px}
#dy-chat .dy-chat-panel{position:fixed;z-index:1100;right:22px;bottom:120px;width:660px;height:min(650px,calc(100dvh - 156px));min-height:300px;border:1px solid #dfe7f6;border-radius:22px;background:#fff;box-shadow:0 24px 85px #1a33502b,0 5px 22px #293e5914;overflow:hidden;animation:dy-chat-in .2s ease-out}
@keyframes dy-chat-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
#dy-chat .dy-chat-top{height:64px;padding:0 19px 0 23px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f7;background:linear-gradient(115deg,#fff,#f3f6ff)}
#dy-chat .dy-chat-brand{display:flex;align-items:center;gap:10px}#dy-chat .dy-chat-brand>svg{color:var(--chat-blue)}#dy-chat .dy-chat-brand strong{font-size:17px;letter-spacing:1px}#dy-chat .dy-chat-brand>span{font-size:11px;color:#8b99b2;margin-left:8px}
#dy-chat .dy-chat-icon{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:9px;color:#8692a8;padding:5px}#dy-chat .dy-chat-icon:hover{background:#eaf0fe;color:var(--chat-blue)}
#dy-chat .dy-chat-body{height:calc(100% - 64px);display:grid;grid-template-columns:205px 1fr}#dy-chat .dy-chat-sidebar{display:flex;flex-direction:column;min-height:0;background:#f8faff;border-right:1px solid #edf0f7;padding:18px 10px 0}
#dy-chat .dy-chat-me{display:flex;align-items:center;gap:10px;padding:0 7px 17px;min-height:60px}#dy-chat .dy-chat-me strong{display:block;font-size:13px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#dy-chat .dy-chat-me small{display:block;font-size:10px;color:#9ba6ba;margin-top:4px}
#dy-chat .dy-chat-avatar{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e3ebff,#d7e3ff);color:#4e6bbe;border:1px solid #dce6fb;width:38px;height:38px;border-radius:13px;flex-shrink:0;font-weight:650;overflow:hidden}#dy-chat .dy-chat-avatar img{width:100%;height:100%;object-fit:cover}
#dy-chat .dy-chat-avatar-button{position:relative;background:none;border:0;padding:0;border-radius:13px}#dy-chat .dy-chat-avatar-button>span:last-child{position:absolute;right:-4px;bottom:-3px;width:18px;height:18px;border-radius:6px;background:#fff;border:1px solid #e1e8f7;display:flex;align-items:center;justify-content:center;color:#6980b6}#dy-chat .dy-chat-avatar-button svg{width:12px;height:12px}
#dy-chat .dy-chat-search{height:34px;display:flex;align-items:center;gap:6px;border-radius:10px;border:1px solid #e6ebf5;padding:0 10px;background:#fff;margin:0 4px 12px;color:#a0acc1}#dy-chat .dy-chat-search svg{width:14px;height:14px}#dy-chat .dy-chat-search input{width:100%;min-width:0;border:0;outline:none;background:transparent;font-size:11px;color:#53627d;padding:0}#dy-chat input::placeholder,#dy-chat textarea::placeholder{color:#a3aec0}
#dy-chat .dy-chat-contacts{overflow:auto;flex:1;scrollbar-width:thin;scrollbar-color:#dde4f1 transparent}#dy-chat .dy-chat-contact{width:100%;display:flex;align-items:center;gap:10px;border:1px solid transparent;background:none;text-align:left;padding:10px 9px;border-radius:13px;margin:0 0 5px;transition:background .15s}#dy-chat .dy-chat-contact:hover{background:#eef3ff}#dy-chat .dy-chat-contact.selected{background:#e9efff;border-color:#dce6ff}#dy-chat .dy-chat-contact>span:nth-child(2){min-width:0;flex:1}#dy-chat .dy-chat-contact strong{font-size:12px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#dy-chat .dy-chat-contact small{font-size:10px;color:#9aa5b8;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px;max-width:100px}#dy-chat .dy-chat-contact em{font-size:9px;font-style:normal;color:#a0a8b6;margin-left:5px}#dy-chat .dy-chat-unread{background:#3562e3;color:#fff;border-radius:12px;font-size:9px;padding:2px 5px;min-width:16px;text-align:center;font-weight:500}#dy-chat .dy-chat-retention{text-align:center;color:#a4adc0;font-size:10px;padding:17px 0 15px}#dy-chat .dy-chat-list-empty{padding:25px 10px;text-align:center;color:#a1acc0;font-size:11px}
#dy-chat .dy-chat-conversation{display:flex;flex-direction:column;position:relative;min-width:0;min-height:0;background:#fff}#dy-chat .dy-chat-peer{height:67px;flex-shrink:0;display:flex;align-items:center;gap:10px;padding:0 20px;border-bottom:1px solid #f0f2f8}#dy-chat .dy-chat-peer .dy-chat-avatar{width:32px;height:32px;border-radius:11px;font-size:12px}#dy-chat .dy-chat-peer strong{display:block;font-size:13px}#dy-chat .dy-chat-peer small{display:block;font-size:10px;color:#a4adbd;margin-top:4px}#dy-chat .dy-chat-peer>span{font-size:12px;color:#99a6bf}#dy-chat .dy-chat-back{display:none}
#dy-chat .dy-chat-messages{padding:16px 18px 12px;flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#e2e8f4 transparent;overscroll-behavior:contain}#dy-chat .dy-chat-welcome{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-bottom:40px}#dy-chat .dy-chat-welcome>span{width:70px;height:70px;border-radius:25px;display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#f0f5ff,#e4ebff);color:#577ce5;margin-bottom:22px}#dy-chat .dy-chat-welcome svg{width:32px;height:32px}#dy-chat .dy-chat-welcome strong{font-size:15px;font-weight:500;color:#677a9b;letter-spacing:1px}#dy-chat .dy-chat-welcome p{font-size:11px;color:#a8b2c5;margin-top:11px}#dy-chat .dy-chat-empty{text-align:center;color:#b2bccd;font-size:11px;padding:35px 0}
#dy-chat .dy-chat-date{text-align:center;color:#adb7c8;font-size:10px;margin:3px 0 18px}#dy-chat .dy-chat-message{display:flex;gap:9px;margin-bottom:17px;align-items:flex-start}#dy-chat .dy-chat-message>.dy-chat-avatar{width:29px;height:29px;border-radius:10px;font-size:11px;margin-top:20px}#dy-chat .dy-chat-message-main{max-width:calc(100% - 38px);min-width:0}#dy-chat .dy-chat-message-meta{display:flex;align-items:center;gap:8px;color:#9ea9bb;font-size:9px;margin-bottom:6px;line-height:13px}#dy-chat .dy-chat-message-meta span{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#dy-chat .dy-chat-bubble{background:#f2f5fa;border:1px solid #edf1f7;border-radius:3px 13px 13px 13px;padding:10px 13px;color:#465572;line-height:1.65;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}#dy-chat .dy-chat-message.mine{flex-direction:row-reverse}#dy-chat .mine .dy-chat-message-meta{justify-content:flex-end}#dy-chat .mine .dy-chat-bubble{background:#edf2ff;border-color:#e2eaff;color:#355cb5;border-radius:13px 3px 13px 13px}#dy-chat .dy-chat-bubble.media{padding:4px;background:#f6f8fd;overflow:hidden}#dy-chat .dy-chat-picture{background:none;border:0;padding:0;display:block;line-height:0}#dy-chat .dy-chat-picture img{max-width:235px;max-height:220px;width:auto;height:auto;border-radius:9px;display:block}#dy-chat video{max-width:250px;width:100%;max-height:220px;border-radius:9px;display:block;background:#182239}#dy-chat .dy-chat-earlier{display:block;margin:0 auto 16px;border:0;background:none;font-size:10px;color:#7190ce}
#dy-chat .dy-chat-compose{border-top:1px solid #edf0f7;padding:12px 16px 13px;background:#fff;flex-shrink:0}#dy-chat textarea{display:block;width:100%;resize:none;border:0;padding:4px 2px;color:#4c5c78;background:transparent;font:inherit;font-size:12px;line-height:1.7;min-height:48px;max-height:100px;outline:none}#dy-chat .dy-chat-tools{display:flex;align-items:center;justify-content:space-between;margin-top:7px}#dy-chat .dy-chat-tools>div{display:flex;gap:4px}#dy-chat .dy-chat-send{height:32px;display:flex;align-items:center;gap:8px;padding:0 14px;border:0;border-radius:9px;background:var(--chat-blue);color:#fff;font-size:11px;box-shadow:0 3px 9px #315ee11a}#dy-chat .dy-chat-send svg{width:13px;height:13px}#dy-chat .dy-chat-send:disabled{opacity:.4;cursor:default}
#dy-chat .dy-chat-pending{display:flex;gap:7px;overflow:auto;max-height:78px}#dy-chat .dy-chat-file{position:relative;border:1px solid #e5ebf7;border-radius:9px;padding:5px;display:flex;align-items:center;gap:5px;min-width:85px;max-width:125px;margin-bottom:5px;background:#f8faff}#dy-chat .dy-chat-file img{width:34px;height:34px;object-fit:cover;border-radius:5px}#dy-chat .dy-chat-file>span{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:64px;color:#8694ad}#dy-chat .dy-chat-file button{position:absolute;right:0;top:-2px;border:0;border-radius:50%;color:#8898b2;background:#fff;padding:0 4px;font-size:12px}
#dy-chat .dy-chat-error{font-size:11px;color:#ac7544;background:#fff9ef;padding:9px 16px;line-height:1.5}#dy-chat .dy-chat-hidden-input{display:none}#dy-chat .dy-chat-preview{border:0;border-radius:16px;padding:10px;background:#fff;max-width:90vw;max-height:90dvh}#dy-chat .dy-chat-preview::backdrop{background:#172337b3}#dy-chat .dy-chat-preview img{display:block;max-width:85vw;max-height:80dvh}#dy-chat .dy-chat-preview button{position:absolute;right:13px;top:13px;background:#ffffffdc}#dy-chat .dy-chat-drag::after{content:'松开发送图片或视频';position:absolute;inset:10px;border:2px dashed #7398ee;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#f1f6fff2;color:#4d76cf;font-size:14px;z-index:2;pointer-events:none}
@media(max-width:760px){#dy-chat .dy-chat-panel{width:min(620px,calc(100vw - 24px));right:12px;bottom:105px;height:min(620px,calc(100dvh - 125px))}#dy-chat .dy-chat-launcher{right:15px;bottom:26px;width:58px;height:58px;border-radius:20px}#dy-chat .dy-chat-body{grid-template-columns:185px 1fr}#dy-chat .dy-chat-brand>span{display:none}}
#dy-chat .dy-chat-role{display:inline-block;margin-left:8px;font-size:10px;font-weight:400;color:#a0a7b3;vertical-align:baseline}
@media(max-width:520px){#dy-chat .dy-chat-panel{height:min(650px,calc(100dvh - 125px));border-radius:18px}#dy-chat .dy-chat-body{display:block}#dy-chat .dy-chat-sidebar{height:100%;border:0}#dy-chat .dy-chat-contact small{max-width:220px}#dy-chat .dy-chat-conversation{display:none;height:100%}#dy-chat .dy-chat-has-peer .dy-chat-sidebar{display:none}#dy-chat .dy-chat-has-peer .dy-chat-conversation{display:flex}#dy-chat .dy-chat-back{display:inline-flex}#dy-chat .dy-chat-brand{gap:9px}#dy-chat .dy-chat-peer{padding:0 12px}#dy-chat .dy-chat-messages{padding:15px 13px}#dy-chat .dy-chat-picture img{max-width:200px}#dy-chat video{max-width:215px}}
@media(prefers-reduced-motion:reduce){#dy-chat .dy-chat-panel{animation:none}#dy-chat .dy-chat-launcher{transition:none}}
