/* 港岗通客服：独立前端模块。 */
.support-chat{--chat-blue:#46a7df;position:fixed;inset:auto 82px 24px auto;margin:0;padding:0;border:1px solid #e2eaf1;border-radius:15px;width:min(910px,calc(100vw - 110px));height:min(675px,calc(100dvh - 48px));max-width:none;max-height:none;overflow:hidden;color:#263c54;box-shadow:0 24px 95px #07172d3d;background:#fff}
.support-chat[open]{display:flex;flex-direction:column;animation:chat-enter .25s ease-out both}.support-chat::backdrop{background:#12223b24;backdrop-filter:none}.support-chat.maximized{inset:24px;margin:0;width:calc(100vw - 48px);height:calc(100dvh - 48px)}
.chat-heading{background:var(--chat-blue);display:flex;align-items:center;gap:13px;padding:16px 20px;color:#fff;flex-shrink:0}.chat-avatar{width:39px;height:39px;background:#e9f6ff;border-radius:12px;display:grid;place-items:center;color:#409dcc;flex:none}.chat-avatar svg{width:24px;height:24px}.chat-identity{min-width:0}.chat-identity h2{font-size:16px;line-height:1.4;letter-spacing:.02em;font-weight:500;color:white}.chat-identity p{font-size:10px;color:#e3f4ff;line-height:1.5;margin-top:3px}.chat-top-actions{display:flex;align-items:center;gap:7px;margin-left:auto}.chat-human-btn{display:flex;align-items:center;gap:7px;color:#fff;font-size:12px;padding:7px 10px;border:1px solid #ffffff59;border-radius:5px;white-space:nowrap;margin-right:7px}.chat-human-btn:hover{background:#ffffff1a}.chat-human-btn svg{width:17px;height:17px}.chat-icon-btn{width:28px;height:30px;display:grid;place-items:center;padding:0;border-radius:4px;color:#fff}.chat-icon-btn:hover{background:#ffffff28}.chat-icon-btn svg{width:17px;height:17px}.chat-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 235px}.chat-conversation{display:flex;flex-direction:column;min-height:0;min-width:0;background:#f4f6f9;position:relative}.chat-date{text-align:center;font-size:10px;color:#a4aeba;margin:1px 0 17px;line-height:1.6}.chat-log{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:21px 22px 18px;scroll-behavior:auto;scrollbar-width:thin;scrollbar-color:#d1dce6 transparent;min-height:0}.chat-message{margin-bottom:21px;display:flex;gap:9px;align-items:flex-start}.chat-message .chat-avatar{width:28px;height:28px;border-radius:8px;margin-top:19px}.chat-message .chat-avatar svg{width:18px;height:18px}.chat-message-content{min-width:0;max-width:calc(100% - 37px)}.chat-meta{font-size:9px;color:#98a5b4;display:flex;align-items:center;gap:10px;margin-bottom:5px}.chat-meta b{font-size:10px;font-weight:400;color:#8b9caf}.chat-bubble{background:#fff;border:1px solid #e9eef3;border-radius:2px 10px 10px 10px;padding:13px 16px;line-height:1.85;font-size:12px;color:#4d6077;overflow-wrap:anywhere}.chat-bubble p{font-size:12px;line-height:1.85;color:#4d6077;white-space:pre-wrap;margin:0}.chat-message.user{justify-content:flex-end}.chat-message.user .chat-message-content{max-width:85%}.chat-message.user .chat-meta{justify-content:flex-end}.chat-message.user .chat-bubble{background:#e0f0fc;border-color:#d1e8f9;border-radius:10px 2px 10px 10px;color:#255374}.chat-message.user .chat-bubble p{color:#255374}.chat-answer-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.chat-answer-links a,.chat-answer-links button{border:1px solid #d6e8f5;border-radius:4px;background:#f5faff;color:#298cc8;padding:6px 11px;font-size:11px;line-height:1.5}.chat-answer-links a:hover,.chat-answer-links button:hover{background:#e4f3fe}.chat-status-line{font-size:10px;color:#a3afbc;text-align:center;margin:3px 0 20px}.chat-questions{padding:0;min-width:0}.chat-card-title{padding:14px 16px 9px;font-size:14px;font-weight:500;display:flex;align-items:center;gap:7px}.chat-card-title svg{width:16px;height:16px;color:#61adda}.chat-categories{display:flex;gap:18px;padding:0 16px;border-bottom:1px solid #e9eef4;overflow:auto;scrollbar-width:none}.chat-category{padding:8px 0 10px;white-space:nowrap;font-size:11px;position:relative;color:#728296}.chat-category[aria-selected=true]{color:#258dcb}.chat-category[aria-selected=true]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:#4ca9de}.chat-question-list{padding:3px 16px 8px}.chat-question{display:flex;align-items:center;gap:10px;justify-content:space-between;text-align:left;width:100%;padding:12px 0;border-bottom:1px solid #edf1f5;font-size:11px;line-height:1.65;color:#6a7c91}.chat-question:last-child{border:0}.chat-question:hover{color:#208dce}.chat-question svg{width:13px;height:13px;color:#a5b6c5}.chat-question .question-index{color:#aab6c3;margin-right:8px}.chat-sidebar{border-left:1px solid #e4eaf1;background:#fff;overflow-y:auto;min-height:0;padding-bottom:18px}.chat-sidebar h3{padding:18px 20px 15px;border-bottom:1px solid #e9eef4;font-size:13px;letter-spacing:0;font-weight:500;color:#3e9dd4}.chat-sidebar-section{padding:20px 20px 0}.chat-sidebar h4{font-size:11px;font-weight:500;margin-bottom:13px;color:#394f67}.chat-sidebar ul{margin:0;padding:0;list-style:none}.chat-sidebar li{margin-bottom:11px}.chat-sidebar button{font-size:11px;color:#788ca2;line-height:1.8;text-align:left;display:flex;padding:0;gap:8px}.chat-sidebar button span{color:#afbecd;font-size:10px;min-width:14px}.chat-sidebar button:hover{color:#248cc9}.chat-sidebar-service{margin:23px 18px 0;padding:16px;background:#f4f8fc;border-radius:8px}.chat-sidebar-service strong{display:block;font-size:12px;font-weight:500;margin-bottom:7px}.chat-sidebar-service p{font-size:10px;line-height:1.8;color:#8c9eb0}.chat-sidebar-service button{margin-top:11px;color:#278dca;font-size:10px}.chat-service-links{margin:22px 20px 0;padding-top:18px;border-top:1px solid #edf1f5;display:flex;gap:14px}.chat-service-links a{font-size:10px;color:#9babbc}.chat-composer{background:white;border-top:1px solid #e4eaf2;padding:0 17px 10px;flex-shrink:0}.chat-tools{display:flex;gap:16px;align-items:center;padding:10px 0 5px}.chat-tools button{display:flex;align-items:center;gap:5px;font-size:10px;color:#8a9bac;padding:0;line-height:1.6}.chat-tools button svg{width:15px;height:15px}.chat-tools button:hover{color:#288fcc}.chat-tools .chat-clear{margin-left:auto}.chat-composer textarea{display:block;width:100%;border:0;resize:none;font-size:12px;color:#486178;line-height:1.75;min-height:57px;height:57px;padding:7px 0;background:#fff}.chat-composer textarea:focus{outline:0}.chat-composer textarea::placeholder{color:#a9b6c4}.chat-composer:focus-within{box-shadow:inset 0 2px 0 #8dccf1}.chat-compose-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:2px}.chat-input-hint{font-size:9px;line-height:1.6;color:#a5b1be}.chat-input-hint.error{color:#b86951}.chat-send{background:var(--chat-blue);color:white;border-radius:4px;padding:7px 17px;font-size:11px;display:flex;align-items:center;gap:9px;line-height:1.6}.chat-send:hover{background:#2c94d0}.chat-send:disabled{background:#c5d8e6;color:#f8fcff;cursor:default}.chat-send svg{width:13px;height:13px}.chat-disclosure{font-size:9px;color:#a2afbc;text-align:center;line-height:1.7;margin-top:9px}.chat-clear-confirm{background:#fff9ef;border-bottom:1px solid #efe6d7;padding:11px 15px;font-size:11px;color:#8d785c;display:flex;align-items:center;gap:13px;flex-shrink:0}.chat-clear-confirm[hidden]{display:none}.chat-clear-confirm span{flex:1}.chat-clear-confirm button{font-size:11px;padding:4px 7px;color:#856645}.chat-clear-confirm button:last-child{color:#4f94bf}.chat-typing{display:flex;align-items:center;gap:5px;height:20px;padding:4px 0}.chat-typing i{display:block;width:5px;height:5px;background:#9ac5e0;border-radius:50%;animation:chat-dot 1s infinite}.chat-typing i:nth-child(2){animation-delay:.15s}.chat-typing i:nth-child(3){animation-delay:.3s}.chat-typing small{margin-left:6px;font-size:9px;color:#a3b1bd}.chat-unread{position:absolute;bottom:171px;left:50%;transform:translateX(-50%);padding:7px 14px;box-shadow:0 4px 15px #182f5018;background:#fff;color:#3f99cf;border:1px solid #dbe9f3;border-radius:30px;font-size:10px;z-index:2;white-space:nowrap}.chat-unread[hidden]{display:none}.chat-resume{position:fixed;bottom:22px;right:24px;display:flex;align-items:center;gap:10px;padding:12px 19px;border-radius:25px;background:#46a7df;color:white;box-shadow:0 8px 30px #1b6c9b30;font-size:12px;z-index:78}.chat-resume[hidden]{display:none}.chat-resume svg{width:19px;height:19px}.chat-resume span{width:6px;height:6px;border-radius:50%;background:#fff}.chat-advisors{margin-top:15px;padding-top:14px;border-top:1px solid #e7eef5}.chat-advisor-tabs{display:flex;gap:5px;background:#f0f5f9;border-radius:6px;padding:4px}.chat-advisor-tabs button{flex:1;padding:6px;font-size:11px;border-radius:4px;color:#7d92a7}.chat-advisor-tabs button.active{background:white;color:#2993ce;box-shadow:0 1px 5px #14334e0c}.chat-person{display:grid;grid-template-columns:112px 1fr;gap:16px;align-items:center;margin-top:15px}.chat-person img{width:112px;height:112px;object-fit:contain;background:white;border:1px solid #e8eef5;padding:4px;border-radius:5px}.chat-person b{display:block;font-size:13px;font-weight:500;color:#344f69}.chat-person p{font-size:10px;color:#98a6b5;margin:4px 0 10px;line-height:1.7}.chat-person a{font-size:10px;color:#258fc9;display:block;line-height:1.8}.chat-person-note{font-size:9px!important;color:#9aabba!important;line-height:1.7!important;margin-top:13px!important}.chat-copy-contact{display:inline-flex;align-items:center;gap:6px;color:#399bcf;font-size:10px;padding:0;margin-top:12px}.chat-copy-contact svg{width:14px;height:14px}.chat-screenreader{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.chat-toast{position:absolute;top:85px;left:50%;transform:translateX(-50%);padding:9px 16px;background:#233d56ef;color:white;z-index:3;font-size:11px;border-radius:6px;max-width:85%;text-align:center;line-height:1.7}.chat-toast[hidden]{display:none}.mobile-bar button.btn{color:white}
@keyframes chat-enter{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}@keyframes chat-dot{0%,60%,100%{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media(max-width:1000px){.support-chat{right:20px;width:calc(100vw - 40px)}.chat-layout{grid-template-columns:minmax(0,1fr) 215px}.chat-sidebar-section{padding-inline:16px}.chat-log{padding-inline:17px}}
@media(max-width:700px){.support-chat,.support-chat.maximized{inset:0;margin:0;width:100%;height:100dvh;border:0;border-radius:0;max-height:100dvh;max-width:100vw}.chat-heading{padding:13px 14px;gap:10px;padding-top:max(13px,env(safe-area-inset-top))}.chat-identity h2{font-size:14px}.chat-identity p{font-size:9px}.chat-avatar{width:34px;height:34px;border-radius:10px}.chat-top-actions{gap:3px}.chat-human-btn{font-size:11px;padding:6px;margin-right:0;gap:5px}.chat-human-btn svg{width:15px}.chat-icon-btn{width:24px}.chat-expand{display:none}.chat-layout{grid-template-columns:minmax(0,1fr)}.chat-sidebar{display:none}.chat-log{padding:18px 13px 12px}.chat-message{gap:7px;margin-bottom:18px}.chat-message .chat-avatar{width:25px;height:25px}.chat-message-content{max-width:calc(100% - 32px)}.chat-bubble{font-size:12px;padding:12px}.chat-bubble p{font-size:12px}.chat-questions{padding:0}.chat-card-title{font-size:13px;padding:12px 12px 8px}.chat-categories{gap:16px;padding-inline:12px}.chat-category{font-size:10px}.chat-question-list{padding-inline:12px}.chat-question{font-size:11px;padding:11px 0}.chat-composer{padding:0 13px max(11px,env(safe-area-inset-bottom))}.chat-composer textarea{font-size:16px;height:60px;min-height:60px}.chat-composer textarea::placeholder{font-size:12px}.chat-input-hint{font-size:9px}.chat-disclosure{font-size:8px;margin-top:7px}.chat-unread{bottom:175px}.chat-person{grid-template-columns:97px 1fr;gap:12px}.chat-person img{width:97px;height:97px}.chat-person b{font-size:12px}.chat-person p,.chat-person a{font-size:9px}.chat-resume{bottom:83px;right:18px;font-size:11px;padding:10px 16px}.chat-clear-confirm{font-size:10px;gap:8px;padding:9px 12px}.chat-clear-confirm button{font-size:10px;white-space:nowrap}}
@media(max-width:360px){.chat-identity p{font-size:8px}.chat-heading{gap:8px;padding-inline:11px}.chat-avatar{width:29px;height:29px}.chat-identity h2{font-size:13px}.chat-human-btn{padding:5px;font-size:10px}.chat-human-btn svg{display:none}.chat-categories{gap:13px}.chat-person{grid-template-columns:86px 1fr;gap:9px}.chat-person img{width:86px;height:86px}.chat-clear-confirm{flex-wrap:wrap}.chat-clear-confirm span{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.support-chat[open],.chat-typing i{animation:none}}@media print{.support-chat,.chat-resume{display:none!important}}
/* 问题卡片保持可读宽度，较矮的窗口为对话区留出空间。 */
.chat-suggestion-message .chat-message-content{width:min(440px,calc(100% - 37px))}.chat-suggestion-message .chat-meta{display:none}.chat-suggestion-message .chat-avatar{margin-top:6px}.chat-question{color:#536b82}.chat-sidebar button{color:#60768d}.chat-input-hint,.chat-disclosure{color:#7d90a3}.chat-tools button{color:#6f8599}.chat-category{color:#60768d}
@media(min-width:701px) and (max-height:650px){.chat-heading{padding-block:12px}.chat-log{padding-top:14px}.chat-date{margin-bottom:11px}.chat-message{margin-bottom:16px}.chat-composer textarea{min-height:42px;height:42px}.chat-tools{padding-top:8px}.chat-disclosure{margin-top:5px}.chat-bubble{padding:10px 14px}.chat-questions{padding:0}.chat-question{padding-block:10px}}
/* AI 连接状态与来源，不改变寻汇式分区布局。 */
.chat-connection{padding:8px 17px;margin:0;font-size:10px;line-height:1.6;color:#8b7555;background:#fff9ed;border-bottom:1px solid #eee7dc;flex-shrink:0}.chat-connection.ready{background:#eff7fc;color:#387fa8;border-color:#e0edf5}.chat-sources{margin-top:13px;padding:11px 12px;background:#f5f9fd;border:1px solid #e4edf6;border-radius:6px}.chat-sources strong{display:block;font-size:11px;color:#45718c;font-weight:500;margin-bottom:8px}.chat-sources a{display:flex;gap:6px;font-size:11px;line-height:1.7;color:#2384b8;padding:4px 0;overflow-wrap:anywhere}.chat-sources a span{flex:none}.chat-sources small{display:block;font-size:9px;line-height:1.6;color:#8197a8;margin-top:9px}.chat-bubble p.chat-ai-note{font-size:9px;line-height:1.7;color:#8a9bab;margin-top:11px}.chat-typing button{margin-left:10px;font-size:10px;padding:2px 8px;border:1px solid #d6e5f0;color:#5e97ba;border-radius:4px}.chat-disclosure a{color:#448caf;margin-left:6px}.chat-categories{gap:15px}.chat-disclosure{max-width:100%}
@media(max-width:700px){.chat-connection{padding:7px 13px;font-size:9px}.chat-categories{gap:13px}.chat-sources a{font-size:10px}.chat-sources small{font-size:8px}.chat-identity p{font-size:8px}.chat-disclosure{font-size:8px}}
