/* 全站小豫品牌识别与统一返回入口 */
header .brand > img,
.head .brand > img,
.site-header .brand > img {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
header:has(.brand > img),
.head:has(.brand > img),
.site-header:has(.brand > img) {
  min-height: 82px !important;
}
header .brand,
.head .brand,
.site-header .brand {
  min-width: 0 !important;
}
.yy-home-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  min-height: 38px !important;
  margin-left: auto !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(60,45,75,.14) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.9) !important;
  color: #41334e !important;
  font: 600 12px/1.2 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
.yy-home-link:active { transform: scale(.97); }
.stage-hub-visual > .stage-hub-mascot {
  width: auto !important;
  height: 178px !important;
  max-width: none !important;
  max-height: none !important;
  right: 8px !important;
  bottom: 2px !important;
  left: auto !important;
  object-fit: contain !important;
  object-position: right bottom !important;
  filter: drop-shadow(0 10px 9px rgba(42,29,57,.2)) !important;
}
@media (max-width:350px) {
  header .brand > img,.head .brand > img,.site-header .brand > img { width:62px !important;height:62px !important;min-width:62px !important; }
  header:has(.brand > img),.head:has(.brand > img),.site-header:has(.brand > img) { min-height:76px !important; }
  .yy-home-link { padding:7px 10px !important;font-size:11px !important; }
  .stage-hub-visual > .stage-hub-mascot { height:158px !important;right:4px !important; }
}

/* 覆盖应用内后续注入的固定头像尺寸。 */
html body header .brand > img,
html body .head .brand > img,
html body .site-header .brand > img {
  width:68px !important;
  height:68px !important;
  min-width:68px !important;
  min-height:68px !important;
  aspect-ratio:1/1 !important;
}
html body .stage-hub-visual > .stage-hub-mascot {
  height:178px !important;
  transform:none !important;
}
@media(max-width:350px){
  html body header .brand > img,html body .head .brand > img,html body .site-header .brand > img{width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important}
  html body .stage-hub-visual > .stage-hub-mascot{height:158px!important}
}


/* 首页主视觉只保留小豫：撤去校门照片，避免遮挡与重复元素。 */
html body .stage-hub-visual > .stage-hub-campus { display:none !important; }
html body .stage-hub-visual > .stage-hub-mascot {
  height:196px !important;
  right:2px !important;
  bottom:0 !important;
}
html body header .brand > img,
html body .head .brand > img,
html body .site-header .brand > img {
  width:80px !important;
  height:80px !important;
  min-width:80px !important;
  min-height:80px !important;
}
html body header:has(.brand > img),
html body .head:has(.brand > img),
html body .site-header:has(.brand > img) { min-height:94px !important; }
@media(max-width:350px){
  html body .stage-hub-visual > .stage-hub-mascot{height:174px!important;right:0!important}
  html body header .brand > img,html body .head .brand > img,html body .site-header .brand > img{width:72px!important;height:72px!important;min-width:72px!important;min-height:72px!important}
  html body header:has(.brand > img),html body .head:has(.brand > img),html body .site-header:has(.brand > img){min-height:86px!important}
}


/* 提升小程序内顶部品牌辨识度。 */
html body header .brand > img,
html body .head .brand > img,
html body .site-header .brand > img {
  width:96px !important;
  height:96px !important;
  min-width:96px !important;
  min-height:96px !important;
}
html body header:has(.brand > img),
html body .head:has(.brand > img),
html body .site-header:has(.brand > img) { min-height:110px !important; }
@media(max-width:350px){
  html body header .brand > img,html body .head .brand > img,html body .site-header .brand > img{width:84px!important;height:84px!important;min-width:84px!important;min-height:84px!important}
  html body header:has(.brand > img),html body .head:has(.brand > img),html body .site-header:has(.brand > img){min-height:98px!important}
}

/* 使用圆形裁剪安全图，完整保留双耳与头顶。 */
html body header .brand > img,
html body .head .brand > img,
html body .site-header .brand > img {
  object-fit:contain !important;
  object-position:center !important;
  background:transparent !important;
  overflow:hidden !important;
}
