.ding-chat-root{position:fixed;right:24px;bottom:22px;z-index:1000;font-family:'Noto Sans SC',system-ui,sans-serif;color:#382c40}
.ding-chat-root *{box-sizing:border-box}
.ding-chat-panel[hidden],.ding-chat-ai[hidden]{display:none!important}
.ding-chat-launch{border:1px solid #d8bbdf;background:#fff9fe;color:#5b3b68;border-radius:999px;display:flex;align-items:center;gap:7px;padding:4px 17px 4px 5px;box-shadow:0 12px 35px #24162c6b;cursor:pointer;font-size:12px;font-weight:900;transition:transform .2s,box-shadow .2s}
.ding-chat-launch:hover{transform:translateY(-3px);box-shadow:0 16px 40px #24162c88}
.ding-chat-launch img{width:47px;height:47px;object-fit:contain;filter:drop-shadow(0 2px 3px #6b468533)}
.ding-chat-launch b{color:#b67fbd;margin-left:3px}
.ding-chat-root.open .ding-chat-launch{display:none}
.ding-chat-panel{width:min(395px,calc(100vw - 24px));height:min(630px,calc(100dvh - 110px));display:flex;flex-direction:column;overflow:hidden;border-radius:21px;border:1px solid #d9bfdc;background:#fffafc;box-shadow:0 22px 80px #190d2299}
.ding-chat-panel header{height:72px;flex:none;display:flex;align-items:center;gap:11px;padding:9px 15px;background:linear-gradient(115deg,#644272,#392849);color:#fff}
.ding-chat-panel header img{width:52px;height:52px;object-fit:contain;border-radius:50%;background:#ffffff1c}
.ding-chat-panel header div{display:grid;gap:2px;min-width:0}
.ding-chat-panel header b{font-family:'Noto Serif SC',serif;font-size:17px}
.ding-chat-panel header small{font-size:9px;color:#ead7ec}
.ding-chat-close{margin-left:auto;background:#ffffff17;border:1px solid #ffffff48;color:#fff;border-radius:50%;width:34px;height:34px;font-size:21px;line-height:1;cursor:pointer}
.ding-chat-messages{flex:1;overflow:auto;padding:20px 14px;background:radial-gradient(circle at 0% 10%,#eddff1,transparent 42%),#fbf7fa;scrollbar-color:#bc9ac5 transparent}
.ding-chat-message{display:flex;align-items:flex-end;gap:7px;margin-bottom:17px}
.ding-chat-message img{width:31px;height:31px;object-fit:contain;border-radius:50%;background:#efe1f2;flex:none}
.ding-chat-message.user{justify-content:flex-end}
.ding-chat-bubble{max-width:calc(100% - 44px);padding:12px 14px;border:1px solid #e3d5e6;border-radius:16px 16px 16px 4px;background:#fff;box-shadow:0 5px 15px #6b4c790d;font-size:12px;line-height:1.7;color:#4e4152}
.ding-chat-message.user .ding-chat-bubble{background:#664572;color:#fff;border-color:#664572;border-radius:16px 16px 4px 16px}
.ding-chat-bubble p{margin:0;white-space:pre-line;overflow-wrap:anywhere}
.ding-chat-bubble a{display:inline-block;color:#804b91;font-size:10px;font-weight:800;margin-top:9px;border-bottom:1px solid #ad85ba;text-decoration:none}
.ding-chat-prompts{display:flex;gap:6px;overflow-x:auto;padding:10px 13px 4px;background:#fffafc;scrollbar-width:none;flex:none}
.ding-chat-prompts button{white-space:nowrap;border:1px solid #d9c4df;border-radius:999px;background:#f5eaf6;color:#6e4b79;padding:7px 9px;font-size:10px;cursor:pointer}
.ding-chat-prompts button:hover{background:#e8d4eb}
.ding-chat-form{display:flex;gap:7px;padding:9px 12px 7px;background:#fffafc;flex:none}
.ding-chat-form input{flex:1;min-width:0;border:1px solid #d7c6db;background:#fff;border-radius:12px;min-height:43px;padding:0 12px;color:#3f3045;font-size:12px;outline:none}
.ding-chat-form input:focus{border-color:#9163a0;box-shadow:0 0 0 3px #9a6daa25}
.ding-chat-form button{width:43px;flex:none;border:0;background:#6b4779;color:#fff;border-radius:12px;font-size:22px;cursor:pointer}
.ding-chat-form button:disabled{opacity:.5;cursor:wait}
.ding-chat-meta{display:flex;align-items:center;gap:8px;padding:0 13px 11px;background:#fffafc;color:#9e8ca3;font-size:9px;flex:none}
.ding-chat-meta>span{flex:1;min-width:0}
.ding-chat-ai{display:flex;align-items:center;gap:3px;white-space:nowrap;color:#6f5280;cursor:pointer}
.ding-chat-ai input{width:13px;height:13px;accent-color:#6b4779}
.ding-chat-clear{border:0;background:none;color:#80618d;font-size:9px;cursor:pointer;padding:0}
.ding-chat-root .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.workbench-page .ding-chat-root{bottom:24px}
@media(max-width:700px){.workbench-page .ding-chat-root{bottom:78px}.ding-chat-root{right:12px;bottom:12px}.ding-chat-panel{height:min(650px,calc(100dvh - 28px));width:calc(100vw - 24px)}.workbench-page .ding-chat-panel{height:min(620px,calc(100dvh - 91px))}.ding-chat-launch{padding-right:12px;font-size:11px}.ding-chat-launch img{width:40px;height:40px}.workbench-page .ding-chat-launch{padding:3px;width:52px;height:52px;justify-content:center}.workbench-page .ding-chat-launch span{display:none}.workbench-page .main-nav{scrollbar-width:none}.workbench-page .main-nav::-webkit-scrollbar{display:none}}
@media(prefers-reduced-motion:reduce){.ding-chat-launch{transition:none}}
