.zk-chat{--zk:#1769e0;--zk-dark:#123b78;--zk-ink:#17243a;position:fixed;z-index:99990;bottom:22px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--zk-ink)}.zk-chat-right{right:22px}.zk-chat-left{left:22px}.zk-chat *{box-sizing:border-box}.zk-chat-launcher{position:relative;border:1px solid rgba(255,255,255,.35);border-radius:18px;background:linear-gradient(145deg,#2178eb,#0c59c8);color:#fff;box-shadow:0 14px 35px rgba(23,105,224,.32);min-width:138px;height:54px;padding:0 17px 0 12px;display:flex;align-items:center;gap:10px;cursor:pointer;font-size:15px;transition:.22s transform,.22s box-shadow}.zk-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(23,105,224,.4)}.zk-launcher-icon{width:34px;height:34px;border-radius:12px;background:rgba(255,255,255,.16);display:grid;place-items:center}.zk-launcher-icon svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:1.8}.zk-launcher-icon svg circle{fill:#fff;stroke:none}.zk-chat-badge{position:absolute;right:-5px;top:-8px;background:#f04438;border:2px solid #fff;border-radius:20px;min-width:23px;height:23px;line-height:19px;font-size:12px}.zk-chat-panel{position:absolute;bottom:68px;width:min(390px,calc(100vw - 24px));height:min(570px,calc(100vh - 110px));background:#fff;border:1px solid rgba(25,65,120,.12);border-radius:22px;overflow:hidden;box-shadow:0 28px 80px rgba(20,43,78,.25),0 4px 16px rgba(20,43,78,.1)}.zk-chat-right .zk-chat-panel{right:0}.zk-chat-left .zk-chat-panel{left:0}.zk-chat-panel>header{height:76px;padding:0 16px;background:linear-gradient(135deg,#123b78,#1769e0);color:#fff;display:flex;align-items:center;gap:11px}.zk-agent-avatar{position:relative;width:43px;height:43px;border-radius:14px;background:rgba(255,255,255,.14);display:grid;place-items:center}.zk-agent-avatar svg{width:26px;fill:none;stroke:#fff;stroke-width:1.8}.zk-agent-avatar i{position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border-radius:50%;background:#36d399;border:2px solid #1769e0}.zk-agent-copy{display:flex;flex:1;min-width:0;flex-direction:column}.zk-agent-copy strong{font-size:17px;letter-spacing:.2px}.zk-agent-copy small{opacity:.82;font-size:12px;margin-top:2px}.zk-agent-copy small i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#54e5ad;margin-right:3px}.zk-chat-close{border:0;background:rgba(255,255,255,.1);border-radius:10px;color:#fff;font-size:25px;width:34px;height:34px;line-height:30px;cursor:pointer}.zk-chat-messages{height:calc(100% - 222px);overflow:auto;background:linear-gradient(#f4f7fb,#f8faff);padding:18px 16px;display:flex;flex-direction:column;gap:11px;scrollbar-width:thin}.zk-msg{max-width:84%;display:flex;flex-direction:column;gap:3px}.zk-msg>div{padding:10px 13px;border-radius:15px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:14px}.zk-msg small{font-size:10px;color:#8b97a8;padding:0 3px}.zk-msg-me{align-self:flex-end;align-items:flex-end}.zk-msg-me>div{background:linear-gradient(145deg,#2277e7,#1763d1);color:#fff;border-bottom-right-radius:5px;box-shadow:0 5px 12px rgba(23,105,224,.15)}.zk-msg-them{align-self:flex-start}.zk-msg-them>div{background:#fff;color:#243142;border:1px solid #e1e8f1;border-bottom-left-radius:5px;box-shadow:0 4px 12px rgba(22,44,76,.05)}.zk-msg img{display:block;max-width:220px;max-height:240px;border-radius:10px;object-fit:contain}.zk-msg:has(img)>div{padding:4px;background:#fff}.zk-chat-composer{height:146px;border-top:1px solid #e8edf4;background:#fff;padding:8px 12px}.zk-chat-toolbar{height:30px;display:flex;align-items:center;gap:4px}.zk-chat-toolbar button{width:28px;height:28px;padding:4px;border:0;border-radius:8px;background:transparent;color:#60718a;cursor:pointer}.zk-chat-toolbar button:hover{background:#edf4ff;color:var(--zk)}.zk-chat-toolbar svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}.zk-chat-name{width:115px!important;height:28px!important;margin-left:2px!important;border:0!important;border-left:1px solid #e5e9ef!important;border-radius:0!important;box-shadow:none!important;padding:0 8px!important;font-size:12px!important}.zk-upload-hint{margin-left:auto;color:#9aa5b5;font-size:10px}.zk-emoji-panel{position:absolute;left:13px;right:13px;bottom:143px;background:#fff;border:1px solid #dfe6ef;border-radius:14px;padding:9px;box-shadow:0 14px 35px rgba(20,43,78,.16);display:grid;grid-template-columns:repeat(8,1fr);gap:3px;z-index:3}.zk-emoji-panel[hidden]{display:none}.zk-emoji-panel button{border:0;background:transparent;border-radius:7px;font-size:20px;height:32px;cursor:pointer}.zk-emoji-panel button:hover{background:#f0f5fc}.zk-chat-form{height:58px;border:1px solid #dfe6ef;border-radius:13px;padding:7px 7px 7px 10px;background:#fbfcfe;display:flex;align-items:center;gap:6px}.zk-chat-form:focus-within{border-color:#8ab9f6;box-shadow:0 0 0 3px rgba(23,105,224,.08)}.zk-chat-form textarea{flex:1;height:40px;resize:none;border:0!important;background:transparent!important;box-shadow:none!important;padding:2px 0!important;font-size:14px!important;line-height:1.4!important}.zk-chat-form button{border:0;background:linear-gradient(145deg,#2178eb,#0c59c8);color:#fff;border-radius:10px;width:40px;height:40px;display:grid;place-items:center;cursor:pointer}.zk-chat-form button svg{width:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.zk-chat-form.is-sending button{opacity:.55;pointer-events:none}.zk-composer-foot{height:24px;display:flex;align-items:end;justify-content:space-between}.zk-chat-error{color:#d92d20;font-size:11px;max-width:255px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zk-composer-foot small{color:#a0a9b6;font-size:9px}@media(max-width:600px){.zk-chat{bottom:14px}.zk-chat-right{right:12px}.zk-chat-left{left:12px}.zk-chat-panel{position:fixed;inset:10px 10px 75px;width:auto;height:auto;border-radius:20px}.zk-chat-messages{height:calc(100% - 222px)}.zk-chat-launcher{min-width:54px;width:54px;height:54px;border-radius:18px;padding:0;justify-content:center}.zk-chat-launcher b{display:none}.zk-launcher-icon{background:transparent}.zk-chat-name{width:104px!important}}@media(prefers-reduced-motion:reduce){.zk-chat *{scroll-behavior:auto!important;transition:none!important}}
