/* 人物场景 · 模特位 + 场景位 + 出图比例胶囊
 * ============================================================================
 * 只做本功能需要的两块：两个大上传位（模特 / 场景）、比例胶囊。
 * 其余（banner / 卡片 / 补充要求 / 效果示例 / 结果区 / toast）复用 xt-* 与 ix-*。
 * ⚠️ 按项目规约：所有选择器带 #sub-personscene 作用域，不碰 style.css。
 * ========================================================================== */

/* ── 上传位 ─────────────────────────────────────────────────── */
#sub-personscene .ps-slot { position: relative; min-width: 0; }

#sub-personscene .ps-drop {
  position: relative;
  width: 100%;
  height: 236px;
  border: 1.5px dashed #f0c9a8;
  border-radius: 16px;
  background: #fffaf6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

/* 场景位略矮一点，视觉上分出「主图 / 底图」 */
#sub-personscene .ps-drop.ps-scene { height: 196px; margin-top: 14px; }

#sub-personscene .ps-drop:active { background: #fff2e8; }
#sub-personscene .ps-drop.drag { border-color: var(--primary); background: #fff2e8; }

#sub-personscene .ps-drop.has-img { border-style: solid; border-color: #ffdcbf; background: #fff; }
#sub-personscene .ps-drop.has-img .ps-hint { display: none; }
#sub-personscene .ps-drop.has-img .ps-prev { display: block; }
#sub-personscene .ps-drop.has-img .ps-del { display: block; }

/* ── 上传位内部 ───────────────────────────────────────────────── */
#sub-personscene .ps-hint {
  text-align: center;
  padding: 0 10px;
  pointer-events: none;
}

#sub-personscene .ps-plus {
  font-size: 24px;
  line-height: 1;
  color: #d8a67a;
  font-weight: 300;
}

#sub-personscene .ps-hint-t {
  margin-top: 8px;
  font-size: 12.5px;
  color: #9a7b62;
  line-height: 1.5;
}

#sub-personscene .ps-prev {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#sub-personscene .ps-del {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 15px;
  line-height: 24px;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

/* 角标「必填」 */
#sub-personscene .ps-req {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(249, 89, 1, .92);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  z-index: 2;
}

#sub-personscene .ps-ok { color: #12a05c; font-weight: 700; margin-left: 4px; }

#sub-personscene .ps-cap {
  margin-top: 6px;
  font-size: 11.5px;
  color: #9a7b62;
  text-align: center;
  line-height: 1.4;
}

/* 两个位之间的「+」连接符，暗示这是一组输入 */
#sub-personscene .ps-join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12px;
  color: #b09a86;
  line-height: 1;
}

#sub-personscene .ps-join::before,
#sub-personscene .ps-join::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: #f3e4d6;
}

/* ── 出图比例胶囊 ─────────────────────────────────────────────── */
#sub-personscene .ps-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

#sub-personscene .ps-chip {
  border: 1px solid #f0d8c4;
  background: #fff;
  color: #8a6a52;
  border-radius: 10px;
  padding: 8px 0;
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  flex: 1 1 calc(33.33% - 8px);
  text-align: center;
  transition: all .15s;
}

#sub-personscene .ps-chip.active {
  border-color: var(--primary);
  background: #fff2e8;
  color: var(--primary);
  font-weight: 600;
}

#sub-personscene .ps-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #9a8b80;
}

/* ── 上传建议列表 ─────────────────────────────────────────────── */
#sub-personscene .ps-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

#sub-personscene .ps-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.04);
  border: 1px solid rgba(79, 70, 229, 0.10);
  font-size: 13px;
  line-height: 1.55;
}

#sub-personscene .ps-tip b {
  flex: 0 0 auto;
  min-width: 62px;
  color: #4f46e5;
  font-weight: 600;
}

#sub-personscene .ps-tip span { color: #4b5563; flex: 1 1 auto; }

/* 案例图统一用横版；小屏按卡片宽度自适应缩小，再用最大高度兜底，避免在平板上拉得过高 */
@media (max-width: 640px) {
  #sub-personscene .xt-sample-img {
    width: auto;
    max-width: 100%;
    max-height: 190px;
    margin-left: auto;
    margin-right: auto;
  }
}
