/* 模特换脸 · 双上传位（素材图 / 人物图）
 * ============================================================================
 * 只做本功能需要的一块：并排双上传位（方形）。融合倾向 chip 那套不要。
 * 其余（banner / 卡片 / 结果区 / toast / 按钮）全部复用 imgexplode 的 ix-* 类。
 * ⚠️ 按项目规约：改别人样式不动 style.css；所有选择器带 #sub-modelswap 作用域。
 * ========================================================================== */

/* ── 双上传位：并排两个方块 ───────────────────────────────────── */
#sub-modelswap .ms-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#sub-modelswap .ms-slot {
  position: relative;
  min-width: 0;
}

#sub-modelswap .ms-drop {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 118px;          /* aspect-ratio 不支持时的兜底 */
  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-modelswap .ms-drop:active { background: #fff2e8; }
#sub-modelswap .ms-drop.drag { border-color: var(--primary); background: #fff2e8; }

#sub-modelswap .ms-hint {
  text-align: center;
  padding: 0 8px;
  pointer-events: none;
}

#sub-modelswap .ms-plus {
  font-size: 26px;
  line-height: 1;
  color: #d8a67a;
  font-weight: 300;
}

#sub-modelswap .ms-hint-t {
  margin-top: 8px;
  font-size: 12.5px;
  color: #9a7b62;
}

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

#sub-modelswap .ms-drop.has-img {
  border-style: solid;
  border-color: #ffdcbf;
  background: #fff;
}

#sub-modelswap .ms-drop.has-img .ms-prev { display: block; }
#sub-modelswap .ms-drop.has-img .ms-hint { display: none; }

#sub-modelswap .ms-del {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  padding: 0;
  cursor: pointer;
}

#sub-modelswap .ms-drop.has-img .ms-del { display: block; }

/* 已选角标 */
#sub-modelswap .ms-cap {
  margin-top: 6px;
  font-size: 12px;
  color: #9a7b62;
  text-align: center;
  min-height: 16px;
}

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

/* ── 拍摄建议列表（本功能自有，不依赖 facemix 的作用域）───────────── */
#sub-modelswap .ms-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

#sub-modelswap .ms-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-modelswap .ms-tip b {
  flex: 0 0 auto;
  min-width: 56px;
  color: #4f46e5;
  font-weight: 600;
}

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