.support-shell{max-width:760px!important;margin:24px auto!important;padding:0 16px!important;background:none!important;border:0!important}.support-chat{background:white;border:1px solid #d9e4ef;border-radius:16px;overflow:hidden}.support-chat>header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e2eaf3}.support-chat h1{font-size:20px;margin:0 0 5px}.support-chat header span{font-size:12px;color:#71849a}.support-chat header a{font-size:12px;color:#1565c0}#support-stream,#desk-stream{overflow:auto;flex:1;min-height:200px;padding:18px;scroll-behavior:smooth}#support-stream{height:390px}.support-message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 18px}.support-message.mine{align-items:flex-end}.support-message small{font-size:10px;color:#7c8da1;margin-bottom:5px}.support-message p{font-size:14px!important;margin:0!important;background:#eef4fb;color:#203954;padding:10px 13px;border-radius:11px;max-width:85%;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.support-message.mine p{background:#1565c0;color:white}.support-message button{font-size:10px!important;min-height:20px!important;padding:3px!important;margin-top:4px}.support-empty{color:#8291a4;text-align:center;padding:30px;font-size:13px}.support-chat form,#desk-form{border-top:1px solid #e2eaf3;padding:14px}.support-chat textarea,#desk-body{box-sizing:border-box;width:100%;resize:vertical;min-height:70px;max-height:170px;padding:10px;border:1px solid #d6e1ef;border-radius:8px;font:14px/1.5 sans-serif}.support-send-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px}.support-send-row span{font-size:11px;color:#6b8099;overflow-wrap:anywhere}.support-send-row button{background:#1565c0;color:#fff;border:0;border-radius:7px;padding:9px 18px;cursor:pointer}.support-unread{position:absolute;top:-3px;right:-3px;min-width:14px;height:14px;border-radius:9px;background:#e33b46;color:white;font:normal 9px/14px sans-serif;text-align:center}.support-unread[hidden]{display:none}
body.support-desk{margin:0;background:#f4f7fb;color:#20334c;font:14px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}.support-desk button,.support-desk input,.support-desk select{font:inherit;border:1px solid #d5e1ef;border-radius:7px;background:white;padding:7px 10px}.support-desk button{cursor:pointer;color:#1565c0}.desk-bar{display:flex;align-items:center;gap:12px;padding:14px 22px;background:#fff;border-bottom:1px solid #dae4f0;flex-wrap:wrap}.desk-bar h1{font-size:20px;margin:0 auto 0 0}.desk-bar a{font-size:12px;color:#1565c0;text-decoration:none}#desk-state{font-size:11px;color:#65798f}.desk-layout{display:grid;grid-template-columns:280px minmax(0,1fr);max-width:1180px;margin:20px auto;height:calc(100dvh - 130px);min-height:500px;background:white;border:1px solid #dbe5f0;border-radius:12px;overflow:hidden}.desk-layout>aside{border-right:1px solid #dde6f0;padding:12px;overflow:auto}.desk-layout>aside input,.desk-layout>aside select{box-sizing:border-box;width:100%;margin-bottom:9px}.desk-chat{display:flex;flex-direction:column;min-width:0;min-height:0}.desk-chat>header{padding:14px 18px;border-bottom:1px solid #dce6f0}.desk-chat h2{font-size:17px;margin:0}.desk-chat header p{font-size:11px;color:#6d8098;margin:5px 0}.desk-actions{display:flex;gap:6px;flex-wrap:wrap}.desk-actions button,.desk-actions select{font-size:11px}.inbox-item{width:100%;display:block;text-align:left;margin-bottom:8px;padding:12px!important;position:relative}.inbox-item.selected{background:#edf5ff;border-color:#9ebfe5}.inbox-item strong{font-size:13px}.inbox-item small{display:block;color:#7a8da5;font-size:10px}.inbox-item em{float:right;background:#e7384c;color:white;min-width:18px;text-align:center;border-radius:12px;font-size:10px;font-style:normal}#desk-toast{position:fixed;right:18px;top:90px;z-index:300;background:#123c6c;color:white;padding:14px 22px;border-radius:10px;box-shadow:0 6px 22px #123c6c30}#desk-toast[hidden]{display:none}@media(max-width:700px){.desk-layout{grid-template-columns:150px minmax(0,1fr);margin:8px;height:calc(100dvh - 160px)}.desk-bar{padding:10px;gap:8px}.desk-bar h1{font-size:17px}.desk-actions{gap:4px}.support-shell{margin:12px auto!important}#support-stream{height:calc(100dvh - 360px);min-height:220px}.support-message p{font-size:13px!important}}

body.app-ui.support-page main#page-content.support-shell{width:calc(100% - 32px)!important;max-width:760px!important;padding:0!important;margin:24px auto!important}.support-page .floating-support{display:none!important}.support-page .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.support-other{padding:12px 18px;border-top:1px solid #e2eaf3;font-size:12px;color:#60758b}.support-other summary{cursor:pointer}.support-page .support-chat>header h1{font-size:20px!important;margin:0 0 4px!important}@media(max-width:700px){body.app-ui.support-page main#page-content.support-shell{margin:12px auto!important;width:calc(100% - 24px)!important}.support-chat>header{padding:12px 14px}.support-chat form{padding:12px}#support-stream{height:calc(100dvh - 350px);min-height:220px}}
@media(max-width:700px){.support-page .support-chat{height:calc(100dvh - 176px);min-height:400px;display:flex;flex-direction:column}.support-chat>header,.support-chat form,.support-other{flex-shrink:0}.support-page #support-stream{height:auto;min-height:100px;flex:1;padding:14px}.support-page #support-body{height:64px!important;min-height:64px!important;max-height:90px!important;resize:none}.support-page .support-send-row{margin-top:6px}.support-page .support-send-row button{min-height:36px!important;height:36px!important;padding:6px 18px!important;font-size:14px!important}}
/* 客服统一字阶：标题 / 正文与输入 / 辅助信息。显式限定，避免全站旧样式覆盖。 */
body.support-page,body.support-desk{--support-title:22px;--support-body:15px;--support-control:14px;--support-caption:12px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif}
body.support-page .support-chat>header h1,body.support-desk .desk-bar h1{font-size:var(--support-title)!important;font-weight:700!important;line-height:1.35!important;letter-spacing:-.3px}
body.support-page .support-chat>header span,body.support-page .support-send-row span,body.support-desk #desk-state,body.support-desk .desk-chat header p{font-size:var(--support-caption)!important;font-weight:400!important;line-height:1.5!important;color:#718198}
body.support-page .support-chat>header a{font-size:13px!important;font-weight:500!important;line-height:1.5!important;white-space:nowrap}
body.support-page #support-body,body.support-desk #desk-body{font-family:inherit!important;font-size:16px!important;font-weight:400!important;line-height:1.6!important;letter-spacing:0!important;color:#20334c}
body.support-page #support-body::placeholder,body.support-desk #desk-body::placeholder{font-size:14px!important;font-weight:400!important;color:#8b98a9;opacity:1}
body.support-page .support-empty,body.support-desk .support-empty{font-size:14px!important;font-weight:400!important;line-height:1.7!important;color:#8291a4}
body.support-page .support-message p,body.support-desk .support-message p{font-size:var(--support-body)!important;font-weight:400!important;line-height:1.6!important}
body.support-page .support-message small,body.support-desk .support-message small{font-size:12px!important;font-weight:400!important;line-height:1.5!important}
body.support-page .support-send-row button,body.support-desk .support-send-row button{font-family:inherit!important;font-size:var(--support-control)!important;font-weight:600!important;line-height:1.4!important;letter-spacing:0!important}
body.support-desk .desk-chat h2{font-size:18px;font-weight:600;line-height:1.4}body.support-desk .inbox-item strong{font-size:14px;font-weight:600}body.support-desk .inbox-item small{font-size:12px;line-height:1.5}body.support-desk .desk-actions button,body.support-desk .desk-actions select{font-size:12px}
body.support-page .header-member summary{font-size:14px!important;font-weight:600!important}body.support-page .header-member summary .member-level{font-size:11px!important}
@media(max-width:700px){body.support-page,body.support-desk{--support-title:20px}.support-page .support-chat>header{gap:12px}.support-page #support-body:focus{outline:2px solid #9bbde5;outline-offset:1px;box-shadow:none!important}}
body.app-ui.support-page.support-embedded{margin:0!important;padding:0!important;min-height:0!important;background:#fff!important}body.app-ui.support-page.support-embedded main#page-content.support-shell{width:100%!important;max-width:none!important;min-height:0!important;height:100dvh!important;margin:0!important;padding:0!important}body.app-ui.support-page.support-embedded main#page-content .support-chat{height:100%!important;min-height:0!important;border:0!important;border-radius:0!important;display:flex;flex-direction:column}body.app-ui.support-page.support-embedded .support-chat>header{display:none!important}body.app-ui.support-page.support-embedded #support-stream{min-height:40px!important;height:auto!important;flex:1;overflow:auto;padding:12px}body.app-ui.support-page.support-embedded .support-chat form{padding:10px!important;flex:0 0 auto}body.app-ui.support-page.support-embedded #support-body{height:58px!important;min-height:58px!important;max-height:58px!important}body.app-ui.support-page.support-embedded .support-other{display:none}
/* 客服工作台独立布局：固定工具区，列表与对话各自滚动。 */
body.support-desk{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.support-desk *{box-sizing:border-box}
.support-desk .desk-bar{flex:0 0 auto;padding:14px max(20px,calc((100% - 1180px)/2));gap:10px}
.support-desk .desk-bar h1{white-space:nowrap}
.support-desk .ops-links{display:flex;flex:0 0 auto;gap:8px;width:calc(100% - 40px);max-width:1180px;margin:12px auto 0;align-items:center}
.support-desk .ops-links a{display:inline-flex;align-items:center;min-height:34px;padding:6px 14px;border:1px solid #d5e1ef;border-radius:8px;background:#fff;color:#52657b;text-decoration:none;font-size:13px}
.support-desk .ops-links a:hover{background:#eaf3ff;border-color:#9fbee5;color:#1565c0}
.support-desk .ops-links .current{background:#1565c0;color:#fff;border-color:#1565c0}
.support-desk main.desk-layout{flex:1 1 0;width:calc(100% - 40px);max-width:1180px;min-height:0;height:auto;margin:12px auto 20px;grid-template-columns:270px minmax(0,1fr)}
.support-desk #desk-stream{min-height:0}
.support-desk #desk-form{flex-shrink:0;margin:0}
.support-desk #desk-body{display:block;height:76px;min-height:76px;max-height:110px;margin-top:8px}
.support-desk #desk-quick{max-width:280px;width:100%}
.support-desk .desk-actions{align-items:center}
.support-desk .desk-chat>header{flex-shrink:0}
@media(max-width:700px){.support-desk .desk-bar{padding:10px 12px}.support-desk .ops-links{width:calc(100% - 20px);overflow:auto;white-space:nowrap}.support-desk main.desk-layout{width:calc(100% - 20px);grid-template-columns:145px minmax(0,1fr);margin-bottom:10px}.support-desk .desk-chat>header{padding:10px}.support-desk .desk-actions button{padding:5px 7px}}
