@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: url('https://qiniu.qimy.net/Alibaba-PuHuiTi/AlibabaPuHuiTi-3-55-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alibaba Medium';
  src: url('https://qiniu.qimy.net/Alibaba-PuHuiTi/AlibabaPuHuiTi-3-65-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/**
 * AI 智能助手样式
 * 包含：悬浮按钮、聊天面板、消息气泡、Markdown 渲染等
 */

/* ============================================
   1. 悬浮按钮
   ============================================ */

#ai-assistant-btn {
  position: fixed;
  right: 79px;
  bottom: 146px;
  z-index: 100;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  transition: transform 0.2s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ai-assistant-btn:hover {
  transform: scale(1.05);
}

#ai-assistant-btn:active {
  transform: scale(0.95);
}

@media (min-width: 640px) {
  #ai-assistant-btn {
    right: 79px;
    bottom: 146px;
  }
}

#ai-assistant-btn.ai-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0);
}

/* AI Orb GIF 图片样式 */
.ai-orb-gif {
  display: block;
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================
   3. 聊天面板
   ============================================ */

#ai-assistant-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1201;
  width: calc(100vw - 32px);
  height: 640px;
  max-height: calc(100vh - 32px);
  background: #F4F4F4;
  font-family: 'Alibaba PuHuiTi', sans-serif;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

#ai-assistant-panel.ai-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (min-width: 640px) {
  #ai-assistant-panel {
    right: 24px;
    bottom: 24px;
    width: 430px;
  }
}

/* ============================================
   4. 面板头部
   ============================================ */

.ai-panel-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #477AF5 0%, #94ADFD 100%), linear-gradient(90deg, #E8E6FF 0%, #DFEFFF 100%);
}

.ai-panel-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-panel-title {
  font-weight: 500;
  font-size: 16px;
  color: #fff;
}

.ai-panel-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.ai-badge-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.ai-badge-text {
  background: linear-gradient(90deg, #E33F3F 0%, #F90 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.ai-panel-close {
  padding: 6px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-panel-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ai-panel-close svg {
  width: 20px;
  height: 20px;
  color: #C7D4FE;
}

/* ============================================
   5. 消息区域
   ============================================ */

.ai-messages-container {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.ai-messages-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 16px 16px 0 16px;
  background: #F4F4F4;
  scrollbar-gutter: stable;
}

.ai-messages-scroll::-webkit-scrollbar {
  width: 6px;
}

.ai-messages-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.ai-messages-scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.ai-messages-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 0;
}

/* 消息项 */
.ai-message {
  display: flex;
  width: 100%;
  animation: ai-message-in 0.3s ease;
}

@keyframes ai-message-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-message.user {
  justify-content: flex-end;
}

.ai-message.ai {
  justify-content: flex-start;
}

.ai-message-inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.ai-message.user .ai-message-inner {
  flex-direction: row-reverse;
}

/* 消息气泡 */
.ai-bubble {
  border-radius: 16px;
  padding: 10px 16px;
  font-size: 14px;
  max-width: 85%;
  word-break: break-word;
  line-height: 1.6;
}

.ai-message.user .ai-bubble {
  background: #EAF0FD;
  color: #20232A;
  border-bottom-right-radius: 4px;
  margin-right: 8px;
}

.ai-message.ai .ai-bubble {
  background: #fff;
  color: #374151;
  border-bottom-left-radius: 4px;
}

/* 欢迎消息 */
.ai-welcome-greeting {
  color: #2C6AF1;
  font-size: 16px;
}

.ai-welcome-desc {
  margin-top: 8px;
  color: #20232A;
  line-height: 1.7;
}

/* 建议按钮 */
.ai-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.ai-suggestion-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.ai-suggestion-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2C6AF1;
}

.ai-suggestion-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* 快捷回复 */
.ai-quick-replies {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px 0;
  scrollbar-width: none;
}

.ai-quick-replies::-webkit-scrollbar {
  display: none;
}

.ai-quick-reply-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  color: #696C7B;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.ai-quick-reply-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2C6AF1;
}

.ai-quick-reply-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ai-quick-reply-btn:disabled:hover {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #696C7B;
}

