/*
 * Meimo Theme · GameWiki 视觉层（Stage S11 · wiki）
 * 视觉方向：卡带展柜 / Cartridge Rack —— 暖纸底 + 墨色文字 + 信号橙口音 + 金色点缀。
 * 作用域：全部选择器以 body.meimog-game-wiki-page / -index / -detail 或 .mm-ui 前缀限定，
 *         仅覆盖 MU 插件（meimog-game-wiki.php）已输出的 .meimog-wiki-* / .meimog-article-wiki-entry。
 * 加载：在 mm-ui-* 系列 CSS 之后入队；两段选择器均高于插件 inline CSS 的单类特异性，稳定接管旧视觉。
 * 令牌：仅使用现有 --mm-* 变量，明/暗色随 [data-bs-theme] 自动切换。不引入外部字体 / CDN / 构建依赖。
 */

/* ── 局部令牌 ─────────────────────────────────────────────── */
body.meimog-game-wiki-page {
  /* 游戏截图的电影感衬底：暗色让 contain 图留边不刺眼，明暗两色分别取值。 */
  --wiki-shot-bg: #211d17;
  --wiki-panel: linear-gradient(155deg, var(--mm-surface) 0%, var(--mm-surface-2) 100%);
}
[data-bs-theme="dark"] body.meimog-game-wiki-page {
  --wiki-shot-bg: #0a0b0c;
}

/* ── 外壳 / 面包屑 / eyebrow（列表页与详情页共用）───────────── */
body.meimog-game-wiki-page .meimog-wiki-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) 0 clamp(48px, 7vw, 80px);
  color: var(--mm-ink);
  font-family: var(--mm-font-sans);
  /* 兜底：任何意外撑宽的子项被水平裁掉而非撑破文档；壳本身已限定为 viewport-32，
   * 故 clip 不产生自身滚动、不影响竖向粘性/阴影。这是安全网，真正修复见下方地基。 */
  overflow-x: clip;
}

/* ── 防溢出地基（根因修复，非“隐藏了事”）─────────────────────────
 * 1) Wiki 作用域内统一 border-box：padding 计入宽度，杜绝带 padding 的
 *    dt/dd/药丸把内容顶出 grid/flex 轨道后被祖先 overflow:hidden 右侧裁切。
 * 2) 所有替换元素 max-width:100%：图片/内嵌不超过容器。
 * 3) 令 grid/flex 子项默认可收缩（min-width:0），长串不再撑破轨道。 */
body.meimog-game-wiki-page .meimog-wiki-shell,
body.meimog-game-wiki-page .meimog-wiki-shell *,
body.meimog-game-wiki-page .meimog-wiki-shell *::before,
body.meimog-game-wiki-page .meimog-wiki-shell *::after {
  box-sizing: border-box;
}
body.meimog-game-wiki-page .meimog-wiki-shell img,
body.meimog-game-wiki-page .meimog-wiki-shell svg,
body.meimog-game-wiki-page .meimog-wiki-shell video,
body.meimog-game-wiki-page .meimog-wiki-shell iframe {
  max-width: 100%;
}

body.meimog-game-wiki-page .meimog-wiki-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 clamp(18px, 3vw, 26px);
  color: var(--mm-ink-faint);
  font-size: var(--mm-fs-200);
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.meimog-game-wiki-page .meimog-wiki-breadcrumbs a {
  min-width: 0;
  color: var(--mm-ink-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--mm-dur-1) var(--mm-ease);
}
body.meimog-game-wiki-page .meimog-wiki-breadcrumbs a:hover,
body.meimog-game-wiki-page .meimog-wiki-breadcrumbs a:focus-visible {
  color: var(--mm-accent);
  text-decoration: none;
}
body.meimog-game-wiki-page .meimog-wiki-breadcrumbs span[aria-hidden="true"] {
  color: var(--mm-line-strong);
}

body.meimog-game-wiki-page .meimog-wiki-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  color: var(--mm-accent);
  font-family: var(--mm-font-mono);
  font-size: var(--mm-fs-100);
  font-weight: var(--mm-fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body.meimog-game-wiki-page .meimog-wiki-eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: var(--mm-radius-pill);
  background: linear-gradient(90deg, var(--mm-accent), var(--mm-gold));
}

/* 通用 hero 面板：列表页头 + 详情标题共用的暖纸卡带底。 */
body.meimog-game-wiki-page .meimog-wiki-index-header,
body.meimog-game-wiki-page .meimog-wiki-title {
  position: relative;
  padding: clamp(22px, 3.4vw, 38px);
  background: var(--wiki-panel);
  border: var(--mm-border) solid var(--mm-line);
  border-radius: var(--mm-radius-lg);
  box-shadow: var(--mm-shadow-sm);
  overflow: hidden;
}
/* 卡带顶封条 + 右上金色卡舌，点到为止的装饰。 */
body.meimog-game-wiki-page .meimog-wiki-index-header::before,
body.meimog-game-wiki-page .meimog-wiki-title::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mm-accent), var(--mm-gold) 78%);
}
body.meimog-game-wiki-page .meimog-wiki-index-header::after,
body.meimog-game-wiki-page .meimog-wiki-title::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: var(--mm-radius-pill);
  background: radial-gradient(circle at 30% 70%, var(--mm-gold-soft), transparent 62%);
  pointer-events: none;
}

body.meimog-game-wiki-page .meimog-wiki-index-header h1,
body.meimog-game-wiki-page .meimog-wiki-title h1 {
  position: relative;
  min-width: 0;
  margin: 0;
  color: var(--mm-ink);
  font-family: var(--mm-font-display);
  /* 桌面维持 fs-800 体量，窄屏用 clamp 收敛，避免 “Title / 中文标题” 挤出画框 */
  font-size: clamp(1.55rem, 4.2vw + 0.6rem, var(--mm-fs-800));
  line-height: var(--mm-lh-tight);
  font-weight: var(--mm-fw-black);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ══════════════════════════════════════════════════════════
 * 列表页 · 游戏档案馆 / 卡带墙
 * ══════════════════════════════════════════════════════════ */
body.meimog-game-wiki-index .meimog-wiki-index-header p {
  position: relative;
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--mm-ink-soft);
  font-size: var(--mm-fs-400);
  line-height: var(--mm-lh-body);
}
body.meimog-game-wiki-index .meimog-wiki-index-meta {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 18px;
  padding: 7px 14px;
  border-radius: var(--mm-radius-pill);
  background: var(--mm-gold-soft);
  color: var(--mm-ink);
  font-family: var(--mm-font-mono);
  font-size: var(--mm-fs-200);
  font-weight: var(--mm-fw-medium);
}
body.meimog-game-wiki-index .meimog-wiki-index-meta span[aria-hidden="true"] {
  color: var(--mm-gold);
}

