/* 统一游戏信息卡片（Game/Detail + News/Detail 关联游戏共用） */
.gm-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px; /* 与下方元素（截图区/面包屑）留出间距 */
}

/* 左侧图标 */
.gm-icon {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--slate-100, #eef1f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}
.gm-icon a { display: block; width: 100%; height: 100%; }
.gm-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 中间主体 */
.gm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.gm-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
}
a.gm-title:hover { color: var(--accent); }

.gm-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 13px; color: var(--text-secondary); }
.gm-meta-item { display: inline-flex; gap: 6px; align-items: baseline; }
.gm-meta-l { color: var(--text-lighter, #9aa4b2); }

.gm-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 12px;
  color: var(--text-lighter, #9aa4b2);
}
.gm-extras a { color: var(--accent); }
.gm-extra-item { display: inline-flex; gap: 6px; align-items: baseline; }
.gm-extra-l { color: var(--text-lighter, #9aa4b2); }

/* 下载 / 畅玩 / 详情按钮区 */
.gm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 2px; }
.gm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-xl, 999px);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}
.gm-btn-dl { background: var(--accent, #2563eb); color: #fff; }
.gm-btn-dl:hover { background: var(--accent-dark, #1d4ed8); color: #fff; }
.gm-btn-play { background: var(--green, #16a34a); color: #fff; }
.gm-btn-play:hover { background: var(--green-dark, #15803d); color: #fff; }
.gm-btn-ghost { background: transparent; color: var(--accent, #2563eb); border: 1px solid var(--accent, #2563eb); font-weight: 600; }
.gm-btn-ghost:hover { background: var(--accent, #2563eb); color: #fff; }
.gm-dl-icon { width: 22px; height: 22px; filter: brightness(0) invert(1); }

/* 二维码：图片与游戏图标水平居中（图片部分对齐），说明文字挂在图片下方，不占布局高度 */
.gm-qr {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  padding-right: 18px;
  border-right: 1px dashed var(--card-border);
}
.gm-qr img {
  width: 120px;
  height: 120px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.gm-qr span {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: var(--accent, #2563eb);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  /* 图标+二维码并排一行，信息区整块换到下一行 */
  .gm-card { flex-flow: row wrap; align-items: center; justify-content: center; text-align: center; padding: 20px 16px; }
  .gm-body { flex: 1 0 100%; }
  .gm-meta, .gm-extras, .gm-actions { justify-content: center; }
  .gm-qr { border-right: none; padding-right: 0; margin-right: 0; }
}