/* ===========================
   游戏页整体布局（可选）
   如果你只想改卡片，可以跳过这一段
   =========================== */

/* 只作用在我们这个游戏模板页（如果模板文件名是 page-game.php） */
body.page-template-reusable-game-page,
body.page-template-game-embed-page {
  /* 可以稍微减少两侧 padding，让卡片更居中 */
  /* 如果没生效就可以删掉这几行 */
}


/* ===========================
   游戏介绍卡片（上面那块）
   =========================== */

.game-info {
  max-width: 900px;
  margin: 32px auto 24px;
  padding: 22px 24px;

  background: rgba(17, 25, 38, 0.60);   /* 半透明雾蓝 */
  border-radius: 14px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 0 16px rgba(200, 215, 245, 0.16),
    0 0 32px rgba(8, 12, 20, 0.75);

  color: #E7ECF5;
}

/* 标题 */
.game-info-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #E9F0FF;
  text-shadow: 0 0 6px rgba(200, 215, 245, 0.35);
}

/* 正文 */
.game-info-content {
  font-size: 14px;
  line-height: 1.8;
  color: #D3DBEB;
}

.game-info-content p {
  margin: 0 0 0.9em;
}

.game-info-content ul,
.game-info-content ol {
  padding-left: 22px;
  margin: 0 0 0.9em;
}

.game-info-content li {
  margin-bottom: 4px;
}

/* 链接风格和主题统一 */
.game-info-content a {
  color: var(--color-link, #AFC9FF);
  text-decoration: none;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.game-info-content a:hover {
  color: var(--color-link-hover, #CFE2FF);
  text-shadow: 0 0 6px rgba(180, 200, 255, 0.35);
}


/* ===========================
   游戏区域卡片（下面那块）
   =========================== */

.game-container {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 18px 18px 22px;

  background: rgba(12, 18, 28, 0.70);   /* 比介绍稍深一点，像一块“屏幕框” */
  border-radius: 16px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 0 18px rgba(190, 205, 240, 0.18),
    0 0 40px rgba(5, 8, 14, 0.9);

  overflow: hidden;                     /* 让内部 iframe 的圆角被裁剪 */
}

/* 让游戏尽量保持 16:9，且在卡片里居中 */

/* 如果你是 iframe 结构：<section class="game-container"><iframe ...> */
.game-container iframe {
  display: block;
  width: 100%;
  /* 现代浏览器用 aspect-ratio 控制比例 */
  aspect-ratio: 16 / 9;
  /* 兼容性兜底：最小高度 */
  min-height: 320px;

  border: none;
  border-radius: 12px;

  background: #000; /* 游戏加载前的底色 */
}

/* 手机上稍微压缩一点上下空间 */
@media (max-width: 768px) {
  .game-info {
    margin: 24px 12px 20px;
    padding: 18px 16px;
  }

  .game-info-title {
    font-size: 20px;
  }

  .game-info-content {
    font-size: 13px;
  }

  .game-container {
    margin: 0 10px 28px;
    padding: 14px 12px 18px;
    border-radius: 14px;
  }

  .game-container iframe {
    border-radius: 10px;
    min-height: 220px;
  }
}
  /* ===== 游戏列表页 ===== */

.game-archive {
  padding: 60px 16px 80px;
}

.starfog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.game-archive__header {
  text-align: center;
  margin-bottom: 40px;
}

.game-archive__title {
  font-size: 2.4rem;
  color: #E4ECF9;
  margin-bottom: 8px;
}

.game-archive__subtitle {
  font-size: 0.95rem;
  color: rgba(228, 236, 249, 0.75);
}

/* 卡片网格 */
.game-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* 卡片 */
.game-card {
  background: rgba(10, 22, 36, 0.82);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 193, 255, 0.18);
  box-shadow:
    0 0 30px rgba(79, 129, 255, 0.32),
    0 0 80px rgba(5, 12, 25, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
              border-color 0.18s ease-out;
}

.game-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* 封面 */
.game-card__thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.game-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.25s ease-out;
}

.game-card__thumb--placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(228, 236, 249, 0.5);
  background: radial-gradient(circle at 20% 0%, #25344a 0, #0F1A24 55%, #050913 100%);
}

/* 文本 */
.game-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card__title {
  font-size: 1.05rem;
  color: #E4ECF9;
  margin: 0 0 8px;
}

.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: rgba(228, 236, 249, 0.6);
}

.game-card__tag {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(163, 213, 255, 0.75);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.game-card__excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(228, 236, 249, 0.76);
  margin: 0;
}

/* hover 效果 */
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(182, 225, 255, 0.9);
  box-shadow:
    0 0 40px rgba(111, 162, 255, 0.6),
    0 0 120px rgba(8, 18, 36, 1);
}

