* {
  margin: 0;
  padding: 0;
}

div {
  position: relative;
  box-sizing: border-box;
}

div::-webkit-scrollbar {
  display: none;
}

img {
  width: 100%;
  object-fit: contain;
}

a {
  text-decoration: none;
}

.music-box {
  position: fixed;
  background: url(/resource/overseas/images/indie_games_website/sngx/music_bg.png)
  no-repeat center/contain;
  z-index: 1;
  cursor: pointer;
}

.side-bar-box {
  position: fixed;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.to-top {
  background: url(/resource/overseas/images/indie_games_website/sngx/to_top.png)
  no-repeat center/contain;
  cursor: pointer;
}

.side-bar-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, .3);
}

.side-bar-container .recharge,
.side-bar-container .google,
.side-bar-container .ios {
  cursor: pointer;
}

.side-bar-container .recharge {
  background: url(/resource/overseas/images/indie_games_website/sngx/recharge.png)
  no-repeat center/contain;
}

.side-bar-container .google {
  background: url(/resource/overseas/images/indie_games_website/sngx/google.png)
  no-repeat center/contain;
}

.side-bar-container .ios {
  background: url(/resource/overseas/images/indie_games_website/sngx/ios.png)
  no-repeat center/contain;
}

.title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.title img {
  width: auto;
  height: 100%;
}

.main-box .logo {
  position: absolute;
  background: url(/resource/overseas/images/indie_games_website/sngx/logo.png)
  no-repeat center/contain;
}

.main-box .pv {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  background: url(/resource/overseas/images/indie_games_website/sngx/pv.png)
  no-repeat center/contain;
  cursor: pointer;
}

.main-box .pv-box {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  background-color: #fff;
  z-index: 2;
}

.main-box .pv-close {
  position: absolute;
  cursor: pointer;
}

.main-box .pv-box video {
  width: 100%;
  height: 100%;
}