/* 目录网格：真正的卡片阵列，抛弃旧的 1px 表格分隔。 */
body.meimog-game-wiki-index .meimog-wiki-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin-top: clamp(22px, 3.4vw, 34px);
  background: none;
  border: 0;
}

body.meimog-game-wiki-index .meimog-wiki-directory-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--mm-surface);
  border: var(--mm-border) solid var(--mm-line);
  border-radius: var(--mm-radius-lg);
  overflow: hidden;
  box-shadow: var(--mm-shadow-sm);
  transition: transform var(--mm-dur-2) var(--mm-ease-out),
    box-shadow var(--mm-dur-2) var(--mm-ease-out),
    border-color var(--mm-dur-2) var(--mm-ease);
}
body.meimog-game-wiki-index .meimog-wiki-directory-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--mm-shadow-lg);
  border-color: var(--mm-line-strong);
}
body.meimog-game-wiki-index .meimog-wiki-directory-item:focus-within {
  border-color: var(--mm-accent);
  box-shadow: var(--mm-shadow-md);
}

body.meimog-game-wiki-index .meimog-wiki-directory-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 0;
  background: var(--wiki-shot-bg);
  overflow: hidden;
}
body.meimog-game-wiki-index .meimog-wiki-directory-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--mm-dur-3) var(--mm-ease-out);
}
body.meimog-game-wiki-index .meimog-wiki-directory-item:hover .meimog-wiki-directory-media img {
  transform: scale(1.05);
}

body.meimog-game-wiki-index .meimog-wiki-directory-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: clamp(16px, 1.6vw, 20px);
}
body.meimog-game-wiki-index .meimog-wiki-directory-copy h2 {
  margin: 0 0 8px;
  font-family: var(--mm-font-display);
  font-size: var(--mm-fs-500);
  line-height: var(--mm-lh-snug);
  font-weight: var(--mm-fw-bold);
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}
body.meimog-game-wiki-index .meimog-wiki-directory-copy h2 a {
  color: var(--mm-ink);
  text-decoration: none;
  transition: color var(--mm-dur-1) var(--mm-ease);
}
body.meimog-game-wiki-index .meimog-wiki-directory-copy h2 a:hover,
body.meimog-game-wiki-index .meimog-wiki-directory-copy h2 a:focus-visible {
  color: var(--mm-accent);
  text-decoration: none;
}
body.meimog-game-wiki-index .meimog-wiki-directory-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--mm-ink-soft);
  font-size: var(--mm-fs-300);
  line-height: var(--mm-lh-body);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
body.meimog-game-wiki-index .meimog-wiki-directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}
body.meimog-game-wiki-index .meimog-wiki-directory-meta > * {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--mm-radius-pill);
  background: var(--mm-surface-2);
  color: var(--mm-ink-soft);
  font-family: var(--mm-font-mono);
  font-size: var(--mm-fs-100);
  white-space: nowrap;
}

/* 首卡 featured / bento：桌面端横向、更大封面，作为展柜头牌。 */
@media (min-width: 721px) {
  body.meimog-game-wiki-index .meimog-wiki-directory-item:first-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }
  body.meimog-game-wiki-index .meimog-wiki-directory-item:first-child .meimog-wiki-directory-media {
    flex: 0 0 52%;
    aspect-ratio: auto;
  }
  body.meimog-game-wiki-index .meimog-wiki-directory-item:first-child .meimog-wiki-directory-copy {
    justify-content: center;
    padding: clamp(22px, 2.6vw, 34px);
  }
  body.meimog-game-wiki-index .meimog-wiki-directory-item:first-child .meimog-wiki-directory-copy h2 {
    font-size: var(--mm-fs-600);
  }
  body.meimog-game-wiki-index .meimog-wiki-directory-item:first-child .meimog-wiki-directory-copy p {
    font-size: var(--mm-fs-400);
    -webkit-line-clamp: 4;
  }
}

/* 分页：药丸按钮 + 信号橙当前页。 */
body.meimog-game-wiki-index .meimog-wiki-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: clamp(28px, 4vw, 40px) 0 0;
}
body.meimog-game-wiki-index .meimog-wiki-page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
body.meimog-game-wiki-index .meimog-wiki-page-numbers a,
body.meimog-game-wiki-index .meimog-wiki-page-numbers span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: var(--mm-border) solid var(--mm-line);
  border-radius: var(--mm-radius-sm);
  background: var(--mm-surface);
  color: var(--mm-ink-soft);
  font-family: var(--mm-font-mono);
  font-weight: var(--mm-fw-medium);
  text-decoration: none;
  transition: color var(--mm-dur-1) var(--mm-ease),
    border-color var(--mm-dur-1) var(--mm-ease),
    background var(--mm-dur-1) var(--mm-ease);
}
body.meimog-game-wiki-index .meimog-wiki-page-numbers a:hover,
body.meimog-game-wiki-index .meimog-wiki-page-numbers a:focus-visible {
  color: var(--mm-accent);
  border-color: var(--mm-accent);
  background: var(--mm-accent-soft);
}
body.meimog-game-wiki-index .meimog-wiki-page-numbers span[aria-current="page"] {
  border-color: var(--mm-accent);
  background: var(--mm-accent);
  color: var(--mm-accent-ink);
  font-weight: var(--mm-fw-bold);
}
body.meimog-game-wiki-index .meimog-wiki-page-direction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: var(--mm-border) solid var(--mm-line);
  border-radius: var(--mm-radius-pill);
  color: var(--mm-ink);
  font-size: var(--mm-fs-300);
  font-weight: var(--mm-fw-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--mm-dur-1) var(--mm-ease),
    border-color var(--mm-dur-1) var(--mm-ease);
}
body.meimog-game-wiki-index .meimog-wiki-page-direction:hover,
body.meimog-game-wiki-index .meimog-wiki-page-direction:focus-visible {
  color: var(--mm-accent);
  border-color: var(--mm-accent);
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════
 * 详情页 · 游戏档案 dossier
 * ══════════════════════════════════════════════════════════ */
body.meimog-game-wiki-detail .meimog-wiki-title {
  border-bottom: var(--mm-border) solid var(--mm-line);
}
body.meimog-game-wiki-detail .meimog-wiki-title-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 16px;
}
body.meimog-game-wiki-detail .meimog-wiki-title-meta span,
body.meimog-game-wiki-detail .meimog-wiki-title-meta time {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--mm-radius-pill);
  background: var(--mm-surface);
  border: var(--mm-border) solid var(--mm-line);
  color: var(--mm-ink-soft);
  font-family: var(--mm-font-mono);
  font-size: var(--mm-fs-200);
  white-space: nowrap;
}

