/* AI 找工具助手（首页）样式 — 独立文件，类名 .aichat-* 隔离 */
.aichat-btn {
  position: fixed; right: 20px; bottom: 24px; z-index: 9990;
  border: none; cursor: pointer; padding: 12px 18px; border-radius: 999px;
  background: #2563eb; color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .35);
}
.aichat-btn:hover { background: #1d4ed8; }
.aichat-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 9991;
  width: 380px; max-width: calc(100vw - 24px); height: 540px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 16px; box-shadow: 0 16px 48px rgba(15, 23, 42, .22);
  display: flex; flex-direction: column; overflow: hidden;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.aichat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 16px; background: #2563eb; color: #fff; font-size: 15px; font-weight: 600;
}
.aichat-close { background: none; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.aichat-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f8fafc; }
.aichat-msg {
  max-width: 88%; padding: 9px 12px; border-radius: 12px; margin-bottom: 10px;
  font-size: 14px; line-height: 1.65; word-break: break-word;
}
.aichat-bot { background: #fff; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; }
.aichat-user { background: #2563eb; color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.aichat-msg a { color: #2563eb; font-weight: 600; text-decoration: none; }
.aichat-user a { color: #fff; text-decoration: underline; }
.aichat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: #fff; }
.aichat-chip {
  border: 1px solid #dbeafe; background: #eff6ff; color: #1d4ed8; cursor: pointer;
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
}
.aichat-chip:hover { background: #dbeafe; }
.aichat-inputrow { display: flex; gap: 8px; padding: 10px 12px; background: #fff; }
.aichat-input {
  flex: 1; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 12px;
  font-size: 14px; outline: none; min-width: 0;
}
.aichat-input:focus { border-color: #2563eb; }
.aichat-send {
  border: none; background: #2563eb; color: #fff; border-radius: 10px;
  padding: 0 16px; font-size: 14px; cursor: pointer; flex: none;
}
.aichat-send:hover { background: #1d4ed8; }
.aichat-tip { padding: 0 12px 10px; font-size: 11px; color: #94a3b8; background: #fff; }
@media (max-width: 480px) {
  .aichat-panel { right: 8px; left: 8px; width: auto; bottom: 76px; }
  .aichat-btn { right: 12px; bottom: 16px; }
}