/* 加载动画 */
.ai-typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.ai-typing-dot {
  width: 8px;
  height: 8px;
  background: #60a5fa;
  border-radius: 50%;
  animation: ai-bounce 1.4s ease-in-out infinite;
}

.ai-typing-dot:nth-child(1) { animation-delay: 0ms; }
.ai-typing-dot:nth-child(2) { animation-delay: 150ms; }
.ai-typing-dot:nth-child(3) { animation-delay: 300ms; }

@keyframes ai-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
}

/* 加载文本 */
.ai-loading-text {
  color: #6b7280;
  margin-top: 8px;
  font-size: 12px;
}

.ai-loading-inline {
  display: inline;
  color: inherit;
  font-size: inherit;
  white-space: nowrap;
}

.ai-loading-inline .dot {
  display: inline-block;
  animation: loadingPulse 1.2s ease-in-out infinite;
}

.ai-loading-inline .dot:nth-child(1) { animation-delay: 0s; }
.ai-loading-inline .dot:nth-child(2) { animation-delay: 0.2s; }
.ai-loading-inline .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* 无响应提示 */
.ai-no-response {
  color: #9ca3af;
  font-size: 12px;
}

/* 滚动到底部按钮 */
.ai-scroll-bottom-wrapper {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.ai-scroll-bottom-btn {
  pointer-events: auto;
  background: #fff;
  border-radius: 16px;
  width: 48px;
  height: 48px;
  box-shadow: 0 1px 10px 0 rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}

.ai-scroll-bottom-btn:hover {
  transform: scale(1.1);
}

.ai-scroll-bottom-btn svg {
  width: 20px;
  height: 20px;
  color: #2C6AF1;
}

.ai-scroll-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 37px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(244, 244, 244, 0) 9.46%, #F4F4F4 100%);
}

/* ============================================
   6. 输入区域
   ============================================ */

.ai-input-area {
  padding: 16px 16px 10px 16px;
  border-top: 1px solid #f3f4f6;
  flex-shrink: 0;
  background: #f4f4f4;
}

.ai-quick-replies-area {
  padding-bottom: 10px;
}

.ai-textarea-wrapper {
  background-color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.ai-textarea-wrapper:focus-within {
  border-color: #4078FF;
}

.ai-textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 14px;
  line-height: 1.5;
  font-family: inherit;
  max-height: 5em;
  background: transparent;
}

.ai-send-btn-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.ai-send-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.ai-send-btn:hover {
  transform: scale(1.05);
}

.ai-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ai-send-btn:disabled:hover {
  transform: none;
}

.ai-send-btn svg {
  display: block;
}

.ai-send-btn.stop-btn {
  background: transparent;
}

.ai-send-btn.stop-btn:hover {
  transform: scale(1.05);
}

/* 免责声明 */
.ai-disclaimer {
  text-align: center;
  margin-top: 8px;
}

.ai-disclaimer-text {
  font-size: 10px;
  color: #9ca3af;
}

/* ============================================
   7. Markdown 内容样式
   ============================================ */

.ai-markdown {
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
}

.ai-markdown p {
  margin: 4px 0;
}

.ai-markdown h1,
.ai-markdown h2,
.ai-markdown h3,
.ai-markdown h4,
.ai-markdown h5,
.ai-markdown h6 {
  margin: 16px 0 8px 0;
  font-weight: 600;
  line-height: 1.4;
  color: #1f2937;
}

.ai-markdown h1 { font-size: 1.5em; }
.ai-markdown h2 { font-size: 1.3em; }
.ai-markdown h3 { font-size: 1.15em; }
.ai-markdown h4 { font-size: 1em; }

.ai-markdown ul,
.ai-markdown ol {
  margin: 8px 0;
  padding-left: 24px;
}

.ai-markdown li {
  margin: 6px 0;
  line-height: 1.6;
}

.ai-markdown ul li {
  list-style-type: disc;
}

.ai-markdown ul li::marker {
  color: #6366f1;
}

.ai-markdown ol li::marker {
  color: #6366f1;
  font-weight: 500;
}

.ai-markdown code {
  background: #f1f5f9;
  color: #6366f1;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.ai-markdown pre {
  background: #1e293b;
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #334155;
}

.ai-markdown pre code {
  background: none;
  color: #e2e8f0;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
}

