#xiefu-help-root { --xhelp-ink:#244b39; --xhelp-paper:#fbfaf4; --xhelp-line:#d5dfd1; --xhelp-bar-height:59px; position:sticky; top:0; z-index:2600; color:var(--xhelp-ink); font-family:var(--sans,system-ui,-apple-system,"Microsoft YaHei",sans-serif); }
#xiefu-help-root *, #xiefu-help-root *::before, #xiefu-help-root *::after { box-sizing:border-box; }
.xhelp-bar { min-height:var(--xhelp-bar-height); background:#eaf0e2; border-bottom:1px solid #cbd7c3; box-shadow:0 2px 12px #233f2910; }
.xhelp-bar-inner { width:min(1160px,calc(100% - 64px)); min-height:var(--xhelp-bar-height); margin:auto; display:flex; align-items:center; gap:15px; }
.xhelp-brand { display:flex; align-items:center; gap:9px; flex:none; font-weight:750; font-size:13px; white-space:nowrap; }
.xhelp-spark { width:28px; height:28px; display:grid; place-items:center; color:#fff9e9; background:#315b42; border-radius:9px 9px 9px 2px; font-size:18px; }
.xhelp-brand small { color:#61755d; font-size:11px; font-weight:500; margin-left:3px; }
.xhelp-trigger { display:flex; align-items:center; gap:14px; flex:1; min-width:0; max-width:580px; min-height:40px; padding:8px 14px; border:1px solid #c8d5be; border-radius:8px; color:#6b7964; background:#fbfcf6; font:inherit; font-size:12px; text-align:left; cursor:pointer; }
.xhelp-trigger-copy { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; }
.xhelp-trigger-action { color:#365a3d; white-space:nowrap; font-size:11px; font-weight:750; }
.xhelp-trigger:hover { border-color:#759566; background:#fffef9; }
.xhelp-bar-note { margin-left:auto; color:#718269; font-size:10px; white-space:nowrap; }
.xhelp-dialog { width:min(470px,calc(100vw - 32px)); max-width:none; height:min(780px,calc(var(--xhelp-viewport-height,100dvh) - 88px)); max-height:calc(var(--xhelp-viewport-height,100dvh) - 88px); min-height:0; margin:0; inset:calc(var(--xhelp-bar-measured-height,var(--xhelp-bar-height)) + 13px) 16px auto auto; padding:0; border:1px solid #cbd7c3; border-radius:15px; color:var(--xhelp-ink); background:var(--xhelp-paper); box-shadow:0 22px 70px #142e2d38; overflow:hidden; }
.xhelp-dialog[open] { display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; }
.xhelp-dialog::backdrop { background:#10251e45; backdrop-filter:blur(2px); }
.xhelp-dialog button, .xhelp-dialog textarea, .xhelp-dialog a { font-family:inherit; }
.xhelp-dialog button { cursor:pointer; }
.xhelp-head { grid-row:1; padding:15px 16px; display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--xhelp-line); background:#eef2e7; }
.xhelp-head-copy { flex:1; min-width:0; }
.xhelp-title { margin:0; color:#244b39; font-size:16px; line-height:1.5; font-weight:750; }
.xhelp-subtitle { margin:2px 0 0; font-size:11px; line-height:1.5; color:#6a7c63; }
.xhelp-close { display:grid; place-items:center; flex:none; width:40px; height:40px; padding:0; border:1px solid transparent; border-radius:8px; background:transparent; color:#43604b; font-size:25px; line-height:1; }
.xhelp-close:hover { background:#e0e9d8; }
.xhelp-start { grid-row:2; padding:12px 16px 13px; border-bottom:1px solid var(--xhelp-line); }
.xhelp-intro { margin:0 0 10px; font-size:12px; line-height:1.75; color:#61745d; }
.xhelp-prompts { display:flex; flex-wrap:wrap; gap:6px; }
.xhelp-prompt { min-height:32px; border:1px solid #d1ddc7; border-radius:6px; padding:6px 9px; color:#46663e; background:#f3f6ec; font-size:11px; line-height:1.45; }
.xhelp-prompt:hover { background:#e8f0df; border-color:#a6bd96; }
.xhelp-messages { grid-row:3; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:16px; scroll-behavior:smooth; scrollbar-gutter:stable; }
.xhelp-message { max-width:94%; margin:0 0 15px; }
.xhelp-message-user { margin-left:auto; }
.xhelp-message-name { margin:0 0 5px; color:#7d8b76; font-size:10px; line-height:1.4; }
.xhelp-message-user .xhelp-message-name { text-align:right; }
.xhelp-message-body { padding:11px 13px; border:1px solid #dde5d6; border-radius:10px 10px 10px 2px; color:#2c4a36; background:#fffef8; font-size:13px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; word-break:normal; }
.xhelp-message-user .xhelp-message-body { background:#e5eddc; border-color:#d1ddc5; border-radius:10px 10px 2px 10px; }
.xhelp-message-pending .xhelp-message-body { color:#728268; background:#f4f5ed; }
.xhelp-message-error .xhelp-message-body { color:#805133; background:#fff5e7; border-color:#e8d2b0; }
.xhelp-message-images { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.xhelp-message-images img { width:112px; max-width:100%; height:76px; object-fit:contain; background:#f3f3ed; border:1px solid #cdd8c4; border-radius:5px; }
.xhelp-sources { margin-top:7px; display:flex; flex-wrap:wrap; gap:5px; }
.xhelp-source { padding:4px 7px; border-radius:5px; color:#557044; background:#edf3e5; font-size:10px; line-height:1.4; text-decoration:none; overflow-wrap:anywhere; }
.xhelp-source:hover { text-decoration:underline; }
.xhelp-retry { margin-top:8px; min-height:36px; padding:6px 12px; border:1px solid #cbab83; border-radius:6px; background:#fff9ee; color:#775033; font-size:12px; }
.xhelp-compose { grid-row:4; padding:10px 14px 12px; border-top:1px solid var(--xhelp-line); background:#f2f4eb; }
.xhelp-attachments { display:flex; flex-wrap:wrap; gap:7px; }
.xhelp-attachment { display:flex; align-items:center; gap:7px; max-width:100%; margin-bottom:8px; padding:5px 6px; border:1px solid #cdd9c3; border-radius:7px; background:#fcfdf7; }
.xhelp-attachment img { flex:none; width:42px; height:33px; object-fit:contain; border-radius:3px; background:#e9ede2; }
.xhelp-attachment-name { min-width:0; max-width:100px; color:#607653; font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.xhelp-remove { flex:none; display:grid; place-items:center; width:30px; height:30px; border:0; border-radius:4px; color:#6b785d; background:transparent; font-size:19px; }
.xhelp-remove:hover { background:#e8eddf; }
.xhelp-textarea { display:block; width:100%; height:68px; min-height:63px; max-height:140px; resize:vertical; padding:10px 12px; border:1px solid #c9d7bc; border-radius:8px; color:#264735; background:#fffef9; font-size:14px; line-height:1.65; outline:none; }
.xhelp-textarea::placeholder { color:#8a9680; }
.xhelp-compose-actions { display:flex; align-items:center; gap:8px; margin-top:8px; }
.xhelp-upload { min-height:39px; padding:6px 9px; border:1px solid #ccd8c0; border-radius:6px; color:#59714e; background:#f8faf2; font-size:11px; }
.xhelp-clear { min-height:36px; padding:5px 7px; border:0; border-radius:5px; background:transparent; color:#7d8874; font-size:11px; }
.xhelp-send { margin-left:auto; min-height:40px; min-width:72px; padding:8px 15px; border:1px solid #315c40; border-radius:7px; color:#fffcef; background:#315c40; font-size:12px; font-weight:700; }
.xhelp-send:hover { background:#244a31; }
.xhelp-dialog button:disabled { cursor:wait; opacity:.55; }
.xhelp-status { min-height:17px; margin:7px 0 0; color:#77876c; font-size:10px; line-height:1.6; overflow-wrap:anywhere; }
.xhelp-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
#xiefu-help-root button:focus-visible, #xiefu-help-root a:focus-visible, .xhelp-textarea:focus-visible { outline:3px solid #bc8c47; outline-offset:3px; }
body.xhelp-dialog-open { overflow:hidden; }
.xhelp-offset-header { top:var(--xhelp-header-offset,59px)!important; }
.xhelp-has-turns .xhelp-start, .xhelp-compact .xhelp-start { display:none; }
.xhelp-compact .xhelp-head { padding-block:6px; }
.xhelp-compact .xhelp-subtitle { display:none; }
.xhelp-compact .xhelp-textarea { height:43px; min-height:43px; max-height:75px; }
.xhelp-compact .xhelp-compose { padding-block:7px; }
@media(max-width:850px) { .xhelp-bar-note { display:none; } .xhelp-bar-inner { width:calc(100% - 36px); } .xhelp-brand small { display:none; } }
@media(max-width:520px) {
  #xiefu-help-root { --xhelp-bar-height:61px; }
  .xhelp-bar-inner { width:calc(100% - 24px); gap:10px; }
  .xhelp-brand { gap:6px; font-size:12px; }
  .xhelp-spark { width:27px; height:27px; }
  .xhelp-trigger { min-height:42px; gap:5px; padding:8px 9px; font-size:11px; }
  .xhelp-trigger-action { font-size:10px; }
  .xhelp-dialog { inset:calc(var(--xhelp-bar-measured-height,var(--xhelp-bar-height)) + 7px) 7px 7px; width:auto; height:calc(var(--xhelp-viewport-height,100dvh) - var(--xhelp-bar-measured-height,var(--xhelp-bar-height)) - 14px); max-height:calc(var(--xhelp-viewport-height,100dvh) - var(--xhelp-bar-measured-height,var(--xhelp-bar-height)) - 14px); min-height:0; border-radius:11px; }
  .xhelp-head { padding:10px 11px; }
  .xhelp-close { width:42px; height:42px; }
  .xhelp-start { padding:10px 12px; }
  .xhelp-intro { margin-bottom:8px; font-size:11px; }
  .xhelp-prompt { min-height:34px; padding:6px 8px; font-size:10px; }
  .xhelp-messages { padding:13px 11px; }
  .xhelp-message { max-width:96%; }
  .xhelp-message-body { font-size:13px; padding:10px 11px; }
  .xhelp-compose { padding:9px 10px 10px; }
  .xhelp-textarea { height:64px; min-height:59px; font-size:16px; }
  .xhelp-upload { min-height:42px; font-size:11px; }
  .xhelp-send { min-height:42px; }
  .xhelp-compact .xhelp-textarea { height:43px; min-height:43px; }
}
@media(max-width:350px) { .xhelp-brand > span:last-child { font-size:11px; } .xhelp-trigger-copy { font-size:10px; } .xhelp-trigger-action { display:none; } .xhelp-clear { font-size:10px; padding-inline:3px; } }
@media(prefers-reduced-motion:reduce) { .xhelp-messages { scroll-behavior:auto; } }
