/* =====================================================================
   「治愈星球」小游戏板块样式（独立命名空间：pm-game-*）
   ---------------------------------------------------------------------
   约定：
     - 全部选择器以 .pm-game-* 前缀命名，不修改 site.css 中的任何规则；
     - 颜色沿用站点主色系（#2f7d6e），只在 body.pm-game-body 作用域内覆盖变量，
       因此对其它页面零影响；
     - 图形的「可爱感」由 CSS 完成：圆角、柔和阴影、渐变光环；
     - 尊重 prefers-reduced-motion：末尾统一降级动画。
   ===================================================================== */

body.pm-game-body {
  --pg-brand: #2f7d6e;
  --pg-brand-dark: #245f54;
  --pg-brand-light: #eaf6f2;
  --pg-accent: #e8b06a;
  --pg-accent-soft: #fdf3e5;
  --pg-ink: #23302c;
  --pg-ink-2: #5b6b66;
  --pg-muted: #8b9a95;
  --pg-line: #e2ebe8;
  --pg-bg: #f7faf9;
  --pg-white: #fff;
  --pg-danger: #c0503f;
  --pg-radius: 14px;
  --pg-radius-lg: 22px;
  --pg-shadow: 0 2px 10px rgba(35, 48, 44, .06);
  --pg-shadow-lg: 0 14px 40px rgba(35, 48, 44, .12);
  background:
    radial-gradient(1100px 460px at 12% -10%, #eaf6f2 0%, rgba(234, 246, 242, 0) 65%),
    radial-gradient(900px 420px at 92% 4%, #fdf3e5 0%, rgba(253, 243, 229, 0) 60%),
    var(--pg-bg);
}

.pm-game-body .pm-section { padding: 26px 0; }
.pm-game-body .pm-section:first-of-type { padding-top: 10px; }

/* ============================ 板块首页 · 头图 ============================ */

.pm-game-hero {
  padding: 34px 0 8px;
  background:
    radial-gradient(680px 300px at 88% 0%, #e7f4ef 0%, rgba(231, 244, 239, 0) 70%),
    linear-gradient(180deg, #fbfefd 0%, rgba(251, 254, 253, 0) 100%);
  border-bottom: 1px solid var(--pg-line);
}
.pm-game-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: 28px;
  /*
   * 站长 2026-10-17：「图2治愈星球排版修改一下，**上调平齐**」。
   * 原来是 center —— 右侧「宠物乐园」卡片比左侧文案高，
   * 居中后左栏被"压"在中间，顶部留出一大片空白，视觉上不平整。
   * 改成 start 后左右两栏都从顶部开始，标题与卡片顶边对齐。
   */
  align-items: start;
  padding-bottom: 22px;
}
.pm-game-hero__kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--pg-brand);
}
.pm-game-hero__title {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--pg-ink);
}
.pm-game-hero__tagline {
  margin: 0 0 12px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--pg-brand-dark);
  font-weight: 600;
}
.pm-game-hero__desc {
  margin: 0 0 16px;
  max-width: 62ch;
  color: var(--pg-ink-2);
}
.pm-game-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.pm-game-hero__tags li {
  background: var(--pg-white);
  border: 1px solid var(--pg-line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--pg-ink-2);
  box-shadow: var(--pg-shadow);
}
.pm-game-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pm-game-hero__art { text-align: center; }
.pm-game-orbit {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #ffffff 0%, #f2faf7 42%, #e4f2ec 100%);
  box-shadow: inset 0 0 0 1px var(--pg-line), var(--pg-shadow-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pm-game-orbit__ring {
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(47, 125, 110, .35);
  border-radius: 50%;
  animation: pm-game-spin 26s linear infinite;
}
.pm-game-orbit__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pg-accent);
  box-shadow: 0 0 0 5px rgba(232, 176, 106, .18);
}
.pm-game-orbit__dot--a { top: 16%; left: 24%; }
.pm-game-orbit__dot--b { bottom: 20%; right: 18%; background: #8ec9b8; box-shadow: 0 0 0 5px rgba(142, 201, 184, .2); }
.pm-game-orbit__dot--c { bottom: 26%; left: 14%; width: 7px; height: 7px; background: #b6d9f0; box-shadow: 0 0 0 4px rgba(182, 217, 240, .22); }
.pm-game-orbit__face {
  position: absolute;
  width: 34%;
  color: var(--pg-brand);
  filter: drop-shadow(0 6px 10px rgba(35, 48, 44, .12));
}
.pm-game-orbit__face svg { width: 100%; height: auto; display: block; }
.pm-game-orbit__face--cat { top: 20%; right: 22%; animation: pm-game-float 7s ease-in-out infinite; }
.pm-game-orbit__face--dog { bottom: 20%; left: 22%; color: var(--pg-accent); animation: pm-game-float 8.5s ease-in-out infinite reverse; }
.pm-game-orbit__face svg path,
.pm-game-orbit__face svg circle,
.pm-game-orbit__face svg ellipse { fill: currentColor; }
.pm-game-orbit__face svg circle[fill="#fff"],
.pm-game-orbit__face svg ellipse[fill="#fff"] { fill: #fff; }
.pm-game-hero__art-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--pg-muted);
}

@keyframes pm-game-spin { to { transform: rotate(360deg); } }
@keyframes pm-game-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================ 通用标题 ============================ */

.pm-game-section-title {
  font-size: 19px;
  margin: 0 0 14px;
  color: var(--pg-ink);
  position: relative;
  padding-left: 12px;
}
.pm-game-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  bottom: .28em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--pg-brand), #8ec9b8);
}

