/* TailorFit H5 全局样式 - 暖棕金主题 */
:root {
  --primary: #B45309;
  --primary-light: #F5E6D3;
  --primary-dark: #92400E;
  --bg: #FAF6EF; /* 奶白 */
  --card: #FFFFFF;
  --text: #292524;
  --text-2: #78716C;
  --text-3: #A8A29E;
  --border: #EDE9E4;
  --danger: #DC2626;
  --success: #16A34A;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 56px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* ---------- 布局骨架 ---------- */
#app { min-height: 100%; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 50; height: 48px;
  display: flex; align-items: center; padding: 0 12px; gap: 8px;
  background: rgba(250,246,239,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-back {
  width: 32px; height: 32px; border: none; background: none;
  font-size: 26px; line-height: 1; color: var(--text); cursor: pointer; flex: none;
}
.topbar-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { flex: none; min-width: 32px; font-size: 14px; color: var(--primary); }
.view { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 12px 12px calc(24px + var(--safe-b)); }
.view.no-tab { padding-bottom: 24px; }
body.has-tabbar .view { padding-bottom: calc(12px + var(--tabbar-h) + var(--safe-b)); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: #FFF; border-top: 1px solid var(--border);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-3); font-size: 11px; }
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--primary); font-weight: 600; }

/* ---------- 通用组件 ---------- */
.card { background: var(--card); border-radius: 12px; padding: 14px; box-shadow: 0 1px 4px rgba(41,37,36,.06); margin-bottom: 12px; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.card-title .more { font-size: 13px; color: var(--text-2); font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border: none; border-radius: 10px;
  background: var(--primary); color: #FFF; font-size: 15px; font-weight: 500;
  cursor: pointer; user-select: none;
}
.btn:active { background: var(--primary-dark); }
.btn:disabled { opacity: .5; }
.btn.block { width: 100%; }
.btn.ghost { background: #FFF; color: var(--primary); border: 1px solid var(--primary); }
.btn.plain { background: var(--primary-light); color: var(--primary-dark); border: none; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.danger { background: #FFF; color: var(--danger); border: 1px solid var(--danger); }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field label .req { color: var(--danger); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px; background: #FFF; outline: none; font-size: 15px;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); }
.field textarea { min-height: 76px; resize: none; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; color: #FFF; background: #999; flex: none; }
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 6px; font-size: 11px; background: var(--primary-light); color: var(--primary-dark); }

.price { color: var(--primary); font-weight: 600; }
.price .unit { font-size: 12px; font-weight: 400; }
.muted { color: var(--text-2); font-size: 13px; }
.tiny { color: var(--text-3); font-size: 12px; }
.empty { text-align: center; padding: 48px 24px; color: var(--text-3); }
.empty .emoji { font-size: 40px; margin-bottom: 10px; }

/* ---------- 市场页 ---------- */
.search-bar { display: flex; gap: 8px; margin-bottom: 10px; }
.search-bar input { flex: 1; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: #FFF; outline: none; font-size: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 14px; border-radius: 999px; background: #FFF; border: 1px solid var(--border); font-size: 13px; color: var(--text-2); cursor: pointer; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #FFF; font-weight: 500; }

.garment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.g-card { background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(41,37,36,.06); cursor: pointer; }
.g-cover { position: relative; aspect-ratio: 3/4; background: linear-gradient(135deg, #EDE4D9, #DFD3C3); display: flex; align-items: center; justify-content: center; }
.g-cover img { width: 100%; height: 100%; object-fit: cover; }
.g-cover .ph { font-size: 34px; opacity: .45; }
.g-cover .cat { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.9); padding: 2px 8px; border-radius: 6px; font-size: 11px; color: var(--primary-dark); }
.g-body { padding: 10px 10px 12px; }
.g-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-shop { font-size: 12px; color: var(--text-3); margin: 3px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-price { font-size: 15px; }
.load-more { text-align: center; padding: 14px; color: var(--text-3); font-size: 13px; }

/* ---------- 版型详情 ---------- */
.gallery { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 3/4; max-height: 420px; background: linear-gradient(135deg, #EDE4D9, #DFD3C3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 56px; opacity: .4; }
.gallery .dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.gallery .dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.5); }
.gallery .dot.active { background: #FFF; width: 16px; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 999px; border: none; background: rgba(0,0,0,.25); color: #FFF; font-size: 18px; cursor: pointer; }
.gal-arrow.l { left: 8px; } .gal-arrow.r { right: 8px; }

.detail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.detail-head h1 { font-size: 19px; font-weight: 700; }
.detail-desc { color: var(--text-2); font-size: 13px; margin: 8px 0 2px; line-height: 1.7; white-space: pre-wrap; }

.fabrics { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.fabrics::-webkit-scrollbar { display: none; }
.fabric-item { flex: none; width: 108px; border: 1.5px solid var(--border); border-radius: 10px; padding: 8px; text-align: center; cursor: pointer; background: #FFF; }
.fabric-item.active { border-color: var(--primary); background: var(--primary-light); }
.fabric-swatch { width: 44px; height: 44px; border-radius: 8px; margin: 0 auto 6px; border: 1px solid rgba(0,0,0,.08); background-size: cover; background-position: center; }
.fabric-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fabric-delta { font-size: 11px; color: var(--primary); margin-top: 2px; }

.meas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.meas-grid .field { margin-bottom: 0; }
.meas-grid .field input { min-height: 42px; }

.sticky-action { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + var(--safe-b)); background: linear-gradient(to top, rgba(250,246,239,1) 82%, rgba(250,246,239,0)); }
.sticky-action .btn { max-width: 616px; margin: 0 auto; display: flex; }
body.sticky-on .view { padding-bottom: 84px; }

/* ---------- 订单列表 ---------- */
.status-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.status-tabs::-webkit-scrollbar { display: none; }
.o-card { display: flex; gap: 10px; background: var(--card); border-radius: 12px; padding: 12px; box-shadow: 0 1px 4px rgba(41,37,36,.06); margin-bottom: 10px; cursor: pointer; }
.o-thumb { flex: none; width: 62px; height: 62px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #EDE4D9, #DFD3C3); display: flex; align-items: center; justify-content: center; }
.o-thumb img { width: 100%; height: 100%; object-fit: cover; }
.o-thumb .ph { font-size: 22px; opacity: .5; }
.o-main { flex: 1; min-width: 0; }
.o-row1 { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.o-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.o-price { text-align: right; }

/* ---------- 订单详情 ---------- */
.order-head { display: flex; align-items: center; gap: 10px; padding: 16px 14px; border-radius: 12px; background: linear-gradient(120deg, #FFF, #F8F1E8); margin-bottom: 12px; box-shadow: 0 1px 4px rgba(41,37,36,.06); }
.order-head .st { flex: 1; }
.order-head .st .name { font-size: 18px; font-weight: 700; }
.order-head .st .no { font-size: 12px; color: var(--text-3); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.copy-btn { border: 1px solid var(--border); background: #FFF; border-radius: 6px; padding: 1px 8px; font-size: 11px; color: var(--text-2); cursor: pointer; }

.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--text-2); flex: none; }
.kv .v { text-align: right; word-break: break-all; }
.quote-num { font-size: 17px; }

.timeline { padding: 4px 0; }
.tl-item { display: flex; gap: 12px; }
.tl-item .rail { flex: none; width: 18px; display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--border); margin-top: 5px; flex: none; }
.tl-item.done .tl-dot { background: var(--primary); }
.tl-item.now .tl-dot { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.tl-line { width: 2px; flex: 1; background: var(--border); min-height: 14px; }
.tl-item.done .tl-line { background: var(--primary); }
.tl-item .body { flex: 1; padding-bottom: 12px; }
.tl-item .tl-name { font-size: 14px; color: var(--text-3); }
.tl-item.done .tl-name, .tl-item.now .tl-name { color: var(--text); font-weight: 600; }

.event-item { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.event-item:last-child { border-bottom: none; }
.event-meta { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12px; margin-bottom: 4px; }
.event-imgs { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; }
.event-imgs img { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; flex: none; cursor: pointer; }

.pay-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.pay-item:last-child { border-bottom: none; }
.pay-item img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; cursor: pointer; }
.pay-info { flex: 1; font-size: 13px; }

/* ---------- 聊天 ---------- */
.chat-wrap { display: flex; flex-direction: column; }
.chat-list { max-height: 320px; overflow-y: auto; padding: 8px 4px; }
.msg { display: flex; gap: 8px; margin-bottom: 10px; }
.msg .avatar { flex: none; width: 30px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #FFF; }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .bubble { background: var(--primary); color: #FFF; }
.msg .time { font-size: 10px; color: var(--text-3); margin: 0 4px 2px; }
.msg.mine .time { text-align: right; }
.bubble { max-width: 74%; padding: 8px 12px; border-radius: 12px; background: #FFF; box-shadow: 0 1px 2px rgba(41,37,36,.08); font-size: 14px; word-break: break-word; }
.bubble img { border-radius: 8px; max-height: 180px; cursor: pointer; }
.chat-input { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; min-height: 40px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; outline: none; background: #FFF; }
.chat-input button { border: none; background: var(--primary); color: #FFF; border-radius: 999px; padding: 0 16px; cursor: pointer; font-size: 14px; }
.chat-input .img-btn { background: #FFF; color: var(--primary); border: 1.5px solid var(--primary); position: relative; overflow: hidden; }
.chat-input .img-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- 登录/注册 ---------- */
.auth-logo { text-align: center; padding: 40px 0 24px; }
.auth-logo .icon { font-size: 52px; }
.auth-logo h1 { font-size: 22px; margin-top: 8px; color: var(--primary-dark); }
.auth-logo p { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.role-switch { display: flex; background: #EFEAE4; border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.role-switch button { flex: 1; border: none; background: none; min-height: 38px; border-radius: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.role-switch button.active { background: #FFF; color: var(--primary-dark); font-weight: 600; box-shadow: 0 1px 3px rgba(41,37,36,.1); }

/* ---------- 我的 ---------- */
.me-head { display: flex; align-items: center; gap: 12px; padding: 18px 14px; background: linear-gradient(120deg, #FFF, #F8F1E8); border-radius: 12px; margin-bottom: 12px; }
.me-avatar { width: 54px; height: 54px; border-radius: 999px; background: var(--primary); color: #FFF; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.me-info { flex: 1; }
.me-info .nick { font-size: 17px; font-weight: 700; }
.me-info .phone { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.cell { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--card); border-radius: 12px; margin-bottom: 10px; cursor: pointer; box-shadow: 0 1px 4px rgba(41,37,36,.06); }
.cell .ic { font-size: 20px; flex: none; }
.cell .tx { flex: 1; font-size: 15px; }
.cell .arrow { color: var(--text-3); }

/* ---------- 商家工作台 ---------- */
.count-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.count-cell { background: var(--card); border-radius: 10px; padding: 10px 4px; text-align: center; cursor: pointer; box-shadow: 0 1px 4px rgba(41,37,36,.06); border: 1.5px solid transparent; }
.count-cell.active { border-color: var(--primary); background: var(--primary-light); }
.count-cell .n { font-size: 18px; font-weight: 700; }
.count-cell .t { font-size: 11px; color: var(--text-2); margin-top: 2px; }

/* ---------- 动态行（面料/尺码编辑） ---------- */
.dyn-row { display: grid; grid-template-columns: 1fr 92px 84px 36px; gap: 6px; margin-bottom: 8px; align-items: center; }
.dyn-row input, .dyn-row select { min-height: 40px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; outline: none; background: #FFF; font-size: 13px; }
.dyn-row .del { height: 40px; border: 1px solid #F3D8D8; background: #FFF; color: var(--danger); border-radius: 8px; cursor: pointer; font-size: 16px; }
.dyn-row.color input[type="color"] { padding: 2px; height: 40px; }
.add-row { width: 100%; min-height: 40px; border: 1.5px dashed var(--primary); background: var(--primary-light); color: var(--primary-dark); border-radius: 8px; font-size: 14px; cursor: pointer; margin-bottom: 12px; }
.img-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.img-pick { position: relative; width: 76px; height: 76px; border-radius: 8px; border: 1px solid var(--border); background: #FFF; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-3); font-size: 11px; cursor: pointer; overflow: hidden; }
.img-pick img { width: 100%; height: 100%; object-fit: cover; }
.img-pick.cover { border: 2px solid var(--primary); }
.img-pick .rm { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 999px; border: none; background: rgba(0,0,0,.5); color: #FFF; font-size: 11px; line-height: 1; cursor: pointer; }

/* ---------- 管理后台(宽屏适配) ---------- */
.admin-wrap { max-width: 860px; margin: 0 auto; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat-cell { background: var(--card); border-radius: 10px; padding: 14px; box-shadow: 0 1px 4px rgba(41,37,36,.06); }
.stat-cell .n { font-size: 22px; font-weight: 700; color: var(--primary-dark); }
.stat-cell .t { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.review-card { display: flex; gap: 12px; }
.review-card img.license { flex: none; width: 120px; height: 90px; border-radius: 8px; object-fit: cover; cursor: pointer; background: var(--border); }
.m-sec-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.m-sec-tabs button { flex: 1; border: none; background: #FFF; min-height: 40px; border-radius: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; border: 1px solid var(--border); }
.m-sec-tabs button.active { background: var(--primary); color: #FFF; font-weight: 600; border-color: var(--primary); }

/* ---------- Toast / Modal / 上传中 ---------- */
.toast { position: fixed; top: 20%; left: 50%; transform: translateX(-50%); z-index: 999; max-width: 80vw; padding: 10px 20px; border-radius: 10px; background: rgba(41,37,36,.88); color: #FFF; font-size: 14px; text-align: center; pointer-events: none; }
.modal-mask { position: fixed; inset: 0; z-index: 900; background: rgba(28,25,23,.55); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { width: 100%; max-width: 420px; background: #FFF; border-radius: 14px; padding: 18px; max-height: 82vh; overflow-y: auto; }
.modal h3 { font-size: 16px; margin-bottom: 12px; text-align: center; }
.modal .btn-row { margin-top: 16px; }
.viewer-mask { position: fixed; inset: 0; z-index: 950; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.viewer-mask img { max-width: 96vw; max-height: 96vh; }
.loading { text-align: center; padding: 40px; color: var(--text-3); }
.spin { display: inline-block; width: 22px; height: 22px; border: 2.5px solid var(--border); border-top-color: var(--primary); border-radius: 999px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ===== 版型编辑器 / 管理后台 补充（Phase5-2） ===== */

.steps { display: flex; gap: 4px; margin-bottom: 12px; }
.step { flex: 1; text-align: center; font-size: 11px; color: var(--text-3); padding: 6px 0 4px; border-radius: 8px; background: rgba(0,0,0,.03); position: relative; }
.step .dot { display: block; width: 20px; height: 20px; line-height: 20px; border-radius: 999px; background: #FFF; border: 1px solid var(--border); margin: 0 auto 3px; font-size: 11px; color: var(--text-3); }
.step.on { color: var(--primary); background: rgba(180,83,9,.08); font-weight: 600; }
.step.on .dot { background: var(--primary); border-color: var(--primary); color: #FFF; }
.step.done { color: var(--text-2); }
.step.done .dot { background: #15803D; border-color: #15803D; color: #FFF; }
.fixed-actions { position: sticky; bottom: 10px; margin-top: 14px; z-index: 30; }
.fixed-actions .btn { flex: 1; }

.cat-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: #FFF; font-size: 13px; color: var(--text-2); cursor: pointer; }
.cat-chip.on { border-color: var(--primary); background: rgba(180,83,9,.08); color: var(--primary); font-weight: 600; }

.fab-row { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; background: #FFF; }
.fab-row .f-name { width: 100%; margin-bottom: 6px; }
.fab-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fab-ctl .f-color-lb { font-size: 12px; color: var(--text-3); }
.fab-ctl .f-color { width: 34px; height: 30px; padding: 2px; border: 1px solid var(--border); border-radius: 6px; background: #FFF; cursor: pointer; }
.fab-ctl .f-delta { width: 74px; }
.fab-ctl .unit { font-size: 12px; color: var(--text-3); margin-right: auto; }
.f-img-btn, .f-del { width: 32px; height: 30px; border: 1px solid var(--border); border-radius: 6px; background: #FFF; cursor: pointer; font-size: 13px; color: var(--text-2); }
.f-del { color: #B91C1C; }
.fab-imgs .img-pick { width: 54px; height: 54px; margin-top: 6px; }

.meas-row { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; background: #FFF; }
.meas-line1 { display: flex; gap: 8px; }
.meas-line1 .m-name { flex: 1; }
.meas-line1 .f-del { flex: none; }
.meas-row .m-hint { width: 100%; margin-top: 6px; font-size: 12px; }

.img-pick .img-del { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 999px; border: none; background: rgba(0,0,0,.55); color: #FFF; font-size: 11px; line-height: 18px; text-align: center; cursor: pointer; padding: 0; }

.garment-mg { display: flex; gap: 10px; align-items: center; }
.garment-mg .oc-thumb { flex: none; }
.garment-mg .oc-main { flex: 1; min-width: 0; }
.gm-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
/* 版型卡片上的上架/下架操作按钮(B3修复: 入口显式化) */
.gm-act {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 60px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 18px;
  border: 1px solid #16A34A; color: #15803D; background: #F0FDF4;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.gm-act:active { opacity: .7; }
.gm-act.off { border-color: #D1D5DB; color: #6B7280; background: #F3F4F6; }

.fab-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fab-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px 3px 6px; background: #FFF; }
.fab-chip i { width: 14px; height: 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,.08); }
.meas-preview .meas-item { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.meas-preview .meas-item:last-child { border-bottom: none; }
.meas-preview .meas-item b { font-weight: 500; }
.g-desc { font-size: 13px; color: var(--text-2); margin: 8px 0 0; white-space: pre-wrap; }

.seg { display: flex; background: rgba(0,0,0,.05); border-radius: 10px; padding: 3px; }
.seg-item { flex: 1; text-align: center; font-size: 13px; color: var(--text-2); padding: 7px 0; border-radius: 8px; cursor: pointer; }
.seg-item.on { background: #FFF; color: var(--primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.merchant-ad .ad-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.merchant-ad .ad-head b { font-size: 15px; }
.lic-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; }

.btn.sm { padding: 6px 14px; font-size: 13px; }
