/* PC 站点壳层内游戏区布局 */
.daogui-game-section {
  position: relative;
  padding-bottom: clamp(48px, 6vw, 88px);
}

.daogui-game-section .block-inner {
  position: relative;
}

.daogui-game-shell {
  position: relative;
  isolation: isolate;
}

.daogui-game-section .leaf-lead {
  margin-top: 10px;
  color: var(--t1);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.leaf-h .en-sub {
  display: block;
  margin-top: 6px;
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--t2);
  text-transform: uppercase;
}

/* ── 小游戏中心 · PC 两列饱满卡（960） ── */
body.eo-game-hub .game-hub-section.block.tight,
body.eo-game-hub .game-hub-section {
  padding-top: 10px;
  padding-bottom: 24px;
}

body.eo-game-hub .game-hub-section .block-inner {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.game-hub-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fff 0%, #f3f6fb 100%);
  border: 1px solid var(--edge-2, #e5e5e5);
  border-radius: 14px;
}

.game-hub-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--t3, rgba(0, 0, 0, 0.38));
  text-transform: uppercase;
}

.game-hub-heading {
  margin: 0;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--t0);
  line-height: 1.1;
}

.game-hub-sub {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--t2);
  line-height: 1.35;
}

.game-hub-stats {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.game-hub-stat {
  min-width: 58px;
  padding: 9px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--edge-2, #e5e5e5);
  border-radius: 11px;
}

.game-hub-stat.is-ok {
  border-color: rgba(46, 160, 90, 0.28);
  background: rgba(46, 160, 90, 0.08);
}

.game-hub-stat.is-ok b {
  color: #1a6b3c;
}

.game-hub-stat b {
  display: block;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.05;
  color: var(--t0);
  font-variant-numeric: tabular-nums;
}

.game-hub-stat span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--t2);
}

/* 推荐条 */
.game-hub-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid var(--edge-2, #e5e5e5);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.game-hub-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 140px at 0% 50%, color-mix(in srgb, var(--hub-accent, #888) 18%, transparent), transparent 70%),
    linear-gradient(90deg, #fff 40%, color-mix(in srgb, var(--hub-accent, #888) 8%, #fff) 100%);
  pointer-events: none;
}

.game-hub-spotlight:hover {
  transform: translateY(-1px);
  border-color: #222;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.game-hub-spotlight-media,
.game-hub-spotlight-body,
.game-hub-spotlight-cta {
  position: relative;
  z-index: 1;
}

.game-hub-spotlight-media {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--hub-accent, #888) 16%, #fff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.game-hub-spotlight-media img {
  width: 88px;
  height: 88px;
  border-radius: 18px;
}

.game-hub-spotlight-label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hub-accent, #666);
}

.game-hub-spotlight-title {
  display: block;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.2;
  color: var(--t0);
}

.game-hub-spotlight-desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--t2);
}

.game-hub-spotlight-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.game-hub-spotlight-foot span {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.05);
  color: var(--t1);
}

