/* ============================================================
 *  V8.5 统一二级页标题栏（全站普及专用）
 *  依赖：v85-design-system.css（--v85-* 令牌）
 *  说明：仅含 .v85-page-header 组件样式，避免加载 v85-pages.css
 *        全量组件样式对既有页面造成串扰。
 * ============================================================ */
@import url('v85-design-system.css');

.v85-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--v85-space-md);
  background: var(--v85-bg-card);
  border-bottom: 1px solid var(--v85-border);
  position: sticky;
  top: 0;
  z-index: var(--v85-z-header);
  min-height: 3.5rem;
}
.v85-page-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--v85-radius-full);
  color: var(--v85-text-secondary);
  font-size: 1.5rem;
  text-decoration: none;
  transition: var(--v85-transition-colors);
  flex-shrink: 0;
}
.v85-page-header__back:active {
  background: var(--v85-bg-soft);
  color: var(--v85-primary);
}
.v85-page-header__title {
  flex: 1;
  text-align: center;
  font-size: var(--v85-text-sm);
  font-weight: var(--v85-weight-medium);
  color: var(--v85-text-primary);
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
/* FIX-CHECK:V5.2-必验收
 * 修复内容: 减小页面标题字号（--v85-text-lg→--v85-text-sm），降低字重和透明度，避免二级页标题过于突兀
 * 验收条件: 访问任意二级页面，顶部标题栏字号适中，不喧宾夺主
 */
/* 无标题模式：隐藏 h1，仅保留返回按钮和右侧操作区 */
.v85-page-header--no-title .v85-page-header__title {
  display: none;
}
.v85-page-header--no-title .v85-page-header__back {
  flex: 1;
}
.v85-page-header--no-title .v85-page-header__right {
  flex: 1;
  justify-content: flex-end;
}
.v85-page-header__right {
  flex-shrink: 0;
  width: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* 原 header 功能内容保留区（置于 v85 标题栏下方）：
   中和原 header 的 fixed/sticky 定位，避免与 v85 粘性栏重叠 */
.v85-funcbar {
  position: relative !important;
}