/* 大屏左下角 · 网易云音乐同款泰迪桌宠（真实素材） */
.pet-dog {
  position: relative; flex: 0 0 auto; height: 186px; margin-top: 2px;
  background: linear-gradient(180deg, rgba(56,214,240,.035), rgba(255,225,190,.06));
  border: 1px solid rgba(56,214,240,.28); border-radius: 6px;
  overflow: hidden; cursor: pointer; user-select: none;
  transition: border-color .2s, box-shadow .2s;
}
.pet-dog:hover { border-color: rgba(255,205,150,.65); box-shadow: 0 0 18px rgba(255,190,120,.15); }
.pet-spotlight {
  position: absolute; inset: 12px 0 0;
  background: radial-gradient(ellipse at 50% 76%, rgba(255,236,208,.20), transparent 62%);
  pointer-events: none;
}
.pet-meta {
  position: absolute; top: 7px; left: 10px; right: 10px; z-index: 4;
  display: flex; align-items: center; gap: 7px;
  font-size: 9px; letter-spacing: .5px;
}
.pet-name { color: #f1d3a8; font-weight: 700; }
.pet-trait {
  color: #ffc9a0; border: 1px solid rgba(255,190,140,.4);
  border-radius: 8px; padding: 1px 6px; background: rgba(255,170,120,.08);
}

.dog-bubble {
  position: absolute; top: 28px; left: 50%; z-index: 6;
  transform: translateX(-50%) translateY(7px) scale(.94);
  background: #fff6e9; color: #5a3218; font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 11px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.42);
  transition: opacity .22s, transform .22s;
}
.dog-bubble.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.dog-bubble::after {
  content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #fff6e9;
}

.pet-hearts { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.pet-heart {
  position: absolute; left: 66%; bottom: 55px; width: 18px; height: 16px;
  opacity: 0; fill: #ff6f91; filter: drop-shadow(0 0 5px rgba(255,100,140,.8));
}
.pet-heart:nth-child(2) { left: 34%; bottom: 60px; width: 14px; height: 12px; fill: #ffb3c1; }
.pet-heart:nth-child(3) { left: 74%; bottom: 80px; width: 13px; height: 11px; }
.pet-heart:nth-child(4) { left: 27%; bottom: 72px; width: 16px; height: 14px; fill: #ff7f9c; }
.pet-dog.coquette .pet-heart { animation: petHeart 3s ease-out forwards; animation-delay: calc(var(--i) * .2s); }
@keyframes petHeart {
  0%   { opacity: 0; transform: translateY(6px) scale(.5) rotate(-12deg); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-78px) scale(1.2) rotate(14deg); }
}

.pet-photo {
  position: absolute; bottom: 4px; left: 50%; z-index: 2;
  height: 136px; width: auto; max-width: none; display: block;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.45));
  animation: petIdle 3.2s ease-in-out infinite;
  will-change: transform;
}
@keyframes petIdle {
  0%,100% { transform: translateX(-50%) translateY(0) scale(1,1) rotate(-1deg); }
  50%     { transform: translateX(-50%) translateY(-3px) scale(1.018,.982) rotate(1.5deg); }
}
.pet-dog.hop .pet-photo { animation: petHop .58s ease; }
@keyframes petHop {
  0%,100% { transform: translateX(-50%) translateY(0) rotate(0); }
  35%     { transform: translateX(-50%) translateY(-16px) rotate(-6deg); }
  70%     { transform: translateX(-50%) translateY(-2px) rotate(4deg); }
}
/* 撒娇：歪头、左右晃身、点头 */
.pet-dog.coquette .pet-photo { animation: petCoquet 1.25s ease-in-out; }
@keyframes petCoquet {
  0%,100% { transform: translateX(-50%) translateY(0) scale(1) rotate(0); }
  18%     { transform: translateX(-50%) translateY(-2px) scale(1.02,.97) rotate(-11deg); }
  38%     { transform: translateX(-50%) translateY(-6px) scale(.98,1.03) rotate(9deg); }
  58%     { transform: translateX(-50%) translateY(0) scale(1.03,.96) rotate(-7deg); }
  78%     { transform: translateX(-50%) translateY(-3px) scale(.99,1.02) rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pet-photo { animation: none; transform: translateX(-50%); }
}