/* 封面：电影感画框。key art 用 contain 避免裁切，暗底留边。 */
body.meimog-game-wiki-detail .meimog-wiki-cover {
  display: block;
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  aspect-ratio: 16 / 9;
  border: var(--mm-border) solid var(--mm-line);
  border-radius: var(--mm-radius-lg);
  background: var(--wiki-shot-bg);
  box-shadow: var(--mm-shadow-md);
  overflow: hidden;
}
body.meimog-game-wiki-detail .meimog-wiki-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 分节：墨线分隔 + 信号橙小标。 */
body.meimog-game-wiki-detail .meimog-wiki-section {
  padding: clamp(24px, 3.4vw, 34px) 0;
  border-bottom: var(--mm-border) solid var(--mm-line);
}
body.meimog-game-wiki-detail .meimog-wiki-section:last-child {
  border-bottom: 0;
}
body.meimog-game-wiki-detail .meimog-wiki-section h2 {
  position: relative;
  margin: 0 0 18px;
  padding-left: 16px;
  color: var(--mm-ink);
  font-family: var(--mm-font-display);
  font-size: var(--mm-fs-600);
  line-height: var(--mm-lh-snug);
  font-weight: var(--mm-fw-bold);
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}
body.meimog-game-wiki-detail .meimog-wiki-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  bottom: 0.16em;
  width: 4px;
  border-radius: var(--mm-radius-pill);
  background: linear-gradient(var(--mm-accent), var(--mm-gold));
}
body.meimog-game-wiki-detail .meimog-wiki-section {
  min-width: 0;
}
body.meimog-game-wiki-detail .meimog-wiki-section p {
  margin: 0;
  color: var(--mm-ink);
  line-height: var(--mm-lh-body);
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.meimog-game-wiki-detail .meimog-wiki-section-intro {
  margin: 0 0 16px;
  color: var(--mm-ink-soft);
  font-size: var(--mm-fs-300);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 简介：抬升为高亮面板，作为 dossier 引言。 */
body.meimog-game-wiki-detail .meimog-wiki-overview {
  margin-top: clamp(8px, 1.4vw, 14px);
  padding: clamp(20px, 2.6vw, 28px);
  background: var(--mm-surface);
  border: var(--mm-border) solid var(--mm-line);
  border-left: 3px solid var(--mm-accent);
  border-radius: var(--mm-radius-md);
}
body.meimog-game-wiki-detail .meimog-wiki-overview p {
  color: var(--mm-ink);
  font-size: var(--mm-fs-400);
}

/* 资料表：卡带规格卡。 */
body.meimog-game-wiki-detail .meimog-wiki-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  border: 0;
}
body.meimog-game-wiki-detail .meimog-wiki-facts > div {
  display: grid;
  grid-template-columns: minmax(92px, 0.5fr) minmax(0, 1fr);
  border: var(--mm-border) solid var(--mm-line);
  border-radius: var(--mm-radius-md);
  background: var(--mm-surface);
  overflow: hidden;
}
body.meimog-game-wiki-detail .meimog-wiki-facts dt,
body.meimog-game-wiki-detail .meimog-wiki-facts dd {
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  line-height: var(--mm-lh-snug);
  /* 长英文串 + CJK 混排：anywhere 负责断长词，break-word 兜底浏览器差异 */
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.meimog-game-wiki-detail .meimog-wiki-facts dt {
  background: var(--mm-surface-2);
  color: var(--mm-ink-soft);
  font-family: var(--mm-font-mono);
  font-size: var(--mm-fs-200);
  font-weight: var(--mm-fw-medium);
}
body.meimog-game-wiki-detail .meimog-wiki-facts dd {
  color: var(--mm-ink);
  font-size: var(--mm-fs-300);
}

/* 截图墙。 */
body.meimog-game-wiki-detail .meimog-wiki-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 14px);
}
body.meimog-game-wiki-detail .meimog-wiki-gallery figure {
  margin: 0;
  aspect-ratio: 16 / 9;
  border: var(--mm-border) solid var(--mm-line);
  border-radius: var(--mm-radius-md);
  background: var(--wiki-shot-bg);
  overflow: hidden;
}
body.meimog-game-wiki-detail .meimog-wiki-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--mm-dur-3) var(--mm-ease-out);
}
body.meimog-game-wiki-detail .meimog-wiki-gallery figure:hover img {
  transform: scale(1.04);
}

/* 时间线：信号橙节点 + 版本号 mono 标。 */
body.meimog-game-wiki-detail .meimog-wiki-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.meimog-game-wiki-detail .meimog-wiki-timeline li {
  position: relative;
  margin: 0 0 20px;
  padding: 0 0 20px 26px;
  border-left: 2px solid var(--mm-line-strong);
}
body.meimog-game-wiki-detail .meimog-wiki-timeline li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}
body.meimog-game-wiki-detail .meimog-wiki-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: var(--mm-radius-pill);
  background: var(--mm-accent);
  box-shadow: 0 0 0 4px var(--mm-accent-soft);
}
body.meimog-game-wiki-detail .meimog-wiki-timeline h3 {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: var(--mm-radius-sm);
  background: var(--mm-gold-soft);
  color: var(--mm-ink);
  font-family: var(--mm-font-mono);
  font-size: var(--mm-fs-200);
  font-weight: var(--mm-fw-bold);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
body.meimog-game-wiki-detail .meimog-wiki-timeline span {
  display: block;
  margin-top: 8px;
  color: var(--mm-ink-faint);
  font-size: var(--mm-fs-100);
}

/* 要点列表：自定义信号橙记号。 */
body.meimog-game-wiki-detail .meimog-wiki-points {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.meimog-game-wiki-detail .meimog-wiki-points li {
  position: relative;
  margin: 10px 0;
  padding-left: 1.6em;
  line-height: var(--mm-lh-body);
  color: var(--mm-ink);
}
body.meimog-game-wiki-detail .meimog-wiki-points li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--mm-accent);
  transform: rotate(45deg);
}

