.form-page {
  padding: 16px;
  background: #f5f5f5;
  min-height: 100vh;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: none;
  padding: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.form-item {
  margin-bottom: 16px;
}

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

  .required {
    color: #ff4d4f;
    margin-right: 4px;
  }
}

.form-input {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  padding: 0 12px;
  font-size: 14px;

  &:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
  }
}

.form-select {
  width: 100%;
  border-radius: 6px;

  &:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
  }
}

.form-textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  padding: 8px 12px;
  font-size: 14px;
  resize: vertical;

  &:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
  }
}

.select-option {
  display: flex;
  align-items: center;
  gap: 8px;

  .anticon {
    font-size: 16px;
    color: #1677ff;
  }
}

.form-actions {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-top: 16px;
}

.back-btn {
  flex: 1;
  border-radius: 6px;
  border: 1px solid #d9d9d9;

  &:hover {
    border-color: #1677ff;
    color: #1677ff;
  }
}

.submit-btn {
  flex: 1;
  border-radius: 6px;
}

// 覆盖 antd-mobile 的默认样式
:global {
  .adm-form-item {
    margin-bottom: 16px;
  }

  .adm-form-item-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
  }

  .adm-input {
    border-radius: 6px;
    border: 1px solid #d9d9d9;

    &:focus {
      border-color: #1677ff;
      box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
    }
  }

  .adm-select {
    border-radius: 6px;
    border: 1px solid #d9d9d9;

    &:focus {
      border-color: #1677ff;
      box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
    }
  }
}
