/* ============================================================================
 * public/huoke.css —— 「获客视频」前端样式（2026-10-11 · 开发员17号）
 * ----------------------------------------------------------------------------
 * 🔴 视觉语言＝站内标准（对齐同板块「探店视频」storevisit.css）：
 *    暖色调 · 橙红渐变 Hero + 白字 · 暖白卡片 · 暖棕文字 · 白底橙边 chip
 *    （初版误用深色+金色，与全站暖色浅色格格不入 ⇒ 2026-10-11 重做）
 * 🔴 全 `hoke-` 前缀（避开「黄金钩子文案」的 69 个 .hk- 类）＋ `#sub-huoke` 作用域
 * ============================================================================
 */

/* ---------- 配色变量（站内暖色系）---------- */
#sub-huoke {
  --hk-bg:        #fff5ec;
  --hk-bg-2:      #fffaf5;
  --hk-card:      #ffffff;
  --hk-card-2:    #fff5ec;
  --hk-line:      #f1d8c4;
  --hk-line-2:    #ffd2b6;
  --hk-text:      #4a2c1e;
  --hk-text-2:    #8a6e5f;
  --hk-text-3:    #b09c8c;
  --hk-main:      #f97e3a;
  --hk-main-2:    #c9472a;
  --hk-main-3:    #c9794a;
  --hk-green:     #22a06b;
  --hk-red:       #d9472a;
  --hk-shadow:    0 6px 20px rgba(201, 71, 42, 0.08);
  --hk-radius:    16px;
}

/* ---------- 卡片基底 ---------- */
#sub-huoke .hoke-card {
  background: var(--hk-card);
  border: 1px solid var(--hk-line);
  border-radius: var(--hk-radius);
  padding: 18px 18px 16px;
  margin-bottom: 12px;
  box-shadow: var(--hk-shadow);
}
#sub-huoke .hoke-card-2 { background: var(--hk-bg-2); }

/* ---------- ① Hero 顶部（橙红渐变 · 白字）---------- */
#sub-huoke .hoke-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffb070 0%, #f97e3a 45%, #d9472a 100%);
  border-radius: var(--hk-radius);
  padding: 20px 20px 18px;
  margin-bottom: 12px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(217, 71, 42, 0.18);
}
#sub-huoke .hoke-hero-glow {
  position: absolute; top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}
#sub-huoke .hoke-hero-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; flex-wrap: wrap;
}
#sub-huoke .hoke-hero-ico { font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .18)); }
#sub-huoke .hoke-hero-tag {
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
#sub-huoke .hoke-hero-t {
  font-size: 19px; font-weight: 700; color: #fff;
  margin: 8px 0 6px; line-height: 1.32;
}
#sub-huoke .hoke-hero-s {
  font-size: 13px; color: rgba(255, 255, 255, .94); line-height: 1.55;
}
#sub-huoke .hoke-hero-s b { color: #fff; font-weight: 700; }
#sub-huoke .hoke-hero-flow {
  margin-top: 12px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
#sub-huoke .hoke-hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #fff;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}
#sub-huoke .hoke-hero-chip i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px;
  background: rgba(255, 255, 255, .3); color: #fff;
  font-style: normal; font-size: 11px; font-weight: 700;
  border-radius: 50%;
}

