/* 游戏 SEO 落地页（r6 §7，/games/:slug）——内容型排版页，深色官网风格 */

.gl-body {
  background: #0a0a0c;
  color: rgba(255, 255, 255, 0.86);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC',
    'Microsoft YaHei', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.gl-main {
  padding-top: 64px;
}

/* ---- 头部：H1 + 下载 CTA ---- */
.gl-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 96px) 24px clamp(32px, 6vh, 64px);
  text-align: center;
}

.gl-kicker {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}

.gl-h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 28px;
}

.gl-cta-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f7cff, #7a5cff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 28px rgba(79, 124, 255, 0.35);
}

.gl-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(79, 124, 255, 0.45);
}

.gl-cta-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- 正文模块 ---- */
.gl-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.gl-section {
  padding: clamp(28px, 4.5vh, 44px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gl-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.gl-text {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
  white-space: pre-line;
}

.gl-link {
  color: #6f9bff;
  text-decoration: none;
}

.gl-link:hover {
  text-decoration: underline;
}

/* 步骤（有序） */
.gl-steps {
  counter-reset: gl-step;
  display: grid;
  gap: 12px;
}

.gl-steps li {
  counter-increment: gl-step;
  position: relative;
  padding: 14px 16px 14px 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  list-style: none;
}

.gl-steps li::before {
  content: counter(gl-step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(111, 155, 255, 0.18);
  color: #8db1ff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 自检清单 */
.gl-checklist {
  display: grid;
  gap: 10px;
}

.gl-checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  list-style: none;
}

.gl-checklist li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 12px;
  height: 7px;
  border-left: 2px solid #6f9bff;
  border-bottom: 2px solid #6f9bff;
  transform: rotate(-45deg);
}

/* 四类排查 */
.gl-trouble-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gl-trouble-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.gl-trouble-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.gl-trouble-card p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.66);
  white-space: pre-line;
}

/* 页脚说明区 */
.gl-pagefoot {
  padding-top: clamp(28px, 4.5vh, 44px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  display: grid;
  gap: 10px;
}

.gl-source {
  color: rgba(255, 255, 255, 0.42);
}

.gl-disclaimer {
  color: rgba(255, 255, 255, 0.38);
}

.gl-sitefoot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
  .gl-trouble-grid {
    grid-template-columns: 1fr;
  }

  .gl-hero {
    padding-top: 40px;
  }
}

/* ==========================================================================
   游戏四图视觉化（game_landing_pages.game_id → games 四图；2026-08-05）
   口径与 Profile 页一致（game-profile.css 头注释）：
   - bg_image 1440×900 → hero 全宽背景（深色遮罩保证可读性）
   - icon 1:1 → 游戏身份区标准方图，右侧上=名称、下=副标题
   - card_image 293×448 → hero 海报卡（竖版，同 .gp-poster 卡位）
   - thumbnail 480×300 → 「适用场景」配图 + og:image
   - 未关联 / 四图为空：以上全部不渲染，页面保持原纯文字排版
   ========================================================================== */

.gl-hero-visual {
  position: relative;
  max-width: none;
  padding: 0;
  text-align: left;
  overflow: hidden;
}

.gl-hero-backdrop {
  position: absolute;
  inset: 0;
  background: var(--gl-hero-bg) center 28% / cover no-repeat;
}

.gl-hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.62) 0%, rgba(10, 10, 12, 0.74) 58%, #0a0a0c 100%),
    radial-gradient(ellipse 72% 100% at 24% 42%, rgba(10, 10, 12, 0.55), transparent 72%);
}

.gl-hero-inner {
  position: relative;
}

.gl-hero-visual .gl-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 104px) 24px clamp(40px, 7vh, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

/* 游戏身份区：标准 1:1 方图标 + 右侧两行（名称/副标题） */
.gl-game-ident {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  text-align: left;
}

.gl-game-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.gl-game-ident-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gl-game-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.gl-game-sub {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
}

.gl-hero-visual .gl-kicker {
  margin-bottom: 10px;
}

.gl-hero-visual .gl-h1 {
  text-wrap: balance;
}

/* 卡片图 293×448 海报位（同 Profile 页 .gp-poster 口径） */
.gl-poster {
  position: relative;
  margin: 0;
  width: clamp(220px, 24vw, 293px);
  justify-self: end;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

.gl-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 293 / 448;
  object-fit: cover;
}

.gl-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(205deg, rgba(255, 255, 255, 0.12), transparent 36%);
  pointer-events: none;
}

/* 场景两栏：文字 + 缩略图 */
.gl-scenario {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.gl-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.gl-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 480 / 300;
  object-fit: cover;
}

/* ===== 移动接力（G1-6）：CTA 下追加提示块，不替换原下载按钮 ===== */

.gl-mobile-relay {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gl-mobile-relay-tip {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.gl-mobile-relay-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.gl-mobile-relay-copy {
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.22);
  color: #cfe0ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gl-mobile-relay-copy:hover {
  background: rgba(79, 124, 255, 0.34);
}

/* ===== 相关热门游戏（G1-5）：293×448 卡片互链（缺卡图退 icon 小卡） ===== */

.gl-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.gl-related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease;
}

.gl-related-card:hover {
  transform: translateY(-3px);
  color: #fff;
}

.gl-related-media {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.gl-related-media img {
  display: block;
  width: 100%;
  aspect-ratio: 293 / 448;
  object-fit: cover;
}

/* 缺 293×448 卡图时用 1:1 图标小卡兜底，保持网格节奏 */
.gl-related-media-icon img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 22%;
  box-sizing: border-box;
}

.gl-related-name {
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .gl-hero-visual .gl-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 48px;
  }

  .gl-poster {
    width: min(240px, 62vw);
    justify-self: start;
  }

  .gl-scenario {
    grid-template-columns: 1fr;
  }

  .gl-figure {
    max-width: 480px;
  }

  .gl-related-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 12px;
  }
}