/* ============================ 板块首页 · 列表 ============================ */

.pm-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.pm-game-card {
  background: var(--pg-white);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius-lg);
  box-shadow: var(--pg-shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pm-game-card:hover { transform: translateY(-3px); box-shadow: var(--pg-shadow-lg); border-color: #cfe4dd; }
.pm-game-card__link {
  display: block;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.pm-game-card__link:hover { text-decoration: none; color: inherit; }
.pm-game-thumb {
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: var(--pg-radius);
  background:
    radial-gradient(120% 140% at 18% 12%, #ffffff 0%, #eef7f4 55%, #e3f1ec 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #eaf3f0;
}
.pm-game-thumb::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 176, 106, .18), rgba(232, 176, 106, 0));
}
.pm-game-thumb__svg {
  width: 108px;
  height: 108px;
  color: var(--pg-brand);
  fill: currentColor;
}

/**
 * 小游戏缩略图 <img>：管理员可在可视化编辑状态下直接点击替换。
 *
 * 【站长反馈修正（2026-10）】
 *   原话：「图二只是矢量换成漂亮的整幅高清概念图，不是换成动物小方块」。
 *   原样式把图片锁成 108×108 居中 → 视觉上就是"小方块"，
 *   与容器 16:7 的宽幅版式也不匹配。
 *   现改为：**AI 概念图铺满整块**（object-fit: cover），像游戏封面一样；
 *   内置 SVG 兜底图（data URI）仍按 108px 居中 —— 它不是照片，铺满会变形。
 */
.pm-game-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* 兜底 SVG（data URI）保持居中、不铺满 */
.pm-game-thumb__img[src^="data:image/svg"] {
  width: 108px;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(31, 95, 135, .12));
}
.pm-game-thumb__svg [stroke] { stroke: currentColor; }
.pm-game-thumb__svg [fill="none"] { fill: none; }
.pm-game-thumb__svg [stroke-dasharray] { stroke: var(--pg-accent); }
.pm-game-thumb__index {
  position: absolute;
  left: 12px;
  top: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: rgba(47, 125, 110, .5);
}
.pm-game-card__body { padding: 14px 2px 8px; }
.pm-game-card__name { font-size: 17px; margin: 0 0 6px; color: var(--pg-ink); }
.pm-game-card__tagline { margin: 0 0 12px; color: var(--pg-ink-2); font-size: 14px; min-height: 3em; }
.pm-game-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px dashed var(--pg-line);
}
.pm-game-card__meta > div { min-width: 0; }
.pm-game-card__meta dt {
  font-size: 11px;
  color: var(--pg-muted);
  letter-spacing: .04em;
}
.pm-game-card__meta dd {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--pg-ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-game-card__cta {
  display: inline-block;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pg-brand);
}

/* ============================ 板块首页 · 说明 ============================ */

.pm-game-about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.pm-game-about__main,
.pm-game-about__aside {
  background: var(--pg-white);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius-lg);
  padding: 20px;
  box-shadow: var(--pg-shadow);
}
.pm-game-checklist { margin: 0; padding-left: 1.2em; color: var(--pg-ink-2); }
.pm-game-checklist li { margin-bottom: 8px; }
.pm-game-checklist strong { color: var(--pg-ink); }
.pm-game-disclaimer { margin: 0 0 12px; padding-left: 1.3em; color: var(--pg-ink-2); font-size: 14px; }
.pm-game-disclaimer li { margin-bottom: 7px; }
.pm-game-about__note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--pg-brand-light);
  color: var(--pg-brand-dark);
  font-size: 13.5px;
}

/* ============================ 游戏页 · 头部 ============================ */

.pm-game-head {
  padding: 18px 0 14px;
  background: linear-gradient(180deg, #fbfefd, rgba(251, 254, 253, 0));
  border-bottom: 1px solid var(--pg-line);
}
.pm-game-crumb { display: flex; gap: 6px; font-size: 13px; color: var(--pg-muted); margin-bottom: 10px; flex-wrap: wrap; }
.pm-game-head__row { display: flex; gap: 16px; align-items: center; }
.pm-game-head__icon {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 25%, #fff, #eaf6f2);
  border: 1px solid var(--pg-line);
  display: grid;
  place-items: center;
  box-shadow: var(--pg-shadow);
}
.pm-game-head__icon .pm-game-thumb__svg { width: 48px; height: 48px; color: var(--pg-brand); }
.pm-game-head__title { margin: 0 0 4px; font-size: clamp(20px, 2.4vw, 27px); }
.pm-game-head__tagline { margin: 0 0 8px; color: var(--pg-ink-2); }
.pm-game-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--pg-ink-2);
}
.pm-game-head__meta span {
  color: var(--pg-muted);
  margin-right: 6px;
  font-size: 12px;
}

