@import url('@/styles/main.scss');
/* Button/style.css */
.ds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  border: 1px solid var(--ds-button-border-color);
  border-radius: var(--ds-button-border-radius);
  height: 32px;
  padding: 0 24px;
  letter-spacing: 2px;
  //   font-size: 14px;
  //   font-weight: 500;
  background-color: transparent;
  color: var(--ds-color-info);
  transition: all 0.3s;
}

.ds-button:hover {
  color: var(--ds-color-primary);
  border-color: var(--el-button-hover-border-color);
  outline: none;
}

/*按钮类型 */
.ds-button--primary {
  color: var(--ds-color-info);
  background-color: var(--ds-color-primary);
  border-color: var(--ds-color-info);
  border: 1px solid var(--ds-color-primary);
}
.ds-button--primary:hover {
  color: var(--ds-color-info);
  background: #66b1ff;
  border-color: #66b1ff;
}

.ds-button--info {
  color: var(--ds-clort-text-1);
  border-color: var(--ds-button-info-border-color);
  background-color: var(--ds-color-info);
}

.ds-button--info:hover {
  color: var(--ds-color-info);
  background: #66b1ff;
  border-color: #66b1ff;
}

.ds-button--success {
  color: #fff;
  background-color: #67c23a;
  border-color: #67c23a;
}
.ds-button--success:hover {
  background: #85ce61;
  border-color: #85ce61;
}

/*其他类型样式类似... */

/* 按钮尺寸 */
.ds-button--large {
  padding: 10px 20px;
  font-size: 16px;
}
.ds-button--small {
  padding: 6px 12px;
  font-size: 12px;
}

/* 特殊状态 */
.ds-button--disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.ds-button--loading {
  cursor: default;
}
.ds-button--block {
  display: block;
  width: 100%;
}
.ds-button--ghost {
  background-color: transparent;
}
.ds-button--plain {
  background-color: #fff;
}
.ds-button--round {
  border-radius: 20px;
}
.ds-button--circle {
  border-radius: 50%;
  padding: 8px;
}

/* 图标样式 */
.ds-button__icon {
  margin-right: 5px;
}
.ds-button__loading-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  border: 2px solid #ccc;
  border-top-color: transparent;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
