:root {
  --app-width: 400px;
}

html,
body {
  min-height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  background-color: #9195a3;
}

#app {
  position: relative;
  width: var(--app-width);

  min-height: calc(100 * var(--vh));
  height: 100%;
  /* height: fit-content;
  min-height: 100%; */
  background: #2a0402;

  /* & > *:first-child {
    padding: 0 16px;
  } */
}
#app > :first-child {
  min-height: 100% !important;
  height: 100% !important;
}

.kg-loading {
  position: fixed;
  width: 400px;
  /* min-height: calc(100 * var(--vh)); */
  height: 100%;
  background: url('../src/assets/images/theme1/home/bg.png') no-repeat;
  background-size: cover;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media screen and (width <= 500px) {
  #app {
    width: 100%;
    /* min-height: calc(100 * var(--vh)); */
  }

  #app::-webkit-scrollbar {
    width: 0;
    background: transparent;
  }

  .kg-loading {
    width: 100%;
    /* min-height: calc(100 * var(--vh)); */
  }
}

.kg-error {
  display: none;
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  user-select: none;
  font-size: 24px;
}

.kg-error .refresh {
  width: 80px;
  height: 40px;
  border-radius: 15px;
  margin-top: 30px;
  background: linear-gradient(90deg, #f90 0%, #e57200 100%);
  text-align: center;
  line-height: 40px;
  font-size: 13px;
  color: #fff;
}

.kg-error .err {
  color: #666;
}

.toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  aspect-ratio: 1/1;
  img {
    width: 100%;
    height: 100%;
  }
}

.circle {
  border-radius: 50%;
  position: relative;
  margin: 0.2rem auto;
  animation: rotate 1s linear infinite;

  img {
    width: 54px;
    height: 54px;
  }
}

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

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

.maintain {
  padding: 0 28px;
  height: 100vh;
  display: none;
}

.maintain .content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.maintain .maintain_img {
  width: 100%;
  margin-top: 10px;
}

.maintain .maintainTitle {
  color: #d81400;
  font-size: 16px;
  line-height: 22.4px;
  margin-bottom: 30px;
}

.maintain .timeTitle {
  color: #fff;
  font-size: 16px;
  line-height: 22.4px;
}

.maintain .refresh_maintain {
  width: 93px;
  margin-bottom: 22px;
}

.maintain .maintainTime {
  color: #fff;
  font-size: 14px;
  line-height: 19.6px;
  margin-top: 7px;
}

.maintain .share_box {
  position: fixed;
  bottom: 10px;
  width: 400px;
  left: 50%;
  transform: translateX(-50%);
  justify-content: space-between;

  @media screen and (width <= 500px) {
    width: 100%;
    left: 0;
    transform: translate(0);
  }
}

.maintain .share_title {
  text-align: center;
  color: #fff9;
  font-size: 12px;
  line-height: 16.8px;
  margin-bottom: 15px;
}

.maintain .maintainList {
  padding: 0 12px;
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.maintain .maintainList > div {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 65px;
}

.maintain .maintainList p:nth-child(1) {
  height: 54px;
  width: 54px;
  border-radius: 50%;
  background-color: #6e050c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maintain .maintainList p:nth-child(1) img {
  height: 22px;
  width: 22px;
}

.maintain .maintainList p:nth-child(2) {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  bottom: -30%;
  font-size: 11px;
  line-height: 15.4px;
  text-align: center;
  color: #d4656e;
  margin-top: 10px;
}