/* 版本链接：档案架列表行。 */
body.meimog-game-wiki-detail .meimog-wiki-version-list {
  border: var(--mm-border) solid var(--mm-line);
  border-radius: var(--mm-radius-md);
  background: var(--mm-surface);
  overflow: hidden;
}
body.meimog-game-wiki-detail .meimog-wiki-version-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 14px 16px;
  border-bottom: var(--mm-border) solid var(--mm-line);
  color: var(--mm-ink);
  text-decoration: none;
  transition: background var(--mm-dur-1) var(--mm-ease);
}
body.meimog-game-wiki-detail .meimog-wiki-version-list a:last-child {
  border-bottom: 0;
}
body.meimog-game-wiki-detail .meimog-wiki-version-list a:hover,
body.meimog-game-wiki-detail .meimog-wiki-version-list a:focus-visible {
  background: var(--mm-accent-soft);
}
body.meimog-game-wiki-detail .meimog-wiki-version-list span {
  font-weight: var(--mm-fw-medium);
  overflow-wrap: anywhere;
}
body.meimog-game-wiki-detail .meimog-wiki-version-list a:hover span,
body.meimog-game-wiki-detail .meimog-wiki-version-list a:focus-visible span {
  color: var(--mm-accent);
}
body.meimog-game-wiki-detail .meimog-wiki-version-list time {
  color: var(--mm-ink-faint);
  font-family: var(--mm-font-mono);
  font-size: var(--mm-fs-100);
  white-space: nowrap;
}