/* ---------- ② 表单字段 ---------- */
#sub-huoke .hoke-fld { margin-bottom: 13px; }
#sub-huoke .hoke-fld:last-child { margin-bottom: 0; }
#sub-huoke .hoke-fld-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 600; color: var(--hk-text);
  margin-bottom: 6px;
  flex-wrap: wrap;
}
#sub-huoke .hoke-fld-label b { color: var(--hk-text); font-weight: 700; }
#sub-huoke .hoke-fld-label .hoke-fld-req { color: var(--hk-main-2); margin-left: 1px; }
#sub-huoke .hoke-fld-hint {
  font-size: 11.5px; color: var(--hk-text-3); font-weight: 400; margin-left: 4px;
}
#sub-huoke .hoke-input,
#sub-huoke .hoke-textarea {
  width: 100%;
  background: var(--hk-bg-2);
  border: 1.5px solid var(--hk-line);
  border-radius: 12px;
  color: var(--hk-text);
  padding: 11px 13px;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color .15s, background .15s;
  box-sizing: border-box;
}
#sub-huoke .hoke-input::placeholder,
#sub-huoke .hoke-textarea::placeholder { color: var(--hk-text-3); }
#sub-huoke .hoke-input:focus,
#sub-huoke .hoke-textarea:focus {
  outline: none;
  border-color: var(--hk-main);
  background: #fff;
}
#sub-huoke .hoke-textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
#sub-huoke .hoke-fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- ③ AI 文案区 ---------- */
#sub-huoke .hoke-copy-box {
  margin-top: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #fffaf5, #fff5ec);
  border: 1.5px dashed var(--hk-line-2);
  border-radius: 12px;
}
#sub-huoke .hoke-copy-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
#sub-huoke .hoke-copy-head .hoke-copy-title {
  font-size: 13px; font-weight: 600; color: var(--hk-main-2);
  display: inline-flex; align-items: center; gap: 6px;
}
#sub-huoke .hoke-copy-head .hoke-copy-len {
  font-size: 11.5px; color: var(--hk-text-3);
}
#sub-huoke .hoke-copy-text {
  font-size: 13.5px;
  color: var(--hk-text);
  background: #fff;
  border: 1.5px solid var(--hk-line);
  border-radius: 12px;
  padding: 12px 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 56px;
}
#sub-huoke .hoke-copy-text[contenteditable="true"]:focus {
  outline: none;
  border-color: var(--hk-main);
}
#sub-huoke .hoke-copy-actions {
  display: flex; gap: 8px; margin-top: 10px;
  flex-wrap: wrap;
}
#sub-huoke .hoke-copy-empty {
  font-size: 13px; color: var(--hk-text-3);
  text-align: center; padding: 14px 0;
}

/* ---------- ④ 按钮 ---------- */
#sub-huoke .hoke-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  font-size: 13.5px; font-family: inherit; font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--hk-line);
  background: #fff;
  color: var(--hk-text-2);
  cursor: pointer;
  transition: all .15s;
}
#sub-huoke .hoke-btn:hover { border-color: var(--hk-main); background: var(--hk-bg); }
#sub-huoke .hoke-btn:disabled { opacity: .5; cursor: not-allowed; }
#sub-huoke .hoke-btn-primary {
  background: linear-gradient(135deg, #ffb070 0%, #f97e3a 45%, #d9472a 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(217, 71, 42, .22);
}
#sub-huoke .hoke-btn-primary:hover { filter: brightness(1.05); }
#sub-huoke .hoke-btn-ghost {
  background: transparent;
  border: 1.5px solid var(--hk-line);
  color: var(--hk-text-2);
  font-size: 12.5px;
  padding: 8px 12px;
  font-weight: 400;
}

/* ---------- ⑤ 上传图片区（多图）---------- */
#sub-huoke .hoke-imgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
#sub-huoke .hoke-img-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1.5px dashed var(--hk-line-2);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf5, #fff5ec);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  font-size: 12px; color: var(--hk-text-3);
  transition: all .15s;
}
#sub-huoke .hoke-img-slot:hover {
  border-color: var(--hk-main);
  background: #fff1e3;
}
#sub-huoke .hoke-img-slot.is-cover {
  border: 2px solid var(--hk-main);
  box-shadow: 0 0 0 3px rgba(249, 126, 58, .16);
}
#sub-huoke .hoke-img-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
#sub-huoke .hoke-img-rm {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(0, 0, 0, .55);
  border: none;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
#sub-huoke .hoke-img-cover {
  position: absolute; bottom: 4px; left: 4px;
  background: rgba(217, 71, 42, .92);
  color: #fff;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}
#sub-huoke .hoke-img-add { cursor: pointer; }
#sub-huoke .hoke-img-add-ico { font-size: 22px; color: var(--hk-main); line-height: 1; }
#sub-huoke .hoke-img-file { display: none; }
#sub-huoke .hoke-img-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 9px; font-size: 11.5px; color: var(--hk-text-3);
}
#sub-huoke .hoke-img-meta-r { color: var(--hk-main-2); font-weight: 700; }