.game-hub-spotlight-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.game-hub-spotlight.tone-rose { --hub-accent: #e56b8a; }
.game-hub-spotlight.tone-ink { --hub-accent: #5c6278; }
.game-hub-spotlight.tone-amber { --hub-accent: #d59a2c; }
.game-hub-spotlight.tone-sky { --hub-accent: #3d8fd4; }
.game-hub-spotlight.tone-leaf { --hub-accent: #3ea15f; }
.game-hub-spotlight.tone-ocean { --hub-accent: #2f9aa8; }
.game-hub-spotlight.tone-coral { --hub-accent: #e07a55; }
.game-hub-spotlight.tone-lilac { --hub-accent: #8a6fd4; }

.game-hub-panel {
  padding: 10px;
  background:
    linear-gradient(180deg, #f7f9fc, #eef2f7),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(17, 17, 17, 0.018) 10px,
      rgba(17, 17, 17, 0.018) 11px
    );
  border: 1px solid var(--edge-2, #e5e5e5);
  border-radius: 14px;
}

.game-hub-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--t1);
}

.game-hub-panel-bar span:last-child {
  color: var(--t2);
  font-weight: 500;
}

.game-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.game-hub-card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  min-height: 148px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--edge-2, #e5e5e5);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.game-hub-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--hub-accent, #999);
}

.game-hub-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hub-accent, #888) 14%, transparent);
  pointer-events: none;
}

.game-hub-card:hover {
  transform: translateY(-2px);
  border-color: #222;
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.09);
}

.game-hub-card:hover .game-hub-go {
  background: #111;
  color: #fff;
  border-color: #111;
}

.game-hub-card:hover .game-hub-icon {
  transform: scale(1.05);
}

.game-hub-card:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.game-hub-media {
  position: relative;
  z-index: 1;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  align-self: center;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    0 8px 16px rgba(17, 17, 17, 0.08);
}

.game-hub-icon {
  width: 80px;
  height: 80px;
  display: block;
  border-radius: 18px;
  transition: transform 0.18s ease;
}

.game-hub-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.game-hub-genre {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--hub-accent, #666);
}

.game-hub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.game-hub-title {
  min-width: 0;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.2;
  color: var(--t0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-hub-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--t2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-hub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.game-hub-chip {
  font-size: 10.5px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--t1, #333);
  background: rgba(17, 17, 17, 0.05);
  border: 1px solid rgba(17, 17, 17, 0.06);
  white-space: nowrap;
}

.game-hub-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.game-hub-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
  color: var(--t2);
}

.game-hub-facts span::before {
  content: "·";
  margin-right: 8px;
  color: var(--t3, rgba(0, 0, 0, 0.3));
}

.game-hub-facts span:first-child::before {
  content: none;
  margin: 0;
}

.game-hub-go {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--edge-2, #e5e5e5);
  background: #fff;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--t0);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.game-hub-go i {
  font-style: normal;
  font-size: 14px;
  line-height: 1;
}

.game-hub-tag {
  flex-shrink: 0;
  font-size: 10.5px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.game-hub-card.is-ready .game-hub-tag {
  color: #1a6b3c;
  background: rgba(46, 160, 90, 0.12);
  border-color: rgba(46, 160, 90, 0.22);
}

.game-hub-card.is-pending .game-hub-tag {
  color: var(--t2);
  background: #f3f3f3;
  border-color: var(--edge, #ddd);
}

.game-hub-card.is-pending {
  opacity: 0.92;
}

.game-hub-card.is-pending .game-hub-icon {
  filter: grayscale(0.2);
}

.game-hub-card.tone-rose {
  --hub-accent: #e56b8a;
  background: linear-gradient(145deg, #fff 42%, #fff0f4 100%);
}
.game-hub-card.tone-rose .game-hub-media { background: linear-gradient(145deg, #ffd0df, #ffe8ef); }

.game-hub-card.tone-ink {
  --hub-accent: #5c6278;
  background: linear-gradient(145deg, #fff 42%, #f1f3f8 100%);
}
.game-hub-card.tone-ink .game-hub-media { background: linear-gradient(145deg, #d8dce8, #eaedf5); }

.game-hub-card.tone-amber {
  --hub-accent: #d59a2c;
  background: linear-gradient(145deg, #fff 42%, #fff6e8 100%);
}
.game-hub-card.tone-amber .game-hub-media { background: linear-gradient(145deg, #ffdfa0, #fff0cf); }

.game-hub-card.tone-sky {
  --hub-accent: #3d8fd4;
  background: linear-gradient(145deg, #fff 42%, #eef6ff 100%);
}
.game-hub-card.tone-sky .game-hub-media { background: linear-gradient(145deg, #c6e1ff, #e5f2ff); }

.game-hub-card.tone-leaf {
  --hub-accent: #3ea15f;
  background: linear-gradient(145deg, #fff 42%, #eef9f1 100%);
}
.game-hub-card.tone-leaf .game-hub-media { background: linear-gradient(145deg, #c6edd4, #e4f6ea); }

.game-hub-card.tone-ocean {
  --hub-accent: #2f9aa8;
  background: linear-gradient(145deg, #fff 42%, #eaf8fa 100%);
}
.game-hub-card.tone-ocean .game-hub-media { background: linear-gradient(145deg, #bee9ed, #e0f5f7); }

.game-hub-card.tone-coral {
  --hub-accent: #e07a55;
  background: linear-gradient(145deg, #fff 42%, #fff3ee 100%);
}
.game-hub-card.tone-coral .game-hub-media { background: linear-gradient(145deg, #ffceb9, #ffe9e0); }

.game-hub-card.tone-lilac {
  --hub-accent: #8a6fd4;
  background: linear-gradient(145deg, #fff 42%, #f5f0ff 100%);
}
.game-hub-card.tone-lilac .game-hub-media { background: linear-gradient(145deg, #d7c8ff, #efe8ff); }

.game-hub-build {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--s2);
  border: 1px solid var(--edge-2);
  border-radius: 10px;
}

.game-hub-build .muted {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
}

/* 平板 */
@media (max-width: 980px) {
  .game-hub-heading {
    font-size: 22px;
  }

  .game-hub-spotlight {
    grid-template-columns: 80px 1fr;
  }

  .game-hub-spotlight-cta {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* 手机 */
@media (max-width: 640px) {
  body.eo-game-hub .game-hub-section.block.tight,
  body.eo-game-hub .game-hub-section {
    padding-top: 6px;
    padding-bottom: 14px;
  }

  .game-hub-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
  }

  .game-hub-kicker {
    display: none;
  }

  .game-hub-sub {
    display: none;
  }

  .game-hub-heading {
    font-size: 18px;
  }

  .game-hub-stats {
    width: 100%;
  }

  .game-hub-stat {
    flex: 1;
    min-width: 0;
    padding: 8px 6px;
  }

  .game-hub-stat b {
    font-size: 16px;
  }

  .game-hub-spotlight {
    grid-template-columns: 64px 1fr;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
  }

  .game-hub-spotlight-media,
  .game-hub-spotlight-media img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .game-hub-spotlight-title {
    font-size: 16px;
  }

  .game-hub-spotlight-desc {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .game-hub-spotlight-cta {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .game-hub-panel {
    padding: 8px;
  }

  .game-hub-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .game-hub-card {
    min-height: 0;
    padding: 10px;
    gap: 10px;
  }

  .game-hub-media,
  .game-hub-icon {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .game-hub-title {
    font-size: 15px;
  }

  .game-hub-desc {
    font-size: 12px;
  }
}

/* color-mix 回退：旧浏览器用纯色 */
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .game-hub-spotlight::before {
    background: linear-gradient(90deg, #fff 35%, #f5f7fb 100%);
  }
  .game-hub-card::after {
    background: rgba(17, 17, 17, 0.04);
  }
  .game-hub-spotlight-media {
    background: #f0f2f6;
  }
}

/* ── 千世书 PC 嵌入：固定 iframe 高度，游戏内 .log 区域滚动 ── */
body.eo-qianshi-pc {
  overflow-x: hidden;
}

body.eo-qianshi-pc .page-hero {
  padding-bottom: 8px;
}

body.eo-qianshi-pc .qianshi-game-section {
  position: relative;
  padding-top: 0;
  padding-bottom: clamp(32px, 4vw, 56px);
  overflow: visible;
}

body.eo-qianshi-pc .qianshi-game-section .block-inner {
  position: relative;
  overflow: visible;
}

body.eo-qianshi-play .qianshi-frame {
  flex: 1 1 auto;
  width: 100%;
  /* 一开始就预留完整可视高度，避免只露出上半截再慢慢撑开 */
  height: max(720px, calc(100vh - 200px));
  min-height: max(720px, calc(100vh - 200px));
  border: 1px solid var(--edge-2);
  border-radius: var(--radius, 12px);
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

body.eo-qianshi-play .qianshi-frame--loading {
  /* 不再隐藏：加载过程中也占满完整高度，减少「半屏」体验 */
  opacity: 1;
}

body.eo-qianshi-play .qianshi-frame--ready {
  opacity: 1;
}

/* 游玩中 iframe 固定高度 */
body.eo-qianshi-play .qianshi-frame.qianshi-frame--play {
  height: max(720px, calc(100vh - 200px));
  min-height: 560px;
}

@media (max-width: 768px) {
  body.eo-qianshi-pc .qianshi-frame,
  body.eo-qianshi-play .qianshi-frame {
    border-radius: 10px;
    height: max(560px, calc(100vh - 160px));
    min-height: max(560px, calc(100vh - 160px));
  }
}

/* 旧版兼容（非 eo-qianshi-pc 上下文） */
.qianshi-game-section {
  position: relative;
  padding-bottom: clamp(48px, 6vw, 88px);
}

.qianshi-game-section .block-inner {
  position: relative;
}

.qianshi-frame {
  display: block;
  width: 100%;
  min-height: min(78vh, 920px);
  height: calc(100vh - 280px);
  border: 1px solid var(--edge-2);
  border-radius: var(--radius, 12px);
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .qianshi-frame {
    min-height: 70vh;
    height: calc(100vh - 240px);
    border-radius: 10px;
  }
}

/* ── 模拟人生 · H5 iframe 壳（按内容撑开，外层页面滚动）── */
body.eo-rensheng-pc {
  overflow-x: hidden;
}

body.eo-rensheng-pc .page-hero {
  padding-top: 18px;
  padding-bottom: 4px;
}

body.eo-rensheng-pc .page-hero .leaf-stat {
  display: none;
}

body.eo-rensheng-pc .rensheng-game-section {
  position: relative;
  padding-top: 0;
  padding-bottom: 24px;
}

body.eo-rensheng-pc .rensheng-game-section .block-inner {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

body.eo-rensheng-pc footer {
  padding-top: 24px;
  padding-bottom: 20px;
}

body.eo-rensheng-pc .rensheng-frame {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  min-height: 640px;
  height: 720px; /* 首屏占位，加载后由 JS 按内容撑开 */
  border: 1px solid var(--edge-2);
  border-radius: var(--radius, 12px);
  background: #ffffff;
  color-scheme: light;
  box-shadow: none;
  overflow: hidden;
}

body.eo-rensheng-pc .rensheng-frame--loading {
  opacity: 0;
}

body.eo-rensheng-pc .rensheng-frame--ready {
  opacity: 1;
  transition: opacity 0.12s ease;
}

@media (max-width: 768px) {
  body.eo-rensheng-pc .page-hero {
    padding-top: 10px;
  }

  body.eo-rensheng-pc .rensheng-game-section .block-inner {
    padding-left: 8px;
    padding-right: 8px;
  }

  body.eo-rensheng-pc .rensheng-frame {
    min-height: 640px;
    height: 800px;
    border-radius: 10px;
  }
}

/* ── 人生模拟 (SimLife / rsmn) · Cocos H5 iframe 壳 ── */
body.eo-rsmn-pc {
  overflow-x: hidden;
}

body.eo-rsmn-pc .rsmn-game-section {
  position: relative;
  padding-top: 0;
  padding-bottom: clamp(32px, 4vw, 56px);
}

body.eo-rsmn-pc .rsmn-game-section .block-inner {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

body.eo-rsmn-pc footer {
  padding-top: 24px;
  padding-bottom: 20px;
}

body.eo-rsmn-pc .rsmn-frame {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  /* 竖屏游戏：接近手机比例，可视区扣除站点头尾 */
  height: max(640px, calc(100vh - 220px));
  min-height: 640px;
  border: 1px solid var(--edge-2);
  border-radius: var(--radius, 12px);
  background: #333;
  color-scheme: light;
  box-shadow: none;
  overflow: hidden;
}

body.eo-rsmn-pc .rsmn-frame--loading {
  opacity: 0.4;
}

body.eo-rsmn-pc .rsmn-frame--ready {
  opacity: 1;
  transition: opacity 0.15s ease;
}

@media (max-width: 768px) {
  body.eo-rsmn-pc .rsmn-game-section .block-inner {
    padding-left: 8px;
    padding-right: 8px;
    max-width: none;
  }

  body.eo-rsmn-pc .rsmn-frame {
    max-width: none;
    height: max(560px, calc(100vh - 180px));
    min-height: 560px;
    border-radius: 10px;
  }

  /* 手机端屏蔽站点底部导航，避免挡住游戏操作 */
  body.eo-rsmn-pc {
    padding-bottom: 0 !important;
  }

  body.eo-rsmn-pc .dock-nav,
  body.eo-rsmn-pc #mobile-tab-bar {
    display: none !important;
  }
}

/* ── Narratium 手机端：全屏 iframe，对话区不溢出 ── */
@media (max-width: 767px) {
  body.eo-narratium-pc {
    overflow-x: hidden;
  }

  body.eo-narratium-pc.eo-narratium-play .page-hero {
    display: none;
  }

  body.eo-narratium-pc .qianshi-game-section {
    padding-top: 0;
    padding-bottom: 0;
  }

  body.eo-narratium-pc .qianshi-game-section .block-inner {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }

  body.eo-narratium-pc #narratium-frame,
  body.eo-narratium-pc.eo-narratium-play .qianshi-frame {
    min-height: calc(100dvh - 52px);
    height: calc(100dvh - 52px);
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #181818;
  }
}

/* ── YJTH 家园 · Cocos H5 iframe 壳 ── */
body.eo-yjth-pc {
  overflow-x: hidden;
}

body.eo-yjth-pc .yjth-game-section {
  position: relative;
  padding-top: 0;
  padding-bottom: clamp(32px, 4vw, 56px);
}

body.eo-yjth-pc .yjth-game-section .block-inner {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

body.eo-yjth-pc footer {
  padding-top: 24px;
  padding-bottom: 20px;
}

body.eo-yjth-pc .yjth-frame {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: max(640px, calc(100vh - 220px));
  min-height: 640px;
  border: 1px solid var(--edge-2);
  border-radius: var(--radius, 12px);
  background: #333;
  color-scheme: light;
  box-shadow: none;
  overflow: hidden;
}

body.eo-yjth-pc .yjth-frame--loading {
  opacity: 0.4;
}

body.eo-yjth-pc .yjth-frame--ready {
  opacity: 1;
  transition: opacity 0.15s ease;
}

@media (max-width: 768px) {
  body.eo-yjth-pc .yjth-game-section .block-inner {
    padding-left: 8px;
    padding-right: 8px;
    max-width: none;
  }

  body.eo-yjth-pc .yjth-frame {
    max-width: none;
    height: max(560px, calc(100vh - 180px));
    min-height: 560px;
    border-radius: 10px;
  }

  /* 手机端屏蔽站点底部导航，避免挡住游戏操作 */
  body.eo-yjth-pc {
    padding-bottom: 0 !important;
  }

  body.eo-yjth-pc .dock-nav,
  body.eo-yjth-pc #mobile-tab-bar {
    display: none !important;
  }
}
