/* 首页专属语音输入按钮：空闲为麦克风，录音后原位切换为动态声纹。 */
.home-voice-input { display: inline-flex; align-items: center; flex-shrink: 0; }
.home-voice-btn { transition: color .18s ease, background-color .18s ease; }
.home-voice-btn:not(.v-btn--disabled):hover { color: #6964dc; }
.home-voice-live {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #6964dc, #8261d7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 5px 14px -6px rgba(104, 87, 205, .55), 0 0 0 5px rgba(124, 104, 224, .07);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}
.home-voice-live:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 7px 16px -6px rgba(104, 87, 205, .6), 0 0 0 6px rgba(124, 104, 224, .09);
}
.home-voice-live:focus-visible { outline: 3px solid #8b7ee8; outline-offset: 2px; }
.home-voice-live:disabled { cursor: default; }
.home-voice-live.is-recording { animation: home-voice-live-breathe 2.2s ease-in-out infinite; }
.home-voice-live.is-recognizing { opacity: .78; background: linear-gradient(135deg, #8a86e3, #9d87e2); }
.home-voice-live-bars { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.home-voice-live-bars i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: #fff;
  transform-origin: center;
  animation: home-voice-bars .9s ease-in-out infinite;
}
.home-voice-live-bars i:nth-child(1) { animation-delay: -.72s; }
.home-voice-live-bars i:nth-child(2) { animation-delay: -.54s; }
.home-voice-live-bars i:nth-child(3) { animation-delay: -.36s; }
.home-voice-live-bars i:nth-child(4) { animation-delay: -.18s; }
.home-voice-live-bars i:nth-child(5) { animation-delay: 0s; }
@keyframes home-voice-bars {
  0%, 100% { transform: scaleY(.28); opacity: .65; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes home-voice-live-breathe {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 5px 14px -6px rgba(104, 87, 205, .55), 0 0 0 5px rgba(124, 104, 224, .07); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 5px 16px -4px rgba(104, 87, 205, .6), 0 0 0 9px rgba(124, 104, 224, .12); }
}
@media (prefers-reduced-motion: reduce) {
  .home-voice-live { animation: none; }
  .home-voice-live-bars i { animation: none; transform: scaleY(.62); opacity: .9; }
}
