/* Profile page: the user-management "资料" panel, minus everything that reaches
   other people.  Only spacing/back-button tweaks live here; the field grid,
   subtabs, avatar picker and panels come from users.css. */
.profileWrap{max-width:720px}
.profileWrap .strokeTop{margin-bottom:0}
.profileWrap .strokeSub{margin:6px 0 12px}
.profileWrap .profileHead{padding:4px 2px 10px;border-bottom:1px solid var(--line);margin-bottom:10px}
.profileWrap .subtabs{margin-bottom:10px}
.profileWrap .actions{margin-top:14px}
.profileWrap .panel.on{display:block}
.profileWrap .panel{display:none}
.profileWrap .grid2{gap:10px 12px}
.profileWrap .fieldHint{font-size:10.5px;color:var(--dim);margin-top:6px}
.profileWrap #f_id{opacity:.6}

/* the back-button header (stroke.css owns it on the detail page; keep this page
   self-contained so it does not have to load that stylesheet) */
.strokeTop{display:flex;align-items:center;gap:10px;padding:4px 2px 0}
.strokeTop h1{margin:0;font-size:19px;flex:1 1 auto;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.backBtn{width:34px;height:34px;border-radius:999px;display:grid;place-items:center;flex:0 0 auto;
  text-decoration:none;color:var(--gold);font-size:21px;line-height:1;
  background:rgba(255,255,255,.05);border:1px solid var(--line)}
.backBtn:hover{border-color:var(--gold-dim)}
.strokeSub{margin:6px 0 12px;font-size:12px;color:var(--dim);padding-left:2px}

/* ── 形象照片：单人头像 / 全身照 ─────────────────────────────── */
.photoPanel .segTabs{display:flex;gap:6px;margin:0 0 12px;padding:4px;border-radius:12px;
  background:rgba(255,255,255,.045);border:1px solid var(--line)}
.photoPanel .segTab{flex:1 1 0;padding:8px 10px;border-radius:9px;font-size:12.5px;
  color:var(--dim);background:transparent;border:1px solid transparent;cursor:pointer}
.photoPanel .segTab:hover{color:var(--txt)}
.photoPanel .segTab.on{color:#241a08;font-weight:700;border-color:rgba(232,183,104,.55);
  background:linear-gradient(160deg,#f0c987,#dca964)}
.avatarRow{display:flex;gap:14px;align-items:center}
.avatarPick.big{width:96px;height:96px;border-radius:999px;font-size:26px}
.avatarHint{min-width:0;flex:1 1 auto;display:flex;flex-direction:column;gap:6px}
.avatarHint b{font-size:13px}
.bodyGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.bodySlot{position:relative;border-radius:12px;overflow:hidden;border:1px dashed #2a5238;
  background:rgba(255,255,255,.025);aspect-ratio:3/4}
.bodySlot.filled{border:1px solid var(--line);background:#06120c}
.bodyPick{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:4px;background:transparent;border:0;cursor:pointer;
  color:#6f8a7b;font:inherit;padding:0}
.bodyPick:hover{color:var(--gold)}
.bodyPick img{width:100%;height:100%;object-fit:cover;display:block}
.bodyPlus{font-size:20px;line-height:1}
.bodyLbl{font-size:10.5px}
.bodyTag{position:absolute;left:5px;top:4px;font-size:8.5px;padding:1px 5px;border-radius:999px;
  background:rgba(0,0,0,.58);color:#e9f3ec;border:1px solid rgba(255,255,255,.18)}
.bodyTag.opt{color:#9db4a8}
.bodyDel{position:absolute;right:3px;top:3px;width:19px;height:19px;border-radius:999px;
  display:grid;place-items:center;font-size:12px;line-height:1;cursor:pointer;
  background:rgba(6,18,12,.8);color:#ffb3b3;border:1px solid rgba(239,68,68,.5)}
.bodyDel:hover{background:rgba(239,68,68,.25)}
.bodyFoot{display:flex;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}
.bodyFoot .primary{opacity:.55;cursor:not-allowed}
@media (max-width:420px){
  .bodyGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .avatarPick.big{width:78px;height:78px;font-size:22px}
}

/* "未建档" hint above the save buttons */
.stateNote{margin:10px 0 0;padding:9px 11px;border-radius:10px;font-size:11.5px;line-height:1.6;
  color:#f7d9a5;background:rgba(245,158,11,.10);border:1px solid rgba(245,158,11,.38)}
.stateNote b{color:#fde3ae}

/* ── 真人模型选择（3D 展示用的卡通人物） ─────────────────────── */
.charTop{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.charTop h3{margin:0 0 4px;font-size:14px}
.charTop p{margin:0;max-width:52ch}
.charNow{font-size:11.5px;color:#cfe2d5;background:rgba(255,255,255,.04);
  border:1px solid var(--line);border-radius:999px;padding:5px 11px;white-space:nowrap}
.charNow b{color:var(--gold)}
.charNow .muted{font-size:10.5px}
.charGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px;margin-top:12px}
.charCard{display:flex;flex-direction:column;gap:7px;padding:8px;cursor:pointer;font:inherit;
  background:rgba(255,255,255,.025);border:1px solid var(--line);border-radius:13px;color:inherit;
  text-align:left;transition:border-color .15s,background .15s}
.charCard:hover{border-color:#3f6d54}
.charCard.on{border-color:var(--gold);background:rgba(232,183,104,.10);
  box-shadow:0 0 0 1px rgba(232,183,104,.45) inset}
.charCard.off{opacity:.5;cursor:not-allowed}
.charThumb{position:relative;display:grid;place-items:center;aspect-ratio:4/5;border-radius:10px;
  overflow:hidden;background:linear-gradient(180deg,#122234,#0b1622);font-size:20px;color:#7f95a8}
.charThumb img{width:100%;height:100%;object-fit:cover;display:block}
.charThumb.auto i{font-size:16px;font-style:normal;letter-spacing:.5px;color:#9fc0ff}
.charThumb.custom{border:1px dashed #35506a}
.charName{display:flex;flex-direction:column;gap:1px;font-size:12px;font-weight:650;line-height:1.35}
.charName .small{font-weight:400;font-size:10px}
@media (max-width:420px){ .charGrid{grid-template-columns:repeat(2,minmax(0,1fr))} }

/* ── 3D 形象：左边转台预览、右边模型卡片 ─────────────────────── */
.charPick{display:grid;grid-template-columns:minmax(150px,200px) minmax(0,1fr);gap:12px;
  margin-top:10px;align-items:start}
.charStage{position:relative;border:1px solid var(--line);border-radius:14px;overflow:hidden;
  background:radial-gradient(circle at 50% 22%,#14263c,#0a1320 72%);
  aspect-ratio:3/4;min-height:150px;cursor:grab}
.charStage:active{cursor:grabbing}
.charStage.empty{cursor:default;display:grid;place-items:center;
  border-style:dashed;border-color:#33506a}
.charStage.empty #charCanvas{display:none}
.charStage.empty::after{content:"私人订制";color:#7f95a8;font-size:12px}
.charStage.empty .charStageHint{display:none}
#charCanvas{display:block;width:100%;height:100%}
.charStageHint{position:absolute;left:0;right:0;bottom:0;padding:3px 8px 5px;
  font-size:10px;color:#8fa4bb;text-align:center;
  background:linear-gradient(180deg,transparent,rgba(6,12,20,.72))}
.charList{min-width:0}
.charList .charGrid{margin-top:0;grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
.charThumb{aspect-ratio:1/1}
.charAutoFlag{position:absolute;top:5px;left:5px;font-size:9px;line-height:1;padding:3px 5px;
  border-radius:6px;background:rgba(232,183,104,.92);color:#231a08;font-weight:700}
.customBox{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line)}
.customBox h4{margin:0 0 6px;font-size:13px;display:flex;align-items:center;gap:8px}
.pillSoon{font-size:9.5px;font-weight:400;color:#f7d9a5;background:rgba(245,158,11,.14);
  border:1px solid rgba(245,158,11,.4);border-radius:999px;padding:2px 7px}
@media (max-width:560px){
  /* 手机上转台在卡片上面，整行铺开 */
  .charPick{grid-template-columns:minmax(0,1fr)}
  .charStage{aspect-ratio:16/11;min-height:170px}
}
