/* C11 · 页面级返回与中文标题。业务页只声明属性，不重复绘制左上角控件。 */
wqxt-page-header {
  display: block;
  position: relative;
  z-index: 20;
  color: var(--page-header-color, #f2eee6);
}
wqxt-page-header .page-header__inner {
  display: flex;
  width: 100%;
  align-items: center;
  min-height: 64px;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-left)) 8px;
  box-sizing: border-box;
}
wqxt-page-header .page-header__inner > :last-child:not(.page-header__back):not(.page-header__title):not(.page-header__lobby) { margin-left: auto; }
wqxt-page-header .page-header__back {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: none;
  font: 400 28px/1 "Noto Serif SC", "Songti SC", serif;
  cursor: pointer;
}
wqxt-page-header .page-header__back > span {
  display: block;
  transform: translateY(-3px);
}
wqxt-page-header .page-header__back:focus-visible {
  outline: 2px solid #ffd479;
  outline-offset: 2px;
}
wqxt-page-header .page-header__title {
  flex: 0 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: center;
}
wqxt-page-header .page-header__title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 20px/1.2 "Noto Serif SC", "Songti SC", serif;
  letter-spacing: .04em;
}
wqxt-page-header .page-header__lobby {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-left: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
wqxt-page-header .page-header__lobby svg {
  width: 34px;
  height: 34px;
  overflow: visible;
}
wqxt-page-header .page-header__lobby-outer,
wqxt-page-header .page-header__lobby-inner,
wqxt-page-header .page-header__lobby-base {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
wqxt-page-header .page-header__lobby-outer { stroke: currentColor; stroke-width: 1.8; }
wqxt-page-header .page-header__lobby-inner { stroke: currentColor; stroke-width: 1.6; }
wqxt-page-header .page-header__lobby-base { stroke: #caa860; stroke-width: 1.7; }
wqxt-page-header .page-header__lobby-light { fill: #d9b86e; }
wqxt-page-header .page-header__lobby:focus-visible {
  outline: 2px solid #ffd479;
  outline-offset: 2px;
}
@media (max-width: 1000px), (max-height: 560px) {
  wqxt-page-header .page-header__inner { min-height: 56px; gap: 8px; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  wqxt-page-header .page-header__title strong { font-size: 17px; }
}

/* 旧 Demo 的无损接入层：共享模块接管尺寸、字形与安全区，业务结构无需重画。 */
.wqxt-page-header-adapted .wqxt-page-header__legacy-back {
  box-sizing: border-box !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: inherit !important;
  text-decoration: none !important;
  font: 400 28px/1 "Noto Serif SC", "Songti SC", serif !important;
}
.wqxt-page-header-adapted .wqxt-page-header__legacy-back > span {
  display: block;
  transform: translateY(-3px);
}
.wqxt-page-header-adapted .wqxt-page-header__legacy-back svg {
  width: 22px !important;
  height: 22px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.wqxt-page-header-adapted .wqxt-page-header__legacy-title strong,
.wqxt-page-header-adapted .wqxt-page-header__legacy-title h1 {
  font: 600 20px/1.2 "Noto Serif SC", "Songti SC", serif;
}
.wqxt-page-header-adapted .wqxt-page-header__english { display: none !important; }
@media (max-width: 1000px), (max-height: 560px) {
  .wqxt-page-header-adapted .wqxt-page-header__legacy-title strong,
  .wqxt-page-header-adapted .wqxt-page-header__legacy-title h1 { font-size: 17px; }
}