/* ============================ 游戏页 · 布局 ============================ */

.pm-game-play { padding-top: 22px; }
.pm-game-play__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 22px;
  align-items: start;
}
.pm-game-stagecol { min-width: 0; }
.pm-game-side { display: grid; gap: 14px; position: sticky; top: 78px; }

.pm-game-panel {
  background: var(--pg-white);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius-lg);
  padding: 16px 18px;
  box-shadow: var(--pg-shadow);
}
.pm-game-panel--soft { background: linear-gradient(180deg, #fbfefd, #ffffff); }
.pm-game-panel__title { font-size: 15px; margin: 0 0 10px; color: var(--pg-brand-dark); }
.pm-game-panel__text { margin: 0 0 10px; color: var(--pg-ink-2); font-size: 14px; }
.pm-game-steps { margin: 0; padding-left: 1.2em; color: var(--pg-ink-2); font-size: 14px; }
.pm-game-steps li { margin-bottom: 6px; }
.pm-game-facts { margin: 8px 0 0; padding-left: 1.2em; color: var(--pg-ink-2); font-size: 13.5px; }
.pm-game-facts li { margin-bottom: 6px; }
.pm-game-details { margin-top: 6px; }
.pm-game-details summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pg-brand);
  padding: 6px 0;
}
.pm-game-details summary:hover { color: var(--pg-brand-dark); }

/* ============================ 游戏舞台 ============================ */

.pm-game-stage {
  position: relative;
  background:
    radial-gradient(120% 90% at 12% 0%, #ffffff 0%, #f4faf8 48%, #e9f4f0 100%);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius-lg);
  box-shadow: var(--pg-shadow-lg);
  padding: 14px 14px 12px;
  overflow: hidden;
  touch-action: manipulation;
}
.pm-game-stage__glow {
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(47, 125, 110, .1), rgba(47, 125, 110, 0));
  pointer-events: none;
}
.pm-game-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.pm-game-stat {
  min-width: 74px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--pg-line);
}
.pm-game-stat--wide { min-width: 132px; flex: 1 1 132px; }
.pm-game-stat__label { display: block; font-size: 11px; color: var(--pg-muted); letter-spacing: .03em; }
.pm-game-stat__value { font-size: 16px; color: var(--pg-ink); font-variant-numeric: tabular-nums; }
.pm-game-bar__btns { margin-left: auto; display: flex; gap: 8px; }

.pm-game-btn {
  appearance: none;
  border: 1px solid var(--pg-line);
  background: var(--pg-white);
  color: var(--pg-ink-2);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .16s;
  font-family: inherit;
}
.pm-game-btn:hover { border-color: var(--pg-brand); color: var(--pg-brand); }
.pm-game-btn:active { transform: translateY(1px); }
.pm-game-btn:disabled { opacity: .5; cursor: not-allowed; }
.pm-game-btn--primary {
  background: linear-gradient(180deg, #37907f, var(--pg-brand));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 125, 110, .25);
}
.pm-game-btn--primary:hover { color: #fff; filter: brightness(1.04); }
.pm-game-btn--ghost { background: transparent; }
.pm-game-btn--lg { padding: 11px 26px; font-size: 15px; border-radius: 12px; }
.pm-game-btn--tiny { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.pm-game-btn[aria-pressed="true"] {
  background: var(--pg-brand-light);
  border-color: var(--pg-brand);
  color: var(--pg-brand-dark);
}

.pm-game-canvas-wrap {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: var(--pg-canvas-max, 720px);
}
.pm-game-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #f4faf8;
  box-shadow: inset 0 0 0 1px rgba(47, 125, 110, .08);
  touch-action: none;
  cursor: pointer;
}
.pm-game-canvas:focus-visible { outline: 3px solid rgba(47, 125, 110, .45); outline-offset: 3px; }

.pm-game-extra { margin-top: 10px; }
.pm-game-extra:empty { display: none; }

/* 弹层出现时，隐藏舞台下方的交互区，避免「隔着弹层点到底下的按钮」 */
.pm-game-stage:has(.pm-game-overlay:not([hidden])) .pm-game-extra,
.pm-game-stage:has(.pm-game-overlay:not([hidden])) .pm-game-msg { visibility: hidden; }
.pm-game-stage:has(.pm-game-overlay:not([hidden])) .pm-game-bar__btns { visibility: hidden; }

.pm-game-msg {
  min-height: 22px;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--pg-brand-dark);
  text-align: center;
}
.pm-game-msg:empty { min-height: 0; }

/* ---------------------------- 结算 / 开始弹层 ---------------------------- */

.pm-game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(247, 250, 249, .78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: var(--pg-radius-lg);
  z-index: 5;
  animation: pm-game-fade .22s ease-out;
}
.pm-game-overlay[hidden] { display: none; }
.pm-game-overlay__card {
  width: min(430px, 100%);
  max-height: 100%;
  overflow: auto;
  background: var(--pg-white);
  border: 1px solid var(--pg-line);
  border-radius: 20px;
  box-shadow: var(--pg-shadow-lg);
  padding: 22px 22px 18px;
  text-align: center;
  animation: pm-game-pop .24s cubic-bezier(.22, 1, .36, 1);
}
.pm-game-overlay__badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--pg-brand-light);
  color: var(--pg-brand-dark);
}
.pm-game-overlay__badge[hidden] { display: none; }
.pm-game-overlay__badge.is-lose { background: #fbeceb; color: var(--pg-danger); }
.pm-game-overlay__badge.is-win { background: #eaf6f2; color: var(--pg-brand-dark); }
.pm-game-overlay__title { margin: 0 0 8px; font-size: 21px; }
.pm-game-overlay__text { margin: 0 0 12px; color: var(--pg-ink-2); font-size: 14px; }
.pm-game-overlay__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px 8px;
  border-radius: 14px;
  background: #f7fbfa;
  border: 1px dashed var(--pg-line);
}
.pm-game-overlay__stats:empty { display: none; }
.pm-game-overlay__stats > div { min-width: 0; }
.pm-game-overlay__stats dt { font-size: 11.5px; color: var(--pg-muted); }
.pm-game-overlay__stats dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; color: var(--pg-ink); font-variant-numeric: tabular-nums; }
.pm-game-overlay__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pm-game-overlay__note { margin: 12px 0 0; font-size: 12px; color: var(--pg-muted); }
.pm-game-overlay__note[hidden] { display: none; }

