/* ===== center-pages：页面宽度模式（全宽 / 居中）===== */
html[data-layout="center"] section.page,
html[data-layout="center"] #guide.page,
html[data-layout="center"] #preferences.page,
html[data-layout="center"] #account.page,
html[data-layout="center"] #community.page,
html[data-layout="center"] #moments.page {
  max-width: 1120px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
html[data-layout="center"] section.page .design-page-heading { max-width: none !important; }

/* 使用指南卡片：行宽收敛 */
html[data-layout="center"] #guide .guide-grid,
html[data-layout="center"] #guide .design-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
}

/* 充值中心：卡片小一号，网格居中（高权重压过 next-ui/page-rebuild） */
html body.next-ui #account #packages,
html body.next-ui #account #coinPackages{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(196px,1fr))!important;
  gap:14px!important;max-width:860px!important;
  margin-left:auto!important;margin-right:auto!important;
}
html body.next-ui #account #packages>*,
html body.next-ui #account #coinPackages>*{
  padding:12px 14px 14px!important;border-radius:14px!important;
}
html body.next-ui #account #packages img{
  height:92px!important;aspect-ratio:auto!important;object-fit:cover!important;
  margin-bottom:10px!important;border-radius:10px!important;
}
html body.next-ui #account #packages p,
html body.next-ui #account #coinPackages p{font-size:12.5px!important;line-height:1.55!important}
html body.next-ui #account #packages button,
html body.next-ui #account #coinPackages button{min-height:34px!important;font-size:12.5px!important;margin-top:8px!important}
html body.next-ui #account .rev-recharge-intro{max-width:860px!important;margin:0 auto 16px!important;padding:22px 24px!important}
html body.next-ui #account .rev-recharge-intro h2{font-size:23px!important;margin:8px 0!important}
html body.next-ui #account #packages .package-pay-actions{margin-top:10px!important;gap:8px!important}


@media (max-width: 900px) {
  html[data-layout="center"] section.page { max-width: none !important; }
  html body.next-ui #account #packages,html body.next-ui #account #coinPackages { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; }
}

/* 设置里的页宽选项 */
.pref-layout-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; }
.pref-layout-row > span { font-size: 13px; color: var(--muted, #a8b4c6); }
.pref-layout-row select { min-width: 150px; }

/* 2026-11-07 ???????????????#music?????????????????? */
html[data-layout="center"] section#music.page,
html body section#music.page {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
