* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html,
body {
  height: 100%;
  margin: 0 auto;
  font-size: 16px;
  max-width: 2600px;
}
body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  box-sizing: border-box;
  font-size: 0.16rem;
}

/* 设置 Swiper 容器和幻灯片的高度 */
.swiper {
  width: 100%;
  height: 100vh;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

li {
  list-style: none;
  color: #ffffff;
  /* border-bottom: 1px solid #fff; */
}

a {
  text-decoration: none;
  color: #ffffff;
}

img {
  border: none;
  max-width: 100%;
  width: 100%;
  vertical-align: middle;
}

.pointer {
  cursor: pointer;
}

.hide {
  display: none;
}

a {
  text-decoration: none;
}

.text-center {
  text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-around {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.flex{
  display: flex;
  align-items: center;
}

.flex-start{
  justify-content: flex-start;
}

.flex-end{
  justify-content: flex-end;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  transition-duration: .15s;
}

.opacity-0 {
  opacity: 0;
}

.rotate-180 {
  rotate: 180deg;
}

.text-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 针对Webkit浏览器，如Chrome和Safari */
::-webkit-scrollbar {
  width: 8px; /* 设置滚动条的宽度 */
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
  background: #f1f1f1; /* 设置滚动条轨道的背景颜色 */
}

/* 滚动条手柄 */
::-webkit-scrollbar-thumb {
  background: #888; /* 设置滚动条手柄的背景颜色 */
  border-radius: 10px; /* 设置滚动条手柄的圆角 */
}

/* 当手柄在滚动条上滚动时添加阴影 */
::-webkit-scrollbar-thumb:hover {
  background: #555; /* 设置滚动条手柄在鼠标悬停时的背景颜色 */
}

.heartbeat {
  animation: heartbeat 1s infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.main__scroll-down {
  animation: scroll-down-bounce 1.2s ease infinite;
}

@keyframes scroll-down-bounce {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
      transform: translateX(-50%) translateY(-15px);
  }
  100% {
      transform: translateX(-50%) translateY(0);
  }
}

.media__ost-img:hover .media__ost-img--left {
  animation: slide__center-to-left 1s;
}

.media__ost-img:hover .media__ost-img--right {
  animation: slide__center-to-right 1s;
}

@keyframes slide__center-to-left {
  from {
    left: 52px;
  }

  to {
    left: 0px;
  }
}

@keyframes slide__center-to-right {
  from {
    right: 40px;
  }

  to {
    right: 0px;
  }
}

.anima-rotate {
  animation: rotate360 1s;
}

@keyframes rotate360 {
  0% {
    transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

.story__unv-front {
  animation: bouncing1 8s ease infinite;
}

@keyframes bouncing1 {
  0% {
    transform: translateY(0);
  }
  50% {
      transform: translateY(-30px);
  }
  100% {
      transform: translateY(0);
  }
}

.ost__flower--left, .ost__flower--right {
  animation: bouncing2 5s ease infinite;
}

@keyframes bouncing2 {
  0% {
    transform: translateY(0);
  }
  50% {
      transform: translateY(-15px);
  }
  100% {
      transform: translateY(0);
  }
}

.pagination {
  height: 0.4rem;
  padding-left: 0;
  border-radius: 4px;
  margin: 0.25rem 0;
  display: inline-block;
}

.pagination > li {
  display: inline;
}

.pagination > li > a,
.pagination > li > span {
  position: relative;
  float: left;
  padding: 6px 12px;
  line-height: 1.42857143;
  text-decoration: none;
  color: #428bca;
  background-color: #fff;
  border: 1px solid #ddd;
  margin-left: -1px;
}

.pagination > li:last-child > a,
.pagination > li:last-child > span {
  border-bottom-right-radius: 4px;
  border-top-right-radius: 4px;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
  z-index: 2;
  color: #fff;
  background-color: #428bca;
  border-color: #428bca;
  cursor: default;
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
  color: #2a6496;
  background-color: #eee;
  border-color: #ddd;
}

/* header 公共样式 */
.header{
  width: 100%;
  height: 0.8rem;
  position: fixed;
  top: 0;
  z-index: 999;
  max-width: 2600px;
}

.header-left,.header-nav,.header-right,.icon-content,.store-info{
    display: flex;
    align-items: center;
}

.header-left{
  padding-left: 0.5rem;
}

.header-right{
  padding-right: 0.5rem;
}

.header-logo{
  width: 1.46rem;
  height: 0.8rem;
}

.header-nav li{
    margin: 0 0.1rem;
    cursor: pointer;
    text-align: center;
}
.header-nav li a{
    border-bottom: 1px solid transparent;
}
.header-nav li a:hover {
    color: #f3c968;
    border-bottom: 1px solid #fff;
}

.nav-item{
  margin-bottom: 0.1rem;
  position: relative;
}

.submenu {
    position: absolute; /* 或者使用 position: relative; 根据需求 */
    list-style-type: none;
    padding: 0;
    margin: 0.1rem auto;
    background-color: rgba(19, 35, 59, .5);
    display: none; /* 初始时隐藏子菜单 */;
}

.submenu li {
  width: 0.8rem;
  padding: 0.1rem 0;
  font-size: 0.14rem;
}

.submenu li p:hover {
  color: #f3c968;
}

.active {
  border-bottom: 1px solid #fff;
  color: #f3c968;
}

.icon-content img{
    margin: 0 0.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: brightness(0.8); /* 默认降低亮度 */
    height: 0.4rem;
}
.icon-content img:first-child{
    width: 0.5rem;
}

.icon-content img:hover{
    filter: brightness(1); /* 悬停时恢复亮度 */
    transform: scale(1.05); /* 轻微放大效果 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* 添加阴影 */
}

.select-lang{
    width: 1rem;
    height: 0.34rem;
    background-color: #2b3033;
    border-radius: 0.1rem;
    margin-left: 0.15rem;
}

.select-lang select{
    width: 1rem;
    height: 0.34rem;
    background-color: #2b3033 !important;
    border-radius: 0.1rem;
    outline: none;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    letter-spacing: 0.02rem;
    padding-left: 0.1rem;
    color: #fff;
    background: url(//cdn.htgames.net/gw/legendofheroes/static/image/pc/icon-section.png) no-repeat 90%;
    background-size: 0.1rem;
    font-size: 0.15rem;
}

.music-info{
    width: 1.22rem;
    height: 1.22rem;
    background: linear-gradient(100deg, #072334 15.65%, #1f0a2c 96.29%);
    position: fixed;
    bottom: 0.1rem;
    right: 0.2rem;
    z-index: 999;
    border-radius: 9999px;
    overflow: hidden;
    transition: width 1s ease;
}

.music-cd-conent{
    position: relative;
}

.music-cd{
    width: 1.22rem;
    height: 1.22rem;
    position: absolute;
    top: 0;
    left: 0;
}

.cd-text{
    width: 0.5rem;
    height: 0.24rem;
    position: absolute;
    top: 0;
    left: 0.4rem;
}

.cd-cover{
    width: 0.54rem;
    height: 0.54rem;
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
}

.music-content{
    width: 1.5rem;
    height: 1.22rem;
    position: absolute;
    top: 0;
    left: 1.3rem;
    margin: 0 auto;
}

.music-text-box{
    width: 0.9rem;
    height: 0.29rem;
    background: url(//cdn.htgames.net/gw/legendofheroes/static/image/pc/music-text-box.png) no-repeat;
    background-size: 100% 100%;
    line-height: 0.29rem;
    text-align: center;
    margin: 0.08rem auto 0;
}

.music-text-box>p{
    color: #32ceb6;
}

.music-name{
    font-size: 0.14rem;
    color: #fff;
    margin: 0.03rem 0;
}

.music-desc{
    width: 1.5rem;
    font-size: 0.12rem;
    color: #fff;
    margin: 0.01rem 0;
}

.player img{
    width: 0.28rem;
    height: 0.28rem;
    margin: 0.08rem 0.05rem;
}

.icon-play,.icon-pause{
    border-radius: 9999px;
    background-color: #b0afb7;
}
