/* ===========================================================
 *  录音文件转写组件样式（asr.css）
 * =========================================================== */
.asr-box {
  margin-top: 8px;
  border: 1px solid #D8E3F6;
  background: linear-gradient(180deg, #F7FAFF, #F2F7FF);
  border-radius: 10px;
  padding: 10px 12px 12px;
}
.asr-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.asr-top .grow { flex: 1; }
.asr-t { font-size: 13px; font-weight: 700; color: #1E3A8A; }
.asr-mode {
  font-size: 11.5px; line-height: 1; padding: 4px 7px; border-radius: 20px;
  background: #EEF2F7; color: #64748B; white-space: nowrap;
}
.asr-mode.ok { background: #E7F7F1; color: #0E9F6E; }
.asr-mode.demo { background: #FEF3E2; color: #B45309; }
.asr-x {
  font-size: 12px; color: #64748B; padding: 3px 6px; border-radius: 6px;
}
.asr-x:hover { background: #E8EFFC; color: #1D4ED8; }

.asr-drop {
  border: 1.5px dashed #B9CCE9; border-radius: 9px; background: #fff;
  padding: 14px 12px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.asr-drop:hover, .asr-drop.over { border-color: #2563EB; background: #F5F9FF; }
.asr-drop-main { font-size: 13px; color: #334155; }
.asr-drop-main b { color: #1D4ED8; }
.asr-drop-main span { color: #64748B; }
.asr-drop-sub { font-size: 11.5px; color: #94A3B8; margin-top: 4px; }

.asr-list { margin-top: 8px; }
.asr-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 9px;
  background: #fff; border: 1px solid #E6EDF9; border-radius: 8px; margin-top: 6px;
}
.asr-item.ok { border-color: #CDEBDD; background: #FBFEFC; }
.asr-item.err { border-color: #F5D3D3; background: #FFFBFB; }
.asr-ico { font-size: 16px; opacity: .8; }
.asr-item .grow { flex: 1; min-width: 0; }
.asr-name { font-size: 12.5px; color: #0F172A; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asr-sub { font-size: 11.5px; color: #6B7A90; margin-top: 1px; }
.asr-bar { height: 3px; background: #E8EEF8; border-radius: 3px; overflow: hidden; margin-top: 5px; }
.asr-bar > i { display: block; height: 100%; width: 0; background: #2563EB; border-radius: 3px; transition: width .25s; }
.asr-bar.flow > i { width: 40% !important; animation: asrflow 1.1s ease-in-out infinite; }
@keyframes asrflow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
.asr-st { flex: 0 0 auto; font-size: 12px; color: #94A3B8; }
.asr-ok { color: #0E9F6E; font-weight: 700; }
.asr-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #CBD5E1; animation: asrblink 1s infinite;
}
@keyframes asrblink { 50% { opacity: .25; } }
.asr-retry {
  font-size: 11.5px; color: #DC2626; border: 1px solid #F3C7C7; border-radius: 6px;
  padding: 2px 7px; background: #fff;
}
.asr-retry:hover { background: #FEF2F2; }

.asr-tail {
  margin-top: 9px; padding-top: 9px; border-top: 1px dashed #D6E3F5;
}
.asr-ok-row { font-size: 12.5px; color: #0E9F6E; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.asr-flag {
  font-size: 11px; padding: 2px 6px; border-radius: 20px; background: #FEF3E2; color: #B45309;
}
.asr-link { font-size: 12px; color: #2563EB; text-decoration: underline; text-underline-offset: 2px; }
.asr-pre {
  margin-top: 8px; max-height: 190px; overflow: auto; white-space: pre-wrap;
  font-size: 12px; line-height: 1.7; color: #334155; background: #fff;
  border: 1px solid #E6EDF9; border-radius: 8px; padding: 9px 10px;
}
.asr-tip { font-size: 11.5px; color: #7C8CA5; line-height: 1.7; margin-top: 8px; }

/* 表单里的入口按钮：跟在标签后面，不占一整行 */
.asr-entry {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 500; color: #1D4ED8;
  background: #EDF3FF; border: 1px solid #D3E0FB; border-radius: 20px;
  padding: 2px 8px; margin-left: 6px; vertical-align: middle;
}
.asr-entry:hover { background: #E0EBFF; }

@media (max-width: 640px) {
  .asr-drop { padding: 12px 8px; }
  .asr-drop-sub { font-size: 11px; }
  .asr-pre { max-height: 150px; }
}
