/* 动画相关 */


.role-switch .role-name label {
  animation-name: moveoutName, moveinName;
  animation-duration: 1s, 20s;
  animation-timing-function: linear, linear;
  animation-fill-mode: forwards, forwards;
  animation-delay: 0s, 1.5s;
}

@keyframes moveoutName {
  100% {
    margin-top: -1000px;
    opacity: 0;
  }
}

@keyframes moveinName {
  0% {
    margin-top: 100vh;
    opacity: 1;
  }

  100% {
    margin-top: -25px;
    opacity: 1;
  }
}

@keyframes moveout {
  100% {
    margin-top: -1000px;
    display: none;
  }
}

.role-move-out .role-name label,
.role-move-out .role-img .role-body,
.role-move-out .role-little-img-body {
  animation: moveout 1.5s;
  animation-fill-mode: forwards;
}

.role-move-out .role-text {
  animation: moveoutText 1.5s;
  animation-fill-mode: forwards;
}

@keyframes moveoutText {
  100% {
    margin-bottom: 1000px;
    display: none;
  }
}

@keyframes moveout {
  100% {
    margin-top: -1000px;
    display: none;
  }
}

.role-move-gap .role-name label,
.role-move-gap .role-img .role-body,
.role-move-gap .role-little-img-body,
.role-move-gap .role-text {
  display: none;
}

.role-move-in .role-name label {
  animation: moveinRoleName 10s;
  animation-fill-mode: forwards;
}

.role-move-in .role-img .role-body,
.role-move-in .role-little-img-body {
  animation: moveinRoleImg 10s;
  animation-fill-mode: forwards;
}

.role-move-in .role-text {
  animation: moveinText 10s;
  animation-fill-mode: forwards;
}

@keyframes moveinRoleImg {
  0% {
    margin-top: 1000px;
    display: none;
  }

  1% {
    display: block;
  }

  100% {
    margin-top: 1000px;
  }
}

@keyframes moveinText {
  0% {
    margin-bottom: -1000px;
    display: none;
  }

  1% {
    display: block;
  }

  100% {
    margin-bottom: 0;
  }
}

@keyframes moveinRoleName {
  0% {
    margin-top: 1000px;
    display: none;
  }

  1% {
    display: block;
  }

  100% {
    margin-top: -25px;
  }
}

@keyframes slideDown {
  0% {
      transform: translateY(-50%);
      opacity: 0;
  }
  100% {
      transform: translateY(0);
      opacity: 1;
  }
}

@keyframes slideOutDown {
  0% {
      opacity: 1; /* 不透明 */
      transform: translateY(0); /* 原位置 */
  }
  100% {
      opacity: 0; /* 完全透明 */
      transform: translateY(20px); /* 向下移动 20 像素 */
  }
}

/* 公共 */
@font-face {
  font-family: 'MyFont';
  src: url('/Other/hcgd/src/v1/ttf/jcyt-500W.TTF') format('truetype');
}

body {
  font-family: 'MyFont', sans-serif;
}

* {
  padding: 0;
  margin: 0;
  user-select: none;
}

html {
  background-color: #f7efe4;
}

