/**
 * 闪客加速器 - 游戏 Profile 页样式（/games/profile/:id）
 * 视觉语言：与 /games/{slug} 落地页（game-landing.css）同款——深色官网风、
 * hero 左文右海报、border-top 分节排版、单一高强调 CTA；本页额外保留「热门游戏」卡位。
 *
 * 图片资产口径（2026-07-29 运营拍板，非合规尺寸一律 object-fit: cover 中心裁剪）：
 *   图标     N×N       .gp-icon        aspect-ratio 1/1（身份区标准方图）
 *   封面图   480×300   .gp-cover（陈列位）/ og:image / 头图降级
 *   卡片图   293×448   .gp-poster（hero 海报位）/ .gp-card-media（热门游戏卡）
 *   背景图   1440×900  .gp-hero-bg     cover + 深色遮罩（保标题可读性）
 */

.gp-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;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.gp-main {
  flex: 1;
  padding-top: 64px;
}

/* ==================== 头图区（落地页同款：左文右海报） ==================== */

.gp-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 60vh, 720px);
  overflow: hidden;
  text-align: left;
}

.gp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 28%;
}

.gp-hero-mask {
  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%);
}

.gp-hero-plain {
  background:
    radial-gradient(90% 120% at 50% -20%, #1c2634 0%, transparent 60%),
    #0a0a0c;
}

.gp-hero-inner {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 56px) 24px clamp(40px, 7vh, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

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

.gp-icon {
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  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);
}

.gp-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(150deg, #2a2a30, #131317);
}

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

.gp-ident-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.gp-name {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 22px;
  text-wrap: balance;
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.55);
}

.gp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.gp-badge {
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

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

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

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

/* 卡片图 293×448 海报位（同落地页 .gl-poster 口径） */
.gp-poster-wrap {
  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);
}

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

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

/* ==================== 正文（落地页同款分节排版） ==================== */

.gp-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

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

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

.gp-description {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
  white-space: pre-line;
  word-break: break-word;
}

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

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

/* 规格清单：发丝线 key-value */
.gp-specs {
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.gp-specs li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.gp-spec-key {
  flex-shrink: 0;
  width: 64px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

.gp-spec-value {
  color: rgba(255, 255, 255, 0.78);
  word-break: break-all;
}

.gp-website {
  color: #6f9bff;
  text-decoration: none;
}

.gp-website:hover {
  text-decoration: underline;
}

/* ---------- 封面陈列位（480×300） ---------- */

.gp-showcase {
  margin: 0;
  display: flex;
  justify-content: center;
}

.gp-cover {
  width: min(640px, 100%);
  aspect-ratio: 480 / 300;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  background: #131317;
}

/* ---------- SEO 支持区块（次级说明位） ---------- */

.gp-seo h2 {
  font-size: 17px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.gp-seo .gp-description {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.5);
}

/* ==================== 热门游戏卡片（293×448，保留板块） ==================== */

.gp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.gp-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
}

.gp-card:focus-visible {
  outline: 2px solid #6f9bff;
  outline-offset: 2px;
}

.gp-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 293 / 448;
  object-fit: cover;
  background: #101014;
}

.gp-card-media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gp-card-media-fallback img {
  width: 44%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}

.gp-card-letter {
  font-size: 40px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
}

.gp-card-name {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== 页脚说明区（落地页同口径） ==================== */

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

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

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

/* ==================== 响应式 ==================== */

@media (max-width: 860px) {
  .gp-hero {
    min-height: 0;
  }

  .gp-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 44px;
  }

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

  .gp-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .gp-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 12px;
  }
}
