/* ============================================================================
   产品带货视频 · 样式
   ----------------------------------------------------------------------------
   独立文件，**在 style.css 之后加载**（项目铁律：不往公共 style.css 加规则，
   免得和别人的改动互相覆盖）。
   类名一律 vhot- 前缀（全局唯一，避免撞车）。

   视觉基调对齐站内：品牌橙渐变 + 暖白底 + 大圆角 + 同色系柔影。
   ⚠️ 三条踩过的纪律：
     · 图标底/按钮一律**品牌橙渐变实底 + 白字**（淡底+同色淡图会显脏、显 low）
     · 卡片含装饰物时容器必须 position: relative（否则绝对定位会撑宽文档、手机端整页缩水）
     · 子页底部留 ≥74px（底部 TabBar 是 fixed 的，会盖住最后一行）
   ========================================================================== */

#sub-videohot { padding-bottom: 86px; }

.vhot-head { padding: 2px 2px 14px; }
.vhot-h1 { font-size: 21px; font-weight: 800; color: var(--text, #3a2a1e); letter-spacing: .3px; }
.vhot-h2 { margin-top: 6px; font-size: 12.5px; line-height: 1.65; color: var(--text2, #8b8178); }

/* ---------------------------------------------------------------- 分区 */
.vhot-sec {
  position: relative;                 /* 见文件头纪律② */
  margin: 0 0 12px; padding: 14px 14px 15px;
  background: var(--card, #fff); border: 1px solid #f5ece3; border-radius: 17px;
  box-shadow: 0 8px 20px -18px rgba(249, 89, 1, .55);
}
.vhot-sec-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 750; color: var(--text, #3a2a1e);
}
.vhot-no {
  flex: 0 0 auto; width: 21px; height: 21px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(140deg, #ffa95c 0%, #f95901 100%);
  box-shadow: 0 3px 8px -4px rgba(249, 89, 1, .8);
}
.vhot-req {
  margin-left: auto; font-size: 11px; font-weight: 600;
  color: #d97706; background: #fff7ed; border: 1px solid #fed7aa;
  padding: 2px 8px; border-radius: 999px;
}
.vhot-tip { margin: 7px 0 11px; font-size: 11.5px; line-height: 1.68; color: var(--text2, #8b8178); }
.vhot-tip b { color: #b45309; }

/* ---------------------------------------------------------------- 产品图 */
.vhot-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 10px; }
.vhot-imgs:empty { display: none; }
.vhot-img {
  position: relative; padding-top: 100%; border-radius: 13px; overflow: hidden;
  border: 2px solid #eee4da; background: #faf7f4; cursor: pointer;
}
.vhot-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vhot-img.on { border-color: #f95901; box-shadow: 0 0 0 3px rgba(249, 89, 1, .14); }
.vhot-img-badge, .vhot-img-pick {
  position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
}
.vhot-img-badge { color: #fff; background: linear-gradient(140deg, #ffa95c, #f95901); }
.vhot-img-pick { color: #7c6a5c; background: rgba(255, 255, 255, .9); }
.vhot-img-x {
  position: absolute; right: 4px; top: 4px; width: 21px; height: 21px; border: 0;
  border-radius: 50%; background: rgba(0, 0, 0, .48); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer;
}
.vhot-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 104px; padding: 14px; cursor: pointer;
  border: 1.5px dashed #f0dcc9; border-radius: 14px; background: #fffdfb;
  transition: border-color .15s, background .15s;
}
.vhot-drop.over, .vhot-drop:active { border-color: #f95901; background: #fff8f2; }
.vhot-drop-ico { font-size: 26px; }
.vhot-drop-t { margin-top: 6px; font-size: 13.5px; font-weight: 650; color: #d1490a; }
.vhot-drop-d { margin-top: 3px; font-size: 11px; color: var(--text2, #8b8178); }
.vhot-drop[hidden] { display: none !important; }

/* ---------------------------------------------------------------- 卖点 */
.vhot-ta {
  width: 100%; box-sizing: border-box; min-height: 104px; resize: vertical;
  padding: 11px 12px; font-family: inherit; font-size: 13.5px; line-height: 1.7;
  border: 1px solid #efe4da; border-radius: 13px; background: #fcfcfd; color: var(--text, #3a2a1e);
}
.vhot-ta:focus { outline: none; border-color: #f95901; background: #fff; }
.vhot-count { margin-top: 5px; text-align: right; font-size: 11px; color: #c9bfb5; }

/* ---------------------------------------------------------------- 类型卡 */
.vhot-types { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.vhot-type {
  position: relative; display: flex; align-items: flex-start; gap: 8px; text-align: left;
  padding: 11px 10px; min-height: 68px; box-sizing: border-box; cursor: pointer;
  border: 1.5px solid #f0e7de; border-radius: 14px; background: #fff;
  transition: border-color .14s, background .14s, box-shadow .14s;
}
.vhot-type.on { border-color: #f95901; background: #fff7f1; box-shadow: 0 0 0 3px rgba(249, 89, 1, .1); }
.vhot-type-e { flex: 0 0 auto; font-size: 19px; line-height: 1.2; }
.vhot-type-b { flex: 1; min-width: 0; }
.vhot-type-b b { display: block; font-size: 13px; font-weight: 700; color: var(--text, #3a2a1e); }
.vhot-type-b i { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.5; font-style: normal; color: var(--text2, #8b8178); }
.vhot-type-tick {
  position: absolute; right: 8px; top: 8px; width: 17px; height: 17px; border-radius: 50%;
  font-size: 11px; line-height: 17px; text-align: center; color: #fff; background: #e6ddd4;
}
.vhot-type.on .vhot-type-tick { background: linear-gradient(140deg, #ffa95c, #f95901); }

/* ---------------------------------------------------------------- 胶囊 */
.vhot-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.vhot-chips:last-child { margin-bottom: 0; }
.vhot-chip {
  padding: 7px 12px; border: 1.5px solid #f0e7de; border-radius: 11px; background: #fff;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: #6b5f56; cursor: pointer;
  transition: border-color .14s, background .14s, color .14s;
}
.vhot-chip i { display: block; margin-top: 2px; font-size: 10px; font-style: normal; color: #b3a79c; }
.vhot-chip.on { border-color: #f95901; background: #fff7f1; color: #d1490a; }

/* ---------------------------------------------------------------- 动作 */
.vhot-act { margin: 4px 0 14px; }
.vhot-go {
  display: block; width: 100%; min-height: 50px; border: 0; border-radius: 15px;
  font-family: inherit; font-size: 15.5px; font-weight: 750; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #ff9f4d, #f95901);
  box-shadow: 0 6px 18px -8px rgba(249, 89, 1, .85);
}
.vhot-go[disabled] { opacity: .45; box-shadow: none; cursor: not-allowed; }
.vhot-go2 { margin-top: 9px; background: linear-gradient(135deg, #4ade80, #16a34a); box-shadow: 0 6px 18px -8px rgba(22, 163, 74, .8); }
.vhot-why { margin-top: 8px; text-align: center; font-size: 11.5px; color: var(--text2, #8b8178); }
.vhot-busy {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; font-size: 13.5px; font-weight: 650; color: #d1490a;
  background: #fff7f1; border: 1px solid #ffe2cd; border-radius: 15px;
}
.vhot-spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #ffd9bd; border-top-color: #f95901; animation: vhotSpin .8s linear infinite;
}
@keyframes vhotSpin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- 脚本卡 */
.vhot-card {
  margin: 0 0 10px; padding: 12px 13px; border: 1px solid #f2e9e0;
  border-radius: 15px; background: #fff;
}
.vhot-card--v { margin-bottom: 12px; }
.vhot-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.vhot-card-t { font-size: 14px; font-weight: 750; color: var(--text, #3a2a1e); }
.vhot-mini {
  margin-left: auto; padding: 5px 11px; border: 1px solid #f0dcc9; border-radius: 9px;
  background: #fffaf5; font-family: inherit; font-size: 11.5px; font-weight: 650;
  color: #d1490a; cursor: pointer;
}
.vhot-kv { margin-bottom: 8px; }
.vhot-kv:last-child { margin-bottom: 0; }
.vhot-kv b {
  display: block; margin-bottom: 3px; font-size: 11px; font-weight: 700;
  color: #b3a79c; letter-spacing: .4px;
}
.vhot-kv p { margin: 0; font-size: 12.5px; line-height: 1.72; color: #55493f; word-break: break-word; }
.vhot-kv .vhot-tags { color: #d1490a; font-weight: 600; }
.vhot-risk {
  margin-top: 9px; padding: 9px 11px; font-size: 11.5px; line-height: 1.66;
  color: #92400e; background: #fffbeb; border: 1px solid #fde68a;
  border-left: 3px solid #d97706; border-radius: 10px;
}
.vhot-risk b { color: #b45309; }

/* ---------------------------------------------------------------- 等待 */
.vhot-wait { margin-bottom: 11px; }
.vhot-wait-bar {
  height: 7px; border-radius: 999px; background: #f4ece5; overflow: hidden;
}
.vhot-wait-bar i {
  display: block; height: 100%; width: 4%; border-radius: 999px;
  background: linear-gradient(90deg, #ffb877, #f95901); transition: width .5s ease;
}
.vhot-wait-t { margin-top: 7px; font-size: 11.5px; color: var(--text2, #8b8178); }

/* ---------------------------------------------------------------- 成片 */
.vhot-state { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.vhot-state.ok { color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; }
.vhot-state.run { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; }
.vhot-state.bad { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.vhot-video { width: 100%; border-radius: 13px; background: #000; display: block; }
.vhot-vact { display: flex; gap: 9px; margin-top: 10px; }
.vhot-dl, .vhot-copy {
  flex: 1; min-height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-family: inherit; font-size: 13px; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.vhot-dl { color: #fff; background: linear-gradient(135deg, #ff9f4d, #f95901); border: 0; }
.vhot-copy { color: #d1490a; background: #fff7f1; border: 1px solid #ffe2cd; }
.vhot-pub { margin-top: 10px; padding: 11px 12px; background: #fcfaf8; border: 1px dashed #eadfd4; border-radius: 12px; }
.vhot-pub-h { font-size: 11px; font-weight: 700; color: #b3a79c; margin-bottom: 6px; }
.vhot-pub pre {
  margin: 0; font-family: inherit; font-size: 12.5px; line-height: 1.75;
  color: #55493f; white-space: pre-wrap; word-break: break-word;
}
.vhot-err {
  padding: 11px 12px; font-size: 12.5px; line-height: 1.65;
  color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 11px;
}
.vhot-err--run { color: #7c6a5c; background: #faf7f4; border-color: #eee4da; }

/* ---------------------------------------------------------------- 历史 */
.vhot-his-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.vhot-his-i { position: relative; border-radius: 12px; overflow: hidden; background: #faf7f4; }
.vhot-his-i video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: #000; }
.vhot-his-ph {
  aspect-ratio: 9 / 16; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #b3a79c;
}
.vhot-his-m { padding: 6px 7px 7px; }
.vhot-his-m b { display: block; font-size: 11.5px; font-weight: 700; color: var(--text, #3a2a1e); }
.vhot-his-m span { display: block; margin-top: 2px; font-size: 10px; color: #b3a79c; }

@media (max-width: 359px) {
  .vhot-types { grid-template-columns: 1fr; }
  .vhot-his-list { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================================
   v2 新增（2026-09-19）：目标市场与语言 / 平台比例 / 文案开关 / 帮写 / 数量 /
   达人选择 / 定制表单 / 分段 tab
   ----------------------------------------------------------------------------
   与上面的规则同一套视觉语言（品牌橙渐变 + 暖白 + 大圆角）。
   ⚠️ 选择器是 .vhot-sel / .vhot-sw 这类**新前缀**，写前已确认全局没有被占用。
   ========================================================================== */

/* ---------------------------------------------------------------- 分段 tab */
.vhot-tabs {
  display: flex; gap: 4px; margin: 9px 0 11px; padding: 4px;
  background: #f7f1eb; border-radius: 13px;
}
.vhot-tab {
  flex: 1; min-height: 34px; border: 0; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 650; color: #8b8178;
  background: transparent; transition: background .14s, color .14s, box-shadow .14s;
}
.vhot-tab.on {
  color: #d1490a; background: #fff;
  box-shadow: 0 1px 4px -1px rgba(120, 80, 40, .18);
}

/* ---------------------------------------------------------------- 下拉（原生 select + 覆盖层） */
/* 🔴 为什么用「透明 select 盖在样式化行上」而不是自绘弹层：
   ① 手机上会唤起系统选择器 —— 用户熟悉、点击区域大、不会被浏览器地址栏顶飞；
   ② 自绘弹层要处理滚动、遮挡、返回键、键盘，是这类页面最容易出坑的地方；
   ③ 视觉完全可控（value 由旁边的 <b> 显示）。 */
.vhot-row2 { display: flex; gap: 9px; }
.vhot-row2 .vhot-sel { flex: 1; min-width: 0; }
.vhot-sel {
  position: relative; display: flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 12px; box-sizing: border-box;
  border: 1.5px solid #f0e7de; border-radius: 13px; background: #fff;
}
.vhot-sel select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; border: 0; appearance: none; -webkit-appearance: none;
  font-size: 16px;        /* ⚠️ 必须 ≥16px，否则 iOS 聚焦时会把整页放大 */
}
.vhot-sel b {
  flex: 1; min-width: 0; font-size: 13.5px; font-weight: 650; color: var(--text, #3a2a1e);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vhot-sel-c { flex: 0 0 auto; font-size: 13px; font-style: normal; color: #c9bfb5; }
.vhot-sel--wide { margin-top: 2px; }
.vhot-sel--sm { min-height: 42px; flex: 1; min-width: 0; }

.vhot-note {
  margin-top: 9px; padding: 9px 11px; font-size: 11.5px; line-height: 1.68;
  color: #7c6a5c; background: #fcfaf8; border: 1px dashed #eadfd4; border-radius: 11px;
}
.vhot-note--sm { margin-top: 8px; }
.vhot-note b { color: #b45309; }

/* ---------------------------------------------------------------- 生成发布文案开关 */
.vhot-sec--tight { padding: 12px 14px; }
.vhot-swrow { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.vhot-swrow-b { flex: 1; min-width: 0; }
.vhot-swrow-b b { display: block; font-size: 14px; font-weight: 700; color: var(--text, #3a2a1e); }
.vhot-swrow-b i { display: block; margin-top: 3px; font-size: 11.5px; font-style: normal; color: var(--text2, #8b8178); }
.vhot-sw { position: relative; flex: 0 0 48px; width: 48px; height: 28px; }
.vhot-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; z-index: 2; }
.vhot-sw u {
  display: block; width: 48px; height: 28px; border-radius: 999px;
  background: #e6ddd4; transition: background .18s;
}
.vhot-sw u::after {
  content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(90, 60, 30, .28);
  transition: transform .18s;
}
.vhot-sw input:checked + u { background: linear-gradient(135deg, #ff9f4d, #f95901); }
.vhot-sw input:checked + u::after { transform: translateX(20px); }
.vhot-sw input:focus-visible + u { box-shadow: 0 0 0 3px rgba(249, 89, 1, .25); }

/* ---------------------------------------------------------------- 帮写按钮（分区头右侧） */
.vhot-ai {
  margin-left: auto; flex: 0 0 auto; padding: 5px 11px; cursor: pointer;
  border: 1px solid #ffd9bd; border-radius: 999px; background: #fff7f1;
  font-family: inherit; font-size: 11.5px; font-weight: 700; color: #d1490a;
}
.vhot-ai[disabled] { opacity: .6; }
.vhot-sec-h .vhot-req + .vhot-ai { margin-left: auto; }

/* ---------------------------------------------------------------- 生成数量 */
.vhot-steprow { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.vhot-step {
  width: 38px; height: 38px; flex: 0 0 38px; border: 1.5px solid #f0e7de; border-radius: 11px;
  background: #fff; font-family: inherit; font-size: 18px; font-weight: 700;
  color: #d1490a; cursor: pointer; line-height: 1;
}
.vhot-step:active { background: #fff7f1; }
.vhot-steprow > b {
  min-width: 26px; text-align: center; font-size: 16px; font-weight: 800; color: var(--text, #3a2a1e);
}
.vhot-stepn { margin-left: auto; font-size: 11.5px; color: var(--text2, #8b8178); }
.vhot-stepn.bad { color: #b91c1c; font-weight: 700; }

/* ---------------------------------------------------------------- 达人 */
.vhot-daren { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
/* 🔴 12 位达人、4 列（对齐参考页的密度）：3 列会让列表拖到 4 行、一屏看不全。
   4 列后每格约 86px 宽，所以 label/sub 都要能被**单行截断**（不换行、不撑高）。 */
.vhot-daren-i {
  position: relative; display: block; padding: 0 0 8px; cursor: pointer; text-align: center;
  border: 1.5px solid #f0e7de; border-radius: 13px; background: #fff; overflow: hidden;
  font-family: inherit;
}
.vhot-daren-i img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #f7f1eb; }
.vhot-daren-i b {
  display: block; margin-top: 5px; padding: 0 4px; font-size: 11px; font-weight: 700;
  color: var(--text, #3a2a1e); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vhot-daren-i i {
  display: block; margin-top: 1px; padding: 0 4px; font-size: 9.5px; font-style: normal;
  color: #b3a79c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vhot-daren-i.on { border-color: #f95901; box-shadow: 0 0 0 3px rgba(249, 89, 1, .12); }
.vhot-daren-i.on::after {
  content: '✓'; position: absolute; right: 6px; top: 6px; width: 19px; height: 19px;
  border-radius: 50%; font-size: 12px; line-height: 19px; color: #fff; text-align: center;
  background: linear-gradient(140deg, #ffa95c, #f95901);
}
.vhot-daren-ph {
  display: flex; align-items: center; justify-content: center; width: 100%;
  aspect-ratio: 3 / 4; font-size: 30px; color: #d9cec4; background: #faf7f4;
}
.vhot-daren-txt .vhot-daren-ph { font-size: 26px; font-weight: 800; color: #e0a878; }
.vhot-daren-x {
  position: absolute; right: 5px; top: 5px; padding: 2px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .42);
}
.vhot-empty {
  padding: 20px 14px; text-align: center; font-size: 12.5px; line-height: 1.7;
  color: var(--text2, #8b8178); background: #fcfaf8; border: 1px dashed #eadfd4; border-radius: 13px;
}

/* ---------------------------------------------------------------- 定制达人表单 */
.vhot-form { margin-bottom: 11px; }
.vhot-form-r { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.vhot-form-r--col { display: block; }
.vhot-lab2 { flex: 0 0 62px; font-size: 12.5px; color: var(--text2, #8b8178); }
.vhot-form-r--col .vhot-lab2 { display: block; flex: none; margin-bottom: 6px; }
.vhot-in {
  width: 100%; box-sizing: border-box; height: 42px; padding: 0 11px;
  border: 1.5px solid #f0e7de; border-radius: 12px; background: #fcfcfd;
  font-family: inherit; font-size: 13.5px; color: var(--text, #3a2a1e);
}
.vhot-in:focus { outline: none; border-color: #f95901; background: #fff; }
.vhot-form-r > .vhot-in { flex: 1; min-width: 0; }
.vhot-save {
  display: block; width: 100%; min-height: 46px; border: 0; border-radius: 13px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 750; color: #fff;
  background: linear-gradient(135deg, #ff9f4d, #f95901);
  box-shadow: 0 6px 18px -9px rgba(249, 89, 1, .85);
}
.vhot-chosen {
  margin-top: 11px; padding: 10px 12px; font-size: 12.5px; color: #7c6a5c;
  background: #fff7f1; border: 1px solid #ffe2cd; border-radius: 12px;
}
.vhot-chosen b { color: #d1490a; }

/* ---------------------------------------------------------------- 其它小件 */
.vhot-lab { margin: 2px 0 7px; font-size: 12px; font-weight: 650; color: #8b8178; }
.vhot-lab:not(:first-child) { margin-top: 12px; }
.vhot-meta { margin: -4px 0 10px; font-size: 11.5px; color: #b3a79c; }
.vhot-opt {
  margin-left: auto; font-size: 11px; font-weight: 600;
  color: #8b8178; background: #f4efe9; padding: 2px 8px; border-radius: 999px;
}
.vhot-warn { color: #b45309; }
.vhot-tip .vhot-warn { font-weight: 600; }
.vhot-mini--wide {
  display: block; width: 100%; margin: 8px 0 0; padding: 9px 11px; text-align: center;
}
.vhot-ta--sm { min-height: 132px; }
.vhot-type-b { padding-right: 20px; }   /* 给右上角的勾选圈让位 */
.vhot-count--bad { color: #b91c1c; }

@media (max-width: 359px) {
  .vhot-daren { grid-template-columns: repeat(3, 1fr); }
  .vhot-row2 { flex-wrap: wrap; }
  .vhot-row2 .vhot-sel { flex: 1 1 100%; }
}
