/* ============================================================
   统一语音输入 · 底部聆听条（第105轮）
   ============================================================ */
.v-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9200;
  display: flex; justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none; opacity: 0; transform: translateY(14px);
  transition: opacity .2s ease, transform .2s ease;
}
.v-dock.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.v-card {
  width: 100%; max-width: 460px; background: #fff; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 32, 56, .22), 0 2px 8px rgba(15, 32, 56, .08);
  border: 1px solid #E6EDF6; padding: 12px 14px 10px;
}
.v-top { display: flex; align-items: center; gap: 8px; }
.v-top b { font-size: 14.5px; color: #1F2A37; font-weight: 600; }
.v-top em { font-style: normal; font-size: 12px; color: #8C99A9; margin-left: auto; font-variant-numeric: tabular-nums; }
.v-dot { width: 9px; height: 9px; border-radius: 50%; background: #C7000B; flex: none; }
.v-dock.is-live .v-dot { animation: vPulse 1.1s infinite; }
.v-dock.is-ask .v-dot { background: #E8A400; animation: vPulse 1.4s infinite; }
.v-dock.is-err .v-dot { background: #B0BAC6; animation: none; }
@keyframes vPulse {
  0% { box-shadow: 0 0 0 0 rgba(199, 0, 11, .35); }
  70% { box-shadow: 0 0 0 9px rgba(199, 0, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(199, 0, 11, 0); }
}
.v-x {
  flex: none; width: 26px; height: 26px; border: none; border-radius: 50%;
  background: #F2F5F9; color: #6B7787; font-size: 12px; line-height: 1; cursor: pointer;
}

/* 波形 */
.v-wave { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 34px; margin: 8px 0 6px; }
.v-wave i {
  display: block; width: 4px; height: 6px; border-radius: 3px;
  background: linear-gradient(180deg, #FF5A5F, #C7000B); opacity: .35;
}
.v-dock.is-live .v-wave i { animation: vBar .8s ease-in-out infinite alternate; opacity: 1; }
.v-dock.is-err .v-wave { display: none; }
.v-dock.is-ask .v-wave i { opacity: .25; }
@keyframes vBar {
  0% { height: 5px; }
  100% { height: 30px; }
}

/* 实时字幕 */
.v-txt {
  min-height: 46px; max-height: 108px; overflow-y: auto;
  background: #F7F9FC; border: 1px solid #E9EFF7; border-radius: 10px;
  padding: 9px 11px; font-size: 14.5px; line-height: 1.6; color: #1F2A37;
  word-break: break-word; -webkit-overflow-scrolling: touch;
}
.v-txt .v-ph { color: #9AA7B6; }
.v-txt .v-mid { color: #6B7787; }
.v-errbox p { margin: 0; font-size: 13px; line-height: 1.65; color: #5A6675; }

/* 按钮 */
.v-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.v-btn {
  flex: 1; height: 42px; border-radius: 11px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; font-family: inherit;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v-btn.v-main { background: #C7000B; color: #fff; }
.v-btn.v-main:active { background: #A80009; }
.v-btn.v-ghost { background: #F2F5F9; color: #445266; flex: 0 0 29%; }
.v-btn.v-copy { flex: 1 1 100%; height: 40px; font-size: 14px; background: #F3F8FF; color: #1B62B8; border: 1px solid #CFE2F8; }
.v-tip { margin-top: 7px; font-size: 11.5px; color: #97A3B2; text-align: center; line-height: 1.5; word-break: break-all; }

@media (max-width: 720px) {
  .v-card { max-width: none; border-radius: 18px 18px 14px 14px; padding: 12px 13px 9px; }
  .v-txt { font-size: 15.5px; }
  .v-btn { height: 46px; font-size: 15.5px; }
}

/* ---------- 题库作答区「语音作答」按钮：加大点击区 ---------- */
.ans-tools .btn.voice-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px; font-size: 13.5px; font-weight: 600;
  border-color: #F0C9CB; color: #C7000B; background: #FFF7F7;
}
.ans-tools .btn.voice-btn.on {
  background: #C7000B; border-color: #C7000B; color: #fff;
  box-shadow: 0 0 0 4px rgba(199, 0, 11, .12);
}
@media (max-width: 720px) {
  .ans-tools .btn.voice-btn { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
}

/* 错误卡：重试链接 + 环境诊断小字（第108轮） */
.v-dock .v-retry { color: #C7000B; text-decoration: underline; cursor: pointer; font-weight: 600; }
.v-dock .v-diag { display: block; margin-top: 6px; font-style: normal; font-size: 11px;
  color: #9AA7B4; letter-spacing: .2px; cursor: pointer; }
