#loading {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

#loading.hidden {
  opacity: 0;
  visibility: hidden;
}

#loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #1890ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading {
  overflow: hidden;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