.ai-markdown blockquote {
  margin: 12px 0;
  padding: 12px 16px;
  border-left: 4px solid #6366f1;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  color: #64748b;
  font-style: italic;
}

.ai-markdown a {
  color: #6366f1;
  text-decoration: none;
}

.ai-markdown a:hover {
  text-decoration: underline;
}

.ai-markdown table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.ai-markdown table th,
.ai-markdown table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.ai-markdown table th {
  background: #f8fafc;
  font-weight: 600;
  color: #1f2937;
}

.ai-markdown strong {
  font-weight: 600;
  color: #1f2937;
}

.ai-markdown em {
  font-style: italic;
}

.ai-markdown hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 16px 0;
}

/* ============================================
   7.5 推荐卡片（AIAssistant 独立卡片区域）
   ============================================ */

.ai-message-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ai-cards-section {
  margin-top: 12px;
  margin-left: 50px; /* 对齐气泡位置：orb 42px + gap 8px */
  max-width: calc(100% - 50px);
}

.ai-cards-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.ai-cards-title img {
  width: 14px;
  height: 14px;
}

.ai-cards-title span {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.ai-card {
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  cursor: pointer;
  max-width: 100%;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.ai-card:hover {
  opacity: 0.9;
}

.ai-card.type-news {
  background: linear-gradient(90deg, #F0F7FF 0%, #FFF 51.92%);
}

.ai-card.type-goods {
  background: #F9F8F8;
}

.ai-card.type-exhibitions {
  background: linear-gradient(90deg, #F3F0FF 0%, #FFF 51.92%);
}

.ai-card.type-bids {
  background: linear-gradient(90deg, #FFF4F0 0%, #FFF 51.92%);
}

.ai-card-cover {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.ai-card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  min-width: 0;
}

.ai-card-title {
  font-size: 14px;
  line-height: 1.4;
  color: #20232A;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ai-card-desc {
  font-size: 12px;
  line-height: 1.4;
  color: #999;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ai-card-price {
  font-size: 14px;
  color: #C82B2C;
  font-weight: 600;
}

/* 快捷回复图标 */
.ai-quick-reply-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================
   8. AI 搜索弹窗（Navbar 触发）
   ============================================ */

/* 遮罩层 */
.ai-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1201;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ai-search-overlay.ai-search-visible {
  opacity: 1;
  pointer-events: auto;
}

/* 弹窗容器 */
.ai-search-modal {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: calc(100vw - 32px);
  max-width: 672px;
  z-index: 1202;
  background: linear-gradient(90deg, #477AF5 0%, #94ADFD 100%);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-family: 'Alibaba PuHuiTi', sans-serif;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 112px);
}

.ai-search-modal.ai-search-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* 搜索头部 */
.ai-search-header {
  padding: 16px;
}

.ai-search-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.90);
  border-radius: 12px;
  height: 48px;
  padding: 0 10px;
  transition: background 0.2s ease;
}

.ai-search-input-wrapper:focus-within {
  background: #fff;
}

.ai-search-input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  font-family: 'Alibaba PuHuiTi', sans-serif;
  font-size: 14px;
  color: #20232A;
  outline: none;
  padding: 0;
  min-width: 0;
}

.ai-search-input::placeholder {
  color: #696C7B;
}

.ai-search-input:focus {
  box-shadow: none;
}

.ai-search-input:disabled {
  opacity: 0.8;
  color: #20232A;
}

.ai-search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 8px;
  display: block;
}

.ai-search-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 加载/回答过程中，隐藏品牌徽章，只保留停止按钮 */
.ai-search-action:has(.ai-search-stop-btn) .ai-search-brand-icon,
.ai-search-action:has(.ai-search-stop-btn) .ai-search-brand-text {
  display: none;
}

.ai-search-stop-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.ai-search-stop-btn:hover {
  transform: scale(1.05);
}

.ai-search-clear-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #BBC0CA;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s;
}

.ai-search-clear-btn:hover {
  opacity: 0.8;
}

.ai-search-clear-btn svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

.ai-search-brand-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.ai-search-brand-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #E33F3F 0%, #F90 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 建议标签 */
.ai-search-suggestions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-search-suggestion-tag {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-search-suggestion-tag:not(:disabled):hover {
  background: #fff;
  color: #2C6AF1;
}

.ai-search-suggestion-tag:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ai-search-suggestion-tag:disabled:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ai-search-suggestion-tag .tag-num {
  font-weight: 600;
  display: inline-block;
  margin-right: 2px;
  transform: skewX(-10deg);
}

.ai-search-suggestion-tag .tag-num.num-1 {
  background: linear-gradient(180deg, #FFF 0%, #FFDB66 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-search-suggestion-tag .tag-num.num-2 {
  background: linear-gradient(180deg, #FFF 0%, #FFAD66 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-search-suggestion-tag .tag-num.num-3 {
  background: linear-gradient(180deg, #FFF 0%, #66B5FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-search-suggestion-tag .tag-num.num-4 {
  color: rgba(255, 255, 255, 0.7);
}

.ai-search-suggestion-tag:not(:disabled):hover .tag-num {
  background: none;
  -webkit-text-fill-color: #2C6AF1;
  color: #2C6AF1;
}

/* 消息区域（外层 relative 容器） */
.ai-search-messages {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #fff;
}

/* 消息滚动容器 */
.ai-search-messages-scroll {
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.ai-search-messages-scroll::-webkit-scrollbar {
  width: 6px;
}

.ai-search-messages-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.ai-search-messages-scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.ai-search-messages-inner {
  padding: 0 32px 16px 32px;
}

/* AI 搜索标题 */
.ai-search-title-bar {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  padding: 16px 0 8px 0;
}

.ai-search-title-text {
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(90deg, #5058FF 44.57%, #66C9FA 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* AI 消息气泡（搜索模式） */
.ai-search-ai-message {
  padding: 12px 0;
}

.ai-search-ai-bubble {
  max-width: 90%;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ai-search-no-response {
  font-size: 14px;
  color: #9ca3af;
}

.ai-search-analyzing {
  font-size: 14px;
  color: #9296A3;
}

/* 加载光标 */
.loading-cursor {
  display: inline;
}

.loading-cursor .dot {
  display: inline-block;
  animation: loadingPulse 1.2s ease-in-out infinite;
}

.loading-cursor .dot:nth-child(1) { animation-delay: 0s; }
.loading-cursor .dot:nth-child(2) { animation-delay: 0.2s; }
.loading-cursor .dot:nth-child(3) { animation-delay: 0.4s; }

/* 推荐卡片区域 */
.ai-search-cards-section {
  padding-bottom: 16px;
}

.ai-search-cards-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0;
}

.ai-search-cards-title img {
  width: 14px;
  height: 14px;
}

.ai-search-cards-title span {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.ai-search-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px;
  justify-content: start;
}

@media (max-width: 640px) {
  .ai-search-cards-grid {
    grid-template-columns: 1fr;
  }
}

.ai-search-card {
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  cursor: pointer;
  max-width: 320px;
  transition: opacity 0.2s;
}

.ai-search-card:hover {
  opacity: 0.9;
}

.ai-search-card.type-news {
  background: linear-gradient(90deg, #F0F7FF 0%, #F9F8F8 100%);
}

.ai-search-card.type-goods {
  background: #F9F8F8;
}

.ai-search-card.type-exhibitions {
  background: linear-gradient(90deg, #F3F0FF 0%, #F9F8F8 100%);
}

.ai-search-card.type-bids {
  background: linear-gradient(90deg, #FFF4F0 0%, #F9F8F8 100%);
}

.ai-search-card-cover {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.ai-search-card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
}

.ai-search-card-title {
  font-size: 14px;
  line-height: 1.4;
  color: #20232A;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ai-search-card-desc {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #999;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ai-search-card-price {
  font-size: 14px;
  color: #C82B2C;
  font-weight: 600;
}

/* 搜索弹窗滚动到底部按钮 */
.ai-search-scroll-btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  background: #fff;
  border-radius: 16px;
  width: 48px;
  height: 48px;
  box-shadow: 0 1px 10px 0 rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}

.ai-search-scroll-btn:hover {
  transform: translateX(-50%) scale(1.1);
}

.ai-search-scroll-btn svg {
  width: 20px;
  height: 20px;
  color: #2C6AF1;
}

.ai-search-scroll-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 37px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 9.46%, #FFF 100%);
}
