.formPage {
  background: #f8fafc;
  min-height: 100vh;
  padding-bottom: 100px;
}

.formHeader {
  background: #fff;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.formTitle {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  flex: 1;
  text-align: center;
}
.backBtn {
  position: absolute;
  left: 8px;
  top: 10px;
  font-size: 18px;
  color: #222;
  border: none;
  background: none;
}
.cancelBtn {
  position: absolute;
  right: 8px;
  top: 10px;
  color: #888;
  border: none;
  background: none;
}

.formStepsWrap {
  background: #fff;
  padding: 0 0 8px 0;
}
.formSteps {
  padding: 0 24px;
  margin-top: 8px;
}

.formBody {
  padding: 16px;
  background: #f8fafc;
  min-height: 100vh;
  padding-bottom: 100px;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;

  @media (max-width: 375px) {
    padding: 12px;
  }
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 16px;
  margin-bottom: 16px;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;

  @media (max-width: 375px) {
    padding: 12px;
  }

  // 输入框样式
  :global(.ant-input) {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;

    &:focus {
      border-color: #3b82f6;
      box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    }

    &::placeholder {
      color: #cbd5e1;
    }
  }
}
.sectionTitle {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #222;
}

.accountSelectItem {
  margin-bottom: 0 !important;
}

.deviceSelectItem {
  margin-bottom: 0 !important;
}

.searchWrapper {
  margin-bottom: 16px;
}

.tabWrapper {
  margin-bottom: 16px;
}

.tabList {
  display: flex;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 4px;
}

.tabItem {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tabItem:hover {
  color: #1890ff;
}

.tabActive {
  background: #fff;
  color: #1890ff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tabContent {
  min-height: 200px;
}
.accountListWrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0 4px 0;
}
.accountItem {
  display: flex;
  align-items: center;
  font-size: 15px;
  background: #f7f8fa;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  border: 1px solid #e5e6eb;
  transition: border 0.2s;
}
.accountItem input[type="checkbox"] {
  margin-right: 6px;
}
.accountSelectedCount {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.radioGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radioGroupHorizontal {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.radioDesc {
  font-size: 13px;
  color: #888;
  margin-left: 6px;
}

.sliderLabelWrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.sliderValue {
  font-size: 15px;
  color: #222;
  font-weight: 500;
}
.slider {
  margin: 0 0 2px 0;
}
.sliderDesc {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.timeRangeWrap {
  display: flex;
  gap: 24px;
  align-items: flex-end;
}
.timeRangeWrap > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #888;
}

.formBlock {
  margin-bottom: 24px;
}
.formLabel {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #222;
}
.checkboxGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.poolListWrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.poolItem {
  display: flex;
  align-items: center;
  background: #f7f8fa;
  border-radius: 6px;
  padding: 8px 12px;
  border: 1px solid #e5e6eb;
  font-size: 15px;
  gap: 10px;
  cursor: pointer;
  transition: border 0.2s;
}
.poolItem input[type="checkbox"] {
  margin-right: 6px;
}
.poolName {
  font-weight: 500;
  color: #222;
}
.poolTags {
  font-size: 13px;
  color: #888;
  margin-left: 8px;
}
.poolCount {
  font-size: 13px;
  color: #888;
  margin-left: auto;
}
.poolSelectedCount {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}
.formStepBtns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.formFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.footerBtn {
  min-width: 80px;
}

// 步骤条美化
.formSteps :global(.ant-steps-item-title) {
  font-size: 15px;
}
.formSteps :global(.ant-steps-item-process .ant-steps-item-title) {
  color: #1677ff;
  font-weight: 600;
}
.formSteps :global(.ant-steps-item-finish .ant-steps-item-title) {
  color: #222;
}
.formSteps :global(.ant-steps-item-wait .ant-steps-item-title) {
  color: #888;
}
