/* ============================================================================
   AI 服饰穿戴（sub-tryon）· 2026-09-22 · 开发员18号
   ----------------------------------------------------------------------------
   只作用于 #sub-tryon，不碰 style.css。
   设计主张：**编辑感（editorial）** —— 暖棕 + 米白 + 细边框，
   用"服装大片"的调子而不是"工具面板"的调子；场景用两列卡（可多选），
   结果**按场景分组、组内横滑**，让"一套衣服 = 一整组图"这件事一眼可见。
   ⚠️ 注释里绝不写"星号紧跟斜杠"的连写 —— 会让注释提前闭合、吞掉紧随其后的规则。
   ============================================================================ */

#sub-tryon { padding-bottom: 96px; }          /* fixed TabBar 实测 74px + 余量 */
#sub-tryon [hidden] { display: none !important; }

/* ============================== 顶部 ============================== */
.tr-hero {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 20px 16px 16px; margin-bottom: 14px;
  background:
    radial-gradient(115% 85% at 100% 0%, rgba(191, 143, 98, .22) 0%, rgba(191, 143, 98, 0) 62%),
    radial-gradient(120% 90% at 0% 100%, rgba(120, 84, 60, .12) 0%, rgba(120, 84, 60, 0) 60%),
    linear-gradient(150deg, #fdfaf6 0%, #ffffff 48%, #faf5ef 100%);
  border: 1px solid #f0e6da;
}
.tr-hero:after {
  content: ''; position: absolute; right: -28px; top: -28px; width: 132px; height: 132px;
  border-radius: 50%; border: 1px solid rgba(191, 143, 98, .28);
}
.tr-hero-tag {
  display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: #96603a; border: 1px solid #ecd9c6;
}
.tr-hero-t { font-size: 21px; font-weight: 800; color: #3a2a1e; margin: 9px 0 7px; line-height: 1.32; }
.tr-hero-s { font-size: 13px; line-height: 1.72; color: #7a6a5e; position: relative; z-index: 1; }
.tr-hero-s b { color: #a35a24; }
.tr-hero-s i { color: #7c5a3a; font-style: normal; font-weight: 700; }
.tr-hero-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; position: relative; z-index: 1; }
.tr-flow {
  font-size: 11.5px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: #8a6a4e; border: 1px solid #eee0d0;
}
.tr-flow i { font-style: normal; color: #b08a64; margin-right: 4px; font-weight: 700; }
.tr-flow-arrow { font-size: 12px; color: #cbb49c; }

/* ============================== 卡片小件 ============================== */
.tr-ct { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tr-req {
  font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  background: #fdf3e9; color: #a35a24; border: 1px solid #f2e0cd;
}
.tr-req.ok { background: #eefbf3; color: #15803d; border-color: #cdf0dc; }
.tr-note { font-size: 12px; line-height: 1.68; color: #9a8a7e; margin: 9px 0 0; }
.tr-note b { color: #a35a24; }
.tr-note i { color: #7c5a3a; font-style: normal; font-weight: 700; }

/* ============================== ① 服装图片 ============================== */
.tr-garments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
@media (min-width: 560px) { .tr-garments { grid-template-columns: repeat(6, 1fr); } }
.tr-gslot {
  position: relative; aspect-ratio: 3/4; border-radius: 12px; cursor: pointer;
  border: 1.5px dashed #e6d8c8; background: #fffdfb; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.tr-gslot.has { border-style: solid; border-color: #ecd9c6; background: #fff; }
.tr-gslot.main.has { border-color: #c9905c; box-shadow: 0 0 0 2px rgba(201, 144, 92, .16); }
.tr-gslot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-gslot-add { font-size: 20px; color: #d3bda6; line-height: 1; }
.tr-gslot-t { font-size: 10.5px; color: #a8988c; margin-top: 4px; line-height: 1.4; }
.tr-gslot-tag {
  position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; line-height: 15px;
  background: rgba(58, 42, 30, .58); color: #fff; text-align: center;
}
.tr-gslot.main .tr-gslot-tag { background: rgba(163, 90, 36, .82); }
.tr-gslot-x {
  position: absolute; top: 3px; right: 3px; z-index: 2; width: 20px; height: 20px;
  border: 0; border-radius: 50%; background: rgba(58, 42, 30, .55); color: #fff;
  font-size: 13px; line-height: 20px; padding: 0; cursor: pointer;
}
.tr-gcount { font-size: 11px; color: #a8988c; font-weight: 400; }

/* ============================== ② 模特 ============================== */
.tr-tabs { display: flex; gap: 6px; margin-top: 10px; }
.tr-tab {
  flex: 1 1 0; border: 1px solid #efe3d6; background: #fffdfb; border-radius: 11px;
  padding: 9px 0; font-family: inherit; font-size: 13px; color: #7a6a5e; cursor: pointer;
}
.tr-tab.on { background: linear-gradient(135deg, #f6ece1 0%, #fbf6f0 100%); border-color: #dcc3a6; color: #8a5220; font-weight: 700; }
.tr-pane { margin-top: 12px; }
.tr-groupbar { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; }
.tr-groupbar::-webkit-scrollbar { display: none; }
.tr-chip {
  flex: 0 0 auto; border: 1px solid #efe3d6; background: #fffdfb; border-radius: 999px;
  padding: 6px 13px; font-size: 12.5px; color: #8a6a52; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.tr-chip .tr-n { opacity: .55; font-size: 11px; margin-left: 3px; }
.tr-chip.on { background: linear-gradient(135deg, #c9905c 0%, #a35a24 100%); color: #fff; border-color: transparent; box-shadow: 0 3px 9px rgba(163, 90, 36, .26); }
.tr-chip.on .tr-n { opacity: .85; }
.tr-libgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tr-model {
  position: relative; border: 1.5px solid transparent; border-radius: 11px; padding: 0;
  background: #f7f3ee; overflow: hidden; cursor: pointer; aspect-ratio: 2/3;
}
.tr-model img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-model.on { border-color: #a35a24; box-shadow: 0 0 0 2px rgba(163, 90, 36, .18); }
.tr-model-tick {
  position: absolute; right: 4px; top: 4px; width: 17px; height: 17px; border-radius: 50%;
  background: #a35a24; color: #fff; font-size: 11px; line-height: 17px; text-align: center;
  opacity: 0; transition: opacity .15s;
}
.tr-model.on .tr-model-tick { opacity: 1; }
.tr-model.hide { display: none !important; }
.tr-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-slot {
  width: 84px; height: 112px; border-radius: 11px; border: 1.5px dashed #e6d8c8;
  background: #fffdfb; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; cursor: pointer;
}
.tr-slot.has { border-style: solid; border-color: #ecd9c6; }
.tr-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-slot-ico { font-size: 22px; color: #d3bda6; }
.tr-slot-del {
  position: absolute; top: 2px; right: 2px; width: 19px; height: 19px; border: 0; border-radius: 50%;
  background: rgba(58, 42, 30, .55); color: #fff; font-size: 12px; line-height: 19px; padding: 0; cursor: pointer;
}
.tr-sexbar { display: flex; gap: 6px; margin-bottom: 10px; }
.tr-ai-row { margin-bottom: 10px; }
.tr-ai-lab { font-size: 12px; color: #8a7a6e; margin-bottom: 6px; }
.tr-ai-row .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-ai-row .chip { font-size: 12px; padding: 6px 12px; }
.tr-ai-input {
  width: 100%; border: 1px solid #eee3d6; border-radius: 11px; background: #fffdfb;
  padding: 10px 12px; font-family: inherit; font-size: 13px; color: #3a2a1e; resize: none;
}
.tr-ai-input::placeholder { color: #bfae9e; }
.tr-ai-btn {
  width: 100%; margin-top: 10px; border: 1px solid #e2c9a8; border-radius: 11px; cursor: pointer;
  background: linear-gradient(135deg, #fdf4ea 0%, #faf1e6 100%); color: #8a5220;
  font-family: inherit; font-size: 13.5px; font-weight: 700; padding: 11px 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ============================== ③ 场景（多选） ============================== */
.tr-scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.tr-scene {
  display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer;
  border: 1.5px solid #efe3d6; background: #fffdfb; border-radius: 12px; padding: 11px 12px;
  font-family: inherit; transition: all .15s;
}
.tr-scene-box {
  flex: 0 0 17px; width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #ddc9b3;
  background: #fff; color: #fff; font-size: 11px; line-height: 15px; text-align: center; font-weight: 700;
}
.tr-scene-t { font-size: 13px; color: #6a5a4e; font-weight: 600; line-height: 1.3; }
.tr-scene-s { font-size: 10.5px; color: #a8988c; margin-top: 2px; }
.tr-scene.on { border-color: #dcc3a6; background: linear-gradient(140deg, #fdf6ee 0%, #fbf3ea 100%); }
.tr-scene.on .tr-scene-box { background: #a35a24; border-color: #a35a24; }
.tr-scene.on .tr-scene-t { color: #8a5220; }
.tr-scene.custom.on .tr-scene-t { color: #8a5220; }
.tr-custom-wrap { margin-top: 10px; }
.tr-ai-pick {
  width: 100%; margin-top: 10px; border: 1px dashed #ddc9b3; border-radius: 12px; cursor: pointer;
  background: #fffdfb; color: #8a6a4e; font-family: inherit; font-size: 13px; padding: 10px 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tr-ai-pick:disabled { opacity: .55; cursor: default; }
.tr-ai-why {
  margin-top: 9px; font-size: 12px; line-height: 1.65; color: #8a6a4e;
  background: #fdf6ee; border: 1px solid #f2e2cf; border-radius: 11px; padding: 10px 12px;
}
.tr-ai-why b { color: #8a5220; }

/* ============================== ④ 姿势 ============================== */
.tr-poses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tr-pose {
  border: 1px solid #efe3d6; background: #fffdfb; border-radius: 999px; cursor: pointer;
  padding: 7px 13px; font-family: inherit; font-size: 12.5px; color: #7a6a5e;
}
.tr-pose.on { background: linear-gradient(135deg, #f6ece1 0%, #fbf6f0 100%); border-color: #dcc3a6; color: #8a5220; font-weight: 700; }
.tr-scene-poses { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #f0e5d8; }
.tr-scene-poses-h { display: flex; align-items: baseline; justify-content: space-between; }
.tr-scene-poses-t { font-size: 13px; font-weight: 700; color: #6a5a4e; }
.tr-scene-poses-n { font-size: 11px; color: #a8988c; }

/* ============================== 清单回显 ============================== */
.tr-sum {
  margin-top: 14px; border-radius: 14px; padding: 12px 13px;
  background: linear-gradient(140deg, #fdf8f2 0%, #fbf6f1 100%); border: 1px solid #f1e5d6;
}
.tr-sum-h { font-size: 12px; font-weight: 700; color: #8a5220; margin-bottom: 8px; }
.tr-sum-row { display: flex; gap: 8px; font-size: 12px; line-height: 1.6; margin-top: 5px; }
.tr-sum-k { flex: 0 0 62px; color: #a8988c; }
.tr-sum-v { flex: 1 1 auto; color: #5a4a3e; font-weight: 500; }
.tr-sum-v.big { color: #a35a24; font-weight: 800; font-size: 13.5px; }

/* ============================== 结果 ============================== */
.tr-res-head { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 10px; }
.tr-res-t { font-size: 15px; font-weight: 800; color: #3a2a1e; }
.tr-res-s { font-size: 12px; color: #a8988c; }
.tr-grp { margin-bottom: 16px; }
.tr-grp-h { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; }
.tr-grp-ico { font-size: 15px; }
.tr-grp-t { font-size: 13.5px; font-weight: 700; color: #5a4a3e; }
.tr-grp-n { font-size: 11px; color: #a8988c; }
.tr-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 9px; }
.tr-rcard { border-radius: 13px; border: 1px solid #efe3d6; background: #fff; overflow: hidden; position: relative; }
.tr-rcard img { width: 100%; display: block; background: #faf7f4; }
.tr-rcard-lab {
  position: absolute; left: 6px; top: 6px; font-size: 10.5px; padding: 2px 8px; border-radius: 999px;
  background: rgba(58, 42, 30, .55); color: #fff;
}
.tr-rcard-bar { display: flex; gap: 5px; padding: 7px; }
.tr-mini {
  flex: 1 1 0; border: 1px solid #ecdccb; background: #fff; border-radius: 8px; padding: 6px 0;
  font-size: 12px; color: #6a5a4e; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.tr-mini.retry { border-color: #f2c9c9; color: #c0392b; background: #fff8f8; }
.tr-mini:disabled { opacity: .5; cursor: default; }
.tr-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; aspect-ratio: 3/4; padding: 14px; text-align: center; background: #fffdfb;
}
.tr-ph-t { font-size: 12.5px; font-weight: 600; color: #5a4a3e; }
.tr-ph-s { font-size: 11px; color: #a8988c; line-height: 1.5; }
.tr-ph-err { font-size: 11px; color: #c0392b; line-height: 1.5; }
.tr-spin {
  width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid #f2e3d3; border-top-color: #c9905c;
  animation: trspin .85s linear infinite;
}
@keyframes trspin { to { transform: rotate(360deg); } }
.tr-progress {
  margin-top: 10px; font-size: 12px; color: #8a6a52; background: #fdf6ee;
  border: 1px solid #f2e2cf; border-radius: 11px; padding: 9px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.tr-progress b { color: #a35a24; }

/* ============================== toast ============================== */
.tr-toast {
  position: fixed; left: 50%; bottom: 13%; transform: translateX(-50%) translateY(8px);
  background: rgba(58, 42, 30, .9); color: #fff; font-size: 13px; padding: 9px 17px;
  border-radius: 999px; opacity: 0; pointer-events: none; transition: .22s; z-index: 9999;
  max-width: 84vw; text-align: center;
}
.tr-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================== 发布前质检清单 ==============================
 * 平台判违规、买家投诉基本都落在清单这几条上；做成可打勾的交互式清单，
 * 比写一段说明文字更可能真被用起来。 */
.tr-qc {
  margin: 6px 0 4px; padding: 13px 14px 11px;
  border-radius: 14px; border: 1px solid #f0e0c8;
  background: linear-gradient(150deg, #fffaf1 0%, #fffdf9 100%);
}
.tr-qc-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.tr-qc-t { font-size: 13.5px; font-weight: 800; color: #8a5220; }
.tr-qc-n { font-size: 11.5px; color: #b08a64; }
.tr-qc-list { list-style: none; margin: 0; padding: 0; }
.tr-qc-i {
  display: flex; gap: 9px; align-items: flex-start; cursor: pointer;
  font-size: 12.5px; line-height: 1.6; color: #6a5a4e; padding: 5px 0;
}
.tr-qc-box {
  flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; border-radius: 5px;
  border: 1.5px solid #ddc9b3; background: #fff; color: #fff;
  font-size: 10.5px; line-height: 14px; text-align: center; font-weight: 700;
}
.tr-qc-i.on { color: #3a6b4a; }
.tr-qc-i.on .tr-qc-box { background: #3f8f5f; border-color: #3f8f5f; }
.tr-gartip { margin-top: 10px; }
