/* 朴果全站统一品牌条 - 圆角方形 Logo + 朴果 */
.pg-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.pg-brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
  background: #FFF5E6;
  padding: 2px;
  flex-shrink: 0;
  border: none;
}
.pg-brand span {
  font-size: 17px;
  font-weight: 700;
  color: #3A9B8F;
  letter-spacing: 0.5px;
}
/* 有 header 的内容页：注入品牌后隐藏原文字标题，由品牌承担身份 */
.app-header .title {
  display: none;
}
/* 独立顶栏（用于无 header 的内容页） */
.pg-brandbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eee;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pg-back {
  font-size: 14px;
  color: #6C757D;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 8px;
}
.pg-back:active {
  background: #F0F0F0;
}
/* 深色/彩色背景页适配：白底圆托 */
.pg-brand.on-dark .pg-brand-logo,
.pg-brandbar.on-dark .pg-brand-logo {
  background: #FFFFFF;
}
.pg-brand.on-dark span {
  color: #FFFFFF;
}

/* 底部导航兜底：防止被其他样式意外覆盖为竖排 */
.bottom-nav {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-around !important;
}
.bottom-nav .nav-item {
  flex-direction: column !important;
  align-items: center !important;
}
/* 固定底栏防遮挡：内容底部留出空间，避免末块内容被 tab 栏盖住 */
body:has(.bottom-nav) {
  padding-bottom: 70px;
}
