/* ============================================================
   闪杀对决 · 战场语音
   首页语音入口 + 录音/试听/本地喊话 + 武将语音包
   ============================================================ */

/* ---------------- 首页入口 ---------------- */
.hv3-voice {
  flex: 0 0 auto;
  height: 52px;
  margin-top: 9px;
  display: flex;
  align-items: stretch;
  gap: 7px;
}
.hv3-voice-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 52px 0 7px;
  border-radius: 12px;
  border: 1px solid rgba(221, 178, 106, .46);
  background:
    radial-gradient(85% 140% at 6% 50%, rgba(242, 184, 83, .2), transparent 58%),
    linear-gradient(155deg, rgba(47, 29, 17, .97), rgba(18, 10, 6, .98));
  box-shadow:
    0 6px 14px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255, 235, 188, .14);
  color: #f3e2c2;
  text-align: left;
  overflow: hidden;
  transition: transform .15s ease, filter .15s ease;
}
.hv3-voice-main::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 9px;
  border: 1px solid rgba(255, 229, 171, .13);
  pointer-events: none;
}
.hv3-voice-main:active { transform: scale(.985); filter: brightness(.95); }
.hv3-voice-mic {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, #ffe5a2 0%, #e1b056 34%, #b57a2a 66%, #704211 100%);
  border: 1px solid rgba(255, 229, 162, .74);
  color: #3e2508;
  box-shadow:
    0 3px 9px rgba(0, 0, 0, .45),
    inset 0 0 0 2px rgba(66, 34, 9, .28),
    inset 0 1px 0 rgba(255, 247, 210, .55);
}
.hv3-voice-mic .mp-icon { width: 20px; height: 20px; }
.hv3-voice-ping {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 213, 132, .35);
  animation: hv3VoicePing 2.6s ease-out infinite;
}
@keyframes hv3VoicePing {
  0% { transform: scale(.86); opacity: .8; }
  70%, 100% { transform: scale(1.22); opacity: 0; }
}
.hv3-voice-tx {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  line-height: 1.15;
}
.hv3-voice-tx b {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #f4dba7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}
.hv3-voice-tx b em[hidden] { display: none !important; }
.hv3-voice-tx b em {
  display: inline-grid;
  place-items: center;
  min-width: 15px;
  height: 14px;
  padding: 0 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, #7fb4ff, #3d7eff);
  border: 1px solid rgba(197, 221, 255, .66);
  color: #fff;
  font-family: var(--font);
  font-style: normal;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 1px 4px rgba(61, 126, 255, .45);
}
.hv3-voice-tx small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: .2px;
  color: #b9a78c;
}
.hv3-voice-wave {
  position: absolute;
  right: 9px;
  top: 50%;
  width: 35px;
  height: 24px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  opacity: .85;
  pointer-events: none;
}
.hv3-voice-wave i {
  width: 2.5px;
  height: 40%;
  border-radius: 2px;
  background: linear-gradient(180deg, #a9d0ff, #3d7eff);
  box-shadow: 0 0 5px rgba(61, 126, 255, .38);
  animation: hv3VoiceWave 1.35s ease-in-out infinite;
}
.hv3-voice-wave i:nth-child(1) { animation-delay: -.15s; }
.hv3-voice-wave i:nth-child(2) { animation-delay: -.5s; }
.hv3-voice-wave i:nth-child(3) { animation-delay: -.8s; }
.hv3-voice-wave i:nth-child(4) { animation-delay: -.35s; }
.hv3-voice-wave i:nth-child(5) { animation-delay: -.65s; }
.hv3-voice-wave i:nth-child(6) { animation-delay: -.05s; }
@keyframes hv3VoiceWave {
  0%, 100% { transform: scaleY(.5); opacity: .55; }
  50% { transform: scaleY(1.5); opacity: 1; }
}
.hv3-voice-play {
  flex: 0 0 auto;
  width: 46px;
  border-radius: 12px;
  border: 1px solid rgba(128, 176, 255, .5);
  background:
    radial-gradient(circle at 38% 26%, rgba(148, 192, 255, .5), transparent 56%),
    linear-gradient(160deg, #2f5fa8, #15325c 74%, #0d2344);
  color: #dbeaff;
  display: grid;
  place-items: center;
  box-shadow:
    0 6px 14px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(212, 232, 255, .2);
  transition: transform .15s ease, filter .15s ease;
}
.hv3-voice-play .mp-icon { width: 23px; height: 23px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .4)); }
.hv3-voice-play:active { transform: scale(.93); filter: brightness(1.08); }

