/* 悬浮客服触发按钮（右下角） */
  .ai-chat-float-btn {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 999999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7dfa0, #e7bf69);
    border: 2px solid #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.2s;
  }
  .ai-chat-float-btn:hover { transform: scale(1.08); }
  .ai-chat-float-btn svg { width: 30px; height: 30px; fill: #111c33; }

  /* 聊天弹窗面板 */
  .ai-chat-box {
    position: fixed;
    right: 20px;
    bottom: 94px;
    z-index: 999999;
    width: 360px;
    height: 520px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 120px);
    background: rgba(7, 20, 44, 0.95);
    border: 1px solid rgba(231, 191, 105, 0.3);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: inherit;
  }
  .ai-chat-box.open { display: flex; }

  /* 聊天头部 */
  .ai-chat-header {
    background: linear-gradient(135deg, #0f244a, #07142c);
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .ai-chat-title { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 15px; }
  .ai-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #f7dfa0, #e7bf69); color: #111c33; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
  .ai-close-btn { background: none; border: 0; color: #8b9bb8; font-size: 20px; cursor: pointer; padding: 0; }
  .ai-close-btn:hover { color: #fff; }

  /* 聊天内容区 */
  .ai-chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0,0,0,0.2);
  }
  .ai-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-all;
  }
  .ai-msg.bot {
    background: rgba(255,255,255,0.08);
    color: #f1f5f9;
    align-self: flex-start;
    border-top-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.06);
  }
  .ai-msg.user {
    background: linear-gradient(135deg, #e7bf69, #d4a745);
    color: #111c33;
    align-self: flex-end;
    border-top-right-radius: 4px;
    font-weight: 700;
  }
  .ai-msg img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    display: block;
  }

  /* 快捷提问按钮栏 */
  .ai-quick-chips {
    padding: 8px 12px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    background: rgba(7, 20, 44, 0.9);
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .ai-quick-chip {
    background: rgba(231, 191, 105, 0.1);
    border: 1px solid rgba(231, 191, 105, 0.3);
    color: #f7dfa0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s;
  }
  .ai-quick-chip:hover { background: rgba(231, 191, 105, 0.25); }

  /* 底部输入框 */
  .ai-chat-footer {
    padding: 12px;
    background: #07142c;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 8px;
  }
  .ai-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
  }
  .ai-input:focus { border-color: #e7bf69; }
  .ai-send-btn {
    background: linear-gradient(135deg, #f7dfa0, #e7bf69);
    color: #111c33;
    border: 0;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
  }
  .ai-send-btn:hover { opacity: 0.9; }

  @media(max-width: 480px) {
    .ai-chat-box { right: 10px; bottom: 85px; width: calc(100vw - 20px); height: 460px; }
  }
