@font-face {
  font-family: "HarmonyOS_Sans_SC_Regular";
  font-weight: normal;
  src: url("./HarmonyOS_Sans_SC_Regular.woff2") format("truetype");
}

* {
  font-family: HarmonyOS_Sans_SC_Regular !important;
}

body {
  margin: 0;
  --el-color-primary: #7879ef;
  --el-color-primary-light-3: #7879ef90;
  --el-color-primary-light-5: #7879ef80;
}

code {
  font-weight: 600;
  padding: 3px 5px;
  border-radius: 2px;
  background-color: #eee;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
    Liberation Mono, monospace;
  font-size: 85%;
}

.vue {
  background: -webkit-linear-gradient(315deg, #42d392 25%, #647eff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.ts {
  background: -webkit-linear-gradient(315deg, #3178c6 45%, #f0dc4e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

@media (max-width: 720px) {
  .text {
    font-size: 20px;
  }
}

@media (max-width: 620px) {
  .versions {
    display: none;
  }
}

@media (max-width: 350px) {
  .tip,
  .actions {
    display: none;
  }
}

::-webkit-scrollbar {
  width: 5px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #00000030;
}

::-webkit-scrollbar-thumb {
  background: #00000050;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #000;
  width: 10px;
  height: 10px;
}

.el-popper {
  position: relative;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent
    );
  }
}

.el-dialog {
  border-radius: 15px;
  background-color: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px 5px rgba(255, 255, 255, 0.08);

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent
    );
  }

  .el-dialog__close {
    font-size: 30px;
  }
}
