#wy-chat, #wy-chat-launcher { font: 14px/1.6 "Microsoft YaHei", "PingFang SC", sans-serif; color: #111827; }
#wy-chat *, #wy-chat *::before, #wy-chat *::after, #wy-chat-launcher { box-sizing: border-box; }
#wy-chat [hidden], #wy-chat-launcher [hidden] { display: none !important; }
#wy-chat button, #wy-chat textarea { font: inherit; }
#wy-chat button, #wy-chat-launcher { cursor: pointer; }
#wy-chat button:disabled { cursor: not-allowed; opacity: .55; }
#wy-chat button:focus-visible, #wy-chat a:focus-visible, #wy-chat textarea:focus-visible, #wy-chat-launcher:focus-visible { outline: 3px solid #d99a22; outline-offset: 3px; }
#wy-chat-launcher { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 124px; min-height: 40px; margin-left: 16px; padding: 0 22px; border: 1px solid #007c7a; border-radius: 10px; background: #fff; color: #007c7a; font-size: 14px; font-weight: 700; white-space: nowrap; }
#wy-chat-launcher:hover, #wy-chat-launcher[aria-expanded="true"] { background: #007c7a; color: #fff; }
#wy-chat-launcher .wy-chat-badge { position: absolute; right: -6px; top: -12px; padding: 1px 6px; border-radius: 9px; background: #a62c28; color: #fff; font-size: 10px; line-height: 16px; border: 2px solid #fff; }
#wy-chat-launcher.wy-chat-standalone { position: fixed; z-index: 120; right: 24px; top: 16px; }
#wy-chat .wy-chat-panel { position: fixed; z-index: 121; top: var(--wy-chat-top, 88px); right: max(24px, calc((100% - 1180px) / 2)); width: 360px; height: 520px; max-height: var(--wy-chat-space, calc(100dvh - 104px)); display: flex; flex-direction: column; border: 1px solid #e4e7ec; border-radius: 16px; background: #fff; box-shadow: 0 16px 48px #182b3024; overflow: hidden; }
#wy-chat .wy-chat-header { display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 13px 16px; border-bottom: 1px solid #e4e7ec; background: #fff; flex-shrink: 0; }
#wy-chat .wy-chat-avatar { display: block; width: 32px; height: 32px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
#wy-chat .wy-chat-heading { flex: 1; min-width: 0; }
#wy-chat h2 { margin: 0; font-size: 17px; line-height: 1.4; color: #111827; }
#wy-chat .wy-chat-heading p { margin: 2px 0 0; font-size: 11px; line-height: 1.4; color: #667085; }
#wy-chat .wy-chat-tools { display: flex; gap: 2px; }
#wy-chat .wy-chat-icon-button { display: grid; place-items: center; width: 32px; height: 36px; padding: 6px; background: transparent; border: 0; border-radius: 8px; }
#wy-chat .wy-chat-icon-button img { display: block; width: 20px; height: 20px; opacity: .58; }
#wy-chat .wy-chat-icon-button:hover { background: #f2f7f7; }
#wy-chat .wy-chat-menu { position: absolute; z-index: 2; top: 58px; right: 48px; width: 176px; padding: 6px; max-height: calc(100% - 68px); overflow-y: auto; border: 1px solid #e4e7ec; border-radius: 12px; background: #fff; box-shadow: 0 8px 26px #182b301f; }
#wy-chat .wy-chat-menu-item { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: #fff; color: #111827; text-align: left; font-size: 14px; text-decoration: none; }
#wy-chat .wy-chat-menu-item:hover { background: #f2f7f7; }
#wy-chat .wy-chat-end { margin-top: 5px; border-top: 1px solid #e4e7ec; border-radius: 0 0 6px 6px; }
#wy-chat .wy-chat-info { flex: 1; padding: 22px; overflow-y: auto; min-height: 0; }
#wy-chat .wy-chat-info h3 { margin: 0 0 18px; font-size: 17px; line-height: 1.4; }
#wy-chat .wy-chat-info p { margin: 0 0 16px; font-size: 14px; color: #667085; }
#wy-chat .wy-chat-back { border: 1px solid #007c7a; border-radius: 8px; background: #fff; color: #007c7a; padding: 7px 13px; }
#wy-chat .wy-chat-conversation { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#wy-chat .wy-chat-history { background: #f8fafa; border: 0; border-bottom: 1px solid #e4e7ec; padding: 6px; color: #007c7a; font-size: 12px; flex-shrink: 0; }
#wy-chat .wy-chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 18px; background: #f8fafa; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ccd8d8 transparent; }
#wy-chat .wy-chat-empty { padding: 45px 5px; text-align: center; color: #667085; line-height: 1.9; white-space: pre-line; }
#wy-chat .wy-chat-message { display: flex; align-items: flex-start; gap: 8px; max-width: 100%; margin: 0 0 24px; }
#wy-chat .wy-chat-message:last-child { margin-bottom: 0; }
#wy-chat .wy-chat-message-content { min-width: 0; max-width: 100%; }
#wy-chat .wy-chat-message .wy-chat-avatar { width: 26px; height: 26px; border-radius: 7px; margin-top: 2px; }
#wy-chat .wy-chat-visitor { width: fit-content; max-width: 88%; margin-left: auto; }
#wy-chat .wy-chat-body { margin: 0; padding: 11px 14px; border: 1px solid #e5ecec; border-radius: 12px; background: #fff; color: #111827; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
#wy-chat .wy-chat-visitor .wy-chat-body { background: #007c7a; border-color: #007c7a; color: #fff; }
#wy-chat .wy-chat-system { display: block; max-width: 100%; }
#wy-chat .wy-chat-system .wy-chat-body { padding: 7px 0; border: 0; text-align: center; background: transparent; font-size: 12px; color: #667085; }
#wy-chat .wy-chat-delivery { display: block; color: #667085; font-size: 11px; margin-top: 5px; text-align: right; }
#wy-chat [data-delivery="failed"] .wy-chat-delivery, #wy-chat [data-delivery="uncertain"] .wy-chat-delivery { color: #a14b18; }
#wy-chat .wy-chat-wait { margin: 0; padding: 8px 16px; background: #fff8e9; color: #795e28; font-size: 12px; flex-shrink: 0; }
#wy-chat .wy-chat-result { margin: 0; padding: 8px 16px; font-size: 12px; color: #795e28; background: #fff8e9; flex-shrink: 0; }
#wy-chat .wy-chat-form { padding: 15px 16px 16px; margin: 0; border-top: 1px solid #e4e7ec; background: #fff; flex-shrink: 0; }
#wy-chat .wy-chat-composer { padding: 9px 11px 8px; border: 1px solid #dfe7e7; border-radius: 12px; background: #f8fafa; }
#wy-chat .wy-chat-composer:focus-within { border-color: #007c7a; }
#wy-chat textarea { display: block; resize: none; width: 100%; border: 0; border-radius: 4px; padding: 2px 0; background: transparent; color: #111827; height: 44px; font-size: 14px; line-height: 1.5; }
#wy-chat textarea::placeholder { color: #7d899a; }
#wy-chat .wy-chat-actions { display: flex; align-items: center; justify-content: flex-end; min-height: 34px; margin-top: 4px; }
#wy-chat .wy-chat-counter { margin-right: auto; color: #667085; font-size: 11px; }
#wy-chat .wy-chat-send { background: #007c7a; color: #fff; border: 0; border-radius: 8px; min-height: 32px; padding: 5px 14px; font-size: 13px; font-weight: 700; }
#wy-chat .wy-chat-cancel { width: 100%; border: 0; background: transparent; color: #795e28; font-size: 11px; padding: 7px 0 0; }
#wy-chat .wy-chat-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 720px) {
  .wy-chat-navigation .nav-shell { position: relative; }
  .wy-chat-navigation .brand { max-width: calc(100% - 118px); }
  .wy-chat-navigation #wy-chat-launcher { position: absolute; right: 0; top: 16px; margin: 0; min-width: 96px; padding: 0 15px; font-size: 13px; }
  #wy-chat .wy-chat-panel { right: 12px; width: min(360px, calc(100% - 24px)); }
  #wy-chat textarea { font-size: 16px; }
  #wy-chat .wy-chat-icon-button { min-width: 36px; min-height: 40px; }
}
@media (max-height: 560px) {
  #wy-chat .wy-chat-header { min-height: 52px; padding-top: 7px; padding-bottom: 7px; }
  #wy-chat .wy-chat-form { padding: 7px 12px; }
  #wy-chat .wy-chat-log { padding: 12px; }
  #wy-chat textarea { height: 32px; }
  #wy-chat .wy-chat-menu { top: 48px; }
}
