/* 灵宠模块样式 - v3.3.02 */
/* 小花/灵宠自然融入首页，不使用按钮样式 */

/* 浮动灵宠元素 - 自然融入风格 */
.pet-float-element {
  position: fixed;
  bottom: 90px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
  /* 移除按钮样式，不使用背景色、圆角边框、阴影 */
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  width: auto;
  height: auto;
  animation: none;
}

.pet-float-element:hover {
  opacity: 1;
  transform: scale(1.05);
}

.pet-float-element:active {
  transform: scale(0.95);
}

.pet-float-emoji {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
  /* 自然漂浮动画 */
  animation: petFloat 3s ease-in-out infinite;
}

.pet-float-name {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

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

/* 语音按钮样式 */
.voice-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 8px;
}

.voice-btn:hover {
  background: rgba(255,255,255,0.25);
}

.voice-btn:active,
.voice-btn.recording {
  background: rgba(255,107,107,0.6);
  animation: voicePulse 1s infinite;
}

@keyframes voicePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.voice-btn .voice-icon {
  width: 20px;
  height: 20px;
}

/* 语音消息样式 */
.message-voice {
  max-width: 200px;
  cursor: pointer;
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
}

.voice-wave span {
  width: 3px;
  background: currentColor;
  border-radius: 2px;
  animation: voiceWave 0.6s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 8px; animation-delay: 0.4s; }

@keyframes voiceWave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.voice-duration {
  font-size: 12px;
  margin-left: 8px;
  color: rgba(255,255,255,0.6);
}

/* 录音状态提示 */
.recording-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  font-size: 16px;
  z-index: 10000;
  display: none;
}

.recording-hint.show {
  display: block;
}

.recording-hint .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff6b6b;
  border-radius: 50%;
  margin-right: 8px;
  animation: recordingDot 1s infinite;
}

@keyframes recordingDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
