/* Shared logo sizing; the image keeps its original proportions in every theme. */
body .site-brand{display:inline-flex;align-items:center;gap:10px;min-width:0}
body .site-brand>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body img.site-logo-image{display:block;flex:0 0 auto;width:36px;height:36px;max-width:100%;object-fit:contain;border-radius:8px}
body.theme-unicorn .header .logo a,body.theme-unicorn .navbar-brand{display:inline-flex;align-items:center;gap:10px;min-width:0}
body.theme-unicorn .header .logo img.site-logo-image{width:40px;height:40px;max-width:40px}
body.theme-unicorn .navbar-brand>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.theme-hongmeng .header .logo a{display:flex;align-items:center;gap:10px}
body.theme-hongmeng .header .logo img.site-logo-image{width:36px;height:36px;max-width:36px}
body.theme-hongmeng .account-logo img.site-logo-image{width:42px;height:42px}
body .shop-avatar>img.site-logo-image,body .brand-avatar>img.site-logo-image{width:100%;height:100%;border-radius:inherit}
body.theme-jd-shop .shop-brand>img.site-logo-image{width:48px;height:48px}
body.tao-shop .brand>img.site-logo-image{width:32px;height:32px}
body .auth-brand img.site-logo-image{width:40px;height:40px}
@media(max-width:600px){
  body img.site-logo-image{width:30px;height:30px;border-radius:7px}
  body .site-brand{gap:7px}
  body.tao-shop .brand>img.site-logo-image{width:24px;height:24px;border-radius:5px}
  body.theme-unicorn .navbar-brand{gap:7px;max-width:calc(100% - 118px)}
  body.theme-unicorn .navbar-brand img.site-logo-image{width:30px;height:30px}
}

/* Only the bundled mascot moves; uploaded logos retain their own appearance. */
body img[data-site-logo][src*="file=images%2Fsite-logo.png"]{border:0;background:transparent;border-radius:0;box-shadow:none;animation:yezi-mascot-float 6s ease-in-out infinite;transform-origin:50% 75%}
@keyframes yezi-mascot-float{0%,65%,100%{transform:translateY(0) rotate(0)}75%{transform:translateY(-1px) rotate(-3deg)}85%{transform:translateY(-1px) rotate(3deg)}}
@media(prefers-reduced-motion:reduce){body img[data-site-logo][src*="file=images%2Fsite-logo.png"]{animation:none}}
