a {
  text-decoration: none;
  color: var(--color);
}
[v-cloak]{
  opacity: 0;
}
* {
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--color);
}

header {
  position: relative;
  height: var(--headHeight);
  width: 100%;

  .header-card {
    position: fixed;
    width: 100%;
    height: var(--headHeight);
    top: 0;
    left: 0;
    z-index: 1500;
    background-color: var(--background);
    box-shadow: 0 0 5px var(--boxShadow);
    display: flex;
    align-items: center;

    .menu-top {
      padding-left: 15px;
      display: flex;
      align-items: center;
      height: 50px;

      .menu-btn {
        font-size: 20px;
      }

      > a {
        flex-shrink: 0;

        > h3 {
          font-size: 20px;
          cursor: pointer;
          margin-left: 0px;
          flex-shrink: 0;
        }
      }
    }
  }

  .user-controller {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-left: auto;
  }

}

.message-solid {
  width: 30px;
  height: 30px;
  border-radius: 50px;
  color: rgb(126, 126, 126);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;

  > img {
    width: 20px;
    height: 20px;
  }

  &:hover {
    background-color: var(--hover) !important;
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 25px;
}

.switch input {
  display: none;
}

.language-select {
  list-style: none;

  > li {
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;

    &:hover {
      background-color: var(--hover) !important;
    }
  }
}

.selectLang {
  color: var(--btnPrimary);
}

.langSelects {
  display: flex;

  > img {
    width: 20px;
  }

  > span {
    margin-left: 6px;
  }
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--hover);
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 4px;
  bottom: 3px;
  background: url(/assets/static/taiyang.svg) no-repeat center/cover;
  transition: 0.4s;
  border-radius: 50%;
}

.theme:checked + .slider:before {
  background: url(/assets/static/yueliang.svg) no-repeat center/cover;
}

.theme:checked + .slider {
  background-color: var(--hover);
}

.theme:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

.theme:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(33px);
}

.zz {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  z-index: 3;
  background: var(--transBackground);

  overflow: hidden;
  .imageLoad {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }
}
.loading {
  --speed-of-animation: 0.9s;
  --gap: 6px;
  --first-color: #4c86f9;
  --second-color: #49a84c;
  --third-color: #f6bb02;
  --fourth-color: #f6bb02;
  --fifth-color: #2196f3;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  gap: 6px;
  height: 100px;
}

.loading span {
  width: 4px;
  height: 50px;
  background: var(--first-color);
  animation: scale var(--speed-of-animation) ease-in-out infinite;
}

.loading span:nth-child(2) {
  background: var(--second-color);
  animation-delay: -0.8s;
}

.loading span:nth-child(3) {
  background: var(--third-color);
  animation-delay: -0.7s;
}

.loading span:nth-child(4) {
  background: var(--fourth-color);
  animation-delay: -0.6s;
}

.loading span:nth-child(5) {
  background: var(--fifth-color);
  animation-delay: -0.5s;
}

@keyframes scale {

  0%,
  40%,
  100% {
    transform: scaleY(0.05);
  }

  20% {
    transform: scaleY(1);
  }
}
.menuLeft {
  overflow-y: scroll;
  overflow-x: hidden;
  position: fixed;
  left: 0;
  top: 50px;
  width: var(--leftMenuWidth);
  background: var(--background);
  box-shadow: 0 1px 5px var(--boxShadow);
  height: calc(~"100vh - 50px");
  z-index: 999;
}

@media (max-width: 1280px ) {
  .el-submenu__title {
    border-radius: 10px !important;
    overflow: hidden;
    padding-left: 23px !important;
  }

  .el-menu-item {
    display: flex;
    align-items: center;
    border-radius: 10px !important;
    overflow: hidden;
    padding-left: 23px !important;
  }
}

.el-menu {
  border-right: none !important;
}

@media (min-width: 1281px) {
  .el-submenu__title {
    border-radius: 10px !important;
    overflow: hidden;
    padding-left: 10px !important;
  }

  .el-menu-item {
    display: flex;
    align-items: center;
    padding: 0 !important;
    padding-left: 10px !important;
  }
}

.el-menu {
  .el-submenu,
  .el-menu-item,
  .el-submenu__title {
    border-radius: 10px;
    overflow: hidden;
  }

  .el-submenu__title:hover {
    background-color: var(--hover) !important;
  }

  .el-submenu__title,
  .el-menu-item {
    height: 50px;
    line-height: 50px;
  }

  .menu-left {
    margin-left: 15px;
  }

  [role="menuitem"] {
    margin-top: 5px;
  }

  .el-menu-item.is-active {
    color: var(--btnPrimary) !important;
  }

  .el-menu-item {
    &:active {
      background-color: var(--hover) !important;
    }

    &:hover {
      background-color: var(--hover) !important;
    }
  }
}

.el-menu {
  padding: 0 15px !important;
}

.iconAddshoppingCart {
  width: 20px;
  height: 20px;
}

.vi {
  margin-right: 5px;
  width: 24px;
  text-align: center;
  font-size: 19px;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: baseline;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
}

.fg {
  height: 5px;
  background-color: var(--hover) !important;
  border-radius: 10px;
  margin-top: 5px;
}

.left-menu {
  margin-bottom: 15px;
}

.el-submenu .el-menu-item {
  min-width: auto !important;
}

main {
  display: flex;

  > :where(.left) {
    width: var(--leftMenuWidth);
    flex-shrink: 0;
  }

  > .right {
    flex: 1;
    min-height: calc(~"100vh - var(--headHeight) - 30px");
  }
}

#mobileLeft {
  position: absolute;
  z-index: 999;
  top: 0;
  transition: all .5s;
  transform: translateX(calc(~"var(--leftMenuWidth) * -1"));
}

#leftCss {
  position: fixed;
  width: 0;
  left: 0;
  z-index: 999;
}

.user-profile {
  padding: 10px 0px 0px 0px;
  display: flex;
  flex-direction: column;

  > .avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    > img {
      box-shadow: 0px 2px 19px 0px rgba(181, 182, 183, 0.5);
      width: 70px;
      border-radius: 100%;
      object-fit: cover;
      height: 70px;
    }
  }

  > .info {
    margin-left: 10px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;

    > div:nth-child(1) {
      font-size: 18px;
      font-weight: 600;
    }

    > div:nth-child(2) {
      font-size: 12px;
    }
  }
}

.fengexian {
  width: 80%;
  height: 1px;
  margin-top: 15px;
  margin-left: 10%;
  background-color: var(--hover) !important;
}

.profile-item {
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin: 10px 15px;
  font-size: 17px;
  font-weight: 500;
  border-radius: 10px;

  > .iconfont {
    margin-top: 1px;
    font-size: 20px;
    user-select: none;
  }

  &:hover {
    color: var(--btnPrimary) !important;

    > i {
      color: var(--btnPrimary) !important;
    }

    background: rgba(232, 232, 232, 0.401);
  }

  > span {
    margin-left: 15px;
  }
}

.themeSelect {
  > li {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;

    > img {
      width: 20px;
      height: 20px;
      margin-right: 10px;
    }
  }

  > li {
    &:hover {
      background-color: var(--hover) !important;
    }
  }
}

.el-menu-item > a, .el-submenu__title {
  display: flex;
  width: 100%;
  align-items: center;
}