body {
  font-family: "DingTalk", sans-serif !important;
}

.code_template_container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.code_template_item {
  width: 30%;
  text-align: center;
  border: 2px solid gainsboro;
  box-shadow: 0 5px 10px #409eff33;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px 0px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.deploy-container {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.deploy-container button {
  background-color: #2185d0;
  color: white;
  border: none;
  padding: 5px 15px;
  font-size: 17px;
}

/* AI 助手浮动容器样式 */
.ai-float-container {
  position: fixed;
  bottom: 100px;
  right: 10px;
  width: 90px;
  height: 110px;
  cursor: pointer;
  z-index: 1000;
}

.ai-float-img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ai-close-img {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  background-color: darkgray;
  border-radius: 50%;
  padding: 2px;
}

/* AI 对话框样式 */
.ai-dialog {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 500px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  display: none;
  overflow: hidden;
}

.ai-dialog.show {
  display: flex;
}

.ai-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #2185d0;
  color: white;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.ai-dialog-close {
  width: 16px;
  height: 16px;
  cursor: pointer;
  background-color: white;
  border-radius: 50%;
  padding: 2px;
}

.ai-dialog-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  background-color: #f4f4f4;
}

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

.ai-input-textarea {
  flex-grow: 1;
  height: 40px;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  font-family: inherit;
}

.ai-send-btn {
  margin-left: 8px;
  background-color: #2185d0;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0 15px;
  cursor: pointer;
}

/* 消息样式 */
.ai-message {
  margin-bottom: 15px;
  clear: both;
}

.ai-message-time {
  font-size: 11px;
  color: #888;
  text-align: center;
  margin-bottom: 5px;
}

.ai-message-content {
  display: flex;
  align-items: flex-start;
}

.ai-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.ai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-bubble {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 0 8px;
  word-wrap: break-word;
}

/* AI消息样式（左侧） */
.ai-message-left .ai-message-content {
  justify-content: flex-start;
}

.ai-message-left .ai-bubble {
  background-color: #e8f4fe;
  color: #333;
}

/* 用户消息样式（右侧） */
.ai-message-right .ai-message-content {
  justify-content: flex-end;
}

.ai-message-right .ai-bubble {
  background-color: #2185d0;
  color: white;
}

.ui.vertical.menu .item {
  font-family: "DingTalk", sans-serif !important;
}

.ui.vertical.menu .active.item {
  font-family: "DingTalk", sans-serif !important;
}

.nasycloud-ai-check {
  background: #2185d0;
  color: white;
  border: none;
  font-size: 12px;
  padding: 0px 10px;
}
