/* AI洞察页面样式 */

.ai-insights-page {
  padding: 30px 0;
}

.page-header {
  margin-bottom: 30px;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 10px;
}

.page-description {
  color: #606266;
  font-size: 16px;
}

/* 项目信息 */
.startup-info {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

.info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
}

.startup-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.subtitle {
  color: #606266;
  margin: 5px 0 0;
}

/* 内容卡片 */
.insight-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.card-header {
  background-color: #f5f7fa;
  padding: 15px 20px;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.card-title-icon {
  margin-right: 10px;
  font-size: 20px;
}

.card-body {
  padding: 20px;
}

/* AI分析文本样式 */
.ai-content {
  line-height: 1.8;
  color: #303133;
}

.insight-section {
  margin-bottom: 20px;
}

.insight-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ebeef5;
}

.insight-paragraph {
  margin-bottom: 15px;
}

.highlight {
  background-color: #ecf5ff;
  padding: 2px 5px;
  border-radius: 3px;
  color: #409EFF;
}

.insight-list {
  margin: 15px 0;
  padding-left: 20px;
}

.insight-list li {
  margin-bottom: 10px;
}

/* 参考链接 */
.reference-links {
  background-color: #f5f7fa;
  padding: 15px;
  border-radius: 4px;
  margin-top: 15px;
}

.reference-title {
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 10px;
}

.reference-list {
  margin: 0;
  padding-left: 20px;
}

.reference-list li {
  margin-bottom: 8px;
}

/* 提问区域 */
.question-area {
  margin-top: 30px;
}

.question-input {
  margin-bottom: 20px;
}

.question-history {
  margin-top: 30px;
}

.question-item {
  padding: 15px;
  border-bottom: 1px solid #EBEEF5;
}

.question-content {
  font-weight: 500;
  color: #303133;
  margin-bottom: 8px;
}

.answer-content {
  color: #606266;
}

/* 对话消息 */
.chat-messages {
  margin-top: 20px;
}

.message {
  display: flex;
  margin-bottom: 20px;
}

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

.message-content {
  max-width: 80%;
  padding: 12px 15px;
  border-radius: 8px;
  position: relative;
}

.message-ai .message-content {
  background-color: #f5f7fa;
  margin-left: 10px;
}

.message-user .message-content {
  background-color: #ecf5ff;
  margin-right: 10px;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.message-time {
  font-size: 12px;
  color: #909399;
  margin-top: 5px;
  text-align: right;
}

/* 加载状态 */
.loading-container {
  text-align: center;
  padding: 50px 0;
}

.ai-thinking {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #f5f7fa;
  border-radius: 8px;
  width: fit-content;
  margin-top: 10px;
}

.thinking-dots {
  display: flex;
  margin-left: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #409EFF;
  margin-right: 3px;
  animation: thinking 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
  animation-delay: -0.32s;
}

.dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes thinking {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .message-content {
    max-width: 90%;
  }
}