/* 资料来源。 */
body.meimog-game-wiki-detail .meimog-wiki-sources ul {
  margin: 0;
  padding-left: 1.25em;
}
body.meimog-game-wiki-detail .meimog-wiki-sources li {
  margin: 10px 0;
  line-height: var(--mm-lh-body);
  color: var(--mm-ink);
}
body.meimog-game-wiki-detail .meimog-wiki-sources li::marker {
  color: var(--mm-gold);
}
body.meimog-game-wiki-detail .meimog-wiki-sources a {
  color: var(--mm-accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}
body.meimog-game-wiki-detail .meimog-wiki-sources a:hover,
body.meimog-game-wiki-detail .meimog-wiki-sources a:focus-visible {
  text-decoration: underline;
}
body.meimog-game-wiki-detail .meimog-wiki-sources li span {
  margin-left: 8px;
  color: var(--mm-ink-faint);
  font-family: var(--mm-font-mono);
  font-size: var(--mm-fs-100);
}

/* ══════════════════════════════════════════════════════════
 * 文章底部引导卡（出现在普通文章正文尾部，无 wiki body class）
 * 仅限定 .meimog-article-wiki-entry 自身，避免污染其它正文。
 * ══════════════════════════════════════════════════════════ */
.mm-ui .meimog-article-wiki-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: clamp(24px, 4vw, 32px) 0 12px;
  padding: clamp(16px, 2vw, 20px) clamp(18px, 2.2vw, 22px);
  border: var(--mm-border) solid var(--mm-line);
  border-left: 3px solid var(--mm-accent);
  border-radius: var(--mm-radius-md);
  background: var(--wiki-panel, linear-gradient(155deg, var(--mm-surface), var(--mm-surface-2)));
  box-shadow: var(--mm-shadow-sm);
}
.mm-ui .meimog-article-wiki-entry div {
  min-width: 0;
}
.mm-ui .meimog-article-wiki-entry strong {
  display: block;
  margin: 0 0 4px;
  color: var(--mm-ink);
  font-family: var(--mm-font-display);
  font-size: var(--mm-fs-400);
  font-weight: var(--mm-fw-bold);
  line-height: var(--mm-lh-snug);
  overflow-wrap: anywhere;
}
.mm-ui .meimog-article-wiki-entry span {
  display: block;
  color: var(--mm-ink-soft);
  font-size: var(--mm-fs-200);
  line-height: var(--mm-lh-body);
}
.mm-ui .meimog-article-wiki-entry a {
  flex: 0 0 auto;
  align-self: center;
  padding: 9px 16px;
  border-radius: var(--mm-radius-pill);
  background: var(--mm-accent);
  color: var(--mm-accent-ink);
  font-size: var(--mm-fs-300);
  font-weight: var(--mm-fw-bold);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--mm-dur-1) var(--mm-ease),
    box-shadow var(--mm-dur-1) var(--mm-ease);
}
.mm-ui .meimog-article-wiki-entry a:hover,
.mm-ui .meimog-article-wiki-entry a:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--mm-shadow-accent);
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════
 * 响应式 · 重点 768 / 430 / 390，杜绝横向溢出
 * ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body.meimog-game-wiki-index .meimog-wiki-directory {
    grid-template-columns: 1fr;
  }
  body.meimog-game-wiki-detail .meimog-wiki-facts,
  body.meimog-game-wiki-detail .meimog-wiki-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body.meimog-game-wiki-page .meimog-wiki-shell {
    width: min(100% - 24px, 1120px);
  }
  body.meimog-game-wiki-index .meimog-wiki-directory-media {
    aspect-ratio: 16 / 9;
  }
  body.meimog-game-wiki-detail .meimog-wiki-facts > div {
    grid-template-columns: 1fr;
  }
  body.meimog-game-wiki-detail .meimog-wiki-facts dt {
    border-bottom: var(--mm-border) solid var(--mm-line);
  }
  body.meimog-game-wiki-detail .meimog-wiki-version-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  body.meimog-game-wiki-index .meimog-wiki-pagination {
    gap: 8px;
  }
  body.meimog-game-wiki-index .meimog-wiki-page-numbers a,
  body.meimog-game-wiki-index .meimog-wiki-page-numbers span {
    width: 34px;
    height: 34px;
  }
  .mm-ui .meimog-article-wiki-entry {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .mm-ui .meimog-article-wiki-entry a {
    align-self: stretch;
    text-align: center;
    white-space: normal;
  }

  /* 窄屏兜底：CJK+长英文混排的详情标题/正文断词，杜绝右侧截断与横向溢出。 */
  /* hero 面板放开裁切：装饰 ::after 由 .meimog-wiki-shell 的 overflow-x:clip 兜底，
   * 面板本身 overflow 恢复 visible，避免标题/eyebrow/meta 内部文字被右侧切掉。 */
  body.meimog-game-wiki-page .meimog-wiki-index-header,
  body.meimog-game-wiki-page .meimog-wiki-title {
    overflow: visible;
    /* 收内边距：为 390px 主流机身留出 ≥16px 右侧安全空白，标题不再贴右缘。 */
    padding: clamp(15px, 4vw, 22px);
  }
  body.meimog-game-wiki-page .meimog-wiki-title h1,
  body.meimog-game-wiki-page .meimog-wiki-index-header h1 {
    /* 390px 主流机身可完整显示 “That New Teacher／那位新老师” 中英混排标题，
     * 仍保留高级体量；430px 起随 4.7vw 平滑增大，桌面不受此块影响。 */
    font-size: clamp(1.08rem, 4.7vw, 1.28rem);
    line-height: 1.22;
  }
  body.meimog-game-wiki-page .meimog-wiki-title h1 {
    white-space: normal !important;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-all;
    max-inline-size: 100%;
    max-width: 100%;
  }
  /* eyebrow / 标题内 meta：可收缩、可换行，长串不再把面板顶宽。 */
  body.meimog-game-wiki-page .meimog-wiki-eyebrow,
  body.meimog-game-wiki-detail .meimog-wiki-title-meta {
    min-width: 0;
    max-inline-size: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  body.meimog-game-wiki-page .meimog-wiki-eyebrow {
    flex-wrap: wrap;
    white-space: normal;
  }
  body.meimog-game-wiki-page .meimog-wiki-index-header h1 {
    white-space: normal !important;
    overflow: visible;
    text-overflow: clip;
    word-break: break-all;
    overflow-wrap: anywhere;
    max-inline-size: 100%;
    max-width: 100%;
  }
  body.meimog-game-wiki-detail .meimog-wiki-section p,
  body.meimog-game-wiki-detail .meimog-wiki-overview p,
  body.meimog-game-wiki-detail .meimog-wiki-facts dt,
  body.meimog-game-wiki-detail .meimog-wiki-facts dd,
  body.meimog-game-wiki-detail .meimog-wiki-version-list span,
  body.meimog-game-wiki-detail .meimog-wiki-sources a,
  body.meimog-game-wiki-page .meimog-wiki-breadcrumbs {
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
    max-inline-size: 100%;
    max-width: 100%;
  }
  /* 容器统一收边：只作用于 Wiki 作用域，防止内容撑破布局。 */
  body.meimog-game-wiki-page .meimog-wiki-shell,
  body.meimog-game-wiki-page .meimog-wiki-index-header,
  body.meimog-game-wiki-page .meimog-wiki-title,
  body.meimog-game-wiki-detail .meimog-wiki-section,
  body.meimog-game-wiki-detail .meimog-wiki-overview,
  body.meimog-game-wiki-detail .meimog-wiki-facts,
  body.meimog-game-wiki-detail .meimog-wiki-facts > div,
  body.meimog-game-wiki-detail .meimog-wiki-facts dt,
  body.meimog-game-wiki-detail .meimog-wiki-facts dd {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  /* 窄屏放开“不换行”药丸：标题元信息 / 时间线版本号 / 版本行日期等，
   * 一旦内容偏长也能自然折行，绝不把行宽顶出 viewport。 */
  body.meimog-game-wiki-detail .meimog-wiki-title-meta span,
  body.meimog-game-wiki-detail .meimog-wiki-title-meta time,
  body.meimog-game-wiki-detail .meimog-wiki-timeline h3,
  body.meimog-game-wiki-detail .meimog-wiki-version-list time {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  /* grid/flex 子项一律可收缩，长串在轨道内换行而非撑宽轨道。 */
  body.meimog-game-wiki-detail .meimog-wiki-version-list a,
  body.meimog-game-wiki-detail .meimog-wiki-version-list a > *,
  body.meimog-game-wiki-detail .meimog-wiki-title-meta > *,
  body.meimog-game-wiki-detail .meimog-wiki-gallery figure {
    min-width: 0;
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════
 * S17 · Meimo 品牌纹样换肤层（CSS-only）
 * 在既有卡带 hero 面板右上角叠加品牌纹样（ornaments-sheet），
 * 保留 --wiki-panel 渐变底与既有装饰 ::before/::after，不改任何 HTML/数据/SEO。
 * 纹样低调点缀，窄屏移除以保证移动端干净；静态无动画。
 * ══════════════════════════════════════════════════════════ */
body.meimog-game-wiki-page .meimog-wiki-index-header,
body.meimog-game-wiki-page .meimog-wiki-title {
  background-image:
    url(../images/meimo-brand/ornaments-sheet-transparent-v1.webp),
    var(--wiki-panel);
  background-repeat: no-repeat, no-repeat;
  background-position: right -22px top -16px, center;
  background-size: 160px auto, cover;
}
@media (max-width: 560px) {
  body.meimog-game-wiki-page .meimog-wiki-index-header,
  body.meimog-game-wiki-page .meimog-wiki-title {
    background-image: var(--wiki-panel);
    background-position: center;
    background-size: cover;
  }
}

/* 动效克制：尊重系统减弱动画偏好。 */
@media (prefers-reduced-motion: reduce) {
  body.meimog-game-wiki-page *,
  .mm-ui .meimog-article-wiki-entry * {
    transition: none !important;
  }
  body.meimog-game-wiki-index .meimog-wiki-directory-item:hover,
  .mm-ui .meimog-article-wiki-entry a:hover,
  .mm-ui .meimog-article-wiki-entry a:focus-visible {
    transform: none;
  }
  body.meimog-game-wiki-index .meimog-wiki-directory-item:hover .meimog-wiki-directory-media img,
  body.meimog-game-wiki-detail .meimog-wiki-gallery figure:hover img {
    transform: none;
  }
}

/* ══════════════════════════════════════════════════════════
 * S23 · 资源文章内链：游戏资料与版本中心 / Wiki 入口卡
 * 纯 CSS 覆盖 MU 插件输出，不改匹配、数据、URL、SEO 或下载逻辑。
 * ══════════════════════════════════════════════════════════ */
.mm-ui .meimog-game-hub,
.mm-ui .meimog-more-versions {
  position: relative;
  isolation: isolate;
  margin: clamp(28px, 4vw, 44px) 0;
  overflow: hidden;
  border: 1px solid rgba(255, 79, 195, 0.28);
  border-radius: clamp(18px, 2.2vw, 28px);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 79, 195, 0.2), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(155, 69, 255, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(28, 10, 48, 0.95), rgba(12, 5, 24, 0.96));
  box-shadow: 0 24px 70px rgba(6, 2, 16, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}
.mm-ui .meimog-game-hub::before,
.mm-ui .meimog-more-versions::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(../images/meimo-brand/ornaments-sheet-transparent-v1.webp) no-repeat right -34px top -34px;
  background-size: min(220px, 40vw) auto;
  opacity: 0.1;
  pointer-events: none;
}
.mm-ui .meimog-game-hub__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, rgba(255, 79, 195, 0.14), rgba(155, 69, 255, 0.08), transparent);
}
.mm-ui .meimog-game-hub__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin: 0 0 8px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 79, 195, 0.35);
  border-radius: 999px;
  background: rgba(255, 79, 195, 0.13);
  color: #ffd7f2;
  font-size: 12px;
  font-weight: 800;
}
.mm-ui .meimog-game-hub__eyebrow::before { content: "✦"; color: #ff4fc3; }
.mm-ui .meimog-game-hub__header h2,
.mm-ui .meimog-more-versions > h2 {
  margin: 0;
  color: #fff;
  font-family: var(--mm-font-display);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.mm-ui .meimog-game-hub__verified {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(118, 255, 184, 0.32);
  border-radius: 999px;
  background: rgba(55, 197, 120, 0.12);
  color: #b8ffd7;
  font-size: 12px;
  white-space: nowrap;
}
.mm-ui .meimog-game-hub__section {
  padding: clamp(18px, 2.6vw, 26px) clamp(20px, 3vw, 30px) 0;
}
.mm-ui .meimog-game-hub__section h3,
.mm-ui .meimog-game-hub__versions h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 850;
}
.mm-ui .meimog-game-hub__section p,
.mm-ui .meimog-game-hub__bullets,
.mm-ui .meimog-game-hub__timeline {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.85;
}
.mm-ui .meimog-game-hub__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.mm-ui .meimog-game-hub__facts > div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}
.mm-ui .meimog-game-hub__facts dt {
  margin: 0 0 6px;
  color: rgba(255, 215, 242, 0.72);
  font-size: 12px;
  font-weight: 800;
}
.mm-ui .meimog-game-hub__facts dd {
  margin: 0;
  color: #fff;
  overflow-wrap: anywhere;
}
.mm-ui .meimog-game-hub__timeline {
  position: relative;
  margin: 0;
  padding-left: 22px;
  list-style: none;
}
.mm-ui .meimog-game-hub__timeline li {
  position: relative;
  margin: 0 0 14px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}
