:root {
  /* no red */
  --main: #14b866;
  --btn: #e2725b;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Basic page styles */
body {
  background: var(--main);
  background-size: contain;
  line-height: 1.6;
  color: #333;
  font-family: "Courier New", Courier, monospace;
  color: #fff;
  max-width: 900px;
}
.fx-h {
  display: flex;
  flex-direction: column;
}

.fx-ac {
  justify-content: center;
}
.fx-bc {
  align-items: center;
}

.logo {
  border-bottom: #fff 1px solid;
}
.logo-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 0;
}
.logo-l {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-tit {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}
.logoimg {
  width: 25px;
  position: absolute;
  left: 20px;
}
.search {
  width: 25px;
  position: absolute;
  right: 20px;
}
.logo-b {
  transition: all 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 80vw;
  height: 100vh;
  position: fixed;
  z-index: 9;
  left: 0;
  top: 0;
  background: rgba(61, 71, 86, 0.9);
  transition: left 0.3s linear;
}

.menu-main-tit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  font-size: 24px;
}
.menu-main-tit img {
  width: 24px;
}
.menu-b {
  display: flex;
  flex-direction: column;
}

.logo-b a {
  text-decoration: none;
  color: #fff;
  font-size: 20px;
  margin: 0 20px;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}
.logo-b a:last-child {
  border: 0;
}
.logo-s {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  transition: left 0.3s linear;
  margin: 0;
  flex-direction: row;
  border-radius: 20px;
}
.placeholder {
  padding-left: 10px;
}
.searinput {
  flex: 1;
  border: 0px;
  padding-left: 20px;
}
.searfont {
  padding: 0 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gamesdom {
  /* margin: 10px; */
  /* background-color: #e6eee6; */
  background-size: 100%;
  /* border-radius: 5px; */
  text-align: center;
  padding-top: 20px;
  padding-bottom: 40px;
  font-size: 20px;
  font-weight: bold;
}
.gamesmain {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  padding-top: 0px;
}
.game-cards {
  width: calc(33.33% - 20px);
  aspect-ratio: 1/1;
  background-color: #f9f9f9;
  padding: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
}
.game-cards img {
  width: 100%;
}
.game-cards:hover {
  transform: translateY(-5px);
}
.game-title {
  font-size: 14px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.more {
  background: var(--btn);
  width: calc(100% - 30px);
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  color: white;
  border-radius: 50px;
}

.gamename {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* justify-content: center; */
  padding: 0 20px;
}
.backname {
  display: flex;
  align-items: center;
  justify-content: start;
  padding: 0 20px;
}
.moretxt {
  font-size: 14px;
  display: flex;
  align-items: center;
}
.moretxt img {
  width: 14px;
}
.back img {
  width: 14px;
  transform: rotate(180deg);
}

.destitle {
  text-align: left;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
}

/* Footer */
.footer {
  color: white;
  text-align: center;
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style-type: none;
}

.footer a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  line-height: 14px;
}
.footer a:first-child {
  border-right: 1px solid #fff;
  padding-right: 10px;
}
.desdom {
  padding: 0 20px;
}

/* detail */
.detaildom {
  width: 100%;
  height: 100vh;
  position: relative;
}
.detailback {
  width: 40px;
  height: 30px;
  position: fixed;
  z-index: 3;
  top: 40px;
  left: 0px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 2px 10px 1px rgba(0, 0, 0, 0.76);
}
.detailback img {
  width: 20px;
}
.loadtxt {
  width: 100%;
  height: 100%;
  padding: 0 40px;
  box-sizing: border-box;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 0;
  text-align: center;
}
.loadimg {
  width: 30px;
  margin-bottom: 20px;
  /* 应用动画 */
  animation: spin 2s linear infinite;
}
/* 定义动画 */
@keyframes spin {
  from {
    transform: rotate(0deg); /* 起始角度 */
  }
  to {
    transform: rotate(360deg); /* 结束角度 */
  }
}
.detailmain {
  background-color: var(--main);
  display: flex;
  flex-direction: column;
}
.detailhead {
  display: flex;
  align-items: center;
  padding: 20px 0;
  width: 100%;
}
.ditailimgdom {
  height: 130px;
  aspect-ratio: 1/1;
  padding: 6px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #e6eee6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detaillogo {
  width: 100%;
}
.detailheadr {
  flex: 1;
  width: calc(100% - 150px);
  height: 150px;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
}
.detailheadrt {
  font-size: 22px;
  font-weight: bold;
  width: 100%;
  white-space: nowrap; /* 禁止换行 */
  overflow: hidden; /* 隐藏超出的文本 */
  text-overflow: ellipsis; /* 超出的部分显示省略号 */
}
.detailheadrb {
  border-top: 1px solid #dedbd7;
  display: flex;
  flex-direction: column;
  padding-top: 5px;
}
.detailheadrb-t {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.detailheadrb-b {
  /* background-color: #8b5cd8; */
  /* background: linear-gradient(180deg,#ffba53,#e84f33); */
  background-color: #cccccc;
  width: 150px;
  height: 40px;
  border-radius: 40px;
  margin-top: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  animation: playAnimate 0.5s linear infinite alternate;
  position: relative;
  overflow: hidden;
}
.detailheadrb-b span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 进度条 */
.progress-bar {
  height: 100%;
  background: linear-gradient(180deg, #ffba53, #e84f33);
}
.detailnum {
  position: absolute;
  top: 0;
  left: 0;
}
@keyframes playAnimate {
  from {
    transform: scale(0.9);
  }
  to {
    transform: scale(1);
  }
}
.detailwarn {
  padding: 10px;
  font-size: 12px;
  color: red;
}
.detailList {
  flex: 1;
  background: #845ec2;
  padding: 10px;
}
.detailListMain {
  display: flex;
  flex-wrap: wrap;
}
iframe {
  width: 100%;
  border: none; /* 移除边框 */
  height: 100vh; /* 使 iframe 高度填充整个页面 */
  position: absolute;
  z-index: 1;
}
