.toastui-editor-toolbar-icons.image, .toastui-editor-toolbar-icons.link, .toastui-editor-toolbar-icons.code {
  display: none;
}

.toastui-editor-main {
  text-align: left;
}

input:-webkit-autofill {
  border: 1px solid #d9d9d9;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ==================== 数据上传模块样式 ==================== */
.upload-wrapper {
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==================== 进度指示器 ==================== */
.progress-indicator {
  background: #fff;
  border-radius: 12px;
  padding: 30px 40px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8e8e8;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.step-item.active .step-number,
.step-item.completed .step-number {
  background: #0089FF;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 137, 255, 0.3);
}

.step-item.active .step-label,
.step-item.completed .step-label {
  color: #0089FF;
  font-weight: 500;
}
.step-item.completed .step-number-val {
  display: none;
}
.step-item.completed .step-number::after {
  content: '✓';
  position: absolute;
  font-size: 20px;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e8e8e8;
  margin: 0 10px;
  position: relative;
  top: -16px;
  transition: all 0.3s ease;
}

.step-item.completed + .step-line {
  background: #0089FF;
}

.formTips-layer {
  display: none;
}

.formTips-layer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 440px;
  max-width: 90%;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 40px;
  text-align: center;
}


.formTips-layer-warning-icon {
  margin-bottom: 24px;
  display: block;
  width: 44px;
  height: 44px;
  background: url('https://juheimage.oss-cn-hangzhou.aliyuncs.com/www/2025/activity/dataset/icon-tips.svg') center no-repeat;
  background-size: cover;
}

.formTips-layer-tip-text {
  margin-bottom: 32px;
  font-weight: 600;
  font-size: 16px;
  color: #333333;
  line-height: 21px;
}

.formTips-layer-link {
  padding: 10px 80px;
  font-size: 14px;
  color: #FFFFFF;
  line-height: 20px;
  background: #048DFF;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.formTips-layer-link:hover {
  transform: translateY(-1px);
  /* box-shadow: 0 4px 12px rgba(47, 128, 237, 0.3); */
}

/* ==================== 表单容器 ==================== */
.form-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  min-height: 600px;
  position: relative;
}

.dataset-form {
  position: relative;
  padding: 40px;
}

/* ==================== 表单步骤 ==================== */
.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.step-title {
  font-size: 24px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.form-content {
  padding: 0;
}

/* ==================== 表单组件 ==================== */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-group.required .form-label::after {
  content: '*';
  color: #ff4d4f;
  margin-left: 4px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #0089FF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 137, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #bfbfbf;
}

.form-input:disabled,
.form-input[readonly] {
  background: #f5f5f5;
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  line-height: 1.6;
}

.form-hint {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}
.editor-tips {
  display: block;
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

.char-count {
  text-align: right;
}

.char-count .count {
  color: #0089FF;
  font-weight: 500;
}

/* ==================== 单选/复选框 ==================== */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-item,
.checkbox-item {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  padding: 12px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.radio-item:hover,
.checkbox-item:hover {
  border-color: #0089FF;
  background: #f0f9ff;
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
  margin: 3px 10px 0 0;
  cursor: pointer;
  flex-shrink: 0;
}

.radio-label,
.checkbox-label {
  flex: 1;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.checkbox-label strong {
  color: #1a1a1a;
  display: block;
  margin-bottom: 4px;
}

.checkbox-label small {
  color: #666;
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.checkbox-grid .checkbox-item {
  padding: 10px 12px;
}

.radio-vertical .radio-item {
  padding: 16px;
}

.checkbox-large {
  padding: 20px;
  border: 2px solid #e8e8e8;
  background: #fafafa;
}

.checkbox-large:hover {
  border-color: #0089FF;
  background: #f0f9ff;
}

/* ==================== 多列布局 ==================== */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-col {
  display: flex;
  flex-direction: column;
}

/* ==================== 文件上传 ==================== */
.upload-area {
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #fafafa;
}

.upload-content svg {
  margin-bottom: 16px;
}

.upload-text {
  font-size: 14px;
  color: #333;
  margin: 0 0 8px 0;
  font-weight: 500;
}

.upload-hint {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.file-info,
.image-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f0f9ff;
  border: 1px solid #0089FF;
  border-radius: 8px;
  margin-top: 12px;
}

.file-name {
  font-size: 14px;
  color: #333;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-remove {
  width: 24px;
  height: 24px;
  border: none;
  background: #ff4d4f;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.file-remove:hover {
  background: #ff7875;
  transform: scale(1.1);
}

.image-preview {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  background: none;
}

.image-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
}

.image-preview .file-remove {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* ==================== 提示框 ==================== */
.alert-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff2e8;
  border-left: 4px solid #ff4d4f;
  border-radius: 6px;
  margin-top: 12px;
}

.alert-box svg {
  flex-shrink: 0;
}

.alert-box span {
  font-size: 13px;
  color: #d4380d;
  font-weight: 500;
}

/* ==================== 最终提示 ==================== */
.final-notice {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #e3f3ff;
  border-radius: 12px;
  margin-top: 30px;
}

.final-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-content h4 {
  font-size: 16px;
  font-weight: bold;
  color: #0089FF;
  margin: 0 0 12px 0;
}

.notice-content ul {
  margin: 0;
  padding-left: 20px;
}

.notice-content li {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 4px;
}

/* ==================== Tooltip ==================== */
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  cursor: help;
  position: relative;
  margin-left: 6px;
}

.tooltip-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: #333;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 6px;
  margin-bottom: 8px;
  z-index: 1000;
}

.tooltip-icon:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
  margin-bottom: 2px;
}

/* ==================== 操作按钮 ==================== */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 120px;
  z-index: 100;
  border-radius: 12px 12px 0 0;
  transition: all 0.3s ease;
}

.form-actions.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-bottom-color: #e8e8e8;
}

