/* More visible thinking indicator for the chat stream. */
.typing-indicator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 16px 18px;
  max-width: 860px;
  width: 100%;
  margin: 8px auto 12px;
  border: 1px solid #d8ccff;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff 0%, var(--color-primary-bg) 100%);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  animation: fadeIn var(--transition-slow) ease forwards;
}

.typing-indicator::before {
  content: "AI 正在思考中";
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary-hover);
}

.typing-indicator::after {
  content: "正在分析问题、匹配接口和资料，请稍候…";
  flex-basis: 100%;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.typing-indicator span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgb(112 76 246 / 0.12);
  animation: pulse 1.2s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.14s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.28s; }

@media (max-width: 760px) {
  .typing-indicator {
    padding: 14px 16px;
    border-radius: var(--radius-md);
  }
}
