/* DockGenius support widget — floating customer-service component.
   Usage: <link rel="stylesheet" href="support-widget.css">
          <script src="support-widget.js"></script>
   Brand: deep navy #0A1A2F / chain gold #C9A24B / honey amber #F0A44B.
   Languages: 简体中文 + English (follows <html lang> or window.DGSW_LANG).
   Namespace #dgsw-* does not leak into the host page. */

#dgsw-root { position: fixed; right: 20px; bottom: 20px; z-index: 2147483647;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; }

#dgsw-fab { width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #E8C878, #C9A24B); color: #0A1A2F;
  box-shadow: 0 8px 24px rgba(201,162,75,.35); display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease; }
#dgsw-fab:hover { transform: scale(1.06); }
#dgsw-fab svg { width: 28px; height: 28px; }

#dgsw-panel { position: fixed; right: 20px; bottom: 92px; width: 360px; max-width: calc(100vw - 40px);
  max-height: 520px; display: none; flex-direction: column; overflow: hidden;
  background: #0E1B30; border: 1px solid #22334A; border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5); color: #EDF4FF; }
#dgsw-panel.dgsw-open { display: flex; }

#dgsw-head { padding: 14px 16px; background: linear-gradient(180deg,#12233C,#0E1B30);
  border-bottom: 1px solid #22334A; display: flex; align-items: center; justify-content: space-between; }
#dgsw-head .dgsw-title { font-weight: 700; font-size: 15px; }
#dgsw-head .dgsw-title .dgsw-gold { color: #C9A24B; }
#dgsw-close { background: none; border: none; color: #92A5BD; font-size: 20px; cursor: pointer; line-height: 1; }
#dgsw-close:hover { color: #EDF4FF; }

#dgsw-tabs { display: flex; border-bottom: 1px solid #22334A; }
#dgsw-tabs button { flex: 1; padding: 10px; background: none; border: none; cursor: pointer;
  color: #92A5BD; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; }
#dgsw-tabs button.dgsw-active { color: #C9A24B; border-bottom-color: #C9A24B; }

#dgsw-body { padding: 16px; overflow-y: auto; min-height: 220px; max-height: 340px; font-size: 14px; line-height: 1.6; }
#dgsw-body .dgsw-muted { color: #92A5BD; font-size: 13px; }

.dgsw-mailbtn { display: block; width: 100%; margin-top: 14px; padding: 12px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #E8C878, #C9A24B); color: #0A1A2F; font-weight: 700; font-size: 15px;
  cursor: pointer; text-align: center; text-decoration: none; }
.dgsw-mailbtn:hover { filter: brightness(1.06); }
.dgsw-mailaddr { margin-top: 10px; text-align: center; color: #F0A44B; font-size: 13px; word-break: break-all; }

#dgsw-chat { display: none; flex-direction: column; }
#dgsw-msgs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.dgsw-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.55; }
.dgsw-msg.dgsw-bot { background: #14253B; color: #EDF4FF; align-self: flex-start; border: 1px solid #22334A; }
.dgsw-msg.dgsw-user { background: #F0A44B; color: #0A1A2F; align-self: flex-end; font-weight: 500; }
.dgsw-msg .dgsw-tag { display: block; font-size: 11px; color: #92A5BD; margin-bottom: 3px; }
.dgsw-msg.dgsw-user .dgsw-tag { color: #0A1A2F; opacity: .6; }
.dgsw-fallbackbtn { display: inline-block; margin-top: 8px; padding: 7px 12px; border-radius: 8px;
  background: linear-gradient(135deg, #E8C878, #C9A24B); color: #0A1A2F; font-weight: 700; font-size: 13px;
  text-decoration: none; }
#dgsw-faqs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
#dgsw-faqs button { padding: 6px 10px; border-radius: 16px; border: 1px solid #F0A44B; background: none;
  color: #F0A44B; font-size: 12.5px; cursor: pointer; }
#dgsw-faqs button:hover { background: rgba(240,164,75,.12); }
#dgsw-inputrow { display: flex; gap: 8px; padding: 0 16px 14px; }
#dgsw-input { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid #22334A;
  background: #0A1A2F; color: #EDF4FF; font-size: 14px; outline: none; }
#dgsw-input:focus { border-color: #F0A44B; }
#dgsw-send { padding: 10px 16px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #E8C878, #C9A24B); color: #0A1A2F; font-weight: 700; font-size: 14px; }
.dgsw-typing { color: #92A5BD; font-size: 12.5px; font-style: italic; }

@media (max-width: 480px) {
  #dgsw-root { right: 14px; bottom: 14px; }
  #dgsw-panel { right: 14px; bottom: 86px; }
}