img {
  -webkit-user-drag: none;
  -moz-user-drag: none;
  -ms-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 动态字体大小 */
html {
  font-size: 16px;
}

@media screen and (min-width: 1920px) {
  html {
    /* 1000px往后是每100像素0.5px增加 */
    /* font-size: calc(112.5% + 6 * (100vw - 1000px) / 1000); */
    font-size: calc(18px + 5 * (100vw - 1000px) / 1000);
  }
}

.screen-container {
  width: 100%;
  height: calc(100vw * 0.5625);
}

/* @media screen and (orientation: portrait) {
  .screen-container {
    width: 100%;
    height: calc(100vw * 0.5625);
  }
}

@media screen and (orientation: landscape) {
  .screen-container {
    width: 100%;
    height: 100vh;
  }
} */

/* 第一个容器 */

/* 多背景图：https://blog.csdn.net/qq_45768871/article/details/105141734 */
.screen-header {
  background-image: url(/src/v1/img/gw_bg_11.png), url(/src/v1/img/gw_bg_46.jpg);
  /* 背景图垂直、水平均居中 */
  background-position: center bottom, center top;
  /* 背景图不平铺 */
  background-repeat: no-repeat, no-repeat;
  /* 当内容高度大于图片高度时，背景图像的位置相对于viewport固定 */
  /* background-attachment: fixed; */
  /* 让背景图基于容器大小伸缩 */
  background-size: contain, cover;
  /* 设置背景颜色，背景图加载过程中会显示背景色 */
  background-color: #f7efe4;
}

/* 下载二维码 */
.download-widget-qrode img {
  width: 100%; /* 使图片占据容器的100%宽度 */
  height: auto; /* 保持图片的原始比例 */
  display: block; /* 为了消除底部空隙 */
}

/* 滚动条处理 - 隐藏垂直滚动条（参考：https://geek-docs.com/css/css-ask-answer/171_css_hiding_the_scroll_bar_on_an_html_page.html） */
body::-webkit-scrollbar {
  width: 0em;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background: transparent;
}

/* 中间的内容容器 */

.screen-content {
  background-image: url(/src/v1/img/gw_bg_31.png), url(/src/v1/img/gw_bg_10.png);
  background-size: contain, 33.5%;
  background-position: center bottom, right 95%;
  background-repeat: no-repeat;
  background-color: #f7efe4;
  position: relative;
}

.screen-content .screen-content-background {
  width: 24%;
  position: absolute;
}

.screen-content .screen-content-background img {
  width: 100%;
  margin-top: -15%;
}

.screen-title {
  width: 39.4%;
  text-align: center;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
}

.screen-title img {
  width: 100%;
}

.screen-title label {
  color: #fff;
  font-size: calc(100vw* 0.03);
  position: absolute;
  top: 25%;
  left: 42%;
}

/* 最后一个容器 */
.screen-footer {
  background-image: url(/src/v1/img/gw_bg_36.jpg);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-color: #f7efe4;
}

.screen-content-box {
  position: relative;
  top: 15%;
  height: 75%;
}

/* 第一页 */
.screen-header div img {
  width: 100%;
}

.screen-header .game-name {
  position: relative;
  left: 20px;
  top: 20px;
  width: 12.708%;
}

.screen-header .cadpa {
  position: relative;
  left: 20px;
  top: 30px;
  width: 4.6875%;
  cursor: pointer;
  z-index: 10;
}

.screen-header .slogan {
  position: relative;
  top: -13%;
  left: -4%;
  width: 100%;
  text-align: center;
}

.screen-header .slogan .slogan-1 {
  width: 46.7%;
  position: relative;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
}

.screen-header .slogan .slogan-2 div {
  color: #fff;
  font-size: calc(100vw * (36 / 1920));
  display: inline-block;
  box-sizing: border-box;
  border-width: 5px 68px;
  border-style: solid;
  border-color: transparent;
  border-image: url(/src/v1/img/gw_bg_2.png) 5 68 fill / 1 / 0 stretch;
  letter-spacing: 5px;
}

@media screen and (min-width: 1920px) {
  .screen-header .slogan .slogan-2 div {
    border-width: 5px 68px;
    border-image: url(/src/v1/img/gw_bg_2.png) 5 68 fill / 1 / 0 stretch;
  }
}

/* 页脚 - 公司信息 */

.company-info {
  background-color: black;
  display: flex;
  color: #fff;
  font-size: 0.75rem;
  padding: 20px;
  justify-content: center;
}

.company-info .logo img {
  width: 60%;
}

@media screen and (min-width: 1920px) {
  .company-info {
    font-size: 0.531rem;
  }
}

.company-info a {
  color: #fff;
  text-decoration: none;
  margin-right: 10px;
}

.copy-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.copy-right div {
  line-height: 20px;
}

/* 游戏特色 */
.game-features .swiper .swiper-slide {
  width: 58%;
  background-image: url(/src/v1/img/gw_bg_12.png), url(/src/v1/img/gw_bg_12-1.png), url(/src/v1/img/gw_bg_12-2.png), url(/src/v1/img/gw_bg_12-3.png), url(/src/v1/img/gw_bg_13.png), url(/src/v1/img/gw_bg_14.png), url(/src/v1/img/gw_bg_13.png), url(/src/v1/img/gw_bg_14.png);
  background-size: 5%, 5%, 5%, 5%, contain, contain, contain, contain;
  background-position: left top, right top, right bottom, left bottom, center top, right center, center bottom, left center;
  background-repeat: no-repeat;
  background-color: #f7efe4;
  padding: 1.5rem;
  margin: 0 2rem;
}

.swiper-slide {
  /* 隐藏非活动滑块的设置 */
  opacity: 0;
  transition: opacity 0.5s ease; /* 添加过渡效果 */
}

.swiper-slide-active {
  /* 活动滑块可见 */
  opacity: 1;
}

.game-features .swiper .swiper-slide img {
  width: 100%;
}

.swiper-button-next-self {
  position: absolute;
  top: 35%;
  right: 15%;
  z-index: 10;
}

.swiper-button-next-self img {
  transform: scaleX(-1);
}

.swiper-button-prev-self {
  position: absolute;
  top: 35%;
  left: 15%;
  z-index: 10;
}

.swiper-pagination-bullet {
  background: #f1d3bb !important;
  width: 15px !important;
  height: 15px !important;
  margin: 0 10px !important;
}

.swiper-pagination-bullet-active {
  background: #e795a6 !important;
}

.hide-nav-button {
  display: none;
}

.swiper-button {
  width: 5%;
  cursor: pointer !important;
}

.swiper-button img {
  width: 100%;
}

/* 平台列表 */
.screen-footer {
  height: calc(100vw* 0.4);
}

.screen-footer .platform-list {
  display: flex;
  justify-content: center;
  padding-top: 70px;
}

.screen-footer .platform-list .platform-item {
  width: 10%;
  padding: 0 1.5rem;
  cursor: pointer;
}

.screen-footer .platform-list .platform-item img {
  width: 100%;
}

/* 悬浮菜单 */
.float-menu {
  position: fixed;
  right: 1.5rem;
  top: 4rem;
  color: #ce9378;
  font-size: 18px;
  width: 11.7%;
  background-image: url(/src/v1/img/gw_bg_7.png);
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 10;
  transition: max-height 0.3s ease, padding 0.3s ease; /* 加入过渡效果 */
  max-height: 500px; /* 设置为一个较大的值以完全展示所有内容 */
  padding: 1rem 0; /* 上下内边距 */
  overflow: hidden; /* 隐藏溢出内容 */
}

/* 隐藏其他菜单项 */
.float-menu.hidden {
  max-height: 2.5rem; /* 只保留关闭按钮的高度 */
  padding: 0; /* 去掉内边距 */
}

@media screen and (min-width: 1920px) {
  .float-menu {
    /* 1000px往后是每100像素0.5px增加 */
    /* font-size: calc(112.5% + 6 * (100vw - 1000px) / 1000); */
    font-size: calc(18px + 5 * (100vw - 1000px) / 1000);
  }
}

.menu-item {
  height: min(50px, 2.5rem); /* 确保每个菜单项的高度 */
  cursor: pointer;
}

.menu-item label {
  cursor: pointer;
}

.menu-title {
  margin: 1rem 0; /* 给菜单项一些间距 */
}

.menu-title {
  background-image: url(/src/v1/img/gw_bg_6.png);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-active {
  color: #fff;
  background-image: url(/src/v1/img/gw_bg_5.png);
}

.menu-close {
  background-image: url(/src/v1/img/gw_bg_3.png);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease, background-image 0.3s ease; /* 背景平滑切换 */
}

.menu-close.rotated {
  transform: rotate(1deg);
  background-image: url(/src/v1/img/gw_bg_47.png); /* 替换为新的图片 */
}

.menu-top {
  background-image: url(/src/v1/img/gw_bg_4.png);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

/* 下载组件 */
.download-widget {
  position: fixed;
  left: 20px;
  bottom: 3.5rem;
  width: 7.5%;
  z-index: 10;
}

.download-widget img {
  max-width: 100%; /* 图片最大宽度为100% */
  height: auto; /* 高度自适应 */
}

.download-widget div:not(:first-of-type) {
  margin-top: 10px;
}

/* 人物介绍 */



.role-desc,
.role-switcher {
  width: 100px;
  flex-grow: 1;
}

.role-info-box {
  display: flex;
  height: 100%;
}

.role-img {
  width: calc(100vw* 0.40960809102402024);
  height: calc(100vw* 0.39);
  background-image: url(/src/v1/img/gw_bg_22.png);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin-right: -6%;
  text-align: center;
  position: relative;
}

.role-img .role-body {
  height: 100%;
}

.role-img img {
  position: relative;
  height: 100%;
  bottom: calc(100vw* 0.59* 0.06573957016434892);
  left: -0.6rem;
}

.role-name {
  width: calc(100vw * 0.0362292);
  height: calc(100vw * 0.1405625);
  position: absolute;
  right: calc(100vw* 0.06);
  top: calc(100vw* 0.035);
  background-image: url(/src/v1/img/gw_bg_21.png);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: calc(100vw* 0.03);
  display: flex;
  justify-content: center;
  align-items: center;
}

.role-desc {
  position: relative;
}

.role-desc div {
  display: flex;
}

.role-text {
  flex-grow: 0.7;
  flex-direction: column;
  color: #bf8064;
  font-size: 16px;
  justify-content: end;
  position: absolute;
  bottom: 45%;
}

.role-text .role-text-title {
  height: 16px;
}

.role-text-row {
  letter-spacing: 1px;
  padding: 10px 0px;
  line-height: 30px;
}

.role-text-title {
  min-width: 85px;
  justify-content: end;
  margin-left: calc(100vw* 0.07);
  align-items: baseline;
}

.role-text-title div {
  margin-left: 5px;
}

.role-text-title img {
  height: 100%;
}

.role-little-img-box {
  display: flex;
  justify-content: end;
  position: absolute;
  right: 0;
  bottom: 3rem;
}

.role-little-img {
  width: calc(100vw * 0.1640625);
  height: calc(100vw* 0.153);
  background-image: url(/src/v1/img/gw_bg_20.png);
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
  justify-content: center;
  margin-right: calc(100vw * -0.02);
}

.role-little-img-body {
  width: calc(100vw * 0.12083);
  height: calc(100vw * 0.138021);
}

@media screen and (min-width: 1900px) {
  .role-text {
    font-size: calc(100vw * 0.009);
  }

  .role-text .role-text-title {
    height: calc(100vw * 0.009);
    min-width: 220px;
  }

  .role-text-row {
    letter-spacing: 1px;
    padding: 5px 0px;
    line-height: 40px;
  }
}

/* 初始状态 */
.role-name,
.role-text {
    animation: slideDown 0.5s forwards; /* 从上往下 */
    opacity: 1; /* 初始可见 */
}

.role-little-img-box,
.role-body {
    opacity: 1;
    transition: opacity 0.5s ease-in; /* 优化为渐入效果 */
}

/* fade-out 状态 */
.role-name.fade-out,
.role-text.fade-out {
    animation: slideOutDown 0.5s forwards; /* 使用新的动画 */
    opacity: 0; /* 褪去时设为透明 */
}

.role-little-img-box.fade-out,
.role-body.fade-out {
    opacity: 0; /* 褪去时设为透明 */
}

/* fade-in 状态 */
.role-little-img-box.fade-in,
.role-body.fade-in {
    opacity: 1; /* 渐入状态，使元素显示 */
}

/* 角色切换器 */

.role-header-item {
  cursor: pointer;
}

.role-header-item img {
  width: 88.80597014925373%;
  height: 88.80597014925373%;
}

.role-header-normal {
  width: calc(100vw * 0.06);
  height: calc(100vw * 0.06);
  background-image: url(/src/v1/img/gw_bg_23.png);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
  opacity: 0.5;
}

.role-header-normal:hover,
.role-header-active {
  background-image: url(/src/v1/img/gw_bg_24.png);
  background-size: 136% 136%;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
}

.role-header-up {
  transform: rotate(60deg);
  margin-bottom: -40px;
}

.role-header-down {
  transform: rotate(-60deg);
  margin-top: -40px;
}

.role-header-ctrl {
  width: calc(100vw * 0.050520833333333334);
  height: calc(100vw * 0.06875);
  margin-left: 40px;
  cursor: pointer;
}

.role-header-ctrl-down {
  width: calc(100vw * 0.050520833333333334);
  height: calc(100vw * 0.06875);
  margin-left: 110px;
  cursor: pointer;
}

.role-header-ctrl:hover {
  opacity: 0.8;
}

.role-header-column-1 {
  margin-left: 4rem;
}

.role-header-column-2 {
  margin-left: 6rem;
}

.role-header-column-3 {
  margin-left: 7rem;
}

/* 时装图鉴 */
.fashion-atlas-box {
  display: flex;
  height: 100%;
}

.fashion-big-img {
  width: calc(100vw * (1141 / 1920) * 0.95);
  height: calc(100vw * (928 / 1920) * 0.90);
  background-image: url(/src/v1/img/gw_bg_29.png);
  background-size: contain;
  background-position: center calc(100vw * -0.045);
  background-repeat: no-repeat;
  margin-right: -6%;
  text-align: center;
  position: relative;
}

.fashion-header-img,
.fashion-place-holder {
  width: 100px;
  flex-grow: 1;
}

.fashion-big-img .fashion-role-body {
  height: 110%;
}

.fashion-role-body img {
  position: relative;
  height: 87%;
  bottom: calc(100vw* 0.035);
}

.fashion-role-name {
  width: calc(100vw * 0.0432292);
  height: calc(100vw * 0.1515625);
  position: absolute;
  right: calc(100vw* 0.075);
  top: 0;
  background-image: url(/src/v1/img/gw_bg_30.png);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: calc(100vw * 0.02);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 时装头像 */
.fashion-header-item {
  width: calc(100vw * (207 / 1920) * 0.82);
  height: calc(100vw * (207 / 1920) * 0.82);
  background-image: url(/src/v1/img/gw_bg_25.png);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.5;
  cursor: pointer;
}

.fashion-header-item-active {
  width: calc(100vw * (207 / 1920));
  height: calc(100vw * (207 / 1920));
  background-image: url(/src/v1/img/gw_bg_26.png);
  opacity: 1;
}

.fashion-header-item:first-child,
.fashion-header-item:last-child {
  position: relative;
  right: -5rem;
}

.fashion-header-item img {
  width: calc(100% - 1.5rem);
}

.fashion-item-text {
  color: #bf8064;
  font-size: 1rem;
  margin-top: -5rem;
}

/* 初始状态 */
.fashion-role-name {
  animation: slideDown 0.5s forwards; /* 从上往下 */
}

.fashion-role-body {
  opacity: 1;
  transition: opacity 0.5s ease-in; /* 优化为渐入效果 */
}

/* fade-out 状态 */
.fashion-role-body.fade-out {
  opacity: 0; /* 褪去时设为透明 */
}

.fashion-role-name.fade-out {
  animation: slideOutDown 0.5s forwards; /* 使用新的动画 */
  opacity: 0; /* 褪去时设为透明 */
}

/* fade-in 状态 */
.fashion-role-body.fade-in {
  transition: opacity 0.5s ease-in; /* 优化为渐入效果 */
  opacity: 1; /* 渐入状态，使元素显示 */
}


/* 时装切换器 */
.fashion-switch,
.fashion-switch img {
  height: 100%;
  cursor: pointer;
}

.fashion-switch:hover {
  opacity: 0.8;
}

.fashion-pre {
  padding-left: calc(100vw * (110 / 1920));
  margin-right: calc(100vw * -1 * (110 / 1920));
}

.fashion-next {
  transform: rotate(180deg);
  margin-left: 10px;
}

.fashion-header-img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: end;
  position: relative;
}

.fashion-header-img-box {
  position: absolute;
  right: -1.5rem;
  z-index: 10;
}

/*适龄提示*/
.pop_cadpa_hide {
  display: none;
}

.pop_video {
  width: 800px;
  height: 450px;
  position: fixed;
  top: 200px;
  left: 50%;
  margin-left: -400px;
  z-index: 11;
  padding: 5px;
  display: none;
}

.pop_video #pop_video {
  width: 800px;
  height: 450px;
}

.pop_video #pop_iframe {
  width: 800px;
  height: 450px;
}

.pop_video .pop_close {
  width: 39px;
  height: 39px;
  position: absolute;
  top: 0px;
  right: -39px;
  background-color: #000;
  display: block;
}

.pop_video .pop_close img {
  padding: 6px;
  transition: all ease 0.5s;
  width: 28px;
}

.pop_video .pop_close:hover img {
  transform: rotate(360deg);
}

.age_pop {
  width: 838px;
  height: 650px;
  position: fixed;
  top: 50%;
  margin-top: -300px;
  left: 50%;
  margin-left: -419px;
  z-index: 9;
  background-image: url(/src/v1/img/pop_bg.jpg);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-color: #fff;
}

.age_pop .age_close {
  width: 25px;
  height: 25px;
  display: block;
  position: absolute;
  top: 30px;
  right: 30px;
  transition: .5s;
}

.age_pop .age_close img {
  width: 100%;
}

.age_pop .age_title {
  width: 82%;
  margin: 0 auto;
  height: 120px;
  line-height: 120px;
  text-align: center;
  font-size: 30px;
  color: #333;
  font-weight: bold;
  border-bottom: 1px #e5e5e5 solid;
}

.age_pop .age_msg {
  width: 82%;
  height: 450px;
  overflow: auto;
  font-size: 16px;
  color: #666;
  line-height: 30px;
  margin: 20px auto;
  padding: 0 7%;
}

/**平台列表弹窗 **/
.pop-platform-container {
  width: 600px;
  height: 390px;
  position: fixed;
  top: 70%;
  margin-top: -300px;
  left: 60%;
  margin-left: -419px;
  z-index: 9;
  background-size: 100% auto;
}

.platform-text {
  color: #d09174; /* 设置文字颜色 */
  text-align: center; /* 使文字居中对齐 */
  font-size: 20px; /* 设置文字大小，可以根据需要调整 */
}

.pop-platform-hidden {
  display: none; /* 隐藏弹出框 */
}

.pop-platform-content {
  position: relative; /* 为定位关闭按钮提供参考 */
  background-image: url(/src/v1/img/i18n_gw_wx.png);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  background-repeat: no-repeat; /* 不重复背景图 */
  background-size: cover; /* 使背景图铺满整个容器 */
  height: 100%;
}

.close-button {
  position: absolute; /* 绝对定位 */
  top: 10px; /* 距离顶部的距离 */
  right: 10px; /* 距离右侧的距离 */
  width: 50px; /* 根据需要设置大小 */
  height: auto; /* 保持纵横比 */
  cursor: pointer; /* 鼠标悬停时变成手型 */
}

