/* 用途：呈现统一账号登录前后的左下角悬浮咨询与反馈窗口。 */
.support-launcher{position:fixed;left:24px;bottom:23px;z-index:25;display:flex;align-items:center;gap:10px;border:1px solid #d49d27;border-radius:999px;background:linear-gradient(135deg,#f7ce68,#e3a628);box-shadow:0 10px 30px rgba(104,80,24,.24);padding:13px 20px;color:#3c2c10;font-size:13px;font-weight:850}
.support-launcher:hover{filter:brightness(1.04);transform:translateY(-1px)}.support-launcher-dot{width:8px;height:8px;border-radius:50%;background:#335f3d;box-shadow:0 0 0 3px rgba(51,95,61,.12)}
.support-launcher[data-state=offline] .support-launcher-dot{background:#a77419;box-shadow:0 0 0 3px #a7741926}
.support-launcher[data-state=unknown] .support-launcher-dot,.support-launcher[data-state=checking] .support-launcher-dot{background:#899188;box-shadow:0 0 0 3px #89918826}
.support-center[hidden],.support-panel-body[hidden],.support-tabs[hidden]{display:none!important}
.support-center{position:fixed;left:24px;bottom:84px;z-index:26;display:flex;width:min(405px,calc(100vw - 28px));height:min(630px,calc(100vh - 108px));flex-direction:column;overflow:hidden;border:1px solid #e6e9e1;border-radius:17px;background:#fff;box-shadow:0 24px 70px rgba(29,43,32,.22)}
.support-panel-head{display:flex;justify-content:space-between;align-items:start;gap:10px;border-bottom:1px solid #e9ece6;background:#fffdf8;padding:17px 18px 14px}
.support-panel-head strong{color:#2c392f;font-size:15px}.support-panel-head button{border:0;border-radius:7px;background:#f4f5f0;padding:6px 9px;color:#748175;font-size:11px}
.support-project-context{margin:5px 0 0;color:#98a396;font-size:10px;line-height:1.5}
.support-tabs{display:flex;align-items:center;gap:4px;border-bottom:1px solid #eef0e9;padding:8px 13px;background:#fff}
.support-tabs button{border:0;border-radius:8px;background:transparent;padding:8px 11px;color:#788478;font-size:11px;font-weight:750}.support-tabs button.active{background:#fff2d3;color:#8c6518}
#support-connection{margin-left:auto;color:#899589;font-size:10px;white-space:nowrap}
#support-connection::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;background:#a3aaa2;vertical-align:1px}
#support-connection[data-state=online]{color:#2f7b49;font-weight:800}
#support-connection[data-state=online]::before{background:#2fa663}
#support-connection[data-state=offline]{color:#9b6b16;font-weight:800}
#support-connection[data-state=offline]::before{background:#dfa632}
#support-connection[data-state=unknown]::before{background:#a3aaa2}
#support-status{min-height:0;margin:0;padding:0 17px;color:#97701f;font-size:10px;line-height:1.5}
#support-status:not(:empty){padding-top:8px;padding-bottom:8px;background:#fffaf0}
.support-panel-body{display:flex;min-height:0;flex:1;flex-direction:column;background:#fbfcf9}
.support-offline-hint[hidden]{display:none}
.support-offline-hint{display:flex;align-items:center;gap:9px;padding:10px 14px;background:#fff8e9;border-bottom:1px solid #f1e2bc;color:#715719;font-size:11px;line-height:1.5}
.support-offline-hint span{flex:1}
.support-offline-hint button{flex:0 0 auto;border:1px solid #e5c46d;border-radius:8px;background:#fff;color:#87620d;padding:7px 9px;font-size:11px;font-weight:800}
#support-feedback-list button{border:1px solid #e2e7dd;border-radius:8px;background:#fff;padding:6px 8px;color:#627365;font-size:10px;text-align:left}
.support-chat-messages{display:flex;min-height:0;flex:1;flex-direction:column;gap:10px;overflow-y:auto;padding:15px;border-top:1px solid #edf0e9}
.support-empty{margin:auto 5px;color:#a0aca0;text-align:center;font-size:11px;line-height:1.6}
.support-bubble{align-self:flex-start;max-width:86%;border:1px solid #e7ece5;border-radius:13px 13px 13px 3px;background:#fff;padding:10px 12px;color:#4d5d50;font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.support-bubble.user{align-self:flex-end;border-color:#f3d999;border-radius:13px 13px 3px 13px;background:#fff2cd;color:#584518}
.support-bubble.system{align-self:center;border:0;background:transparent;color:#a2ada1;font-size:10px}
.support-bubble button{display:block;margin-top:7px;border:1px solid #e5e8e0;border-radius:7px;background:#fff;padding:5px 8px;color:#617363;font-size:10px}
#support-chat-form{display:grid;gap:7px;border-top:1px solid #e8ece4;background:#fff;padding:10px 12px}
#support-chat-form textarea{width:100%;min-height:55px;max-height:100px;resize:vertical;border:1px solid #e2e8dd;border-radius:9px;padding:10px;color:#2b392f;font:inherit;font-size:12px}
#support-chat-form>div{display:flex;align-items:center;gap:8px}#support-chat-form .primary-button{height:34px;margin:0 0 0 auto;padding:0 15px;font-size:11px}
.support-file{position:relative;display:inline-flex;align-items:center;color:#748074;font-size:10px;cursor:pointer}.support-file input{position:absolute;width:1px;height:1px;opacity:0}
#support-close{border:0;background:transparent;padding:5px;color:#899589;font-size:10px}
#support-feedback{overflow-y:auto;padding:14px 16px}#support-feedback-form{display:grid;gap:9px}
#support-feedback-form input:not([type=file]),#support-feedback-form textarea{width:100%;border:1px solid #e2e8dd;border-radius:9px;background:#fff;padding:10px;font:inherit;font-size:11px}
#support-feedback-form textarea{min-height:86px;resize:vertical}#support-feedback-form label{color:#788678;font-size:10px;line-height:1.6}#support-feedback-form input[type=file]{display:block;width:100%;margin-top:4px;font-size:10px}
#support-feedback-form .primary-button{height:38px;margin:0;font-size:11px}#support-feedback h3{margin:18px 0 9px;font-size:12px}
#support-feedback-list{display:grid;gap:5px}#support-feedback-detail{margin-top:12px;color:#566656;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
#support-feedback-detail h3{margin:0 0 6px}#support-feedback-detail button{border:1px solid #e2e7dd;border-radius:7px;background:#fff;padding:6px 8px;color:#647464;font-size:10px}
.support-center button:focus-visible,.support-launcher:focus-visible,.support-center input:focus-visible,.support-center textarea:focus-visible{outline:2px solid #c79622;outline-offset:2px}
@media(max-width:580px){.support-launcher{left:13px;bottom:13px;padding:11px 16px}.support-center{left:13px;bottom:68px;width:calc(100vw - 26px);height:min(620px,calc(100vh - 84px))}}
@media(prefers-reduced-motion:reduce){.support-launcher{transform:none!important}}
.support-bubble .support-image-attachment,#support-feedback-detail .support-image-attachment{display:grid;gap:5px;width:min(230px,100%);max-width:100%;margin-top:7px;border:1px solid #e5e8e0;border-radius:9px;background:#fff;padding:5px;color:#617363;text-align:left;cursor:zoom-in}
.support-image-attachment img{display:block;width:100%;max-height:170px;min-height:70px;object-fit:contain;border-radius:5px;background:#f4f6f1}
.support-image-attachment img:not([src]){visibility:hidden}
.support-image-attachment span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
.support-image-preview{position:fixed;inset:0;width:min(900px,94vw);max-height:92vh;margin:auto;border:0;border-radius:16px;background:#fff;padding:48px 16px 16px;box-shadow:0 24px 80px #18231b55;color:#304035;text-align:center}
.support-image-preview::backdrop{background:#17211bcc}.support-image-preview img{display:block;max-width:100%;max-height:calc(92vh - 115px);margin:auto;object-fit:contain}.support-image-preview p{margin:10px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.support-image-preview .support-preview-close{position:absolute;top:10px;right:12px;border:1px solid #dce4d8;border-radius:8px;background:#fff;padding:7px 10px;color:#506152;cursor:pointer}
#support-guest{overflow-y:auto;padding:18px 17px;gap:14px}
.support-guest-intro{border:1px solid #f0dfb8;border-radius:12px;background:#fff9eb;padding:14px;color:#594d31}
.support-guest-intro strong{display:block;margin-bottom:6px;font-size:13px}.support-guest-intro p{margin:0;font-size:11px;line-height:1.6}
#support-guest-form{display:grid;gap:12px}
#support-guest-form label{display:grid;gap:6px;color:#536252;font-size:11px;font-weight:700}
#support-guest-form input,#support-guest-form textarea{width:100%;min-height:39px;border:1px solid #dfe6da;border-radius:9px;background:#fff;padding:9px 10px;color:#263728;font:inherit;font-size:12px;font-weight:400}
#support-guest-form textarea{min-height:100px;resize:vertical}
#support-guest-form .code-row{display:flex;gap:7px;align-items:center}
#support-guest-form .code-row input{flex:1;min-width:0}
#support-guest-form .code-button{flex:0 0 auto;border:1px solid #e6c86e;border-radius:8px;background:#fff8e4;padding:9px;color:#785a14;font-size:11px}
#support-guest-form .primary-button{min-height:40px;margin:4px 0 0;font-size:12px}