@keyframes pm-game-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pm-game-pop {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.pm-game-reduced {
  margin: 10px 0 0;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--pg-brand-light);
  color: var(--pg-brand-dark);
  font-size: 13px;
}
.pm-game-reduced[hidden] { display: none; }

/* ============================ 游戏页 · 更多游戏 ============================ */

.pm-game-more__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.pm-game-more__item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--pg-white);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--pg-shadow);
  transition: .18s;
}
.pm-game-more__item:hover { border-color: #cfe4dd; transform: translateY(-2px); text-decoration: none; color: inherit; }
.pm-game-more__icon { flex: 0 0 auto; width: 38px; height: 38px; color: var(--pg-brand); }
.pm-game-more__icon .pm-game-thumb__svg { width: 100%; height: 100%; }
.pm-game-more__text { min-width: 0; display: block; }
.pm-game-more__text strong { display: block; font-size: 14.5px; color: var(--pg-ink); }
.pm-game-more__text small { display: block; color: var(--pg-muted); font-size: 12.5px; line-height: 1.5; }

/* =====================================================================
   各游戏自定义 UI
   ===================================================================== */

/* ---------------------------- 记忆翻牌 ---------------------------- */

.pm-game-stage--memory-match { --pg-canvas-max: 640px; }
.pm-game-mem-grid {
  display: grid;
  gap: 10px;
  justify-content: center;
  padding: 6px 2px 2px;
}
.pm-game-mem-card {
  position: relative;
  appearance: none;
  border: 0;
  padding: 0;
  width: var(--pg-mem-size, 88px);
  height: var(--pg-mem-size, 88px);
  background: transparent;
  cursor: pointer;
  perspective: 700px;
  font-family: inherit;
}
.pm-game-mem-card__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .38s cubic-bezier(.22, 1, .36, 1);
  border-radius: 16px;
}
.pm-game-mem-card.is-open .pm-game-mem-card__inner,
.pm-game-mem-card.is-done .pm-game-mem-card__inner { transform: rotateY(180deg); }
.pm-game-mem-card__face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.pm-game-mem-card__back {
  background: linear-gradient(150deg, #37907f, var(--pg-brand-dark));
  color: rgba(255, 255, 255, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 12px rgba(36, 95, 84, .2);
}
.pm-game-mem-card__back::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 11px;
  border: 1px dashed rgba(255, 255, 255, .35);
}
.pm-game-mem-card__back svg { width: 40%; height: 40%; fill: currentColor; }
.pm-game-mem-card__front {
  transform: rotateY(180deg);
  background: var(--pg-white);
  box-shadow: inset 0 0 0 1px var(--pg-line);
}
.pm-game-mem-card__front svg { width: 84%; height: 84%; }
.pm-game-mem-card__front span {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  font-size: 10.5px;
  color: var(--pg-muted);
}
.pm-game-mem-card.is-done .pm-game-mem-card__front {
  box-shadow: inset 0 0 0 2px rgba(142, 201, 184, .9);
  background: #f6fcf9;
}
.pm-game-mem-card.is-done { animation: pm-game-mem-pop .4s ease-out; }
.pm-game-mem-card.is-wrong .pm-game-mem-card__front { box-shadow: inset 0 0 0 2px rgba(192, 80, 63, .5); }
.pm-game-mem-card:focus-visible { outline: 3px solid rgba(47, 125, 110, .45); outline-offset: 3px; border-radius: 16px; }
.pm-game-mem-card:disabled { cursor: default; }
@keyframes pm-game-mem-pop { 50% { transform: scale(1.06); } }

/* ---------------------------- 宠物拼图 ---------------------------- */

.pm-game-stage--pet-puzzle { --pg-canvas-max: 520px; }
.pm-game-pz-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;
}
.pm-game-pz-ref {
  flex: 0 0 auto;
  text-align: center;
  background: var(--pg-white);
  border: 1px solid var(--pg-line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--pg-shadow);
}
.pm-game-pz-ref canvas {
  display: block;
  width: 122px;
  height: 122px;
  border-radius: 10px;
  background: #eef7f4;
}
.pm-game-pz-ref figcaption { font-size: 11.5px; color: var(--pg-muted); margin-top: 5px; }
.pm-game-pz-main { flex: 1 1 300px; min-width: 0; display: grid; place-items: center; }
.pm-game-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.pm-game-chip {
  border: 1px solid var(--pg-line);
  background: var(--pg-white);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pg-ink-2);
  cursor: pointer;
  font-family: inherit;
  transition: .16s;
}
.pm-game-chip:hover { border-color: var(--pg-brand); color: var(--pg-brand); }
.pm-game-chip[aria-pressed="true"] { background: var(--pg-brand-light); border-color: var(--pg-brand); color: var(--pg-brand-dark); }