.main-box .download {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.main-box .download-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.main-box .download-wrapper .google {
  background: url(/resource/overseas/images/indie_games_website/sngx/google.png)
  no-repeat center/contain;
  cursor: pointer;
}

.main-box .download-wrapper .ios {
  background: url(/resource/overseas/images/indie_games_website/sngx/ios.png)
  no-repeat center/contain;
  cursor: pointer;
}

.main-box .download .recharge {
  background: url(/resource/overseas/images/indie_games_website/sngx/recharge_big.png)
  no-repeat center/contain;
  cursor: pointer;
}

.news-box .news-swiper {
  background: url(/resource/overseas/images/indie_games_website/sngx/news_swiper_bg.png)
  no-repeat center/contain;
}

.news-box .news-swiper-pagination {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.news-box .swiper-pagination-bullet {
  opacity: 1;
}

.news-box .news-message {
  background: url(/resource/overseas/images/indie_games_website/sngx/news_message_bg.png)
  no-repeat center/contain;
}

.news-box .news-swiper-pagination {
  background: url(/resource/overseas/images/indie_games_website/sngx/news_swiper_pagination_bg.png)
  no-repeat center/contain;
}

.news-box .swiper-pagination-bullet {
  background: url(/resource/overseas/images/indie_games_website/sngx/news_swiper_pagination_dot.png)
  no-repeat center/contain;
}

.news-box .swiper-pagination-bullet-active {
  transform: scale(2.5);
  background: url(/resource/overseas/images/indie_games_website/sngx/news_swiper_pagination_dot_selected.png)
  no-repeat center/contain;
}

.news-box .news-nav {
  display: flex;
  justify-content: space-between;
  color: #fff;
}

.news-box .news-nav span {
  position: relative;
  cursor: pointer;
}

.news-box .news-nav-select::after {
  content: '';
  position: absolute;
  background-color: #fff;
}

.news-box .news-content {
  background-color: #fffbf0;
}

.news-box .news-list {
  height: 100%;
  overflow: auto;
}

.news-box .news-item {
  border-bottom: 1px dashed #959698;
}

.news-box .news-list::-webkit-scrollbar {
  display: none;
}

.news-box .news-item {
  display: flex;
}

.news-box .news-item .news-subtitle {
  white-space: nowrap;
  color: #2f78fe;
}

.news-box .news-item .news-title {
  flex: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #23353b;
}

.news-box .news-item .news-time {
  color: #959698;
}

/* PC端 */
@media (min-width: 751px) {
  .music-box {
    right: 2vw;
    top: 5vw;
    width: 4vw;
    height: 4vw;
  }

  .side-bar-box {
    top: 18vw;
  }

  .to-top {
    width: 3.17vw;
    height: 3.85vw;
    margin-bottom: 1vw;
  }

  .side-bar-container {
    width: 12.5vw;
    height: 15.62vw;
    border-radius: 0.5vw;
    padding: 1.5vw 0;
  }

  .side-bar-container .recharge,
  .side-bar-container .google,
  .side-bar-container .ios {
    width: 10.15vw;
    height: 3.12vw;
  }

  .title {
    top: 10vw;
    height: 3.64vw;
  }

  .main-box {
    height: 56.25vw;
    background: url(/resource/overseas/images/indie_games_website/sngx/pc_main_bg.jpg)
    no-repeat center/cover;
  }

  .main-box .logo {
    left: 1vw;
    top: 4vw;
    width: 14vw;
    height: 7vw;
  }

  .main-box .pv {
    top: 15vw;
    width: 7vw;
    height: 7vw;
  }

  .main-box .pv-box {
    top: 5vw;
    width: 50vw;
    height: 30vw;
    padding: 2vw 1vw 1vw;
  }

  .main-box .pv-close {
    top: 0;
    right: 0.5vw;
    line-height: 1.5vw;
    font-size: 2vw;
  }

  .main-box .download {
    bottom: 17vw;
    width: 31.25vw;
    height: 12.34vw;
  }

  .main-box .download .recharge {
    width: 13.43vw;
    height: 12.34vw;
  }

  .main-box .download-wrapper {
    width: 16.87vw;
    height: 100%;
  }

  .main-box .download-wrapper .google {
    width: 16.87vw;
    height: 5.31vw;
  }

  .main-box .download-wrapper .ios {
    width: 16.87vw;
    height: 5.31vw;
  }

  .news-box {
    display: flex;
    justify-content: center;
    height: 52.6vw;
    padding-top: 20vw;
    background: url(/resource/overseas/images/indie_games_website/sngx/pc_news_bg.jpg)
    no-repeat center/cover;
  }

  .news-box .news-swiper {
    width: 37.6vw;
    height: 21vw;
  }

  .news-box .news-swiper .swiper-container {
    margin-top: 1.2vw;
    width: 30.52vw;
  }

  .news-box .news-swiper-pagination {
    bottom: -0.5vw;
    width: 32.5vw;
    height: 0.73vw;
  }

  .news-box .swiper-pagination-bullet {
    width: 0.78vw;
    height: 0.78vw;
  }

  .news-box .news-message {
    width: 37.5vw;
    height: 21.87vw;
    margin-left: 2vw;
  }

  .news-box .news-nav {
    font-size: 1.4vw;
    padding: 1.5vw 1vw;
  }

  .news-box .news-nav span {
    margin:0 1vw;
  }

  .news-box .news-nav-select::after {
    left: 0vw;
    bottom: -0.5vw;
    width: 100%;
    height: 0.2vw;
  }

  .news-box .news-content {
    border-radius: 0.5vw;
    margin: 0 0.3vw;
    height: 16.5vw;
  }

  .news-box .news-list {
    padding: 0.5vw;
  }

  .news-box .news-item {
    font-size: 1vw;
    padding-bottom: 0.5vw;
    margin-bottom: 0.5vw;
  }

  .role-box {
    height: 59.9vw;
    background: url(/resource/overseas/images/indie_games_website/sngx/pc_role_bg.jpg)
    no-repeat center/cover;
  }

  .role-box .role-container {
    position: absolute;
    left: 57%;
    transform: translate(-50%);
    top: 15vw;
    width: 54.16vw;
    height: 44.27vw;
  }

  .role-box .role-avatar-pagination {
    position: absolute;
    top: 7vw;
    height: 29vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
  }

  .role-box .role-avatar-pagination .swiper-pagination-bullet {
    position: relative;
    opacity: 1;
    width: 4.16vw;
    height: 4.16vw;
  }

  .role-box .role-avatar-pagination .swiper-pagination-bullet:nth-child(1) {
    left: 10vw;
  }

  .role-box .role-avatar-pagination .swiper-pagination-bullet:nth-child(2) {
    left: 5vw;
  }

  .role-box .role-avatar-pagination .swiper-pagination-bullet:nth-child(3) {
    left: 5vw;
  }

  .role-box .role-avatar-pagination .swiper-pagination-bullet:nth-child(4) {
    left: 9vw;
  }

  .role-box .role-avatar-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active::before {
    content: '';
    position: absolute;
    left: -2vw;
    top: -2vw;
    width: 10vw;
    height: 8.38vw;
    background: url(/resource/overseas/images/indie_games_website/sngx/role_avatar_active.png)
    no-repeat center / contain;
    z-index: -1;
  }

  .role-box .role-category-pagination {
    position: absolute;
    top: 8vw;
    left: -12vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
    height: 26vw;
  }

  .role-box .role-category-pagination-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10.46vw;
    height: 5.83vw;
    cursor: pointer;
  }

  .role-box .role-category-pagination-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/resource/overseas/images/indie_games_website/sngx/role_category_bg.png)
    no-repeat center/contain;
    opacity: 0.6;
    z-index: -1;
  }

  .role-box .role-category-pagination-item img {
    width: 8.33vw;
    height: 4vw;
  }

  .role-box .role-category-pagination-item-active.role-category-pagination-item::before {
    opacity: 1;
  }
}