/* ---------------- 弹层 ---------------- */
.voice-modal { z-index: 89; top: 0; right: 0; bottom: 0; left: 0; }
.voice-modal .modal-mask {
  background: rgba(5, 3, 2, .74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.voice-sheet {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  padding: 8px 16px calc(14px + var(--safe-bottom));
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(120% 58% at 50% 0%, rgba(117, 73, 32, .5), transparent 58%),
    linear-gradient(180deg, #24150e 0%, #150c07 62%, #0e0805 100%);
  border-top: 1px solid rgba(224, 181, 108, .45);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 234, 188, .1);
  color: #f4e6c8;
  animation: voiceSheetUp .28s cubic-bezier(.2, .8, .3, 1);
}
@keyframes voiceSheetUp {
  from { transform: translateY(6%); opacity: .55; }
  to { transform: translateY(0); opacity: 1; }
}
.voice-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 1px 10px;
}
.voice-head-tx { min-width: 0; }
.voice-head-tx .panel-kicker {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: #b99a68;
}
.voice-head-tx h3 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #f4dba8;
  line-height: 1.1;
}
.voice-head-tx p {
  margin: 5px 0 0;
  font-size: 9px;
  line-height: 1.55;
  color: #a99476;
}
.voice-head .icon-btn {
  flex: 0 0 auto;
  background: rgba(52, 33, 19, .8);
  border: 1px solid rgba(205, 164, 96, .28);
  color: #d9c19b;
}

