/* 云精灵「小浮」样式：呼吸、眨眼、说话、表情切换 */

.mascot-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  transform-origin: 50% 60%;
}

.mascot-svg .halo-ring {
  fill: none;
  stroke: rgba(107, 135, 255, 0.22);
  stroke-width: 1;
}

.mascot-svg .halo-ring--dash {
  stroke-dasharray: 2 7;
  stroke: rgba(107, 135, 255, 0.3);
  animation: ringSpin 46s linear infinite;
  transform-origin: 120px 120px;
}

.mascot-svg .halo-ring--dash2 {
  stroke-dasharray: 1 10;
  stroke: rgba(255, 138, 102, 0.28);
  animation: ringSpin 68s linear infinite reverse;
  transform-origin: 120px 120px;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.mascot-svg .mascot-body {
  animation: bob 5.4s ease-in-out infinite;
  transform-origin: 120px 180px;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* 表情：默认全部隐藏，按 data-expr 显示 */
.mascot-svg .eyes > g,
.mascot-svg .mouths > g {
  display: none;
}

.mascot-svg[data-expr="neutral"] .e-na,
.mascot-svg[data-expr="neutral"] .m-smile { display: block; }

.mascot-svg[data-expr="happy"] .e-happy,
.mascot-svg[data-expr="happy"] .m-open { display: block; }

.mascot-svg[data-expr="shy"] .e-shy,
.mascot-svg[data-expr="shy"] .m-small { display: block; }

.mascot-svg[data-expr="wow"] .e-wow,
.mascot-svg[data-expr="wow"] .m-o { display: block; }

.mascot-svg[data-expr="think"] .e-think,
.mascot-svg[data-expr="think"] .m-flat { display: block; }

.mascot-svg[data-expr="sleep"] .e-sleep,
.mascot-svg[data-expr="sleep"] .m-sleep { display: block; }

/* 眨眼覆盖 */
.mascot-svg.blink .eyes > g { display: none; }
.mascot-svg.blink .eyes .e-blink { display: block; }

/* 说话：嘴部缩放 + 身体轻弹 */
.mascot-svg[data-talking="true"] .mouths > g {
  transform-box: fill-box;
  transform-origin: center top;
  animation: talk 0.36s ease-in-out infinite alternate;
}

@keyframes talk {
  from { transform: scaleY(0.55); }
  to { transform: scaleY(1.25); }
}

.mascot-svg[data-talking="true"] .mascot-body {
  animation: bob 1.1s ease-in-out infinite;
}

/* 腮红 */
.mascot-svg .blush { opacity: 0.42; transition: opacity 0.4s ease; }
.mascot-svg[data-expr="shy"] .blush { opacity: 0.82; }
.mascot-svg[data-expr="happy"] .blush { opacity: 0.6; }

/* 闪光 */
.mascot-svg .spark {
  animation: twinkle 3.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.mascot-svg .spark:nth-of-type(2) { animation-delay: 0.9s; }
.mascot-svg .spark:nth-of-type(3) { animation-delay: 1.8s; }
.mascot-svg .spark:nth-of-type(4) { animation-delay: 2.6s; }

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 0.9; transform: scale(1); }
}

/* 悬停轻跳 */
.mascot-offstage:hover .mascot-svg .mascot-body { animation: bob 1.6s ease-in-out infinite; }
