:root {
  --body: #db5959;
  --main: #f23a44;
  --card: #f477ad;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Basic page styles */
body {
  background: var(--body);
  background-size: contain;
  line-height: 1.6;
  color: #333;
  font-family: "Courier New", Courier, monospace;
}

.fx-r {
  display: flex;
  flex-direction: row;
}

.fx-ac {
  align-items: center;
}

.fx-bc {
  justify-content: center;
}

.logo {
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
  height: 60px;
  padding: 5px;
}

.logo img {
  height: 100%;
}

.gamesdom {
  margin: 10px;
  background-color: var(--main);
  border-radius: 5px;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 20px;
  font-weight: bold;
}

.gamesmain {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  padding-top: 0px;
}

.game-cards {
  width: calc(33.33% - 10px);
  aspect-ratio: 1/1;
  background-color: var(--card);
  padding: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 5px;
}

.game-cards img {
  width: 100%;
  object-fit: cover;
}

.game-cards:hover {
  transform: translateY(-5px);
}

.game-card-bg {
  width: calc(33.33% - 10px);
  aspect-ratio: 1/1.22;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  position: relative;
}

.game-card-bg:nth-child(n) {
  background-image: url("./assets/bg_orange.png");
}

.game-card-bg:nth-child(2n) {
  background-image: url("./assets/bg_blue.png");
}

.game-card-bg:nth-child(3n) {
  background-image: url("./assets/bg_purprle.png");
}

.cardbgdom {
  width: 50%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 12px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.game-card-bg img {
  width: 100%;
  border-radius: 8px;
}

.game-card-bg:hover {
  transform: translateY(-5px);
}

.cardbgname {
  font-size: 12px;
  color: #ffffff;
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  padding: 0 10px;
  text-align: left;
  display: -webkit-box;
  /* 启用伸缩盒子模型 */
  -webkit-box-orient: vertical;
  /* 设置伸缩盒子的排列方向为垂直 */
  -webkit-line-clamp: 2;
  /* 限制文本为2行 */
  overflow: hidden;
  /* 超出文本部分隐藏 */
  text-overflow: ellipsis;
  /* 超出部分用省略号显示 */
}

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

.gameTitle {
  width: 100%;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
}

.gamename {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* justify-content: center; */
  padding: 0 20px;
}

.backname {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.moretxt {
  font-size: 14px;
  display: flex;
  align-items: center;
}

.moretxt img {
  width: 14px;
}

.back img {
  width: 14px;
  transform: rotate(180deg);
}

.desdom {
  margin: 10px;
  background-color: var(--main);
  border-radius: 5px;
  text-align: left;
  font-size: 12px;
  line-height: 14px;
  padding: 20px;
}

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

/* Footer */
.footer {
  background-color: var(--main);
  color: white;
  text-align: center;
  padding: 20px;
}

.footer img {
  width: 80px;
}

.footer ul {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
  list-style-type: none;
}

.footer ul li a {
  color: #000;
  font-size: 1rem;
  text-decoration: none;
}

.footer ul li a:hover {
  text-decoration: underline;
}

.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 {
  width: 100%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  z-index: 2;
}

.detailhead {
  display: flex;
  align-items: center;
  padding: 10px;
  width: 100%;
}

.ditailimgdom {
  height: 150px;
  aspect-ratio: 1/1;
  padding: 6px;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--main);
  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 {
  flex: 1;
  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;
  color: #000000;
}

.detailheadrb-b {
  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: #ffba53;
}

.detailList {
  flex: 1;
  background: var(--main);
  padding: 10px;
}

.detailListMain {
  display: flex;
  flex-wrap: wrap;
}

iframe {
  width: 100%;
  border: none;
  /* 移除边框 */
  /* 使 iframe 高度填充整个页面 */
  /* height: 100vh;  */
  /* position: absolute; */
  z-index: 1;
}

.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: #ffba53;
}

.detailList {
  flex: 1;
  background: var(--main);
  padding: 10px;
}

.detailListMain {
  display: flex;
  flex-wrap: wrap;
}

iframe {
  width: 100%;
  border: none;
  /* 移除边框 */
  /* 使 iframe 高度填充整个页面 */
  /* height: 100vh;  */
  /* position: absolute; */
  z-index: 1;
}
