/* ============================================================
   买办中心 /manage
   沿用小程序「浅色线框像素风」: 2px 黑边、硬阴影、方角、粗标题
   ============================================================ */
.manage-page { padding-top: 6px; }
.manage-page .px-card { margin-left: 2px; margin-right: 2px; }

/* ---------- 头部卡片 ---------- */
.mg-head { padding: 12px 12px 10px; }
.mg-head-top { display: flex; align-items: flex-start; gap: 10px; }
.mg-avatar-wrap { position: relative; flex: 0 0 auto; cursor: pointer; }
.mg-avatar-edit {
  position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--paper); pointer-events: none;
}
.mg-head-main { flex: 1; min-width: 0; padding-top: 2px; }
.mg-head-name {
  font-size: 19px; font-weight: 900; letter-spacing: 1px; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mg-head-sub { margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.mg-head .b-tag { flex: 0 0 auto; margin-top: 4px; }

.mg-stat-row {
  display: flex; margin: 12px 0 2px;
  border-top: 2px dashed var(--line-soft); border-bottom: 2px dashed var(--line-soft);
  padding: 9px 0;
}
.mg-stat { flex: 1; min-width: 0; text-align: center; }
.mg-stat-n { font-size: 21px; font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; }
.mg-stat-k { margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.mg-head-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.mg-head-actions .mini-btn { font-size: 12px; padding: 5px 14px; margin: 0; }
.mg-desc { margin-top: 9px; font-size: 12.5px; color: #4a4a52; line-height: 1.65; word-break: break-word; }
.mg-proof-line { margin-top: 6px; font-size: 12px; color: var(--muted); }
.mg-poll-tip {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  margin-top: 9px; font-size: 10.5px; color: var(--muted-2); line-height: 1.5;
}
.mg-poll-tip .link { flex: 0 0 auto; font-size: 11px; color: var(--muted); }

/* ---------- 三个 tab ---------- */
.mg-tabs { margin: 10px 2px 0; }
.mg-tabs .tab { font-size: 14px; padding: 8px 0; }
.mg-tab-n {
  display: inline-block; min-width: 17px; padding: 0 4px; margin-left: 4px;
  background: var(--ink); color: #fff; font-size: 10px; line-height: 16px;
  vertical-align: 1px; text-align: center;
}
.mg-tabs .tab:not(.on) .mg-tab-n { background: var(--shadow-2); }

/* ---------- 需求卡片 ---------- */
.mg-list { padding-top: 2px; }
.mg-req { padding: 11px; cursor: default; }
.mg-req.mg-clickable { cursor: pointer; }
.mg-req.mg-clickable:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--shadow); }
.mg-req-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mg-buyer { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mg-buyer .avatar { width: 34px; height: 34px; border-width: 2px; }
.mg-buyer-main { min-width: 0; }
.mg-buyer-name { font-size: 13px; font-weight: 800; line-height: 1.35; }
.mg-req-time { margin-top: 1px; font-size: 10.5px; color: var(--muted); }
.mg-req-top .b-tag { flex: 0 0 auto; margin-top: 2px; }
.mg-req-body { display: flex; align-items: flex-start; gap: 9px; margin-top: 9px; }
.mg-thumb {
  width: 64px; height: 64px; flex: 0 0 64px; border: 2px solid var(--line);
  background: var(--paper); object-fit: cover; cursor: zoom-in;
}
.mg-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--shadow-2); font-size: 11px; border-style: dashed; cursor: default;
}
.mg-req-main { flex: 1; min-width: 0; }
.mg-req-content { font-size: 14px; font-weight: 800; line-height: 1.55; word-break: break-word; white-space: pre-wrap; }
.mg-done-content { margin-top: 8px; }
.mg-req-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.mg-req-meta .b-tag { font-size: 10px; padding: 0 5px; }
.mg-phone-line { margin-top: 7px; font-size: 12px; color: #4a4a52; }
.mg-phone-line .phone-tap { font-weight: 800; color: var(--ink); }
.mg-cost { margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--orange); }
.mg-actions { margin-top: 2px; }
.mg-actions .b-btn { font-size: 14px; padding: 8px 0; margin: 9px 0 0; }
.mg-req .b-tip { margin: 6px 0 0; font-size: 11px; }
.mg-foot-tip { margin: 12px 6px 6px; font-size: 11px; color: var(--muted-2); line-height: 1.7; }

/* ---------- 设置半屏 ---------- */
.mg-set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 0; border-bottom: 2px dashed var(--line-soft);
}
.mg-set-label { font-size: 14px; font-weight: 800; }
.mg-set-row .b-tip { margin-top: 2px; }
.mg-switch { position: relative; flex: 0 0 52px; width: 52px; height: 28px; cursor: pointer; }
.mg-switch input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  margin: 0; cursor: pointer; z-index: 2;
}
.mg-switch-track {
  position: absolute; inset: 0; border: 2px solid var(--line);
  background: #f4f4ef; box-shadow: 2px 2px 0 var(--shadow);
  transition: background 0.12s linear;
}
.mg-switch-track::after {
  content: ''; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px;
  background: var(--ink); transition: left 0.12s linear, background 0.12s linear;
}
.mg-switch input:checked + .mg-switch-track { background: var(--ink); }
.mg-switch input:checked + .mg-switch-track::after { left: 26px; background: #fff; }
.mg-proof-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.mg-proof-row img {
  width: 96px; height: 96px; border: 2px solid var(--line); background: var(--paper);
  object-fit: cover; display: block; cursor: zoom-in;
}
.mg-proof-row .thumb-empty { width: 96px; height: 96px; flex: 0 0 96px; }
.mg-count { text-align: right; margin-top: 2px; }
#set-desc { margin-bottom: 0; }

/* ---------- 申请页 ---------- */
.mg-apply { padding: 15px 14px 14px; }
.mg-apply-head { font-size: 20px; font-weight: 900; letter-spacing: 1px; }
.mg-apply-sub { margin-top: 3px; font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }
.mg-avatar-row { display: flex; align-items: center; gap: 12px; margin: 13px 0 4px; }
.mg-avatar-row .b-tip { margin: 0; }
.mg-intro { margin: 7px 0 4px; }
.mg-apply .b-label { margin-top: 15px; }
.mg-apply .b-image-pick { width: 118px; height: 92px; margin-top: 6px; font-size: 26px; }
.mg-proof-wrap { display: block; margin-top: 6px; }
.mg-proof-wrap img {
  width: auto; max-width: 200px; max-height: 160px;
  border: 2px solid var(--line); cursor: zoom-in;
}
.mg-apply .px-btn { margin-top: 14px; }
.mg-foot-inline { margin-top: 9px; }
.mg-apply .form-warn { margin: 10px 0 0; }

/* ---------- 待审核 ---------- */
.mg-status { padding: 16px 14px 14px; }
.mg-status-top { display: flex; align-items: center; justify-content: space-between; }
.mg-status-time { font-size: 11px; color: var(--muted); }
.mg-status .mg-apply-head { margin-top: 10px; }
.mg-status .b-tip { margin-top: 4px; }
.mg-status-info { margin-top: 12px; padding-top: 10px; border-top: 2px dashed var(--line-soft); }
.mg-status-info .field-label { margin-bottom: 3px; }
.mg-status-label { margin-top: 11px; }
.mg-status-proof {
  display: block; max-width: 200px; max-height: 160px; margin-top: 6px;
  border: 2px solid var(--line); cursor: zoom-in;
}
.mg-status .px-btn { margin-top: 14px; }
.mg-status .mg-poll-tip { justify-content: space-between; }

/* ---------- 任务广场入口 ---------- */
.mg-plaza {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 2px 0; padding: 11px 12px; cursor: pointer;
}
.mg-plaza:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--shadow); }
.mg-plaza-icon {
  flex: 0 0 34px; width: 34px; height: 34px; border: 2px solid var(--ink);
  background: #f4f4ef; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900;
}
.mg-plaza-main { flex: 1; min-width: 0; }
.mg-plaza-title { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 900; line-height: 1.3; }
.mg-plaza-num { flex: 0 0 auto; font-size: 10px; }
.mg-plaza-sub { margin-top: 2px; font-size: 11px; color: var(--muted); }
.mg-plaza-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; }
.mg-plaza-go .chev { border-color: var(--ink); }
.mg-plaza.hot { box-shadow: 3px 3px 0 var(--shadow-2); }
.mg-plaza.hot .mg-plaza-icon { background: var(--ink); color: #fff; border-color: var(--ink); }
.mg-plaza.locked { box-shadow: 2px 2px 0 var(--shadow); }
.mg-plaza.locked .mg-plaza-icon { color: var(--muted-2); border-color: var(--shadow-2); }
.mg-plaza.locked .mg-plaza-go { color: var(--muted-2); font-size: 11px; }
.mg-plaza.locked .mg-plaza-go .chev { border-color: var(--muted-2); }
