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

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

#sub-facemix .fm-slot {
  position: relative;
  min-width: 0;
}

#sub-facemix .fm-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-facemix .fm-drop:active { background: #fff2e8; }
#sub-facemix .fm-drop.drag { border-color: var(--primary); background: #fff2e8; }

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

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

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

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

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

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

#sub-facemix .fm-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-facemix .fm-drop.has-img .fm-del { display: block; }

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

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

/* ── 融合倾向 chips ───────────────────────────────────────────── */
#sub-facemix .fm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

#sub-facemix .fm-chip {
  border: 1px solid #f0d8c4;
  background: #fff;
  color: #8a6a52;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  transition: all .15s;
}

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

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

/* ── 拍摄建议列表 ─────────────────────────────────────────────── */
#sub-facemix .fm-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

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

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