@use '@/assets/utils.scss';

.hotspot-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: var(--z-index-popper);

  h3 {
    margin-bottom: 18px;
    font-size: 48px;
    font-family: 'Source Han Sans CN-Bold';
    text-align: center;
  }
  .audioIcon {
    img {
      width: 57px;
      height: 57px;
      cursor: pointer;
    }
  }
  &-info {
    display: flex;
    flex-direction: column;
    margin-top: 37px;
    width: 835px;
    color: white;
    font-size: 18px;

    p {
      text-indent: 2em;
    }
    span {
      padding-bottom: 20px;
      font-size: 24px;
    }
  }

  &-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    width: 1591px;
    height: 824px;
    background: url('@hotspot/assets/images/sea/hot-bg.png') no-repeat center / 100% 100%;
    box-sizing: border-box;
  }

  &-swiper {
    max-width: 835px;
    height: 461px;

    &__left,
    &__right {
      position: absolute;
      top: 50%;
      width: 25px;
      height: 24px;
      cursor: pointer;
      transform: translateY(-50%);
      z-index: 1;
    }
    &__left {
      left: -70px;
      background: url('@hotspot/assets/images/icon-previous@2x-min.png') no-repeat center / contain;
    }
    &__right {
      right: -70px;
      background: url('@hotspot/assets/images/icon-next@2x-min.png') no-repeat center / contain;
    }
  }
  &-model {
    iframe {
      width: 100%;
      height: 100%;
    }
  }
  .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  &-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: inherit;
  }
  &-video {
    video {
      width: 100%;
      height: 100%;
    }
  }

  &-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    &__item {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      width: 57px;
      height: 57px;
      box-sizing: border-box;
      cursor: pointer;

      img {
        width: 100%;
        height: 100%;
      }
    }
  }
}

.el-image-viewer__close {
  right: 150px;
}

@media only screen and (max-width: 600px) {
  .el-image-viewer__close {
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
  }
  .el-image-viewer__actions {
    bottom: utils.vh-calc(140);
  }

  .hotspot-page {
    h3 {
      margin-bottom: utils.vh-calc(30);
      font-size: 24px;
    }
    &-container {
      margin-bottom: utils.vh-calc(33);
      padding: utils.vh-calc(200) 15px utils.vh-calc(60);
      max-width: calc(100% - 36px);
      width: calc(100% - 36px);
      height: utils.vh-calc(1390);
      background-image: url('@hotspot/assets/images/sea/mb-hot-bg.png');
    }
    &-info {
      margin-top: utils.vh-calc(30);
      width: 100%;

      span {
        padding-bottom: 10px;
        font-size: 18px;
      }
      p {
        font-size: 14px;
      }
    }
    &-swiper {
      max-width: 100%;
      height: utils.vh-calc(450);

      &__left,
      &__right {
        top: unset;
        bottom: 12px;
        transform: none;
      }
      &__left {
        left: 14px;
      }
      &__right {
        right: 14px;
      }
    }
    &-nav {
      bottom: 0;

      &__item {
        width: 48px;
        height: 48px;
      }
    }
    .audioIcon {
      right: 35px;
      bottom: 1px;

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