.voice-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 11px;
  background: rgba(8, 4, 2, .52);
  border: 1px solid rgba(201, 160, 95, .18);
}
.voice-tab {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  color: #b09a7b;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background .18s ease, color .18s ease, transform .12s ease;
}
.voice-tab .mp-icon { width: 15px; height: 15px; }
.voice-tab:active { transform: scale(.97); }
.voice-tab.is-active {
  background: linear-gradient(180deg, #f6dda1, #c9974b 62%, #9a672b);
  color: #34200b;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 248, 218, .55);
}

.voice-body {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 11px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.voice-body::-webkit-scrollbar { display: none; }
.voice-pane[hidden] { display: none !important; }

/* ---------------- 录音卡 ---------------- */
.voice-rec-card {
  position: relative;
  padding: 11px 12px 10px;
  border-radius: 14px;
  background:
    radial-gradient(84% 110% at 50% 0%, rgba(241, 182, 85, .14), transparent 62%),
    linear-gradient(160deg, rgba(55, 34, 19, .88), rgba(22, 13, 8, .94));
  border: 1px solid rgba(214, 170, 96, .3);
  box-shadow: inset 0 1px 0 rgba(255, 232, 181, .09);
  overflow: hidden;
}
.voice-rec-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 203, 112, .12), transparent 68%);
  pointer-events: none;
}
.voice-rec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 8.5px;
  letter-spacing: .4px;
}
.voice-rec-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cbb38b;
}
.voice-rec-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #7bd7a0;
  box-shadow: 0 0 6px rgba(123, 215, 160, .7);
}
.voice-rec-status.is-live { color: #ffb6a4; }
.voice-rec-status.is-live i {
  background: #ff5a3c;
  box-shadow: 0 0 8px rgba(255, 90, 60, .9);
  animation: voiceDot 1s ease-in-out infinite;
}
.voice-rec-status.is-error { color: #f0a18f; }
.voice-rec-status.is-error i { background: #ff795e; box-shadow: 0 0 6px rgba(255, 121, 94, .8); }
.voice-rec-status.is-ready { color: #e8ce9a; }
.voice-rec-status.is-ready i { background: #ffd67e; box-shadow: 0 0 7px rgba(255, 214, 126, .8); }
@keyframes voiceDot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.voice-rec-limit { color: #8f7c62; font-size: 8px; }

.voice-wave {
  height: 42px;
  margin: 7px 0 5px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.voice-wave i {
  width: 3px;
  height: var(--h, 40%);
  min-height: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffe1a1, #c58a35);
  opacity: .5;
  transform-origin: center;
  transition: opacity .2s ease;
}
.voice-rec-card.is-recording .voice-wave i {
  opacity: 1;
  background: linear-gradient(180deg, #b8d7ff, #3d7eff);
  animation: voiceBar .8s ease-in-out infinite alternate;
}
.voice-rec-card.is-recording .voice-wave i:nth-child(2n) { animation-delay: -.2s; }
.voice-rec-card.is-recording .voice-wave i:nth-child(3n) { animation-delay: -.45s; }
.voice-rec-card.is-recording .voice-wave i:nth-child(5n) { animation-delay: -.65s; }
@keyframes voiceBar {
  from { transform: scaleY(.45); }
  to { transform: scaleY(1.28); }
}

.voice-rec-main {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1px 2px 0;
}
.voice-rec-btn {
  position: relative;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, #fff0c2 0%, #f2c66e 28%, #cf9135 62%, #8b561a 100%);
  border: 1px solid rgba(255, 235, 181, .8);
  color: #3a2207;
  box-shadow:
    0 7px 18px rgba(0, 0, 0, .5),
    inset 0 0 0 3px rgba(80, 43, 11, .24),
    inset 0 2px 3px rgba(255, 252, 231, .55);
  transition: transform .15s ease, filter .15s ease;
}
.voice-rec-btn .mp-icon { width: 28px; height: 28px; position: relative; z-index: 2; }
.voice-rec-btn::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(96, 55, 17, .22);
  pointer-events: none;
}
.voice-rec-btn:active { transform: scale(.94); filter: brightness(.96); }
.voice-rec-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(244, 205, 128, .32);
  pointer-events: none;
}
.voice-rec-btn.is-recording {
  background:
    radial-gradient(circle at 34% 24%, #ffb9a5 0%, #f05a3e 34%, #c02d20 66%, #74140d 100%);
  border-color: rgba(255, 186, 161, .72);
  color: #fff6ee;
  box-shadow:
    0 7px 20px rgba(196, 43, 26, .42),
    inset 0 0 0 3px rgba(90, 13, 7, .28);
  animation: voiceRecPulse 1.3s ease-in-out infinite;
}
.voice-rec-btn.is-recording .voice-rec-ring {
  border-color: rgba(255, 120, 90, .58);
  animation: voiceRing 1.35s ease-out infinite;
}
@keyframes voiceRecPulse {
  0%, 100% { box-shadow: 0 7px 20px rgba(196, 43, 26, .42), inset 0 0 0 3px rgba(90, 13, 7, .28); }
  50% { box-shadow: 0 7px 26px rgba(255, 76, 48, .62), inset 0 0 0 3px rgba(90, 13, 7, .28); }
}
@keyframes voiceRing {
  0% { transform: scale(.96); opacity: .8; }
  100% { transform: scale(1.34); opacity: 0; }
}
.voice-rec-meta { min-width: 0; }
.voice-rec-meta b {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  color: #f6e0b0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .55);
}
.voice-rec-meta small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  color: #b29d7f;
}
.voice-rec-tip {
  margin: 8px 2px 0;
  font-size: 8.5px;
  line-height: 1.55;
  color: #a08c70;
  min-height: 13px;
}
.voice-demo-btn {
  width: 100%;
  height: 31px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  border: 1px dashed rgba(224, 180, 105, .34);
  background: rgba(55, 35, 19, .4);
  color: #c8ab7c;
  font-size: 8.5px;
  letter-spacing: .4px;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.voice-demo-btn .mp-icon { width: 13px; height: 13px; color: #e4bc77; }
.voice-demo-btn:active { transform: scale(.985); }
.voice-demo-btn.is-playing {
  color: #ffdda0;
  border-color: rgba(246, 204, 128, .6);
  background: rgba(95, 62, 26, .36);
}

/* ---------------- 录音预览 ---------------- */
.voice-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 8px 8px;
  border-radius: 12px;
  border: 1px solid rgba(236, 194, 114, .42);
  background:
    radial-gradient(90% 120% at 0% 50%, rgba(241, 184, 83, .16), transparent 56%),
    linear-gradient(90deg, rgba(98, 65, 27, .3), rgba(33, 20, 11, .52));
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, .1);
}
.voice-preview[hidden] { display: none !important; }
.voice-mini-play {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 24%, #fff0c2, #e6b85e 40%, #a66d24);
  border: 1px solid rgba(255, 232, 176, .7);
  color: #3a2207;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .4);
}
.voice-mini-play .mp-icon { width: 20px; height: 20px; }
.voice-mini-play:active { transform: scale(.93); }
.voice-mini-tx { flex: 1 1 auto; min-width: 0; }
.voice-name-input {
  display: block;
  width: 100%;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px dashed rgba(224, 183, 113, .38);
  background: transparent;
  color: #f5e2bd;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  outline: none;
  border-radius: 0;
}
.voice-name-input:focus { border-bottom-color: rgba(246, 204, 128, .8); }
.voice-mini-tx small {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  color: #ab9576;
}
.voice-mini-btn {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(204, 164, 98, .3);
  background: rgba(28, 17, 10, .55);
  color: #c9b28f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  transition: transform .12s ease;
}
.voice-mini-btn.primary {
  border-color: rgba(255, 229, 170, .55);
  background: linear-gradient(180deg, #f4d896, #c58f42 64%, #9b672a);
  color: #2f1b07;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 248, 218, .45);
}
.voice-mini-btn:active { transform: scale(.95); }

/* ---------------- 我的喊话列表 ---------------- */
.voice-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 2px 7px;
}
.voice-list-head b {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #ecd3a1;
}
.voice-list-head span { font-size: 8.5px; color: #9c896d; }
.voice-list { display: flex; flex-direction: column; gap: 7px; }
.voice-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px;
  border-radius: 11px;
  background: linear-gradient(150deg, rgba(46, 29, 17, .76), rgba(20, 12, 8, .84));
  border: 1px solid rgba(192, 151, 86, .22);
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, .06);
  transition: border-color .18s ease, background .18s ease;
}
.voice-row.is-playing {
  border-color: rgba(240, 198, 116, .58);
  background:
    radial-gradient(80% 130% at 0% 50%, rgba(240, 190, 96, .16), transparent 60%),
    linear-gradient(150deg, rgba(54, 35, 20, .86), rgba(22, 13, 8, .9));
}
.voice-row-play {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 24%, #fff0c2, #e6b85e 40%, #a66d24);
  border: 1px solid rgba(255, 232, 176, .64);
  color: #3a2207;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .38);
  transition: transform .12s ease;
}
.voice-row-play .mp-icon { width: 20px; height: 20px; }
.voice-row-play:active { transform: scale(.92); }
.voice-row-tx { flex: 1 1 auto; min-width: 0; position: relative; padding-right: 52px; }
.voice-row-tx b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 700;
  color: #f3e1be;
}
.voice-row-tx b em {
  display: inline-block;
  margin-left: 3px;
  padding: 1px 4px;
  border-radius: 99px;
  background: rgba(61, 126, 255, .16);
  border: 1px solid rgba(115, 163, 247, .26);
  color: #9cc4ff;
  font-style: normal;
  font-size: 7px;
  font-weight: 700;
  vertical-align: 1px;
}
.voice-row-sub {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: #a99273;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.voice-row-wave {
  position: absolute;
  right: 0;
  top: 8px;
  width: 46px;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: .5;
  pointer-events: none;
}
.voice-row-wave i {
  width: 2px;
  height: var(--h);
  max-height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffe0a0, #c58a35);
}
.voice-row.is-playing .voice-row-wave i {
  opacity: 1;
  animation: voiceBar .8s ease-in-out infinite alternate;
}
.voice-row.is-playing .voice-row-wave i:nth-child(2n) { animation-delay: -.22s; }
.voice-row.is-playing .voice-row-wave i:nth-child(3n) { animation-delay: -.42s; }
.voice-row-del {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid transparent;
  color: #a8896a;
  transition: color .15s ease, background .15s ease;
}
.voice-row-del .mp-icon { width: 17px; height: 17px; }
.voice-row-del:active { color: #ff9c86; background: rgba(255, 107, 107, .1); }

.voice-empty {
  padding: 16px 14px 15px;
  border-radius: 12px;
  border: 1px dashed rgba(200, 158, 94, .26);
  background: rgba(34, 21, 12, .34);
  text-align: center;
}
.voice-empty[hidden] { display: none !important; }
.voice-empty-ic {
  width: 42px;
  height: 42px;
  margin: 0 auto 7px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #fbe3ad, #c69449 60%, #86551c);
  color: #3d2509;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 248, 218, .45);
}
.voice-empty-ic .mp-icon { width: 22px; height: 22px; }
.voice-empty b {
  display: block;
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 1px;
  color: #dfc697;
}
.voice-empty p {
  margin: 4px 0 0;
  font-size: 8.5px;
  line-height: 1.55;
  color: #9c896d;
}
.voice-unsupported {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 9px;
  border: 1px solid rgba(214, 168, 94, .2);
  background: rgba(91, 62, 28, .26);
  color: #bca57f;
  font-size: 8px;
  line-height: 1.5;
}
.voice-unsupported[hidden] { display: none !important; }
.voice-unsupported .mp-icon { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; color: #e2b56a; }

/* ---------------- 武将语音包 ---------------- */
.voice-pack-tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 9px 10px;
  margin-bottom: 4px;
  border-radius: 9px;
  border: 1px solid rgba(120, 166, 247, .2);
  background: rgba(43, 78, 130, .2);
  color: #a9bfdd;
  font-size: 8.5px;
  line-height: 1.55;
}
.voice-pack-tip .mp-icon { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; color: #8fc0ff; }
.voice-pack-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 11px 2px 6px;
}
.voice-pack-title b {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #ecd3a1;
}
.voice-pack-title span { font-size: 7.5px; color: #9c896d; }
.voice-pack-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  margin-bottom: 7px;
  border-radius: 11px;
  border: 1px solid rgba(192, 151, 86, .2);
  background: linear-gradient(150deg, rgba(45, 28, 16, .74), rgba(20, 12, 8, .82));
  color: #f3e1be;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, .06);
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.voice-pack-row:active { transform: scale(.988); }
.voice-pack-row.is-playing {
  border-color: rgba(139, 181, 255, .55);
  background:
    radial-gradient(80% 130% at 0% 50%, rgba(61, 126, 255, .18), transparent 60%),
    linear-gradient(150deg, rgba(37, 44, 62, .9), rgba(20, 15, 11, .9));
}
.vp-face {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid rgba(211, 170, 101, .42);
  background: linear-gradient(145deg, #5b3a1c, #1d1109);
  color: #f7e5bf;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(12, 6, 3, .36);
}
.vp-face img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}
.vp-face-line {
  background: radial-gradient(circle at 34% 26%, #d9e9ff, #709fe0 55%, #2c5286);
  color: #10233f;
}
.vp-face-line .mp-icon { width: 20px; height: 20px; }
.vp-tx { flex: 1 1 auto; min-width: 0; }
.vp-tx b {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: #f3e1be;
}
.vp-gender {
  flex: 0 0 auto;
  padding: 1px 4px;
  border-radius: 99px;
  font-style: normal;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0;
}
.vp-gender.is-male {
  color: #a9ceff;
  background: rgba(63, 114, 184, .24);
  border: 1px solid rgba(105, 160, 230, .32);
}
.vp-gender.is-female {
  color: #e8baff;
  background: rgba(164, 91, 208, .22);
  border: 1px solid rgba(190, 128, 230, .32);
}
.vp-tx small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8.5px;
  color: #b3a084;
}
.vp-play {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(213, 172, 104, .28);
  background: rgba(21, 13, 8, .55);
  color: #d8b578;
  transition: color .16s ease, box-shadow .16s ease;
}
.vp-play .mp-icon { width: 17px; height: 17px; }
.voice-pack-row.is-playing .vp-play {
  color: #d8e8ff;
  border-color: rgba(132, 178, 255, .55);
  box-shadow: 0 0 9px rgba(61, 126, 255, .5);
}
.voice-pack-row.is-playing .vp-tx b { color: #dce9ff; }

.voice-foot {
  flex: 0 0 auto;
  margin: 9px 0 0;
  padding-top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-top: 1px solid rgba(201, 160, 95, .14);
  font-size: 7.5px;
  color: #8f7c62;
  text-align: center;
}
.voice-foot .mp-icon { width: 11px; height: 11px; color: #a88a5b; }

/* ---------------- 适配 ---------------- */
@media (max-height: 740px) {
  .hv3-voice { height: 48px; margin-top: 8px; }
  .hv3-voice-mic { width: 33px; height: 33px; }
  .hv3-voice-mic .mp-icon { width: 18px; height: 18px; }
  .voice-wave { height: 34px; margin: 5px 0 3px; }
  .voice-rec-btn { width: 58px; height: 58px; }
  .voice-rec-btn .mp-icon { width: 25px; height: 25px; }
  .voice-rec-meta b { font-size: 24px; }
  .voice-head-tx p { display: none; }
  .voice-head { padding-bottom: 8px; }
}
@media (max-height: 650px) {
  .hv3-voice { height: 44px; margin-top: 7px; }
  .hv3-voice-tx b { font-size: 12px; }
  .hv3-voice-tx small { font-size: 8px; }
  .voice-sheet { max-height: 94vh; max-height: 94dvh; }
  .voice-body { margin-top: 8px; }
  .voice-rec-card { padding: 9px 10px 8px; }
  .voice-wave { height: 28px; }
  .voice-rec-btn { width: 52px; height: 52px; }
  .voice-rec-meta b { font-size: 21px; }
  .voice-demo-btn { margin-top: 6px; height: 28px; }
}
@media (max-width: 360px) {
  .hv3-voice-main { padding-right: 10px; }
  .hv3-voice-wave { display: none; }
  .voice-sheet { padding-left: 12px; padding-right: 12px; }
  .voice-tab { font-size: 9.5px; letter-spacing: .5px; }
  .voice-row-tx { padding-right: 0; }
  .voice-row-wave { display: none; }
  .voice-row { gap: 7px; }
  .voice-mini-btn { padding: 0 7px; }
  .voice-head-tx h3 { font-size: 19px; }
}

/* 触控焦点与按压反馈 */
.voice-tab:focus,
.voice-pack-row:focus,
.voice-rec-btn:focus,
.voice-mini-btn:focus,
.voice-mini-play:focus,
.voice-row-play:focus,
.voice-row-del:focus,
.voice-demo-btn:focus,
.hv3-voice-main:focus,
.hv3-voice-play:focus {
  outline: none;
}
.voice-sheet button,
.hv3-voice button {
  -webkit-tap-highlight-color: transparent;
}

/* 旧内核兼容 */
.voice-sheet { top: auto; right: 0; bottom: 0; left: 0; }
.voice-modal .modal-mask { top: 0; right: 0; bottom: 0; left: 0; }