/* ---------------------------- 接住零食 ---------------------------- */

.pm-game-stage--catch-treats { --pg-canvas-max: 660px; }
.pm-game-hearts { display: inline-flex; gap: 3px; font-size: 15px; letter-spacing: 1px; }
.pm-game-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 10px; font-size: 12.5px; color: var(--pg-ink-2); }
.pm-game-legend b { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.pm-game-legend b.ok { background: #8ec9b8; }
.pm-game-legend b.bad { background: #d38a7c; }

/* ---------------------------- 迷宫找家 ---------------------------- */

.pm-game-stage--maze-home { --pg-canvas-max: 560px; }
.pm-game-dpad {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  grid-template-rows: repeat(3, 50px);
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.pm-game-dpad button {
  border: 1px solid var(--pg-line);
  background: var(--pg-white);
  border-radius: 12px;
  font-size: 18px;
  color: var(--pg-brand-dark);
  cursor: pointer;
  box-shadow: var(--pg-shadow);
  font-family: inherit;
  touch-action: manipulation;
}
.pm-game-dpad button:active { background: var(--pg-brand-light); transform: translateY(1px); }
.pm-game-dpad .pm-game-dpad__up { grid-area: 1 / 2; }
.pm-game-dpad .pm-game-dpad__left { grid-area: 2 / 1; }
.pm-game-dpad .pm-game-dpad__mid { grid-area: 2 / 2; border-style: dashed; font-size: 12px; color: var(--pg-muted); cursor: default; box-shadow: none; }
.pm-game-dpad .pm-game-dpad__right { grid-area: 2 / 3; }
.pm-game-dpad .pm-game-dpad__down { grid-area: 3 / 2; }

/* ---------------------------- 三消治愈 ---------------------------- */

.pm-game-stage--match-three { --pg-canvas-max: 520px; }
.pm-game-combo {
  display: inline-block;
  margin-left: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pg-accent);
}

/* ---------------------------- 舒缓音阶 ---------------------------- */

.pm-game-stage--calm-notes { --pg-canvas-max: 660px; }
.pm-game-notes-ui { display: grid; gap: 12px; margin-top: 10px; }
.pm-game-keys {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
}
.pm-game-key {
  position: relative;
  appearance: none;
  border: 1px solid var(--pg-line);
  border-radius: 0 0 16px 16px;
  padding: 42px 4px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f8f5 100%);
  color: var(--pg-brand-dark);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 0 #dbe9e5, var(--pg-shadow);
  transition: transform .08s, box-shadow .08s, background .12s;
  touch-action: manipulation;
}
.pm-game-key:hover { background: linear-gradient(180deg, #ffffff, #e9f5f1); }
.pm-game-key.is-on {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #dbe9e5;
  background: linear-gradient(180deg, #eaf6f2, #d9eee7);
}
.pm-game-key small { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 500; color: var(--pg-muted); }
.pm-game-keys--pads .pm-game-key { padding-top: 26px; border-radius: 16px; text-align: center; }
.pm-game-keys--pads .pm-game-key span { font-size: 19px; }
.pm-game-notes-modes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.pm-game-notes-hint { text-align: center; font-size: 13px; color: var(--pg-ink-2); min-height: 21px; }

/* 音阶键在窄屏下退化为两行 */
@media (max-width: 560px) {
  .pm-game-keys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pm-game-key { padding-top: 24px; font-size: 12px; }
}

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

@media (max-width: 1000px) {
  .pm-game-play__inner { grid-template-columns: minmax(0, 1fr); }
  .pm-game-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .pm-game-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .pm-game-hero__art { order: -1; }
  .pm-game-orbit { width: min(240px, 62vw); }
  .pm-game-about__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .pm-game-stage { padding: 10px 10px 8px; border-radius: 18px; }
  .pm-game-stat { min-width: 64px; padding: 5px 10px; }
  .pm-game-stat__value { font-size: 15px; }
  .pm-game-bar__btns { margin-left: 0; width: 100%; }
  .pm-game-bar__btns .pm-game-btn { flex: 1; }
  .pm-game-head__icon { width: 56px; height: 56px; }
  .pm-game-card__tagline { min-height: 0; }
  .pm-game-mem-grid { gap: 7px; }
  .pm-game-more__grid { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   无障碍 / 降级：尊重系统「减少动态效果」
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
  .pm-game-orbit__ring,
  .pm-game-orbit__face--cat,
  .pm-game-orbit__face--dog,
  .pm-game-card,
  .pm-game-more__item,
  .pm-game-mem-card.is-done,
  .pm-game-overlay,
  .pm-game-overlay__card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .pm-game-mem-card__inner { transition: none !important; }
  .pm-game-card:hover,
  .pm-game-more__item:hover { transform: none !important; }
}

/* ==================== 需求 2：宠物乐园与治愈星球里的动物园展示 ==================== */
.pm-zoo-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: center;
  background: linear-gradient(120deg, #eef7fe, #f8fcff); border: 1px solid #cfe6f7; border-radius: 16px;
  padding: 20px 22px; }
@media (max-width: 820px) { .pm-zoo-hero { grid-template-columns: 1fr; } }
.pm-zoo-hero__badge { display: inline-block; margin: 0 0 8px; font-size: 11.5px; font-weight: 700;
  color: #1f5f87; background: #fff; border: 1px solid #cfe6f7; border-radius: 999px; padding: 3px 11px; }
.pm-zoo-hero__name { margin: 0 0 4px; font-size: 20px; color: var(--brand-deep, #1f5f87); }
.pm-zoo-hero__owner { margin: 0 0 12px; font-size: 13px; color: var(--text-2, #55707f); }
.pm-zoo-hero__stat { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 14px; padding: 0; }
.pm-zoo-hero__stat li { display: flex; flex-direction: column; }
.pm-zoo-hero__stat strong { font-size: 19px; color: var(--brand, #3d9bd1); font-variant-numeric: tabular-nums; }
.pm-zoo-hero__stat span { font-size: 11.5px; color: var(--muted, #8ba3b0); }
.pm-zoo-hero__pets { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.pm-zoo-hero__pet { position: relative; width: 54px; text-align: center; }
.pm-zoo-hero__pet img { width: 48px; height: 48px; object-fit: contain; background: #fff;
  border: 1px solid #dceaf3; border-radius: 10px; }
.pm-zoo-hero__pet em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted, #8ba3b0);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-zoo-hero__pet i { position: absolute; right: -2px; top: -4px; font-style: normal; font-size: 13px; }
.pm-zoo-hero__actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 10px; }

/* 场地缩略预览（写实微缩） */
.pm-zoo-hero__preview { min-width: 0; }
.pm-zoo-mini { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  border: 1px solid #cfe4f2; box-shadow: 0 8px 22px rgba(31, 95, 135, .12); }
.pm-zoo-mini__sky { position: absolute; inset: 0 0 46% 0;
  background: linear-gradient(180deg, #bfe3f8, #e6f5fd); }
.pm-zoo-mini__ground { position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(180deg, #a8ddb2, #74bd86); }
.pm-zoo-mini__decor { position: absolute; width: 26%; transform: translateX(-50%); }
.pm-zoo-mini__pet { position: absolute; width: 17%; transform: translateX(-50%); }

.pm-zoo-cta { background: #f8fcff; border: 1px dashed #a5d5f0; border-radius: 14px; padding: 22px;
  text-align: center; }
.pm-zoo-cta p { margin: 4px 0; font-size: 14px; color: var(--text-2, #55707f); }

/* 治愈星球里的动物园小卡 */
.pm-game-park__zoo { margin: 12px 0; padding: 11px 13px; background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(61, 155, 209, .28); border-radius: 12px; }
.pm-game-park__zoo-badge { margin: 0 0 5px; font-size: 11px; font-weight: 700; color: #1f5f87; }
.pm-game-park__zoo-name { margin: 0 0 8px; font-size: 13.5px; color: var(--text, #22323d); }
.pm-game-park__zoo-name span { color: #8ba3b0; font-size: 12px; }
.pm-game-park__zoo-pets { display: flex; gap: 6px; flex-wrap: wrap; }
.pm-game-park__zoo-pets img { width: 40px; height: 40px; object-fit: contain; background: #fff;
  border: 1px solid #dceaf3; border-radius: 9px; }

/* ==================== 需求 5：小游戏图片可替换说明（仅管理员可见） ==================== */
.pm-game-admin-hint { margin: 0 0 14px; padding: 10px 14px; font-size: 12.5px; line-height: 1.8;
  color: #1f5f87; background: #eaf5fc; border: 1px dashed #a5d5f0; border-radius: 10px; }
.pm-game-admin-hint strong { color: #1f5f87; }

/* =====================================================================
   小游戏积分提示（过关奖励 / 未登录提醒）
   右下角浮出，2.4 秒自动消失，不打断游戏操作
   ===================================================================== */
.pm-game-points-toast {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 1200;
  max-width: 76vw;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .88);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.pm-game-points-toast.is-show { opacity: 1; transform: translateY(0); }
.pm-game-points-toast.is-ok { background: linear-gradient(135deg, #2f7d5d 0%, #3a9a72 100%); }

/* =====================================================================
   游客注册引导（站长 2026-10-17 要求）
   =====================================================================
   触发时机：**游客玩完一局过关时**弹出（不在进页面时打扰）。
   目的：告知"游玩有积分、可冲榜、榜上得虚拟道具积分、积分能换商城道具"，
        把"白玩一局"变成注册动机。
   设计：全屏半透明遮罩 + 居中卡片；点击遮罩或"继续玩"即关闭（不强制注册，
        游客本来就被允许继续玩）；同一会话只弹一次（逻辑在 points.js）。
   ===================================================================== */
.pm-game-guest-guide {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(15, 23, 42, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pm-game-guest-guide__card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 18px;
  padding: 20px 18px 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
  animation: pmGuestIn .22s ease;
}
@keyframes pmGuestIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.pm-game-guest-guide__title {
  margin: 0 0 12px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #1f2b41;
  text-align: center;
}
.pm-game-guest-guide__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.pm-game-guest-guide__list li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  border-bottom: 1px dashed #eef2f7;
}
.pm-game-guest-guide__list li:last-child { border-bottom: 0; }
.pm-game-guest-guide__list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 7px;
  color: var(--pg-brand);
  font-weight: 700;
}
.pm-game-guest-guide__actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.pm-game-guest-guide__btn {
  flex: 1 1 0;
  display: inline-block;
  text-align: center;
  padding: 11px 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  text-decoration: none;
  cursor: pointer;
}
.pm-game-guest-guide__btn.is-primary {
  border-color: transparent;
  background: linear-gradient(180deg, #37907f, var(--pg-brand));
  color: #fff;
}
.pm-game-guest-guide__btn:active { transform: translateY(1px); }
.pm-game-guest-guide__login {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: #94a3b8;
}
.pm-game-guest-guide__login a { color: var(--pg-brand); text-decoration: none; }

/* 小屏适配：卡片更紧凑，避免遮罩内出现滚动 */
@media (max-width: 420px) {
  .pm-game-guest-guide__card { padding: 18px 15px 14px; border-radius: 16px; }
  .pm-game-guest-guide__title { font-size: 14.5px; }
  .pm-game-guest-guide__list li { font-size: 13px; padding: 6px 0 6px 20px; }
}

/* ==================== 大型欢迎广告位（站长 2026-10-17 需求 2）==================== */
/*
 * 站长二次反馈：「压缩一下大小，做成平齐，不用单独放，要平齐。」
 *
 * 【为什么不再是一个独立 section】
 *   第一版把广告位放在 hero 下面的独立区块里，但 hero 左栏本来就比右栏矮，
 *   于是"空着的地方还是空的，另外又占了一块"。
 *   现在它直接放在 **hero 左栏文案之后**：
 *     · 不新增 section、不加左右外边距 → 宽度与左栏文案完全一致；
 *     · 顶部靠 align-items:start 对齐，底部靠内容撑满 → 上下都齐；
 *     · 视觉上它就是 hero 的一部分，而不是"又一块"。
 * 【体积】900×322 / 160 色 / 约 65KB（原 272KB，压掉 76%）。
 */
.pm-hero-banner {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(95, 178, 158, .34);
  box-shadow: 0 12px 26px -20px rgba(20, 70, 60, .34);
  background: #fff;
}
.pm-hero-banner__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 322;
  object-fit: cover;
}
.pm-hero-banner__say {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 11px 14px 12px;
  background: linear-gradient(180deg, #fbfffd, #f2faf7);
  border-top: 1px solid rgba(95, 178, 158, .22);
}
.pm-hero-banner__text {
  flex: 1 1 360px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #29423c;
  min-height: 1.7em;
}
.pm-hero-banner__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
@media (max-width: 820px) {
  .pm-hero-banner { margin-top: 14px; border-radius: 12px; }
  .pm-hero-banner__text { font-size: 13px; }
}
/* ==================== 右栏间距收紧：让 hero 两栏底边也平齐 ====================
 * 站长要求「做成平齐」。顶部已经平齐（align-items:start），
 * 但右栏「宠物乐园」内容更长，底部比左栏多出约 100px。
 * 因此①把右栏内边距与行距略微收紧；②左栏广告位底部对齐。
 * 只动间距、不动字号与内容，视觉密度不变但两栏等高。
 */
.pm-game-hero__park { padding: 18px; gap: 11px; }
.pm-game-park__orbit { padding: 4px 0; gap: 7px; }
.pm-game-park__meta { gap: 4px; font-size: 12.5px; }
.pm-game-park__zoo { margin: 8px 0; padding: 9px 11px; }
.pm-game-park__actions { gap: 8px; }
.pm-game-park__title { margin: 6px 0 2px; font-size: 21px; }
/* 左栏：广告位撑满剩余高度，底边与右栏对齐 */
.pm-game-hero__text { display: flex; flex-direction: column; height: 100%; }
.pm-hero-banner { margin-top: auto; }
.pm-hero-banner__img { min-height: 0; }

/* ==================== 收紧 hero 底部空白（站长 2026-10-17 再次反馈）====================
 * 实测：左右两栏底边已经差 0px，但 .pm-game-hero__inner 还有 22px 的 padding-bottom，
 * 视觉上广告位与右栏卡片下方仍留一条空白，站长指为"未拉伸到底"。
 * 这里把内边距归零、底边贴合内容，同时保证 hero 自身的下边框不变形。
 * 只改 padding，不改任何尺寸/字号，避免又一次"改了布局引发连带位移"。
 */
.pm-game-hero__inner { padding-bottom: 0; }
.pm-game-hero { padding-bottom: 22px; }

/* ==================== 吉祥物文字框：预留高度，彻底消除抖动 ====================
 * 站长 2026-10-17：「ai在阅读和显现文字时，上下两个框会严重抖动，
 *   造成视觉感很糟糕，修改为文字静默展示，不要上下屏幕剧烈抖动。」
 *
 * JS 侧已改为**整句替换**（不再逐字累积）；
 * CSS 侧再给文字框**预留固定高度**：
 *   · min-height 按"最长那句在窄屏下的行数"估算，保证高度恒定；
 *   · overflow 不做滚动（内容一定放得下），只是防极端换行溢出；
 *   · 加 contain: layout 让内部文字变化**不触发外部重排**，
 *     这是消除抖动的关键 —— 浏览器知道这块的高度只由自己决定。
 * 双保险后：无论文案多长、切到第几句，容器高度都纹丝不动。
 */
.pm-hero-banner__text {
  min-height: 4.1em;      /* 约 3 行（含行高）*/
  contain: layout;
}
.pm-auth2__say {
  min-height: 6.3em;      /* 登录页欢迎语最长那句约 4~5 行 */
  contain: layout;
}
.pm-welcome__text { min-height: 3.5em; contain: layout; }

/* ==================== 广告位下方文字区收紧（站长 2026-10-17 第二次反馈）====================
 * 站长指着下方文字框：「下方短箭头框文字向上调一点，下方挡住了」。
 * 原因：之前为避免抖动把 .pm-hero-banner__text 的 min-height 设成了 4.1em，
 * 而文案本身只有两行，于是多出来的空档把按钮条往下挤，
 * 视觉上像"文字被下面的边框挡住"。
 * 现在：文字框按**实际两行**预留（2.8em），并整体上移一点点，
 * 既保持"高度恒定不抖动"，又不留多余空白。
 */
.pm-hero-banner__say { padding: 10px 14px 11px; align-items: center; }
.pm-hero-banner__text { min-height: 2.8em; margin-top: -2px; }
@media (max-width: 980px) {
  /* 窄屏下文字会换到 3~4 行，预留相应高度，仍然不抖 */
  .pm-hero-banner__text { min-height: 4.2em; }
}

/* ==================== 文字框高度必须"容纳最长一句" ====================
 * 实测残存 8.1px 抖动：把预留高度压到 2.8em 后，
 * 短句占 2 行、最长句占 3 行 → 高度仍在变。
 * 结论：**预留高度必须 ≥ 最长一句所需行数**，否则省下的空白会换回抖动。
 * 这里按"广告位文案最长句在 670px 宽度下需要 3 行"预留（约 4.15em）。
 */
.pm-hero-banner__text { min-height: 4.15em; margin-top: -2px; }
@media (max-width: 980px) {
  /* 窄屏下一句可能 4 行，同样按最长预留 */
  .pm-hero-banner__text { min-height: 5.4em; }
}

/* ==================== 消除左栏留白，同时保持底边对齐（站长 2026-10-17）====================
 * 【实测问题】按钮行底 y609、广告位顶 y661 → **中间空出 52px**。
 * 【根因】广告位为了"贴住右栏底边"用了 margin-top:auto，
 *   于是左栏内容比右栏短多少，这块空白就堆在按钮与广告位之间。
 * 【修法】不让"空白"堆在两段之间，而是**让广告位图片自己长高**去补齐：
 *   · 广告位去掉 margin-top，紧跟按钮（间距 = 正常 16px）；
 *   · 广告位容器改 flex 纵向，图片 flex:1 + object-fit:cover
 *     → 图片按可用高度自动放大，多出来的高度被图片吃掉，而不是留成空白；
 *   · object-position 靠上/居中，保证吉祥物与文字不被裁掉重点。
 * 这样"贴到底"与"没有留白"同时成立。
 */
.pm-hero-banner { margin-top: 16px; display: flex; flex-direction: column; }
.pm-hero-banner__img { flex: 1 1 auto; min-height: 0; object-fit: cover; object-position: center; }
.pm-hero-banner__say { flex: 0 0 auto; }