.mm-ui .meimog-game-hub__timeline li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff4fc3;
  box-shadow: 0 0 0 5px rgba(255, 79, 195, 0.14), 0 0 18px rgba(255, 79, 195, 0.8);
}
.mm-ui .meimog-game-hub__timeline strong { color: #ffd7f2; }
.mm-ui .meimog-game-hub__timeline p { margin: 5px 0; }
.mm-ui .meimog-game-hub__timeline span,
.mm-ui .meimog-game-hub__sources span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}
.mm-ui .meimog-game-hub__bullets {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mm-ui .meimog-game-hub__bullets li {
  position: relative;
  padding-left: 20px;
}
.mm-ui .meimog-game-hub__bullets li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: #ff4fc3;
  font-size: 11px;
}
.mm-ui .meimog-game-hub__sources ul,
.mm-ui .meimog-game-hub__versions ul,
.mm-ui .meimog-more-versions ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mm-ui .meimog-game-hub__sources a,
.mm-ui .meimog-game-hub__versions a,
.mm-ui .meimog-more-versions a,
.mm-ui .meimog-game-hub__versions .is-current,
.mm-ui .meimog-more-versions .is-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mm-ui .meimog-game-hub__versions,
.mm-ui .meimog-more-versions {
  padding: clamp(20px, 3vw, 30px);
}
.mm-ui .meimog-game-hub__versions a:hover,
.mm-ui .meimog-game-hub__versions a:focus-visible,
.mm-ui .meimog-more-versions a:hover,
.mm-ui .meimog-more-versions a:focus-visible {
  border-color: rgba(255, 79, 195, 0.46);
  background: rgba(255, 79, 195, 0.12);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 79, 195, 0.16);
}
.mm-ui .meimog-game-hub__versions small,
.mm-ui .meimog-more-versions small {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 79, 195, 0.16);
  color: #ffd7f2;
}
.mm-ui .meimog-game-hub__versions details {
  margin-top: 12px;
}
.mm-ui .meimog-game-hub__versions summary {
  cursor: pointer;
  color: #ffd7f2;
  font-weight: 800;
}
.mm-ui .meimog-article-wiki-entry {
  border: 1px solid rgba(255, 79, 195, 0.36);
  border-left: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 79, 195, 0.2), transparent 40%),
    linear-gradient(135deg, rgba(42, 12, 66, 0.92), rgba(16, 6, 30, 0.94));
  box-shadow: 0 18px 44px rgba(8, 2, 20, 0.34);
}
.mm-ui .meimog-article-wiki-entry strong { color: #fff; }
.mm-ui .meimog-article-wiki-entry span { color: rgba(255, 255, 255, 0.68); }
.mm-ui .meimog-article-wiki-entry a {
  background: linear-gradient(135deg, #ff4fc3, #9b45ff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 79, 195, 0.22);
}
@media (max-width: 640px) {
  .mm-ui .meimog-game-hub__header {
    flex-direction: column;
  }
  .mm-ui .meimog-game-hub__verified {
    white-space: normal;
  }
  .mm-ui .meimog-game-hub__facts {
    grid-template-columns: 1fr;
  }
  .mm-ui .meimog-game-hub__sources a,
  .mm-ui .meimog-game-hub__versions a,
  .mm-ui .meimog-more-versions a,
  .mm-ui .meimog-game-hub__versions .is-current,
  .mm-ui .meimog-more-versions .is-current {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════════════════════
 * S28 pilot · 文章页 SEO 内链试点，仅限 60475 / 60462。
 * 不改 Wiki 页面、不改 JSON、不改链接判断；只把已有 MU 输出包装成更像“资料导航”的视觉区。
 * 确认后再去掉 postid 限定，全站铺开。
 * ══════════════════════════════════════════════════════════ */
body.postid-60475.mm-ui .meimog-game-hub,
body.postid-60462.mm-ui .meimog-game-hub,
body.postid-60475.mm-ui .meimog-more-versions,
body.postid-60462.mm-ui .meimog-more-versions,
body.postid-60475.mm-ui .meimog-article-wiki-entry,
body.postid-60462.mm-ui .meimog-article-wiki-entry {
  width: min(100%, 980px);
  margin-inline: auto;
}

body.postid-60475.mm-ui .meimog-game-hub,
body.postid-60462.mm-ui .meimog-game-hub {
  border-radius: 30px;
  border-color: rgba(255, 82, 205, 0.44);
  background:
    radial-gradient(circle at 8% -10%, rgba(255, 82, 205, 0.32), transparent 36%),
    radial-gradient(circle at 92% 0%, rgba(132, 80, 255, 0.26), transparent 36%),
    linear-gradient(145deg, rgba(34, 9, 58, 0.98), rgba(10, 4, 22, 0.98) 58%, rgba(28, 5, 40, 0.98));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 42px rgba(255, 82, 205, 0.12);
}

body.postid-60475.mm-ui .meimog-game-hub::before,
body.postid-60462.mm-ui .meimog-game-hub::before {
  opacity: 0.18;
  background-position: right -18px top -26px;
  background-size: min(280px, 46vw) auto;
}

body.postid-60475.mm-ui .meimog-game-hub::after,
body.postid-60462.mm-ui .meimog-game-hub::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #ff4fc3, #9b45ff, #68e7ff);
  opacity: 0.95;
}

body.postid-60475.mm-ui .meimog-game-hub__header,
body.postid-60462.mm-ui .meimog-game-hub__header {
  align-items: center;
  padding: clamp(24px, 3.3vw, 36px);
  background:
    linear-gradient(90deg, rgba(255, 82, 205, 0.2), rgba(132, 80, 255, 0.1), transparent),
    radial-gradient(circle at 100% 50%, rgba(104, 231, 255, 0.1), transparent 34%);
}

body.postid-60475.mm-ui .meimog-game-hub__eyebrow,
body.postid-60462.mm-ui .meimog-game-hub__eyebrow {
  color: #110016;
  background: linear-gradient(135deg, #ffd6f4, #ff56cf);
  border: 0;
  box-shadow: 0 10px 26px rgba(255, 82, 205, 0.22);
}

body.postid-60475.mm-ui .meimog-game-hub__eyebrow::before,
body.postid-60462.mm-ui .meimog-game-hub__eyebrow::before {
  color: #4b0a52;
}

body.postid-60475.mm-ui .meimog-game-hub__header h2,
body.postid-60462.mm-ui .meimog-game-hub__header h2 {
  max-width: 760px;
  font-size: clamp(24px, 3.2vw, 36px);
  text-shadow: 0 0 26px rgba(255, 82, 205, 0.22);
}

body.postid-60475.mm-ui .meimog-game-hub__verified,
body.postid-60462.mm-ui .meimog-game-hub__verified {
  border-color: rgba(104, 231, 255, 0.35);
  background: rgba(104, 231, 255, 0.12);
  color: #d5f9ff;
}

body.postid-60475.mm-ui .meimog-game-hub__section,
body.postid-60462.mm-ui .meimog-game-hub__section {
  padding-inline: clamp(22px, 3.3vw, 36px);
}

body.postid-60475.mm-ui .meimog-game-hub__section h3,
body.postid-60462.mm-ui .meimog-game-hub__section h3,
body.postid-60475.mm-ui .meimog-game-hub__versions h3,
body.postid-60462.mm-ui .meimog-game-hub__versions h3,
body.postid-60475.mm-ui .meimog-more-versions > h2,
body.postid-60462.mm-ui .meimog-more-versions > h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}

body.postid-60475.mm-ui .meimog-game-hub__section h3::before,
body.postid-60462.mm-ui .meimog-game-hub__section h3::before,
body.postid-60475.mm-ui .meimog-game-hub__versions h3::before,
body.postid-60462.mm-ui .meimog-game-hub__versions h3::before,
body.postid-60475.mm-ui .meimog-more-versions > h2::before,
body.postid-60462.mm-ui .meimog-more-versions > h2::before {
  content: "✦";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 82, 205, 0.14);
  color: #ff8edf;
  font-size: 14px;
  box-shadow: 0 0 22px rgba(255, 82, 205, 0.18);
}

body.postid-60475.mm-ui .meimog-game-hub__facts,
body.postid-60462.mm-ui .meimog-game-hub__facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.postid-60475.mm-ui .meimog-game-hub__facts > div,
body.postid-60462.mm-ui .meimog-game-hub__facts > div,
body.postid-60475.mm-ui .meimog-game-hub__timeline li,
body.postid-60462.mm-ui .meimog-game-hub__timeline li {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

body.postid-60475.mm-ui .meimog-game-hub__versions,
body.postid-60462.mm-ui .meimog-game-hub__versions,
body.postid-60475.mm-ui .meimog-more-versions,
body.postid-60462.mm-ui .meimog-more-versions {
  margin-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 82, 205, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.025);
}

body.postid-60475.mm-ui .meimog-game-hub__versions ul,
body.postid-60462.mm-ui .meimog-game-hub__versions ul,
body.postid-60475.mm-ui .meimog-more-versions ul,
body.postid-60462.mm-ui .meimog-more-versions ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.postid-60475.mm-ui .meimog-game-hub__versions a,
body.postid-60462.mm-ui .meimog-game-hub__versions a,
body.postid-60475.mm-ui .meimog-more-versions a,
body.postid-60462.mm-ui .meimog-more-versions a,
body.postid-60475.mm-ui .meimog-game-hub__versions .is-current,
body.postid-60462.mm-ui .meimog-game-hub__versions .is-current,
body.postid-60475.mm-ui .meimog-more-versions .is-current,
body.postid-60462.mm-ui .meimog-more-versions .is-current {
  min-height: 58px;
  border-radius: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.postid-60475.mm-ui .meimog-game-hub__versions a::after,
body.postid-60462.mm-ui .meimog-game-hub__versions a::after,
body.postid-60475.mm-ui .meimog-more-versions a::after,
body.postid-60462.mm-ui .meimog-more-versions a::after {
  content: "查看";
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 82, 205, 0.18);
  color: #ffd6f4;
  font-size: 12px;
  font-weight: 800;
}

body.postid-60475.mm-ui .meimog-game-hub__versions a:hover,
body.postid-60462.mm-ui .meimog-game-hub__versions a:hover,
body.postid-60475.mm-ui .meimog-more-versions a:hover,
body.postid-60462.mm-ui .meimog-more-versions a:hover {
  transform: translateY(-2px);
}

body.postid-60475.mm-ui .meimog-article-wiki-entry,
body.postid-60462.mm-ui .meimog-article-wiki-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  margin-top: clamp(22px, 4vw, 42px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 82, 205, 0.42);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 82, 205, 0.3), transparent 34%),
    linear-gradient(135deg, rgba(43, 8, 63, 0.98), rgba(12, 4, 26, 0.98));
}

