:root {
  --bg: #ffa10a;
  --bg2: #d2ae42;
  --cardBg: #f38f39;
}

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

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

h1 {
  font-size: 24px;
  color: #fff;
}

a {
  text-decoration: none;
  color: #fff;
  line-height: 20px;
}

a:hover,
a:active {
  text-decoration: none;
  color: #fff;
}

strong {
  font-weight: bolder;
}

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

.fx-h {
  display: flex;
  flex-direction: column;
}

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

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

.background {
  background-color: var(--bg);
}

.hotgame {
  /* background: rgba(0, 0, 0, 0.7); */
  background: var(--bg2);
  border-radius: 20px;
  padding: 2px;
  margin: 10px 20px;
}

.hotgametiltle {
  justify-content: space-between;
  margin: 0px 15px;
  padding: 5px 0;
  border-bottom: 1px solid #fff;
}

.hotgametiltle h2,
.hotgametiltle a {
  color: #fff;
  font-size: 20px;
}

.hotgametiltle a {
  font-size: 12px;
}

.language {
  width: 100px;
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  margin-bottom: 20px;
  padding: 20px 0;
  bottom: 10px;
  border-radius: 20px;
}

.language ul li {
  margin: 10px 0;
  color: #f0f0f0;
  list-style: none;
  font-weight: 700;
  transition: all 0.3s;
}

.language ul li:hover {
  font-size: 16px;
}

.gameTitle {
  font-size: 14px;
  color: #fff;
  width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  /* height: 45px; */
}

.logo {
  width: calc(60% - 40px);
  /* border-bottom: #fff 1px solid; */
  height: 10vh;
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 5px 0;
  /* width: 100vw; */
  /* background: #f0f0f0; */
  background: var(--bg);
}

.logo-top {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 20px;
  /* background-color: rgba(0, 0, 0, 0.7); */
  background-color: var(--bg2);
}

.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 {
  transition: all 0.3s;
  overflow: hidden;
  display: flex;
  margin: 10px 10px;
  height: 100vh;
  z-index: 9;
  left: 0;
  top: 0;
  background: rgba(33, 34, 51, 0.9);
  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;
  color: #fff;
}

.gamesdom {
  background-color: var(--bg);
  width: 60%;
  background-size: 100%;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

.gamesmain {
  display: flex;
  flex-wrap: wrap;
  padding: 2px;
  padding-top: 0px;
  min-height: 200px;
  background: var(--bg2);
  border-radius: 20px;
}

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

.game-cards img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

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

.more {
  /* background: rgba(33, 34, 51, 0.9); */
  background-color: var(--bg);
  width: calc(100% - 30px);
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  color: #f0f0f0;
  border-radius: 50px;
  margin-bottom: 10px;
}

.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;
}

.backname h1 {
  color: #fff;
}

.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 {
  width: 60%;
  background-color: var(--bg);
  color: #fff;
  text-align: center;
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style-type: none;
}

.logoImg {
  width: 100%;
}

.logoImg div {
}

.logoImg img {
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.logoTitle {
  font-size: 24px;
  font-family: "Courier New", Courier, monospace;
  font-weight: 800;
  color: #fff;
}

.footer a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  line-height: 14px;
  margin-left: 10px;
}

.footer a:first-child {
  margin-left: 0;
}

.footer a:not(:last-child) {
  border-right: 1px solid #fff;
  padding-right: 10px;
}

.aboutUs {
  margin: 0;
  /* background-color: #333; */
  background-color: var(--bg2);
  color: #fff;
  border-radius: 20px;
  padding: 10px;
}

h4,
h3 {
  text-align: left !important;
}

h3 {
  margin-bottom: 20px;
}

.aboutUs p {
  text-align: left;
  font-weight: 600;
}

.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;
  cursor: pointer;
}

.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: var(--bg);
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  z-index: 2;
  color: #fff;
}

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

.ditailimgdom {
  height: 150px;
  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 {
  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;
}

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

.detailList {
  width: 60%;
  flex: 1;
  background: var(--bg2);
  padding: 10px;
}

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

iframe {
  width: 100%;
  border: none;
  /* height: 100vh;  */
  /* position: absolute; */
  z-index: 1;
}

.game-detail-container {
  width: 60%;
  padding: 20px;
  margin: 0 auto;
  border-radius: 12px;
}

/* 游戏封面与信息 */
.game-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.game-hero img {
  width: 256px;
  height: 256px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-info h1 {
  color: #fff;
}

.game-info h2 {
  font-size: 24px;
  color: #fff;
  margin: 0;
}

.game-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  color: #fff;
}

.stat-item {
  display: flex;
  gap: 10px;
}

/* 标签样式 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  /* background: linear-gradient(135deg, #ff7eb3, #ff758c); */
  background-color: var(--bg2);
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.tag:hover {
  transform: scale(1.05);
}

/* 游戏描述与元数据 */
.game-content {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.game-description {
  background: var(--bg2);
  padding: 15px;
  border-radius: 8px;
}

.game-description h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}

.game-description p {
  line-height: 1.6;
  color: #fff;
}

.game-metadata {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-item .label {
  font-weight: bold;
  color: #fff;
}

.meta-item .value {
  color: #fff;
}

/* 操作按钮 */
.action-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.primary-btn {
  flex: 1;
  padding: 12px 20px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.primary-btn:hover {
  opacity: 0.9;
}

.primary-btn:disabled {
  background: #ff758c;
  cursor: not-allowed;
}

.social-actions {
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.icon-btn:hover {
  background: #e0e0e0;
}

.game-content {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.game-description p {
  line-height: 1.6;
  color: #4a4a4a;
}

.game-metadata {
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr 1fr;
  max-width: 800px;
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.social-actions {
  display: flex;
  gap: 15px;
}

.social-actions button img {
  width: 40px;
  aspect-ratio: 1/1;
  cursor: pointer;
}

.icon-btn {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.game-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.game-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* 响应式设计 */
@media (max-width: 768px) {
  footer {
    width: 100% !important;
  }

  .detailList {
    width: 100%;
  }

  .logo {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .gamesdom {
    width: 100%;
  }

  .game-hero {
    /* flex-direction: column; */
    align-items: flex-start;
  }

  .game-hero img {
    width: 120px;
    height: 120px;
    aspect-ratio: 1/1;
  }

  .game-detail-container {
    margin: 0;
    width: 100% !important;
  }

  .game-content {
    grid-template-columns: 1fr;
  }

  .game-metadata {
    grid-template-columns: 1fr;
  }
}
