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

#hotListWrap {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  right: -400px;
  width: 330px;
  max-width: 330px;
  height: 100%;
  transition: right 0.4s, width 0.5s;
  background: url('/images/sea/hot-list-bg.jpg') no-repeat center bottom / 100% 100%;
  z-index: var(--z-index-popper);
}

.hotListActive {
  right: 0 !important;
}

#hotListTitle {
  margin: 72px 0 30px;
  text-align: center;
}

#hotListContent {
  width: 100%;
  /* opacity: 0.65; */
  flex-grow: 1;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
}

#hotListBottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 0;
}

#hotListClose {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

#hotListContent ul {
  padding: 0 43px 0 49px;
  font-size: 20px;
  letter-spacing: 3px;
}

#hotListContent ul li {
  height: 40px;
  line-height: 40px;
  color: #ffffff;
  transition: color 0.3s, background 0.6s;
  border-radius: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

#hotListContent ul li:hover {
  color: white;
}

#hotListContent ul li.active {
  color: #ecd2a8;
}

#hotListText {
  width: 226px;
  height: 49px;
}

#hotListIcon {
  width: 34px;
  margin-left: 48px;
}

#hotListContent::-webkit-scrollbar {
  width: 6px;
}

#hotListContent::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #979cab;
}

#hotListContent::-webkit-scrollbar-track {
  border-radius: 10px;
}

@media only screen and (max-width: 910px) {
  .hotListActive + .hotList-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: var(--z-index-popper);
  }

  #hotListWrap {
    top: -120vh;
    right: 20px !important;
    width: calc(100vw - 40px);
    height: utils.vh-calc(1390);
    transition: top 0.4s, width 0.5s;
    z-index: 2001;
  }
  .hotListActive {
    top: utils.vh-calc(80) !important;
  }
  #hotListTitle {
    margin: utils.vh-calc(110) 0 utils.vh-calc(50);
  }
  #hotListText {
    width: utils.vh-calc(260);
    height: utils.vh-calc(57);
  }
  #hotListBottom {
    position: absolute;
    left: 50%;
    bottom: utils.vh-calc(-80);
    padding: 0;
    transform: translateX(-50%);
  }
  #hotListContent ul {
    font-size: 18px;
  }
  #hotListClose {
    width: utils.vh-calc(40);
    height: utils.vh-calc(40);
  }
}