/* 移动端 */
@media (max-width: 750px) {
  .music-box {
    display: none;
    right: 0vw;
    top: 5vw;
    width: 12vw;
    height: 12vw;
  }

  .side-bar-box {
    display: none;
    top: 27vw;
  }

  .to-top {
    width: 3.17vw;
    height: 3.85vw;
    margin-bottom: 1vw;
  }

  .side-bar-container {
    width: 12.5vw;
    height: 15.62vw;
    border-radius: 0.5vw;
    padding: 1.5vw 0;
  }

  .side-bar-container .recharge,
  .side-bar-container .google,
  .side-bar-container .ios {
    width: 10.15vw;
    height: 3.12vw;
  }

  .title {
    top: 15vw;
    height: 9vw;
  }

  .main-box {
    height: 199.86vw;
    background: url(/resource/overseas/images/indie_games_website/sngx/pe_main_bg.jpg)
    no-repeat center/cover;
  }

  .main-box .logo {
    left: 2vw;
    top: 24vw;
    width: 37.46vw;
    height: 19.33vw;
  }

  .main-box .pv {
    top: 75vw;
    width: 25vw;
    height: 25vw;
  }

  .main-box .pv-box {
    top: 40vw;
    width: 90vw;
    height: 55vw;
    padding: 4vw 1vw 1vw;
  }

  .main-box .pv-close {
    top: 0.5vw;
    right: 0.5vw;
    line-height: 2.5vw;
    font-size: 5vw;
  }

  .main-box .download {
    bottom: 55vw;
    width: 85vw;
    height: 36vw;
  }

  .main-box .download .recharge {
    width: 40vw;
    height: 36vw;
  }

  .main-box .download-wrapper {
    width: 42vw;
    height: 100%;
  }

  .main-box .download-wrapper .google {
    width: 42vw;
    height: 13vw;
  }

  .main-box .download-wrapper .ios {
    width: 42vw;
    height: 13vw;
  }

  .news-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30vw;
    height: 144vw;
    background: url(/resource/overseas/images/indie_games_website/sngx/pe_news_bg.jpg)
    no-repeat center/cover;
  }

  .news-box .news-swiper {
    width: 90vw;
    height: 51vw;
  }

  .news-box .news-swiper .swiper-container {
    margin-top: 4vw;
    width: 72.5vw;
  }

  .news-box .news-swiper-pagination {
    bottom: -2.5vw;
    width: 80vw;
    height: 2vw;
  }

  .news-box .swiper-pagination-bullet {
    width: 1.78vw;
    height: 1.78vw;
  }

  .news-box .news-message {
    width: 85vw;
    height: 50vw;
    margin-top: 6vw;
  }

  .news-box .news-nav {
    font-size: 3.6vw;
    padding: 3vw 2vw;
  }

  .news-box .news-nav span {
    margin:0 1vw;
  }

  .news-box .news-nav-select::after {
    left: 0vw;
    bottom: -1vw;
    width: 100%;
    height: 0.5vw;
  }

  .news-box .news-content {
    border-radius: 1vw;
    margin: 0 0.5vw;
    height: 38vw;
  }

  .news-box .news-list {
    padding: 2vw;
  }

  .news-box .news-item {
    font-size: 3vw;
    padding-bottom: 1vw;
    margin-bottom: 1vw;
  }

  .role-box {
    height: 155vw;
    background: url(/resource/overseas/images/indie_games_website/sngx/pe_role_bg.jpg)
    no-repeat center/cover;
  }

  .role-box .role-container {
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    top: 50vw;
    width: 95vw;
    height: 90vw;
  }

  .role-box .role-avatar-pagination {
    position: absolute;
    top: 13vw;
    height: 55vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
  }

  .role-box .role-avatar-pagination .swiper-pagination-bullet {
    position: relative;
    opacity: 1;
    width: 8vw;
    height: 8vw;
  }

  .role-box .role-avatar-pagination .swiper-pagination-bullet:nth-child(1) {
    left: 16vw;
  }

  .role-box .role-avatar-pagination .swiper-pagination-bullet:nth-child(2) {
    left: 8.5vw;
  }

  .role-box .role-avatar-pagination .swiper-pagination-bullet:nth-child(3) {
    left: 9vw;
  }

  .role-box .role-avatar-pagination .swiper-pagination-bullet:nth-child(4) {
    left: 19vw;
  }

  .role-box .role-avatar-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active::before {
    content: '';
    position: absolute;
    left: -3.8vw;
    top: -4.1vw;
    width: 19vw;
    height: 16vw;
    background: url(/resource/overseas/images/indie_games_website/sngx/role_avatar_active.png)
    no-repeat center / contain;
    z-index: -1;
  }

  .role-box .role-category-pagination {
    position: absolute;
    top: -18vw;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
    width: 95vw;
    height: 15vw;
  }

  .role-box .role-category-pagination-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 23vw;
    height: 13vw;
    cursor: pointer;
  }

  .role-box .role-category-pagination-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/resource/overseas/images/indie_games_website/sngx/role_category_bg.png)
    no-repeat center/contain;
    opacity: 0.6;
    z-index: -1;
  }

  .role-box .role-category-pagination-item img {
    width: 18vw;
    height: 9vw;
  }

  .role-box .role-category-pagination-item-active.role-category-pagination-item::before {
    opacity: 1;
  }
}