
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: none;
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  line-height: 1.5;
  border-radius: 0.2rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-appearance: none;
}

// 换行按钮出现问题
//.btn + .btn {
//  margin-left: var(--size-margin);
//}

.btn:hover, .btn:focus {
  text-decoration: none;
}

.btn:focus, .btn.focus {
  outline: 0;
}

.btn.disabled, .btn:disabled {
  opacity: 0.65;
}

.btn:not(:disabled):not(.disabled) {
  cursor: pointer;
}

.btn:not(:disabled):not(.disabled):active, .btn:not(:disabled):not(.disabled).active {
  background-image: none;
}

a.btn.disabled,
fieldset:disabled a.btn {
  pointer-events: none;
}

.btn {
  color: #666;
  background-color: var(--color-default);
  box-shadow: 0 0 1px #CCC;
}

.btn:hover {
  color: #555;
}

.btn-round {
  border-radius: 0.8rem;
}

.btn-lg.btn-round {
  border-radius: 1.2rem;
}

.btn-sm.btn-round {
  border-radius: 0.7rem;
}

.btn-primary {
  color: #fff;
  background-color: var(--color-primary);
}

.btn-primary:hover {
  color: #fff;
  background-color: var(--color-primary-dark);
}

.btn-primary.disabled, .btn-primary:disabled {
  color: #fff;
  background-color: var(--color-primary);
}

.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active {
  color: #fff;
  background-color: var(--color-primary-dark);
}

.btn-primary-line {
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  background: #FFF;
}

.btn-primary-line:hover {
  background-color: #F8F8F8;
  color: var(--color-primary);
}

.btn-primary-line.disabled, .btn-primary-line:disabled {
  background-color: #F8F8F8;
}

.btn-primary-line:not(:disabled):not(.disabled):active, .btn-primary-line:not(:disabled):not(.disabled).active {
  background-color: #F8F8F8;
}

.btn-success {
  color: #fff;
  background-color: var(--color-success);
}

.btn-success:hover {
  color: #fff;
  background-color: var(--color-success-dark);
}

.btn-success.disabled, .btn-success:disabled {
  color: #fff;
  background-color: var(--color-success);
}

.btn-success:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled).active {
  color: #fff;
  background-color: var(--color-success-dark);
}

.btn-warning {
  color: #FFF;
  background-color: var(--color-warning);
}

.btn-warning:hover {
  color: #FFF;
  background-color: #e0a800;
}

.btn-warning.disabled, .btn-warning:disabled {
  background-color: var(--color-warning);
}

.btn-warning:not(:disabled):not(.disabled):active, .btn-warning:not(:disabled):not(.disabled).active {
  background-color: var(--color-warning-dark);
}

.btn-danger {
  color: #fff;
  background-color: var(--color-danger);
}

.btn-danger:hover {
  color: #fff;
  background-color: var(--color-danger-dark);
}

.btn-danger.disabled, .btn-danger:disabled {
  color: #fff;
  background-color: var(--color-danger);
}

.btn-danger:not(:disabled):not(.disabled):active, .btn-danger:not(:disabled):not(.disabled).active {
  color: #fff;
  background-color: var(--color-danger-dark);
}

.btn-lg, .btn-group-lg > .btn {
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  line-height: 1.5;
  border-radius: 0.24rem;
}

.btn-sm, .btn-group-sm > .btn {
  padding: 0.1rem 0.2rem;
  font-size: 0.5rem;
  line-height: 1.5;
  border-radius: 0.16rem;
}

.btn-block {
  display: block;
  width: 100%;
}

//.btn-block + .btn-block {
//  margin-top: 0.4rem;
//}

input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
  width: 100%;
}
