/******** radius *******/
/******** 间隙 *******/
/******** fontSize *******/
/******** 组件尺寸 *******/
/******** z-index *******/
/******** borderSize *******/
/******** borderStyle *******/
/******** shadow distance *******/
/******** size *******/
/******** spacing *******/
/******** shadow *******/
/******** opacity *******/
/******** fontWeight ********/
/******** Animation *******/
/******** color *******/
/******** diff *******/
/******** icon hover *******/
/******** media *******/
.switchSlideText-enter,
.switchSlideText-appear {
  left: -100% !important;
}
.switchSlideText-enter-active,
.switchSlideText-appear-active {
  left: 8px !important;
  transition: left 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
}
.switchSlideText-exit {
  left: 100% !important;
}
.switchSlideText-exit-active {
  left: 23px !important;
  transition: left 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
}
.pd-Switch {
  position: relative;
  outline: none;
  height: 20px;
  line-height: 20px;
  min-width: 40px;
  background-color: var(--color-fill-3);
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
  padding: 0;
  box-sizing: border-box;
  vertical-align: middle;
  overflow: hidden;
}
.pd-Switch-type-round:focus-visible,
.pd-Switch-type-circle:focus-visible {
  box-shadow: 0 0 0 2px var(--color-border-4);
}
.pd-Switch-type-round.pd-Switch-checked:focus-visible,
.pd-Switch-type-circle.pd-Switch-checked:focus-visible {
  box-shadow: 0 0 0 2px var(--primary-3);
}
.pd-Switch-type-line:focus-visible .pd-Switch-dot {
  box-shadow: 0 0 0 2px var(--color-border-4);
  transition: none;
}
.pd-Switch-type-line.pd-Switch-checked:focus-visible .pd-Switch-dot {
  box-shadow: 0 0 0 2px var(--primary-3);
}
.pd-Switch-dot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-bg-white);
  color: var(--color-text-3);
  font-size: 12px;
  transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
}
.pd-Switch-checked {
  background-color: var(--primary-6);
}
.pd-Switch-checked .pd-Switch-dot {
  color: var(--primary-6);
  left: calc(100% - 14px - 3px);
}
.pd-Switch[disabled] .pd-Switch-dot {
  color: var(--color-fill-2);
}
.pd-Switch[disabled].pd-Switch-checked .pd-Switch-dot {
  color: var(--primary-3);
}
.pd-Switch[disabled] .pd-Switch-dot {
  color: var(--color-fill-2);
}
.pd-Switch[disabled].pd-Switch-checked .pd-Switch-dot {
  color: var(--primary-3);
}
.pd-Switch-text-holder {
  opacity: 0;
  font-size: 13px;
  margin: 0 8px 0 23px;
}
.pd-Switch-text {
  position: absolute;
  color: var(--color-white);
  font-size: 13px;
  top: 0;
  left: 23px;
}
.pd-Switch-checked .pd-Switch-text-holder {
  margin: 0 23px 0 8px;
}
.pd-Switch-checked .pd-Switch-text {
  left: 8px;
  color: var(--color-white);
}
.pd-Switch[disabled] {
  cursor: not-allowed;
  background-color: var(--color-fill-2);
}
.pd-Switch[disabled] .pd-Switch-text {
  color: var(--color-white);
}
.pd-Switch[disabled].pd-Switch-checked {
  background-color: var(--primary-3);
}
.pd-Switch[disabled].pd-Switch-checked .pd-Switch-text {
  color: var(--color-white);
}
.pd-Switch-loading {
  background-color: var(--color-fill-2);
}
.pd-Switch-loading .pd-Switch-dot {
  color: var(--color-text-3);
}
.pd-Switch-loading .pd-Switch-text {
  color: var(--color-white);
}
.pd-Switch-loading.pd-Switch-checked {
  background-color: var(--primary-3);
}
.pd-Switch-loading.pd-Switch-checked .pd-Switch-dot {
  color: var(--primary-3);
}
.pd-Switch-loading.pd-Switch-checked .pd-Switch-text {
  color: var(--primary-1);
}
.pd-Switch-small {
  height: 16px;
  line-height: 16px;
  min-width: 28px;
}
.pd-Switch-large {
  height: 24px;
  line-height: 24px;
  min-width: 48px;
}
.pd-Switch-small.pd-Switch-checked {
  padding-left: -2px;
}
.pd-Switch-large.pd-Switch-checked {
  padding-left: -4px;
}
.pd-Switch-small .pd-Switch-dot {
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 8px;
}
.pd-Switch-small .pd-Switch-dot-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.66667);
}
.pd-Switch-large .pd-Switch-dot {
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 12px;
}
.pd-Switch-large .pd-Switch-dot-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.66667);
}
.pd-Switch-small.pd-Switch-checked .pd-Switch-dot {
  left: calc(100% - 12px - 2px);
}
.pd-Switch-large.pd-Switch-checked .pd-Switch-dot {
  left: calc(100% - 16px - 4px);
}
.pd-Switch-type-round {
  border-radius: 2px;
  min-width: 40px;
}
.pd-Switch-type-round .pd-Switch-dot {
  border-radius: 2px;
}
.pd-Switch-type-round.pd-Switch-small {
  border-radius: 2px;
  height: 16px;
  line-height: 16px;
  min-width: 28px;
}
.pd-Switch-type-round.pd-Switch-large {
  border-radius: 2px;
  height: 24px;
  line-height: 24px;
  min-width: 48px;
}
.pd-Switch-type-round.pd-Switch-small .pd-Switch-dot {
  border-radius: 1px;
}
.pd-Switch-type-round.pd-Switch-large .pd-Switch-dot {
  border-radius: 1px;
}
.pd-Switch-type-line {
  min-width: 36px;
  background-color: transparent;
  overflow: unset;
}
.pd-Switch-type-line::after {
  content: '';
  display: block;
  width: 100%;
  border-radius: 3px;
  height: 6px;
  background-color: var(--color-fill-3);
  transition: background-color 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
}
.pd-Switch-type-line .pd-Switch-dot {
  top: 0px;
  left: 0;
  border-radius: 10px;
  width: 20px;
  height: 20px;
  background-color: var(--color-bg-white);
  box-shadow: 0 1px 3px var(--color-border-4);
}
.pd-Switch-type-line.pd-Switch-checked {
  background-color: transparent;
}
.pd-Switch-type-line.pd-Switch-checked::after {
  background-color: var(--primary-6);
}
.pd-Switch-type-line.pd-Switch-checked .pd-Switch-dot {
  left: calc(100% - 20px);
}
.pd-Switch-type-line[disabled] {
  cursor: not-allowed;
  background-color: transparent;
}
.pd-Switch-type-line[disabled]::after {
  background-color: var(--color-fill-2);
}
.pd-Switch-type-line[disabled].pd-Switch-checked {
  background-color: transparent;
}
.pd-Switch-type-line[disabled].pd-Switch-checked::after {
  background-color: var(--primary-3);
}
.pd-Switch-type-line.pd-Switch-loading {
  background-color: transparent;
}
.pd-Switch-type-line.pd-Switch-loading::after {
  background-color: var(--color-fill-2);
}
.pd-Switch-type-line.pd-Switch-loading.pd-Switch-checked {
  background-color: transparent;
}
.pd-Switch-type-line.pd-Switch-loading.pd-Switch-checked::after {
  background-color: var(--primary-3);
}
.pd-Switch-type-line.pd-Switch-small {
  height: 16px;
  line-height: 16px;
  min-width: 28px;
}
.pd-Switch-type-line.pd-Switch-large {
  height: 24px;
  line-height: 24px;
  min-width: 44px;
}
.pd-Switch-type-line.pd-Switch-small.pd-Switch-checked {
  padding-left: 0px;
}
.pd-Switch-type-line.pd-Switch-large.pd-Switch-checked {
  padding-left: 0px;
}
.pd-Switch-type-line.pd-Switch-small .pd-Switch-dot {
  top: 0px;
  width: 16px;
  height: 16px;
  border-radius: 8px;
}
.pd-Switch-type-line.pd-Switch-small .pd-Switch-dot-icon {
  transform: translate(-50%, -50%) scale(1);
}
.pd-Switch-type-line.pd-Switch-large .pd-Switch-dot {
  top: 0px;
  width: 24px;
  height: 24px;
  border-radius: 12px;
}
.pd-Switch-type-line.pd-Switch-large .pd-Switch-dot-icon {
  transform: translate(-50%, -50%) scale(1);
}
.pd-Switch-type-line.pd-Switch-small.pd-Switch-checked .pd-Switch-dot {
  left: calc(100% - 16px);
}
.pd-Switch-type-line.pd-Switch-large.pd-Switch-checked .pd-Switch-dot {
  left: calc(100% - 24px);
}