body.postid-60475.mm-ui .meimog-article-wiki-entry::before,
body.postid-60462.mm-ui .meimog-article-wiki-entry::before {
  content: "GAME WIKI";
  position: absolute;
  right: 24px;
  top: 16px;
  color: rgba(255, 255, 255, 0.07);
  font-size: clamp(34px, 7vw, 78px);
  font-weight: 900;
  letter-spacing: -0.06em;
  pointer-events: none;
}

body.postid-60475.mm-ui .meimog-article-wiki-entry strong,
body.postid-60462.mm-ui .meimog-article-wiki-entry strong {
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.28;
}

body.postid-60475.mm-ui .meimog-article-wiki-entry a,
body.postid-60462.mm-ui .meimog-article-wiki-entry a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4fc3, #9b45ff 62%, #68e7ff);
  box-shadow: 0 16px 32px rgba(255, 82, 205, 0.26);
}

body.postid-60475.mm-ui .meimog-article-wiki-entry a::after,
body.postid-60462.mm-ui .meimog-article-wiki-entry a::after {
  content: " →";
}

@media (max-width: 780px) {
  body.postid-60475.mm-ui .meimog-game-hub__facts,
  body.postid-60462.mm-ui .meimog-game-hub__facts,
  body.postid-60475.mm-ui .meimog-game-hub__versions ul,
  body.postid-60462.mm-ui .meimog-game-hub__versions ul,
  body.postid-60475.mm-ui .meimog-more-versions ul,
  body.postid-60462.mm-ui .meimog-more-versions ul {
    grid-template-columns: 1fr;
  }
  body.postid-60475.mm-ui .meimog-article-wiki-entry,
  body.postid-60462.mm-ui .meimog-article-wiki-entry {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════
 * S29 · 文章页 SEO 内链模块全站皮肤。
 * 只覆盖文章详情页内已有 MU 插件输出，不读取/改写 Wiki JSON，不改支付下载业务。
 * ══════════════════════════════════════════════════════════ */
body.single-post.mm-ui .meimog-game-hub,
body.single-post.mm-ui .meimog-more-versions,
body.single-post.mm-ui .meimog-article-wiki-entry {
  width: min(100%, 980px);
  margin-inline: auto;
}

body.single-post.mm-ui .meimog-game-hub {
  overflow: hidden;
  border-radius: 30px;
  border-color: rgba(255, 82, 205, 0.44);
  background:
    radial-gradient(circle at 8% -10%, rgba(255, 82, 205, 0.32), transparent 36%),
    radial-gradient(circle at 92% 0%, rgba(132, 80, 255, 0.26), transparent 36%),
    linear-gradient(145deg, rgba(34, 9, 58, 0.98), rgba(10, 4, 22, 0.98) 58%, rgba(28, 5, 40, 0.98));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 42px rgba(255, 82, 205, 0.12);
}

body.single-post.mm-ui .meimog-game-hub::before {
  opacity: 0.18;
  background-position: right -18px top -26px;
  background-size: min(280px, 46vw) auto;
}

body.single-post.mm-ui .meimog-game-hub::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #ff4fc3, #9b45ff, #68e7ff);
  opacity: 0.95;
}

body.single-post.mm-ui .meimog-game-hub__header {
  align-items: center;
  padding: clamp(24px, 3.3vw, 36px);
  background:
    linear-gradient(90deg, rgba(255, 82, 205, 0.2), rgba(132, 80, 255, 0.1), transparent),
    radial-gradient(circle at 100% 50%, rgba(104, 231, 255, 0.1), transparent 34%);
}

body.single-post.mm-ui .meimog-game-hub__eyebrow {
  color: #110016;
  background: linear-gradient(135deg, #ffd6f4, #ff56cf);
  border: 0;
  box-shadow: 0 10px 26px rgba(255, 82, 205, 0.22);
}

body.single-post.mm-ui .meimog-game-hub__eyebrow::before {
  color: #4b0a52;
}

body.single-post.mm-ui .meimog-game-hub__header h2 {
  max-width: 760px;
  font-size: clamp(24px, 3.2vw, 36px);
  text-shadow: 0 0 26px rgba(255, 82, 205, 0.22);
}

body.single-post.mm-ui .meimog-game-hub__verified {
  border-color: rgba(104, 231, 255, 0.35);
  background: rgba(104, 231, 255, 0.12);
  color: #d5f9ff;
}

body.single-post.mm-ui .meimog-game-hub__section {
  padding-inline: clamp(22px, 3.3vw, 36px);
}

body.single-post.mm-ui .meimog-game-hub__section h3,
body.single-post.mm-ui .meimog-game-hub__versions h3,
body.single-post.mm-ui .meimog-more-versions > h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}

body.single-post.mm-ui .meimog-game-hub__section h3::before,
body.single-post.mm-ui .meimog-game-hub__versions h3::before,
body.single-post.mm-ui .meimog-more-versions > h2::before {
  content: "✦";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 82, 205, 0.14);
  color: #ff8edf;
  font-size: 14px;
  box-shadow: 0 0 22px rgba(255, 82, 205, 0.18);
}

