/* AI 助手样式 */
.ai-floating-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--c-government);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
}

.ai-floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.ai-dialog {
  position: fixed;
  bottom: 170px;
  right: 30px;
  width: 350px;
  max-height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
}

.ai-dialog-header {
  padding: 15px;
  background: var(--c-government);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-dialog-header h3 {
  margin: 0;
  font-size: 16px;
}

.ai-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-dialog-body {
  display: flex;
  flex-direction: column;
  height: 400px;
}

.ai-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 18px;
  line-height: 1.4;
}

.ai-message.user {
  align-self: flex-end;
  background: var(--c-government);
  color: white;
  border-bottom-right-radius: 4px;
}

.ai-message.ai {
  align-self: flex-start;
  background: #f1f1f1;
  color: #333;
  border-bottom-left-radius: 4px;
}

.ai-input-area {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

.ai-input-area input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
}

.ai-input-area button {
  background: var(--c-government);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .ai-dialog {
    width: 300px;
    bottom: 150px;
    right: 20px;
  }
  
  .ai-floating-btn {
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

/* AI 悬浮球内容容器 */
.ai-btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* AI 悬浮球文字 */
.ai-btn-text {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

/* 调整悬浮球大小以容纳文字 */
.ai-floating-btn {
  /* 其他样式保持不变 */
  width: 70px; /* 稍微增大宽度 */
  height: 70px; /* 稍微增大高度 */
}

/* 移动端调整 */
@media (max-width: 768px) {
  .ai-floating-btn {
    /* 其他样式保持不变 */
    width: 60px; /* 移动端宽度 */
    height: 60px; /* 移动端高度 */
  }
  
  .ai-btn-text {
    font-size: 8px; /* 移动端文字大小 */
  }
}