.game-card:hover .game-card__thumb img {
  transform: scale(1.06);
}

/* 分页 */
.game-archive__pagination {
  margin-top: 40px;
  text-align: center;
}

.game-archive__pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  color: rgba(228, 236, 249, 0.7);
  border: 1px solid transparent;
}

.game-archive__pagination .page-numbers.current {
  border-color: rgba(163, 213, 255, 0.9);
  background: rgba(26, 45, 79, 0.85);
  color: #E4ECF9;
}

.game-archive__pagination .page-numbers:hover {
  border-color: rgba(163, 213, 255, 0.6);
}

.no-games {
  text-align: center;
  color: rgba(228, 236, 249, 0.7);
  margin-top: 60px;
}

/* ===== 单个游戏页 ===== */

.single-game {
  padding: 50px 16px 80px;
}

.single-game__container {
  max-width: 1200px;
  margin: 0 auto;
}

.single-game__header {
  margin-bottom: 30px;
}

.single-game__breadcrumb {
  margin-bottom: 10px;
}

.single-game__back {
  font-size: 0.85rem;
  color: rgba(171, 213, 255, 0.85);
  text-decoration: none;
}

.single-game__back:hover {
  text-decoration: underline;
}

.single-game__title {
  font-size: 2rem;
  color: #E4ECF9;
  margin: 0 0 8px;
}

.single-game__meta {
  font-size: 0.85rem;
  color: rgba(228, 236, 249, 0.65);
}

.single-game__cover {
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
}

.single-game__cover img {
  display: block;
  width: 100%;
  height: auto;
}

.single-game__excerpt {
  margin-top: 16px;
  font-size: 0.95rem;
  color: rgba(228, 236, 249, 0.8);
}

/* 游戏区域卡片 */
.single-game__playarea {
  margin-top: 24px;
}

.single-game__card {
  background: rgba(10, 22, 36, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(148, 193, 255, 0.3);
  box-shadow:
    0 0 40px rgba(79, 129, 255, 0.45),
    0 0 120px rgba(5, 12, 25, 0.95);
  padding: 18px;
}

/* 让你正文里的 iframe 自适应宽度 */
.single-game__card iframe {
  display: block;
  width: 100% !important;
  max-width: 1500px;
  margin: 0 auto;
  border: none;
}

/* 整个启动器区域（独立于主布局） */
.home-game-launcher {
  padding: 20px 0 0 16px;
}

.home-game-launcher__inner {
  max-width: 1200px;
  margin: 0;
  text-align: left;          /* 外层先左对齐，下面 tile 自己控制 */
}

/* 整个图标卡片 */
.home-game-launcher__tile {
  display: inline-block !important;  /* 防止被别的 flex 样式影响 */
  width: 110px;                      /* 整个卡片宽度 */
  text-align: center;                /* ★ 让里面的文字水平居中 */
  padding: 10px 12px;
  border-radius: 18px;
  text-decoration: none;

  /* background: radial-gradient(circle at 50% 0%, rgba(111, 162, 255, 0.4), rgba(10, 20, 34, 0.96)); */
  /* border: 1px solid rgba(171, 218, 255, 0.8); */
  /* box-shadow:
    0 0 28px rgba(111, 162, 255, 0.5),
    0 0 80px rgba(4, 12, 24, 1); */
  /* transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out; */
}

/* 悬停效果 */
.home-game-launcher__tile:hover {
  transform: translateY(-3px);
  /* border-color: rgba(190, 230, 255, 0.95);*/
  /* box-shadow:
    0 0 45px rgba(148, 203, 255, 0.95),
    0 0 130px rgba(2, 6, 14, 1); */
}

/* 图标：方形小图标 */
.home-game-launcher__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;           /* 在 110px 宽的卡片里居中 */
  /* border-radius: 18px; */
  overflow: hidden;
  /* box-shadow: 0 0 14px rgba(0, 0, 0, 0.6); */
}

.home-game-launcher__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 名字：在图标下方一行，居中 */
.home-game-launcher__name {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  color: #E4ECF9;
  line-height: 1.2;
  white-space: nowrap;      /* 不换行，就像游戏图标标题一样 */
  text-align: center;       /* 再保险一次，确保居中 */
}
