:global(.eyeProtection) {
  .header {
    &::before {
      background: var(--eye-background-color) !important;
    }
  }
}

.center {
  padding-top: 2px;
}
.header {
  :global(.van-hairline--right)::after {
    border-color: #f2f2f2 !important;
    border-right-width: 1px !important;
  }
  position: absolute;
  z-index: 2;
  // padding-bottom: 5px;
  // padding: 12px 22px;
  top: 0;
  left: 0;
  right: 0;
  border-radius: 5px 5px 0 0;
  background-color: #fff;
  // &::before {
  //   position: absolute;
  //   top: 0;
  //   left: 0;
  //   content: '';
  //   height: 100vh;
  //   width: 100vw;
  //   background: #E2F6F1;
  //   z-index: -1;
  // }
  // box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.02);
  > div.info {
    display: flex;
    height: 72px;
    box-sizing: border-box;
    padding: 5px 12px;
    padding-top: calc(var(--header-padding-top) + 5px);
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    // padding-left: 0;
    // padding-left: 20px;
  }
  > div.demos {
    position: absolute;
    right: 10px;
    height: initial;
    display: flex;
    margin-top: 10px;
    position: absolute;
    padding: 0 6px;
    float: right;
    background-color: rgba(255, 255, 255, 0.6);
    height: 38px;
    border-radius: 18px;
    top: 72px;
    > div {
      display: flex;
      align-items: center;
      > span {
        display: inline-block;
        margin: 0 8px;
        font-size: 14px;
        color: #1a1a1a;
      }
    }
  }
  .maininfo {
    flex: 1;
    // display: flex;
    flex-direction: column;
    font-size: 24px;
    color: #000;
  }
  :global {
    .van-grid {
      &::after {
        display: none;
        border: none;
      }
    }
    .van-grid-item__content {
      width: 56px;
      padding: 0;
      color: #333;
      display: flex;
      justify-content: space-between;
      &::after {
        border-color: #e5e5e5;
      }
      > div {
        > span {
          font-size:16px;
          font-weight: bold;
        }
      }
      > span {
        color: #999;
        font-size: 12px;
        display: block;
        // margin-top: 5px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        &.switch {
          width: 42px;
          border-radius: 12px;
        }
        &.active {
          background-color: #defff9;
          color: #009b7e;
        }
      }
    }
    .van-grid-item__content {
      background-color: transparent;
      > span {
        width: initial;
        height: initial;
      }
      &::after {
        display: none;
        border: none;
      }
    }
  }
}

.line {
  position: relative;
  &::before {
    width: 100%;
    height: 8px;
    background: #fcd660;
    border-radius: 4px;
    opacity: 0.26;
    content: '';
    display: block;
    position: absolute;
    bottom: -4px;
  }
}

.back {
  // position: absolute;
  z-index: 9;
  padding: 0;
  height: auto;
  background-color: transparent;
  border: none;
  // top: 13px;
  // left: 15px;
  // transform: translate(-30%, -30%);
}

.btns {
  // margin-left: 10px;
  :global {
    .van-grid-item__content {
      > span {
        margin-top: 0;
        font-size: 10px;
        width: initial;
        height: initial;
      }
    }
  }
}

.pop {
  padding: 16px 30px;
  border-radius: 18px;
  // overflow: hidden;
  h2 {
    font-size: 16px;
    color: #333333;
    font-weight: normal;
    text-align: center;
  }
  > div {
    margin-left: 0;
  }
  :global(.van-badge__wrapper) {
    width: 14px;
    height: 24px;
    display: block;
    text-align: center;
  }
  :global(.van-grid-item__content) {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 0;
    > span {
      display: inline-block;
      margin-left: 6px;
      flex: 1;
      color: #1a1a1a;
      font-size: 12px;
      width: 170px;
      height: 18px;
    }
  }
}

.close {
  position: absolute;
  right: -12px;
  top: -12px;
  width: 24px;
  height: 24px;
  border-radius: 100%;
  border: 4px solid #ffffff;
  background-color: #2dc7aa;
  display: flex;
  img {
    display: block;
    margin: auto;
  }
}

.try {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  .trybtn {
    width: 164px;
    height: 44px;
    background: linear-gradient(180deg, #59e5d5 0%, #2dc7aa 100%);
    box-shadow: 0px 4px 14px 0px rgba(45, 199, 170, 0.25);
    border-radius: 24px;
    font-size: 18px;
    color: #fff;
    margin: auto;
    border: none;
    // overflow: hidden;
  }
}