.actions-left,
.actions-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: #0089FF;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 137, 255, 0.3);
}

.btn-primary:hover {
  background: #0077e6;
  box-shadow: 0 4px 12px rgba(0, 137, 255, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #f5f5f5;
  color: #666;
}

.btn-secondary:hover {
  background: #e8e8e8;
  color: #333;
}

.btn-outline {
  background: #fff;
  color: #0089FF;
  border: 1px solid #0089FF;
}

.btn-outline:hover {
  background: #f0f9ff;
  border-color: #0077e6;
  color: #0077e6;
}

.draft-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #52c41a;
  animation: fadeInStatus 0.3s ease;
}

@keyframes fadeInStatus {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.draft-time {
  color: #666;
}

/* ==================== 响应式设计 ==================== */
@media screen and (max-width: 1024px) {
  .upload-wrapper {
    padding: 30px 20px;
  }

  .progress-indicator {
    padding: 20px 24px;
  }

  .step-label {
    font-size: 12px;
  }

  /* .form-container {
    padding: 30px 24px;
  } */

  .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .upload-wrapper {
    padding: 20px 0;
  }

  .progress-indicator {
    padding: 16px;
    overflow-x: auto;
  }

  .progress-steps {
    min-width: 440px;
  }

  .step-line {
    margin: 0 2px;
  }

  .step-number {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }
  .step-item.completed .step-number::after {
    font-size: 16px;
  }

  .step-label {
    font-size: 11px;
  }

  /* .form-actions {
    top: 60px;
    padding: 16px 24px;
  } */

  .dataset-form {
    padding: 24px;
  }

  .step-title {
    font-size: 20px;
  }

  .step-desc {
    font-size: 13px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    position: sticky;
    top: 46px;
  }

  .actions-left,
  .actions-right {
    width: 100%;
    justify-content: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .dataset-form {
    padding: 20px 16px;
  }
}

@media screen and (max-width: 480px) {
  .step-title {
    font-size: 18px;
  }

  .upload-area {
    padding: 20px;
  }

  .upload-content svg {
    width: 36px;
    height: 36px;
  }

  .final-notice {
    flex-direction: column;
  }
}

/* ==================== 加载动画 ==================== */
.form-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.form-loading.show {
  display: block;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f0f0f0;
  border-top-color: #0089FF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== 表单验证提示 ==================== */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ff4d4f;
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.1);
}

.error-message {
  font-size: 12px;
  color: #ff4d4f;
  margin-top: 6px;
  display: none;
}

.error-message.show {
  display: block;
  animation: fadeIn 0.3s ease;
}
