/* fun_asr 简朴风格（对标 gas_ocr 形态） */
* { box-sizing: border-box; }
body {
  margin: 0; font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #f4f6f8; color: #24292f; font-size: 15px;
}
a { color: #0969da; text-decoration: none; }

.nav {
  background: #1f2937; color: #fff; padding: 0 24px;
  display: flex; align-items: center; gap: 24px; height: 52px;
}
.nav .brand { font-weight: bold; font-size: 17px; color: #fff; }
.nav a { color: #cbd5e1; padding: 4px 2px; }
.nav a.active, .nav a:hover { color: #fff; border-bottom: 2px solid #58a6ff; }

.container { max-width: 1000px; margin: 24px auto; padding: 0 16px; }

.card {
  background: #fff; border: 1px solid #d0d7de; border-radius: 8px;
  padding: 20px; margin-bottom: 16px;
}
.card h2 { margin: 0 0 12px; font-size: 17px; }
.hint { color: #57606a; font-size: 13px; }

button {
  font-family: inherit; font-size: 14px; padding: 8px 18px;
  border: 1px solid #d0d7de; border-radius: 6px; background: #f6f8fa;
  cursor: pointer; color: #24292f;
}
button:hover:not(:disabled) { background: #eef1f4; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.primary { background: #1f6feb; border-color: #1f6feb; color: #fff; }
button.primary:hover:not(:disabled) { background: #1a5fd0; }
button.danger { color: #cf222e; }
button.big { font-size: 17px; padding: 14px 42px; }
button.recording { background: #cf222e; border-color: #cf222e; color: #fff; }

input[type=text], select {
  font-family: inherit; font-size: 14px; padding: 7px 10px;
  border: 1px solid #d0d7de; border-radius: 6px; background: #fff;
}

.status-ok { color: #1a7f37; }
.status-bad { color: #cf222e; }
.status-warn { color: #9a6700; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 12px; background: #ddf4ff; color: #0969da;
}
.badge.done { background: #dafbe1; color: #1a7f37; }
.badge.error { background: #ffebe9; color: #cf222e; }
.badge.running { background: #fff8c5; color: #9a6700; }

/* 实时转写 */
.live-box {
  min-height: 220px; max-height: 420px; overflow-y: auto;
  border: 1px solid #d0d7de; border-radius: 8px; padding: 16px;
  background: #fff; line-height: 1.9; font-size: 17px;
}
.live-box .final { color: #24292f; }
.live-box .partial { color: #8b949e; }

/* 文件转写 */
.dropzone {
  border: 2px dashed #a5b4c5; border-radius: 8px; padding: 36px;
  text-align: center; color: #57606a; background: #fbfcfd; cursor: pointer;
}
.dropzone.drag { border-color: #1f6feb; background: #f0f7ff; }
.task-card { border: 1px solid #d0d7de; border-radius: 8px; padding: 14px; margin-top: 12px; background: #fff; }
.task-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.progress { height: 8px; background: #eaeef2; border-radius: 4px; overflow: hidden; margin: 10px 0; }
.progress > div { height: 100%; background: #1f6feb; width: 0; transition: width .4s; }
.segments { margin: 8px 0; max-height: 300px; overflow-y: auto; }
.segments table { width: 100%; border-collapse: collapse; font-size: 14px; }
.segments td { padding: 6px 8px; border-bottom: 1px solid #eaeef2; vertical-align: top; }
.segments td.time { color: #57606a; white-space: nowrap; cursor: pointer; font-family: Consolas, monospace; }
.segments td.time:hover { color: #0969da; }

/* 历史 */
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { padding: 9px 10px; border-bottom: 1px solid #eaeef2; text-align: left; }
table.list th { background: #f6f8fa; color: #57606a; font-weight: 600; }
table.list tr:hover td { background: #f6f8fa; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; }

pre.detail { white-space: pre-wrap; background: #f6f8fa; padding: 14px; border-radius: 8px; font-family: inherit; }
audio { width: 100%; margin-top: 8px; }

/* 小按钮（历史/导出操作列，一行摆放） */
button.mini, a.mini {
  display: inline-block; padding: 3px 10px; font-size: 12px;
  border: 1px solid #d0d7de; border-radius: 5px;
  background: #f6f8fa; color: #24292f; text-decoration: none;
  line-height: 1.6; cursor: pointer;
}
button.mini:hover:not(:disabled), a.mini:hover { background: #eef1f4; color: #24292f; }
button.mini.danger, a.mini.danger { color: #cf222e; }
td.ops, .ops { white-space: nowrap; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #24292f; color: #fff; padding: 10px 20px; border-radius: 6px;
  font-size: 14px; display: none; z-index: 99;
}
