* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
@font-face {
  font-family: 'EnglishFont';
  src: url(./fonts/zpix.ttf) format('truetype');
}

body {
  background-image: url("index-images/background.png");
  background-repeat: no-repeat;
  background-size: 100vw 100vh;
  background-attachment: fixed;
  font-family:  'EnglishFont', 'Pixelator', sans-serif;
}
.iframe{
  z-index: 100;
}
.nav {
  width: 100%;
  height: 40px;
  background-color: rgb(16, 74, 42);
  margin-bottom: 20px;

}
.nav li {
  display: inline;
}
.nav li a {
  float: right;
  margin-right: 10px;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  background-image: url("index-images/item.jpg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0;
  min-width: 60px;
  text-align: center;
  line-height: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.nav li a:hover {
  color: rgb(117, 244, 66);
}
.nav li::after {
  content: "";
  float: right;
  display: inline-block;
  width: 1px;
  height: 13px;
  margin-top: 14px;
  margin-right: 8px;
  background-color: #fff;
}
.user img {
  width: 16px;
  height: 16px;
  right: 2px;
  top: 1px;
  position: relative;
}
.nav ul li:last-child::after {
  width: 0;
}
.box1 {
  margin-top: 10px;
  width: 500px;
  height: 300px;
  left: 445px;
  position: absolute;
  z-index: 999;
}
.box2 {
  margin-top: 30px;
  width: 400px;
  height: 250px;
  left: 300px;
  position: absolute;
  z-index: 111;
}
.box3 {
  margin-top: 55px;
  width: 300px;
  height: 200px;
  left: 150px;
  position: absolute;
}
.box5 {
  margin-top: 30px;
  width: 400px;
  height: 250px;
  left: 740px;
  position: absolute;
  z-index: 111;
}
.box4 {
  margin-top: 55px;
  width: 300px;
  left: 991px;
  position: absolute;
}
.box1 img {
  width: 550px;
  height: 300px;
  border-radius: 15px;
}
.box2 img,
.box5 img {
  width: 400px;
  height: 250px;
  border-radius: 15px;
}
.box3 img,
.box4 img {
  width: 300px;
  height: 200px;
  border-radius: 15px;
}
.pre_button {
  cursor: pointer;
  border: none;
  border-radius: 15px;
  background-color: rgba(255, 241, 241, 0.294);
  font-size: 30px;
  color: rgba(255, 255, 255, 0.767);
  float: left;
  width: 45px;
  height: 200px;
  margin-top: 55px;
  left: 150px;
  z-index: 999;
  position: absolute;
}
.next_button {
  cursor: pointer;
  border: none;
  border-radius: 15px;
  background-color: rgba(255, 241, 241, 0.294);
  font-size: 30px;
  color: rgba(255, 255, 255, 0.767);
  float: left;
  width: 45px;
  height: 200px;
  margin-top: 55px;
  left: 1246px;
  z-index: 999;
  position: absolute;
}
.box1,
.box2,
.box3,
.box4,
.box5 {
  transition: left 1.1s;
}
.main {
  border-image-source: url("index-images/menu_border.png");
  border-image-width: 4px;
  border-image-slice: 30% 25% 35% 30%;
  border-radius: 10px;
  padding: 20px;
  width: 60%;
  height: 100%;
  margin-left: 20%;
  margin-top: 380px;
  background-color: rgba(246, 255, 215, 0.8);
  margin-bottom: 20px;
}
.content {
  width: 100%;
  height: 88%;
  border: rgba(167, 215, 249) 1px solid;
  background-color: rgb(253, 199, 122, 0.5);
}

.banner {
  height: 370px;
}
.banner img {
  margin-top: 17px;
  display: inline-block;
}
.banner_left {
  margin-bottom: 90px;
  width: 50%;
  margin-right: 3%;
}
.banner_right {
  width: 45%;
  height: 320px;
}
.banner :nth-child(3) {
  bottom: 464px;
  position: relative;
}
.banner p {
  margin-top: -200px;
  margin-left: 110px;
  font-size: 14px;
  color: green;
}

.title {
  text-shadow: 0.1em 0.1em black;
  color: white;
  text-align: center;
  width: 100%;
  height: 30px;
  background-color: green;
  border: 4px outset green;
  box-sizing: border-box;
  margin-bottom: 30px;
}
.introduction,
.author,
.game_content,
.character {
  margin-bottom: 20px;
}
.introduction img {
  margin-left: 30px;
  width: 150px;
}
.introduction p {
  display: inline-block;
  font-size: 12px;
  line-height: 25px;
  width: 65%;
  margin-left: 55px;
  bottom: 30px;
  position: relative;
}
.author .author_right {
  display: block;
  float: right;
  width: 34%;
  height: 160px;
  margin-right: 25px;
  border-radius: 3px;
  margin-top: -5px;
}
.author .author_left {
  width: 4%;
  height: 20px;
  right: 350px;
  top: 1120px;
  position: absolute;
  transform: skew(0, -2deg);
}
.author p {
  font-size: 12px;
  line-height: 25px;
  width: 70%;
  margin-left: 45px;
  position: relative;
  color: rgba(0, 0, 0, 0.998);
}
.game_content .difference {
  margin-top: 70px;
  margin-bottom: -40px;
}
.game_content .block {
  background-color: rgba(246, 255, 215);
  border: rgb(167, 215, 249) 1px solid;
  width: 85%;
  height: 100px;
  margin-left: 5%;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 10px;
  position: relative;
}

/* 按钮样式 */
.block button {
  width: 120px;
  height: 40px;
  border: none;
  border-radius: 20px;
  background-color: rgb(249, 178, 95);
  color: white;
  font-size: 16px;
  font-weight: 600;
  position: absolute;
  left: 18%;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

/* 图片区域样式 */
.picture {
  width: 65%;
  height: 60px;
  background-color: rgba(249, 178, 95, 0.65);
  border-radius: 5px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.picture img {
  width: 35px;
  height: 35px;
}

/* 标题样式 */
.game_content p {
  text-align: center;
  font-weight: 900;
  font-size: 24px;
  color: rgb(124, 83, 66);
  margin: 30px 0;
  padding-left: 15%; /* 标题也需要留出左边的空间 */
}
.total {
  width: 100px;
  height: 100px;
}
.character h4 {
  margin: 15px;
  border-bottom: rgba(128, 128, 128, 0.603) 1px solid;
}
.male,
.female {
  clear: both;
  width: 100%;
  height: 100%;
  position: relative;
  background-size: 600px 100px;
  background-repeat: no-repeat;
  background-position: center;
}
.male {
  background-image: url("index-images/character/male.png");
}
.female {
  background-image: url("index-images/character/female.png");
}
.flex {
  height: 200px;
  display: flex;
}
.male p,
.female p {
  margin-left: 15px;
  font-size: 15px;
}
.role {
  overflow: hidden;
  float: left;
  border-image-source: url("index-images/menu_border.png");
  border-image-width: 4px;
  border-image-slice: 30% 25% 35% 30%;
  border-radius: 5px;
  background-color: rgb(251, 255, 233);
  width: 30%;
  height: 200px;
  transition: all 1s;
  margin: 20px;
}
.down {
  margin-top: 230px;
}
.role p:first-child {
  color: rgb(76, 22, 25);
  text-align: center;
  margin-top: 5%;
  margin-right: 12%;
}
.role img {
  transform: scale(1);
  margin-top: 2%;
  margin-left: 25%;
}
.role button {
  text-align: left;
  border: 1px solid rgb(246, 255, 215);
  cursor: pointer;
  box-sizing: border-box;
  width: 96.6%;
  height: 27px;
  margin-left: 1.7%;
  background-color: #03a007;
  color: white;
  margin-top: -1px;
  margin-bottom: 5px;
}
.role button img {
  margin-right: 3px;
  margin-bottom: -5px;
  margin-left: 79px;
  margin-top: 1px;
  width: 20px;
  height: 20px;
}
.role div {
  position: relative;
  margin-bottom: 4px;
}
.role div > span {
  padding-top: 2px;
  position: absolute;
  padding-left: 10px;
  display: inline-block;
  font-size: 13px;
  color: white;
  width: 33%;
  height: 100%;
  background-color: #03a007;
  margin-left: 5px;
}
.role div p {
  display: inline-block;
  font-size: 13px;
  margin-left: 40%;
  margin-right: 10px;
  color: rgb(6, 69, 173);
}
.role div p img {
  margin-right: 3px;
  margin-bottom: -6px;
  margin-left: 0px;
  zoom: 0.5;
}
.footer {
  width: 100%;
  height: 110px;
  background-color: rgb(16, 74, 42);
}
.footer p {
  text-align: center;
  color: white;
  padding: 40px;
}
.message_box {
  width: 100%;
  height: 200px;
  margin: 0 auto;
  margin-bottom: 20px;
  background-image: url("index-images/xinzhi.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

.hidden_input {
  width: 80%;
  height: 50px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  color: white;
  font-size: 50px;
  text-align: center;
}

.hidden_input::placeholder {
  color: rgba(255, 255, 255, 0.8);
  font-size: 50px;
}

/* 去除输入框获得焦点时的边框 */
.hidden_input:focus {
  outline: none;
}

/* 游戏特色样式 */
.game_features {
  margin-bottom: 20px;
  padding: 20px;
  position: relative;
}

.feature-img.left {
  float: left;
  width: 200px;
  height: 200px;
  margin-right: 30px;
  margin-top: 15px;
}

.feature-content {
  overflow: hidden;
}

/* 游戏奖项样式 */
.game_awards {
  margin-bottom: 20px;
  padding: 20px;
  position: relative;
}

.awards-content {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.awards-img.right {
  width: 200px;
  height: 200px;
  margin-left: 200px;
}

/* 更新历程样式 */
.game_updates {
  margin-bottom: 20px;
  padding: 20px;
  position: relative;
}

.updates-content {
  display: flex;
  align-items: flex-start;
  margin-top: 15px;
}

.updates-img.left {
  width: 200px;
  height: 200px;
  margin-right: 200px;
}

.updates-timeline {
  flex: 1;
}
