/* 兔子头像组件 — 把 rabbit-avatar.wxss 的 rpx 折半为 px */
.avatar-wrap {
  width: 100%;
  display: flex; justify-content: center; align-items: center;
  position: relative; padding: 8px 0;
}

.rabbit-svg-wrap {
  width: 110px; height: 140px;
  position: relative;
  animation: rabbit-float 3s ease-in-out infinite;
}
@keyframes rabbit-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* 帽子 */
.hat-wrap {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 90px; z-index: 10;
}
.hat-brim { width: 90px; height: 12px; background: #1e3a8a; border-radius: 4px; }
.hat-top {
  width: 65px; height: 40px;
  background: #1e3a8a;
  margin: 0 auto;
  border-radius: 6px 6px 0 0;
  position: relative;
}
.hat-top::before {
  content:''; position: absolute;
  top: 0; left: 0; right: 0; height: 30%;
  background: rgba(59,130,246,0.4);
  border-radius: 6px 6px 0 0;
}
.tassel {
  position: absolute; right: 0; top: 10px;
  width: 4px; height: 30px;
  background: #fbbf24; border-radius: 2px;
}
.tassel::after {
  content: '★'; position: absolute;
  bottom: -12px; left: -8px;
  color: #fbbf24; font-size: 14px;
}

/* 耳朵 */
.ears-wrap {
  position: absolute; top: 30px; left: 50%;
  transform: translateX(-50%);
  width: 100px;
}
.ear {
  position: absolute;
  width: 28px; height: 60px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}
.ear-left  { left: 4px;  transform: rotate(-12deg); }
.ear-right { right: 4px; transform: rotate(12deg); }
.ear-inner {
  width: 16px; height: 45px;
  background: linear-gradient(to bottom, #fbcfe8, #fce7f3);
  border-radius: 8px;
  margin: 6px auto 0;
}

/* 头部 */
.head {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 90px;
  background: radial-gradient(circle, #ffffff 60%, #f1f5f9 100%);
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  overflow: hidden;
}

/* 眼睛 */
.eyes { position: absolute; top: 24px; width: 100%; display: flex; justify-content: space-around; padding: 0 10px; }
.eye {
  width: 14px; height: 18px; background: #0f172a;
  border-radius: 50%; position: relative;
  animation: rabbit-blink 4s infinite;
}
@keyframes rabbit-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93% { transform: scaleY(0.1); }
}
.eye-highlight {
  position: absolute; top: 2px; right: 2px;
  width: 6px; height: 6px; background: white; border-radius: 50%;
}

/* 腮红 */
.blush {
  position: absolute; top: 40px;
  width: 22px; height: 12px;
  background: #fbcfe8; border-radius: 50%;
  opacity: 0.6;
}
.blush-left  { left: 8px; }
.blush-right { right: 8px; }

/* 嘴巴 */
.mouth {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 9px;
  border-bottom: 2.5px solid #be185d;
  border-radius: 0 0 11px 11px;
}

/* 魔法棒 */
.wand-wrap {
  position: absolute; right: -4px; bottom: 10px;
  display: flex; flex-direction: column; align-items: center;
}
.wand-stick { width: 4px; height: 40px; background: #a16207; border-radius: 2px; }
.wand-star {
  font-size: 18px; color: #fbbf24;
  animation: rabbit-sparkle 1s ease-in-out infinite alternate;
}
@keyframes rabbit-sparkle {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(1.2); opacity: 0.7; }
}

/* 说话气泡 */
.speaking-bubble {
  position: absolute; top: 0; right: 8px;
  background: white;
  padding: 6px;
  border-radius: 50%;
  border: 2px solid #bae6fd;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  animation: rabbit-bounce 0.6s ease-in-out infinite alternate;
}
@keyframes rabbit-bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}