body.single-post.mm-ui .meimog-game-hub__facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.single-post.mm-ui .meimog-game-hub__facts > div,
body.single-post.mm-ui .meimog-game-hub__timeline li {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

body.single-post.mm-ui .meimog-game-hub__versions,
body.single-post.mm-ui .meimog-more-versions {
  margin-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 82, 205, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.025);
}

body.single-post.mm-ui .meimog-game-hub__versions ul,
body.single-post.mm-ui .meimog-more-versions ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.single-post.mm-ui .meimog-game-hub__versions a,
body.single-post.mm-ui .meimog-more-versions a,
body.single-post.mm-ui .meimog-game-hub__versions .is-current,
body.single-post.mm-ui .meimog-more-versions .is-current {
  min-height: 58px;
  border-radius: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.single-post.mm-ui .meimog-game-hub__versions a::after,
body.single-post.mm-ui .meimog-more-versions a::after {
  content: "查看";
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 82, 205, 0.18);
  color: #ffd6f4;
  font-size: 12px;
  font-weight: 800;
}

body.single-post.mm-ui .meimog-game-hub__versions a:hover,
body.single-post.mm-ui .meimog-more-versions a:hover {
  transform: translateY(-2px);
}

body.single-post.mm-ui .meimog-article-wiki-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  margin-top: clamp(22px, 4vw, 42px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 82, 205, 0.42);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 82, 205, 0.3), transparent 34%),
    linear-gradient(135deg, rgba(43, 8, 63, 0.98), rgba(12, 4, 26, 0.98));
}

body.single-post.mm-ui .meimog-article-wiki-entry::before {
  content: "GAME WIKI";
  position: absolute;
  right: 24px;
  top: 16px;
  color: rgba(255, 255, 255, 0.07);
  font-size: clamp(34px, 7vw, 78px);
  font-weight: 900;
  letter-spacing: -0.06em;
  pointer-events: none;
}

body.single-post.mm-ui .meimog-article-wiki-entry strong {
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.28;
}

body.single-post.mm-ui .meimog-article-wiki-entry a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4fc3, #9b45ff 62%, #68e7ff);
  box-shadow: 0 16px 32px rgba(255, 82, 205, 0.26);
}

body.single-post.mm-ui .meimog-article-wiki-entry a::after {
  content: " →";
}

@media (max-width: 780px) {
  body.single-post.mm-ui .meimog-game-hub__facts,
  body.single-post.mm-ui .meimog-game-hub__versions ul,
  body.single-post.mm-ui .meimog-more-versions ul {
    grid-template-columns: 1fr;
  }

  body.single-post.mm-ui .meimog-article-wiki-entry {
    grid-template-columns: 1fr;
  }
}
