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

/* ── 模特位：独占一行，固定高度，cover 预览（原图不裁，只影响缩略）── */
#sub-outfit .of-model {
  position: relative;
  width: 100%;
  height: 240px;
  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-outfit .of-model:active { background: #fff2e8; }
#sub-outfit .of-model.drag { border-color: var(--primary); background: #fff2e8; }

#sub-outfit .of-model.has-img { border-style: solid; border-color: #ffdcbf; background: #fff; }
#sub-outfit .of-model.has-img .of-hint { display: none; }
#sub-outfit .of-model.has-img .of-prev { display: block; }
#sub-outfit .of-model.has-img .of-del { display: block; }

/* ── 配件三宫格 ───────────────────────────────────────────────── */
#sub-outfit .of-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

#sub-outfit .of-slot { position: relative; min-width: 0; }

#sub-outfit .of-drop {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 88px;
  border: 1.5px dashed #f0c9a8;
  border-radius: 14px;
  background: #fffaf6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

#sub-outfit .of-drop:active { background: #fff2e8; }
#sub-outfit .of-drop.drag { border-color: var(--primary); background: #fff2e8; }
#sub-outfit .of-drop.has-img { border-style: solid; border-color: #ffdcbf; background: #fff; }

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

#sub-outfit .of-plus {
  font-size: 22px;
  line-height: 1;
  color: #d8a67a;
  font-weight: 300;
}

#sub-outfit .of-hint-t {
  margin-top: 6px;
  font-size: 12px;
  color: #9a7b62;
  line-height: 1.4;
}

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

#sub-outfit .of-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;
  z-index: 2;
}

/* 角标「必填」 */
#sub-outfit .of-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-outfit .of-ok { color: #12a05c; font-weight: 700; margin-left: 4px; }

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

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

#sub-outfit .of-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-outfit .of-chip.active {
  border-color: var(--primary);
  background: #fff2e8;
  color: var(--primary);
  font-weight: 600;
}

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

/* ── 上传建议列表（本功能自有，不依赖别的 css 作用域）───────────── */
#sub-outfit .of-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

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

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