// 表单页容器
.formPage {
  padding: 16px;
  background: #f5f5f5;
  min-height: calc(100vh - 60px);
}

.formContainer {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sectionTitle {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1890ff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sectionIcon {
  color: #1890ff;
  font-size: 18px;
}

.formItem {
  margin-bottom: 20px;
}

.formLabel {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.required {
  color: #ff4d4f;
  font-size: 14px;
}

.formTextarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.6;
}

.formHint {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
  line-height: 1.5;
}

.charCount {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

// 独立提示词区域
.promptSection {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.promptHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.promptLabel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.promptIcon {
  color: #1890ff;
  font-size: 16px;
}

.promptDescription {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
  border-left: 3px solid #1890ff;
}

.promptTextarea {
  width: 100%;
  min-height: 160px;
  padding: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;

  &:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
  }

  &::placeholder {
    color: #bfbfbf;
  }
}

.promptDisabled {
  background: #f5f5f5;
  opacity: 0.6;
  cursor: not-allowed;
}

.promptHint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 6px;
  font-size: 12px;
  color: #ad6800;
  line-height: 1.5;
}

.hintIcon {
  color: #faad14;
  margin-top: 2px;
  flex-shrink: 0;
}

// AI配置区域
.configSection {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.configItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;

  &:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.configLabel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}

.configIcon {
  font-size: 16px;
  color: #1890ff;
}

.configDescription {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

// 标签输入
.tagInput {
  position: relative;
}

.tagList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tagItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(24, 144, 255, 0.1);
  color: #1890ff;
  border: 1px solid rgba(24, 144, 255, 0.2);
  border-radius: 10px;
  font-size: 12px;
}

.tagRemove {
  cursor: pointer;
  color: #1890ff;
  font-size: 14px;
  transition: color 0.2s;

  &:hover {
    color: #096dd9;
  }
}

// 底部按钮
.formFooter {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  position: sticky;
  bottom: 0;
}

.footerButton {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;

  &:active {
    transform: scale(0.98);
  }
}

.cancelButton {
  background: #f5f5f5;
  color: #666;

  &:active {
    background: #e8e8e8;
  }
}

.submitButton {
  background: #1890ff;
  color: #fff;

  &:active {
    background: #096dd9;
  }

  &:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
    transform: none;
  }
}

// 加载状态
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

// 信息提示卡片
.infoCard {
  background: linear-gradient(135deg, #e6f7ff 0%, #f0f5ff 100%);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #91d5ff;
}

.infoCardIcon {
  font-size: 18px;
  color: #1890ff;
  margin-top: 2px;
  flex-shrink: 0;
}

.infoCardContent {
  flex: 1;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}
