/* ============================================================================
   口播数字人（Avatar Clone）· 子页样式（2026-10-11）
   ----------------------------------------------------------------------------
   🔴 类名全部以 `.acl-` 前缀作用域；新类名全局唯一（FEATURES「CSS 一律带作用域」）。
   排版参考 videohd/clothget 子页：左列素材 + 右列分步操作 + 底部 CTA。
   强调色：紫红 #C0387E（保留主品牌紫红基调，与 clothget 的 magenta 互补）
   ========================================================================== */

/* ---------------- 区块 ---------------- */
.acl-root { padding: 16px 0 80px; }
.acl-flow { display: flex; gap: 16px; align-items: flex-start; }
.acl-col { flex: 1 1 0; min-width: 0; }
.acl-col-l { max-width: 420px; }
.acl-col-r { flex: 2 1 0; }

/* 移动端：上下堆叠 */
@media (max-width: 720px) {
  .acl-flow { flex-direction: column; }
  .acl-col-l { max-width: 100%; }
}

/* ---------------- 卡片 ---------------- */
.acl-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 14px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.acl-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.acl-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #C0387E, #E85DA8);
  color: #fff; font-weight: 700; font-size: 13px;
}
.acl-hd b { font-size: 16px; }
.acl-tag {
  font-size: 12px; padding: 2px 7px; border-radius: 10px;
  background: rgba(192,56,126,.1); color: #C0387E;
}
.acl-hint {
  color: #666; font-size: 13px; line-height: 1.6;
  background: #f8f8f8; padding: 8px 10px; border-radius: 6px; margin-bottom: 10px;
}
.acl-hint b { color: #333; }
.acl-hint-mute { background: rgba(255,193,7,.08); color: #856404; }

/* ---------------- 视频上传 ---------------- */
.acl-drop {
  border: 2px dashed #d0d0d0;
  border-radius: 10px; padding: 32px 14px;
  text-align: center; cursor: pointer; user-select: none;
  transition: all .15s;
}
.acl-drop:hover { border-color: #C0387E; background: rgba(192,56,126,.04); }
.acl-drop-ico { display: block; font-size: 40px; margin-bottom: 8px; }
.acl-drop-tx b { display: block; font-size: 15px; }
.acl-drop-tx span { color: #888; font-size: 13px; }

.acl-ref-preview {
  border: 1px solid #eee; border-radius: 8px; padding: 10px; background: #fafafa;
}
#aclRefVd { width: 100%; max-height: 240px; border-radius: 6px; background: #000; }
.acl-ref-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 13px; color: #666; }

/* ---------------- 文案 + 改写 ---------------- */
.acl-textarea, .acl-input {
  width: 100%; box-sizing: border-box;
  border: 1px solid #e0e0e0; border-radius: 8px;
  padding: 10px 12px; font-size: 14px; line-height: 1.6;
  font-family: inherit; resize: vertical;
}
.acl-textarea { min-height: 110px; }
.acl-textarea:focus, .acl-input:focus { border-color: #C0387E; outline: none; }
.acl-counter { font-size: 12px; color: #999; text-align: right; margin-top: -4px; margin-bottom: 6px; }
.acl-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: #C0387E; font-size: 13px; text-decoration: underline;
}
.acl-link.acl-danger { color: #d35454; }
.acl-rew { margin-top: 10px; padding: 10px; background: #fff8f3; border-radius: 8px; }
.acl-rew-act { margin-top: 8px; display: flex; justify-content: flex-end; gap: 8px; }

/* ---------------- 分段 ---------------- */
.acl-segs { display: flex; flex-direction: column; gap: 10px; }
.acl-seg {
  border: 1px solid #eee; border-radius: 10px; padding: 10px 12px; background: #fafafa;
}
.acl-seg-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 13px; }
.acl-seg-no { color: #C0387E; font-weight: 700; }
.acl-seg-sec { color: #888; }
.acl-seg-line { min-height: 60px; font-size: 13px; }
.acl-seg-tone { font-size: 12px; color: #777; display: flex; align-items: center; gap: 6px; }
.acl-seg-tone-in { font-size: 12px; padding: 4px 8px; height: auto; min-height: 0; }

/* ---------------- 底部按钮栏 ---------------- */
.acl-bar {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(0deg, #fff, #fff7fa);
  padding: 12px 14px; margin-top: 20px;
  border-top: 1px solid #f0d6e6;
  border-radius: 12px;
  box-shadow: 0 -2px 8px rgba(192,56,126,.05);
}
.acl-bar-info { font-size: 14px; }
.acl-bar-info b { color: #C0387E; font-size: 18px; }
.acl-quote-eq { color: #ccc; padding: 0 8px; }

/* ---------------- 按钮 ---------------- */
.acl-btn {
  border: none; border-radius: 8px; padding: 9px 18px;
  font-size: 14px; cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.acl-btn-primary { background: #C0387E; color: #fff; }
.acl-btn-primary:hover { background: #A52D6A; }
.acl-btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.acl-btn-ghost { background: #eee; color: #333; }
.acl-btn-ghost:hover { background: #e0e0e0; }
.acl-btn-go { font-size: 16px; padding: 11px 26px; font-weight: 600; }

/* ---------------- 结果区 ---------------- */
.acl-result { margin-top: 16px; }
.acl-state { text-align: center; padding: 20px; color: #666; font-size: 14px; }
.acl-state.acl-err { color: #d35454; }
.acl-state.acl-ok { color: #28a745; font-weight: 600; }
.acl-out {
  border: 1px solid #eee; border-radius: 10px; padding: 12px; margin-bottom: 12px;
  background: #fafafa;
}
.acl-out-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; }
.acl-out video { width: 100%; border-radius: 6px; background: #000; max-height: 360px; }
.acl-out-line { margin-top: 8px; font-size: 13px; color: #555; line-height: 1.5; }

/* ============================================================================
   2026-10-11 二次改版（算力超市链路）新增：右上角生成历史 / 读秒 / 音色提示
   ----------------------------------------------------------------------------
   🔴 老板规矩：本界面**不出现任何计价字样**（豆 / ¥ 都不许写）。
   ========================================================================== */

/* 文案卡（只是语义标签，样式沿用 .acl-card） */
.acl-text { }

/* 音色已采集提示条 */
.acl-voice {
  margin-top: 10px; padding: 9px 11px; border-radius: 8px;
  background: rgba(40,167,69,.08); color: #1e7e34; font-size: 13px; line-height: 1.6;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.acl-voice .acl-link { color: #1e7e34; }
.acl-voice-btn { flex: 0 0 auto; white-space: nowrap; }

/* 生成历史面板**不在本文件里** —— 全站统一由 public/fhist.js 提供样式（fhist.css）。
   本文件只负责功能页自己的按钮/卡片，别再自建历史浮层。 */

/* ---------------- 读秒 / 进行中 ---------------- */
.acl-run {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid #f0d6e6; background: #fffafc; border-radius: 12px;
  padding: 18px 16px; margin-top: 16px;
}
.acl-run-spin {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(192,56,126,.18); border-top-color: #C0387E;
  animation: acl-spin .9s linear infinite;
}
@keyframes acl-spin { to { transform: rotate(360deg); } }
.acl-run-tx { display: flex; flex-direction: column; gap: 4px; }
.acl-run-tx b { font-size: 15px; color: #333; }
.acl-run-tx span { font-size: 13px; color: #888; }
.acl-run-tx em { font-style: normal; color: #C0387E; font-weight: 700; }
.acl-run-err { border-color: #f3d6d6; background: #fff8f8; }
.acl-run-err .acl-run-tx b { color: #d35454; }

/* ---------------- 结果 ---------------- */
.acl-done-hd { font-size: 15px; font-weight: 700; color: #1e7e34; margin: 14px 0 8px; }
.acl-out-act { display: flex; justify-content: flex-end; margin-top: 10px; }
.acl-out-act .acl-btn { text-decoration: none; display: inline-block; }
