/* 用户子页沿用用户中心的白色通栏顶部，标题独立居中。 */
body.account-subpage .account-page-topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 10px 18px 8px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #262b33;
  box-shadow: none;
}

/* 标题与用户中心“大笨猫 Bcat”保持相同字号、字重和行高。 */
body.account-subpage .account-page-topbar h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.account-subpage .account-page-topbar :is(a, button) {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.account-subpage .account-page-topbar [data-front-announcement] {
  border: 1px solid #e2e5ea;
  background: #fff;
}

body.account-subpage .account-page-topbar svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

body.account-subpage .account-page-topbar img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

body.account-subpage .account-page-topbar :is(a, button):focus-visible {
  outline: 2px solid #8a5cf6;
  outline-offset: 2px;
}

/* 下载内容从顶部自然排列，避免旧版全屏居中把返回入口推到页面中间。 */
body.account-subpage.download-page .download-shell {
  min-height: 0;
  margin-block: 0;
  padding-block: 16px 28px;
  align-content: start;
}
