:root{
  --yj-support-bg:#f5f1eb;
  --yj-support-paper:#fffdfa;
  --yj-support-ink:#1e1c1b;
  --yj-support-muted:#756d68;
  --yj-support-line:#ddd4cc;
  --yj-support-brand:#7d2338;
  --yj-support-brand-dark:#571725;
  --yj-support-shadow:0 24px 70px rgba(38,25,20,.18);
}
#yjSupportLauncher{position:fixed;right:24px;bottom:24px;z-index:8800;height:48px;padding:0 18px;border:1px solid rgba(125,35,56,.24);border-radius:999px;background:var(--yj-support-brand);color:#fff;font:700 14px/1 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;display:inline-flex;align-items:center;gap:9px;box-shadow:0 12px 30px rgba(77,29,40,.18);cursor:pointer;-webkit-tap-highlight-color:transparent}
#yjSupportLauncher:hover{background:var(--yj-support-brand-dark);transform:translateY(-1px)}
#yjSupportLauncher .yj-support-label-mobile{display:none}
#yjSupportLauncher .yj-support-unread{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#fff;color:var(--yj-support-brand);display:none;align-items:center;justify-content:center;font-size:10px;font-weight:800}
#yjSupportLauncher.has-unread .yj-support-unread{display:inline-flex}
#yjSupportBackdrop{position:fixed;inset:0;z-index:8890;background:rgba(30,28,27,.36);opacity:0;pointer-events:none;transition:.18s}
#yjSupportBackdrop.is-open{opacity:1;pointer-events:auto}
#yjSupportPanel{position:fixed;right:24px;bottom:82px;z-index:8900;width:min(360px,calc(100vw - 28px));height:500px;border:1px solid var(--yj-support-line);border-radius:20px;background:var(--yj-support-paper);box-shadow:var(--yj-support-shadow);overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto;opacity:0;pointer-events:none;transform:translateY(14px) scale(.985);transform-origin:bottom right;transition:opacity .16s ease,transform .16s ease;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans SC",Arial,sans-serif;color:var(--yj-support-ink)}
#yjSupportPanel.is-open{opacity:1;pointer-events:auto;transform:none}
.yj-support-head{display:flex;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid var(--yj-support-line);background:#fbf8f4}
.yj-support-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--yj-support-brand);color:#fff;font-size:14px;font-weight:800;flex:0 0 auto}
.yj-support-head-copy{min-width:0;flex:1;display:flex;align-items:center;gap:8px}.yj-support-title{font-size:14px;font-weight:800;line-height:1.25;white-space:nowrap}
.yj-support-status{display:flex;align-items:center;gap:5px;margin-top:0;color:var(--yj-support-muted);font-size:11px;white-space:nowrap}.yj-support-status-dot{width:7px;height:7px;border-radius:50%;background:#aaa19a}.yj-support-status.is-online .yj-support-status-dot{background:#2f8a52;box-shadow:0 0 0 3px rgba(47,138,82,.10)}
.yj-support-close{width:32px;height:32px;border:0;border-radius:50%;background:#eee7e1;color:#403936;font-size:20px;line-height:1;cursor:pointer}
.yj-support-messages{overflow:auto;padding:14px 12px 16px;background:var(--yj-support-paper);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.yj-support-msg{display:flex;margin:9px 0;align-items:flex-start}.yj-support-msg.is-user{justify-content:flex-end}.yj-support-stack{display:flex;flex-direction:column;align-items:flex-start;max-width:82%;min-width:0}.yj-support-msg.is-user .yj-support-stack{align-items:flex-end}.yj-support-bubble{display:inline-block!important;width:fit-content!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important;padding:9px 11px;border-radius:15px;background:#f0eae5;color:#37312e;font-size:13px;line-height:1.52;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.yj-support-msg.is-user .yj-support-bubble{background:var(--yj-support-brand);color:#fff;border-bottom-right-radius:5px}.yj-support-msg.is-admin .yj-support-bubble{border-bottom-left-radius:5px}.yj-support-time{margin-top:4px;padding:0 3px;opacity:.58;font-size:9px;line-height:1.2;color:var(--yj-support-muted);white-space:nowrap}.yj-support-msg.is-user .yj-support-time{text-align:right}.yj-support-empty{padding:26px 12px;text-align:center;color:var(--yj-support-muted);font-size:12px}
.yj-support-compose{border-top:1px solid var(--yj-support-line);padding:9px 10px 10px;background:#fbf8f4}.yj-support-compose-row{display:flex;align-items:center;gap:8px}
#yjSupportInput{flex:1;min-height:44px;max-height:108px;resize:none;border:1px solid #d9cfc7;border-radius:999px;padding:11px 16px;background:#fff;outline:none;color:var(--yj-support-ink);font:13px/1.45 inherit}
#yjSupportInput:focus{border-color:rgba(125,35,56,.58);box-shadow:0 0 0 3px rgba(125,35,56,.07)}
#yjSupportSend{flex:0 0 auto;height:44px;padding:0 18px;border:0;border-radius:999px;background:var(--yj-support-brand);color:#fff;font-size:13px;font-weight:800;cursor:pointer}#yjSupportSend:disabled{opacity:.45;cursor:not-allowed}
.yj-support-footnote{display:none}.yj-support-error{padding:8px 10px;color:#9d2929;font-size:11px;text-align:center}
@media(max-width:900px){
  #yjSupportLauncher{right:14px;bottom:max(16px,env(safe-area-inset-bottom));height:40px;padding:0 10px;font-size:13px;gap:6px}
  #yjSupportLauncher .yj-support-label-full{display:none}
  #yjSupportLauncher .yj-support-label-mobile{display:inline}
  #yjSupportBackdrop{display:block}
  #yjSupportPanel{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:auto;height:min(76dvh,620px);max-height:calc(100dvh - 24px);border-radius:22px 22px 18px 18px;transform:translateY(24px);transform-origin:bottom center}
  .yj-support-head{padding:12px 13px}.yj-support-messages{padding:12px 12px 14px}.yj-support-compose{padding:8px 9px calc(8px + env(safe-area-inset-bottom));}#yjSupportInput{font-size:16px}
}
@media(min-width:901px){#yjSupportBackdrop{display:none!important}}

/* v2.43 · 图片消息基础样式（平台专属 CSS 会进一步细化） */
.yj-support-bubble-text:empty{display:none}
.yj-support-preview:empty{display:none}
.yj-support-file-input{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
