/* 海豚AI常见问题助手：原创生成头像，本地FAQ界面，不表示人工在线。 */
.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; }
.chat-fab { width: 56px; height: 56px; padding: 0; background: #F5F7FF; border: 2px solid #fff; box-shadow: 0 5px 20px #1c326025; overflow: visible; }
.chat-fab > img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.chat-fab:hover { background: #F5F7FF; transform: translateY(-2px); }
.support-fab-tip { position: absolute; right: 66px; top: 12px; width: max-content; padding: 7px 12px; background: #fff; color: var(--text-2); border: 1px solid var(--line); border-radius: 12px; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.chat-fab:hover .support-fab-tip, .chat-fab:focus-visible .support-fab-tip { opacity: 1; }
.support-nav-avatar { display: none; }
body.support-open { overflow: hidden; }
.support-overlay { position: fixed; inset: 0; background: #15214B1C; z-index: 120; }
.support-panel { position: absolute; right: 28px; bottom: 100px; width: 410px; height: 660px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 128px); display: flex; flex-direction: column; background: white; border: 1px solid #fff; border-radius: 24px; box-shadow: 0 20px 70px #1725532E; overflow: hidden; outline: none; color: var(--text); }
.support-header { position: relative; flex: 0 0 auto; padding: 24px 24px 20px; background: radial-gradient(ellipse at 2% 0%, #FFF0F4, transparent 70%), linear-gradient(120deg, #F4EDFF, #E9F5FF); }
.support-close { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: #ffffff9c; color: var(--text-2); font-size: 25px; line-height: 1; }
.support-close:hover { background: white; }
.support-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid white; box-shadow: 0 4px 16px #5969B016; vertical-align: middle; }
.support-tag { margin-left: 10px; font-size: 11px; padding: 5px 9px; border-radius: 20px; background: #FFFFFFB3; color: #6E71A0; }
.support-header h2 { font-size: 21px; font-weight: 400; letter-spacing: 0; margin: 15px 0 5px; color: #202D63; }
.support-welcome { font-size: 16px; margin: 0 0 6px; color: #505E88; }
.support-intro { font-size: 12px; margin: 0; color: #74809D; line-height: 1.6; }
.support-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px 22px 12px; }
.support-section-label { color: #8390AA; font-size: 12px; margin: 0 0 12px; }
.support-shortcuts { display: grid; gap: 9px; }
.support-shortcuts button { display: flex; justify-content: space-between; align-items: center; text-align: left; background: #F8F9FE; border: 1px solid #ECEFFC; border-radius: 12px; padding: 11px 13px; font-size: 13px; color: #415079; font-weight: 400; }
.support-shortcuts button span { color: #9A9FC0; font-size: 17px; }
.support-shortcuts button:hover { border-color: #CBD5FA; background: #F0F3FF; }
.support-messages { display: grid; gap: 10px; }
.support-message { font-size: 13px; line-height: 1.75; padding: 12px 13px; border-radius: 13px; background: #F4F6FC; overflow-wrap: anywhere; }
.support-message:first-child { margin-top: 18px; }
.support-message-label { color: #8A93AB; font-size: 10px; display: block; margin-bottom: 4px; }
.support-message p { margin: 0; white-space: pre-wrap; }
.support-question { background: #EEF2FF; margin-left: 25px; }
.support-help-link { display: inline-block; margin: 14px 0 0; font-size: 12px; color: var(--royal); text-decoration: none; }
.support-footer { flex: 0 0 auto; padding: 13px 18px 14px; background: #fff; border-top: 1px solid #F0F2F8; }
.support-form { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid #E4E8F4; border-radius: 14px; background: #FAFBFE; }
.support-form:focus-within { border-color: #AABAF2; }
.support-form input { min-width: 0; width: 100%; border: 0; outline: 0; padding: 6px; background: transparent; color: var(--text); font: inherit; font-size: 13px; }
.support-form input::placeholder { color: #A0A9BF; }
.support-form button { flex-shrink: 0; background: var(--royal); color: #fff; border-radius: 9px; padding: 8px 11px; font-size: 12px; }
.support-footer p { font-size: 10px; color: #939DB3; text-align: center; line-height: 1.6; margin: 8px 0 0; }
.support-footer .support-safety { margin-top: 2px; }
.support-inline { color: var(--royal); text-decoration: underline; font: inherit; padding: 0; }
@media (max-width: 860px) {
  /* 手机使用已有帮助tab的头像，不叠加遮挡内容的悬浮球；导航占位/安全区保持原样。 */
  .chat-fab { display: none !important; }
  #bottom-nav [data-nav="help"] { position: relative; }
  #bottom-nav [data-nav="help"] > svg { opacity: 0; }
  #bottom-nav .support-nav-avatar { display: block; position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid #D5DDF8; }
  .support-panel { width: calc(100vw - 24px); max-width: 410px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); height: 660px; max-height: calc(100dvh - 96px - env(safe-area-inset-bottom)); border-radius: 22px; }
  .support-header { padding: 20px 20px 17px; }
  .support-header h2 { font-size: 20px; }
  .support-form input { font-size: 16px; }
}
.support-avatar { display: inline-block; }
.support-footer p { font-size: 11px; color: var(--muted); }
/* 横屏/软键盘缩小可视高度时整张卡片可滚动，输入区仍能滚动到达。 */
@media (max-height: 560px) {
  .support-panel { overflow-y: auto; overscroll-behavior: contain; }
  .support-body { flex: 0 0 auto; overflow: visible; }
  .support-header { padding: 16px 20px; }
  .support-avatar { width: 44px; height: 44px; }
  .support-header h2 { font-size: 18px; margin-top: 8px; }
  .support-intro { display: none; }
}
