/**
 * 搜索栏 / 表单 — 图搜、语音图标（商务线性风格，全站共用）
 */
.vt-search-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: .56rem;
  height: .56rem;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  vertical-align: middle;
  transition: background-color .15s ease;
}
.vt-search-icon-btn:active {
  background: rgba(0, 0, 0, .06);
}
.vt-search-icon-btn.is-recording {
  background: rgba(255, 52, 81, .1);
}
.vt-search-icon-btn.is-busy {
  opacity: .5;
  pointer-events: none;
}

.vt-search-icon {
  display: block;
  width: .34rem;
  height: .34rem;
  background-color: #8c8c8c;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.vt-search-icon--mic {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 14a3 3 0 0 0 3-3V7a3 3 0 1 0-6 0v4a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V21h2v-3.08A7 7 0 0 0 19 11h-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 14a3 3 0 0 0 3-3V7a3 3 0 1 0-6 0v4a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V21h2v-3.08A7 7 0 0 0 19 11h-2z'/%3E%3C/svg%3E");
}
.vt-search-icon--camera {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 4L7.17 6H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-3.17L15 4H9zm3 14.5a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 4L7.17 6H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-3.17L15 4H9zm3 14.5a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E");
}

.vt-search-icon-btn.is-recording .vt-search-icon--mic,
.vt-search-icon-btn.is-recording .vt-search-icon {
  background-color: #ff3451;
}
.vt-search-icon-btn:hover .vt-search-icon {
  background-color: #666;
}

/* 快速发布表单内语音按钮 */
.qp-voice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qp-voice-btn .vt-search-icon {
  width: 20px;
  height: 20px;
}
.qp-field-voice .qp-voice-btn.is-recording .vt-search-icon--mic {
  background-color: #fff;
}
.qp-voice-btn.is-recording .vt-search-icon--mic {
  background-color: #ff3451;
}

/* 语音不可用 — 友好提示层 */
.vt-voice-tip {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: .4rem;
}
.vt-voice-tip.show {
  display: flex;
}
.vt-voice-tip-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}
.vt-voice-tip-card {
  position: relative;
  width: 100%;
  max-width: 5.6rem;
  background: #fff;
  border-radius: .24rem;
  padding: .48rem .4rem .36rem;
  text-align: center;
  box-shadow: 0 .16rem .48rem rgba(0, 0, 0, .16);
}
.vt-voice-tip-icon {
  width: .96rem;
  height: .96rem;
  margin: 0 auto .24rem;
  border-radius: 50%;
  background: #f5f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vt-voice-tip-icon .vt-search-icon {
  width: .44rem;
  height: .44rem;
  background-color: #999;
}
.vt-voice-tip-title {
  margin: 0 0 .16rem;
  font-size: .34rem;
  font-weight: 600;
  color: #222;
}
.vt-voice-tip-msg {
  margin: 0 0 .32rem;
  font-size: .28rem;
  line-height: 1.5;
  color: #666;
}
.vt-voice-tip-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: .12rem;
  padding: .22rem 0;
  font-size: .3rem;
  color: #fff;
  background: linear-gradient(180deg, #ff5a72 0%, #ff3451 100%);
  cursor: pointer;
}

/* 录音/识别过程轻提示 */
.vt-voice-toast-bar {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%) translateY(1rem);
  max-width: 86%;
  padding: .2rem .36rem;
  border-radius: .12rem;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: .28rem;
  line-height: 1.4;
  text-align: center;
  z-index: 10040;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.vt-voice-toast-bar.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