/* ---------- ⑥ 选项（比例 + 时长）---------- */
#sub-huoke .hoke-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
#sub-huoke .hoke-chip {
  display: inline-flex; flex-direction: column; align-items: center;
  font-size: 12.5px; line-height: 1.15;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--hk-line);
  background: #fff;
  color: var(--hk-text-2);
  cursor: pointer;
  user-select: none;
  min-width: 62px;
  transition: all .12s;
}
#sub-huoke .hoke-chip:hover { border-color: var(--hk-main); background: var(--hk-bg); }
#sub-huoke .hoke-chip.on {
  background: #ffe7d2;
  border-color: var(--hk-main);
  color: var(--hk-main-2);
}
#sub-huoke .hoke-chip-k { font-size: 13px; font-weight: 700; }
#sub-huoke .hoke-chip-d { color: var(--hk-main-3); font-size: 10.5px; margin-top: 2px; }

/* ---------- ⑦ 价格 + 生成按钮 ---------- */
#sub-huoke .hoke-run-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fffaf5, #fff5ec);
  border: 1.5px solid var(--hk-line-2);
  border-radius: 14px;
  margin-bottom: 12px;
}
#sub-huoke .hoke-run-cost {
  font-size: 13px; color: var(--hk-text-2);
}
#sub-huoke .hoke-run-cost b {
  color: var(--hk-main-2);
  font-size: 17px;
  font-weight: 800;
  margin-left: 4px;
}
#sub-huoke .hoke-run-cost small { color: var(--hk-text-3); font-size: 11.5px; }
#sub-huoke .hoke-run-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700;
  padding: 12px 24px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ffb070 0%, #f97e3a 45%, #d9472a 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(217, 71, 42, .25);
  transition: all .15s;
}
#sub-huoke .hoke-run-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
#sub-huoke .hoke-run-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- ⑧ 进度卡 ---------- */
#sub-huoke .hoke-prog {
  margin-bottom: 12px;
  padding: 14px 16px;
  background: var(--hk-card);
  border: 1px solid var(--hk-line);
  border-radius: var(--hk-radius);
  box-shadow: var(--hk-shadow);
}
#sub-huoke .hoke-prog-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--hk-text);
}
#sub-huoke .hoke-prog-pct {
  color: var(--hk-main-2); font-weight: 800;
}
#sub-huoke .hoke-barwrap {
  height: 8px; background: #ffe7d2;
  border-radius: 999px; overflow: hidden;
}
#sub-huoke .hoke-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffb070, #d9472a);
  width: 0%;
  transition: width .3s;
  border-radius: 999px;
}
#sub-huoke .hoke-prog-s {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--hk-text-3);
}

/* ---------- ⑨ 视频结果卡 ---------- */
#sub-huoke .hoke-res {
  background: var(--hk-card);
  border: 1.5px solid rgba(34, 160, 107, .3);
  border-radius: var(--hk-radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(34, 160, 107, .1);
}
#sub-huoke .hoke-res video {
  width: 100%;
  border-radius: 12px;
  background: #000;
  display: block;
}
#sub-huoke .hoke-res-actions {
  display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
#sub-huoke .hoke-res-meta {
  font-size: 11.5px; color: var(--hk-text-3);
  margin-top: 10px; line-height: 1.55;
}
#sub-huoke .hoke-res-meta b { color: var(--hk-text-2); font-weight: 600; }

/* ---------- ⑩ 错误 / 警告 ---------- */
#sub-huoke .hoke-warn {
  margin-top: 10px;
  padding: 11px 13px;
  background: rgba(217, 71, 42, .06);
  border: 1.5px solid rgba(217, 71, 42, .25);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--hk-main-2);
  line-height: 1.55;
}

/* ---------- ⑪ 底部说明 ---------- */
#sub-huoke .hoke-notice {
  text-align: center;
  font-size: 11.5px;
  color: var(--hk-text-3);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hk-line);
}

/* ---------- ⑫ Toast ---------- */
.hoke-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: rgba(74, 44, 30, .94);
  color: #fff;
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  z-index: 9999;
  animation: hokeToastIn .2s ease-out;
}
@keyframes hokeToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- ⑬ 移动端适配 ---------- */
@media (max-width: 640px) {
  #sub-huoke .hoke-fld-row { grid-template-columns: 1fr; }
  #sub-huoke .hoke-hero-t { font-size: 17px; }
  #sub-huoke .hoke-imgs { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  #sub-huoke .hoke-run-box { flex-direction: column; align-items: stretch; }
  #sub-huoke .hoke-run-btn { width: 100%; }
}
