:root {
  --rose: #E8546B;
  --rose-deep: #C33D55;
  --wine: #5C1E30;
  --side: #241318;
  --side-hover: #341D24;
  --bg: #F6F5F4;
  --card: #FFFFFF;
  --line: #E8E4E2;
  --line-soft: #F1EEEC;
  --t1: #1F1B1A;
  --t2: #726A67;
  --t3: #A8A09C;
  --ok: #1D9E75;
  --warn: #BA7517;
  --danger: #E24B4A;
  --info: #378ADD;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font: 14px/1.55 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.hidden { display: none !important; }

/* ---------------- 登录 ---------------- */
.login-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1100px 520px at 50% -10%, #3A2028 0%, rgba(58, 32, 40, 0) 62%),
    linear-gradient(160deg, #241318 0%, #170C10 100%);
  padding: 24px;
}
.login-card {
  width: 380px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 32px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.login-logo {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--rose), var(--rose-deep));
  color: #fff; font-size: 20px; font-weight: 600;
  letter-spacing: 0;
}
.login-brand h1 { font-size: 17px; }
.login-brand p { margin: 2px 0 0; font-size: 12px; color: var(--t3); }
.login-card label {
  display: block; font-size: 12px; color: var(--t2);
  margin: 0 0 6px;
}
.login-card input {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; color: var(--t1); background: #FDFCFC;
  margin-bottom: 16px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.login-card input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(232, 84, 107, .12); }
.login-err { min-height: 18px; font-size: 12px; color: var(--danger); margin-bottom: 6px; }
.login-tip {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--t2); line-height: 1.9;
}
.login-tip code {
  background: #F4F1F0; padding: 1px 6px; border-radius: 4px;
  color: var(--wine); font-size: 12px;
}

/* ---------------- 外壳 ---------------- */
.shell { display: flex; height: 100vh; overflow: hidden; }

.side {
  width: 220px; flex: 0 0 220px;
  background: var(--side);
  display: flex; flex-direction: column;
  color: #E9E2E4;
}
.side-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 18px 18px 16px;
  font-size: 15px;
}
.side-brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(232, 84, 107, .18);
}
.side-brand em {
  font-style: normal; font-size: 11px; color: #9C8C90;
  padding: 1px 5px; border: 1px solid #4A3138; border-radius: 4px;
}
#nav { flex: 1; overflow-y: auto; padding: 4px 10px 20px; }
.nav-group { margin-top: 14px; }
.nav-group > span {
  display: block; padding: 0 8px 6px;
  font-size: 11px; color: #7D6C70; letter-spacing: .06em;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; margin-bottom: 2px;
  border-radius: 8px; cursor: pointer;
  font-size: 13.5px; color: #C9BEC1;
  transition: background .14s, color .14s;
  user-select: none;
}
.nav-item:hover { background: var(--side-hover); color: #fff; }
.nav-item.on { background: var(--rose); color: #fff; font-weight: 500; }
.nav-item .n-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: rgba(255, 255, 255, .16);
  font-size: 11px; line-height: 18px; text-align: center;
}
.nav-item.on .n-badge { background: rgba(0, 0, 0, .22); }
.nav-item .n-badge.hot { background: var(--danger); color: #fff; }
.nav-item .ico { width: 15px; text-align: center; opacity: .85; }
.nav-lock { opacity: .38; cursor: not-allowed; }
.nav-lock:hover { background: transparent; color: #C9BEC1; }

.side-foot { padding: 12px 14px 16px; border-top: 1px solid #34212A; }
.who { margin-bottom: 10px; }
.who span { display: block; font-size: 13px; color: #EDE6E8; }
.who em { font-style: normal; font-size: 11px; color: #8C7B80; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 18px 26px 14px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.topbar h2 { font-size: 17px; }
.topbar p { margin: 3px 0 0; font-size: 12.5px; color: var(--t2); }
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.view { flex: 1; overflow-y: auto; padding: 20px 26px 40px; }

/* ---------------- 通用组件 ---------------- */
.btn {
  height: 32px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--t1);
  font-size: 13px; cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
  font-family: inherit;
}
.btn:hover { background: #FAF8F8; border-color: #D8D2CF; }
.btn.primary { background: var(--rose); border-color: var(--rose); color: #fff; }
.btn.primary:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn.ghost { background: transparent; }
.btn.side-ghost { background: transparent; border-color: #4A3138; color: #C9BEC1; }
.btn.side-ghost:hover { background: var(--side-hover); color: #fff; }
.btn.small { height: 27px; padding: 0 10px; font-size: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.danger { background: #fff; border-color: #F0C9C9; color: var(--danger); }
.btn.danger:hover { background: #FDF3F3; }
.btn.link { border: none; background: none; color: var(--info); padding: 0 4px; height: auto; }
.btn.link:hover { background: none; text-decoration: underline; }

select, input[type=text], input[type=search] {
  height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 13px; color: var(--t1);
  font-family: inherit; outline: none;
}
select:focus, input:focus { border-color: var(--rose); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px;
}
.card + .card { margin-top: 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-h h3 { font-size: 14.5px; }
.card-h .sub { font-size: 12px; color: var(--t3); font-weight: 400; margin-left: 8px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; position: relative; overflow: hidden;
}
.kpi .k-label { font-size: 12px; color: var(--t2); }
.kpi .k-val {
  font-size: 25px; font-weight: 600; letter-spacing: -.02em;
  margin: 5px 0 2px; font-variant-numeric: tabular-nums;
}
.kpi .k-val small { font-size: 13px; font-weight: 400; color: var(--t2); margin-left: 3px; }
.kpi .k-sub { font-size: 11.5px; color: var(--t3); }
.kpi.accent { border-color: #F3D2D7; background: linear-gradient(180deg, #FFF8F9, #fff); }
.kpi.accent .k-val { color: var(--rose-deep); }

.badge {
  display: inline-block; padding: 1px 7px; border-radius: 5px;
  font-size: 11.5px; line-height: 18px; white-space: nowrap;
}
.badge.ok { background: #E7F6F0; color: #0F6E56; }
.badge.warn { background: #FCF2E2; color: #8A5A10; }
.badge.danger { background: #FDECEC; color: #A32D2D; }
.badge.info { background: #EAF2FD; color: #185FA5; }
.badge.mute { background: #F2EFEE; color: #726A67; }
.badge.pink { background: #FDEEF2; color: #993556; }

table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th {
  text-align: left; font-weight: 500; color: var(--t2); font-size: 12px;
  padding: 9px 10px; border-bottom: 1px solid var(--line);
  background: #FBFAF9; white-space: nowrap;
}
table.tb td {
  padding: 10px; border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
table.tb tbody tr:hover { background: #FCFBFA; }
table.tb .num { text-align: right; font-variant-numeric: tabular-nums; }
table.tb .mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.tb-wrap { overflow-x: auto; }

.empty { padding: 44px 0; text-align: center; color: var(--t3); font-size: 13px; }
.empty .big { font-size: 26px; display: block; margin-bottom: 8px; opacity: .5; }

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.mt8 { margin-top: 8px; }
.mt14 { margin-top: 14px; }
.muted { color: var(--t2); }
.tiny { font-size: 12px; }

.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 12.5px; color: var(--t2); flex-wrap: wrap; }
.pager-gap { color: var(--t3); padding: 0 2px; letter-spacing: 1px; }
/* 当前页按钮是 disabled 的，但它是「你在第几页」的唯一标识，不能跟普通禁用按钮一样淡成看不清 */
.pager .btn.primary[disabled] { opacity: 1; cursor: default; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  padding: 8px 13px; cursor: pointer; font-size: 13.5px; color: var(--t2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--t1); }
.tab.on { color: var(--rose-deep); border-bottom-color: var(--rose); font-weight: 500; }
.tab .cnt {
  font-size: 11px; padding: 0 5px; border-radius: 8px;
  background: #F0ECEB; color: var(--t2); min-width: 17px; text-align: center;
  margin-left: 2px;
}
.tab.on .cnt { background: #FCE4E8; color: var(--rose-deep); }
.tab .cnt.hot { background: var(--danger); color: #fff; }

/* ---------------- 图表 ---------------- */
.chart-box { width: 100%; }
.chart-box svg { display: block; width: 100%; height: auto; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--t2); margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }

.bar-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.bar-line .bl-name { width: 92px; flex: 0 0 92px; color: var(--t2); font-size: 12.5px; }
.bar-line .bl-track { flex: 1; height: 20px; background: #F4F1F0; border-radius: 5px; overflow: hidden; }
.bar-line .bl-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #F0899A, var(--rose)); }
.bar-line .bl-val { width: 74px; text-align: right; font-size: 12.5px; color: var(--t1); font-variant-numeric: tabular-nums; }

.funnel-row {
  display: flex; align-items: center; gap: 12px; padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.funnel-row:last-child { border-bottom: none; }
.funnel-name { width: 84px; flex: 0 0 84px; font-size: 13px; }
.funnel-bar { flex: 1; height: 26px; background: #F6F3F2; border-radius: 6px; position: relative; overflow: hidden; }
.funnel-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; }
.funnel-val { width: 118px; text-align: right; font-size: 12.5px; color: var(--t2); }
.funnel-val b { color: var(--t1); font-weight: 600; }

/* ---------------- 审核卡片 ---------------- */
.audit-list { display: flex; flex-direction: column; gap: 10px; }
.audit-item {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px;
  background: #fff; transition: border-color .14s;
}
.audit-item:hover { border-color: #E0D6D3; }
.audit-item.breached { border-left: 3px solid var(--danger); }
.audit-item.warnline { border-left: 3px solid var(--warn); }
.ai-check { padding-top: 2px; }
.ai-check input { width: 15px; height: 15px; accent-color: var(--rose); cursor: pointer; }
.ai-body { flex: 1; min-width: 0; }
.ai-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.ai-who { font-weight: 500; }
.ai-meta { font-size: 12px; color: var(--t3); }
.ai-content {
  font-size: 13px; color: #3A3432; background: #FBFAF9;
  border: 1px solid var(--line-soft); border-radius: 7px;
  padding: 8px 11px; margin: 6px 0; line-height: 1.6;
  max-height: 78px; overflow: hidden; position: relative;
}
.ai-thumb {
  width: 58px; height: 58px; border-radius: 8px;
  background: linear-gradient(145deg, #F5D7DD, #E9B8C3);
  display: grid; place-items: center; color: #B06073; font-size: 12px;
  border: 1px solid #EFDDE1; flex: 0 0 58px;
  overflow: hidden;
}
.ai-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.ai-actions { display: flex; gap: 7px; align-items: center; }

/* ---------------- 建档表单里的头像 ---------------- */
.fm-avatar { display: flex; align-items: center; gap: 14px; }
.fm-av {
  width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%; overflow: hidden;
  background: #FAF7F7; border: 2px dashed #E4D2D7; cursor: pointer;
  display: grid; place-items: center; text-align: center;
  color: #C08C97; font-size: 20px; line-height: 1.2; transition: border-color .15s, background .15s;
}
.fm-av:hover { border-color: var(--rose); background: #FFF6F8; }
.fm-av.has { border-style: solid; border-color: #fff; box-shadow: 0 1px 6px rgba(180, 120, 133, .22); background: #F5E9EC; }
.fm-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-av-ph span { font-size: 11px; }
.fm-av-side { flex: 1; min-width: 0; }
.fm-av-btns { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }

/* ---------------- 会员头像（后台代传） ---------------- */
.avat-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; margin-bottom: 16px;
  background: #FAF8F7; border: 1px solid var(--line-soft); border-radius: 10px;
}
.avat-box {
  width: 84px; height: 84px; flex: 0 0 84px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(145deg, #F5D7DD, #E9B8C3);
  display: grid; place-items: center; color: #B06073; font-size: 30px; font-weight: 700;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(180, 120, 133, .18);
}
.avat-box img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.avat-box.none { border-style: dashed; border-color: #E8D3D8; }
.avat-side { flex: 1; min-width: 0; }
.avat-btns { display: flex; align-items: center; gap: 8px; margin: 7px 0 6px; }
.avat-mini {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(145deg, #F5D7DD, #E9B8C3);
  display: grid; place-items: center; color: #B06073; font-size: 13px; font-weight: 600;
}
.avat-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- 对账 ---------------- */
.diff-item {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 15px; margin-bottom: 10px; background: #fff;
}
.diff-item.err { border-left: 3px solid var(--danger); }
.diff-item.warn { border-left: 3px solid var(--warn); }
.diff-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.diff-order { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--wine); }
.diff-desc { font-size: 13px; color: #3A3432; margin: 6px 0; }
.diff-advice {
  font-size: 12px; color: var(--t2); background: #FBFAF9;
  padding: 7px 10px; border-radius: 6px; border: 1px dashed var(--line);
}
.money-pair { display: inline-flex; gap: 10px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.money-pair b { font-weight: 600; }

/* ---------------- 模态框 / 提示 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20, 12, 15, .48);
  display: grid; place-items: center; z-index: 80; padding: 20px;
  backdrop-filter: blur(2px);
}
.modal {
  width: 420px; max-width: 100%; background: #fff; border-radius: 14px;
  padding: 20px 22px 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.modal h3 { font-size: 15px; margin-bottom: 12px; }
.modal-body { font-size: 13.5px; color: #3A3432; line-height: 1.7; }
.modal-body textarea {
  width: 100%; height: 84px; margin-top: 10px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 8px; resize: vertical;
  font-family: inherit; font-size: 13px; outline: none;
}
.modal-body textarea:focus { border-color: var(--rose); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px);
  background: #241318; color: #fff; padding: 10px 18px;
  border-radius: 9px; font-size: 13px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 100;
  max-width: 78vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #A32D2D; }

.spin {
  width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff; border-radius: 50%; display: inline-block;
  animation: sp .7s linear infinite; vertical-align: -3px; margin-right: 6px;
}
@keyframes sp { to { transform: rotate(360deg); } }

.skel { background: linear-gradient(90deg, #F2EFEE, #FAF8F8, #F2EFEE); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

@media (max-width: 900px) {
  .side { width: 62px; flex: 0 0 62px; }
  .side-brand b, .side-brand em, .nav-group > span, .nav-item span.lbl, .who, .side-foot .btn { display: none; }
  .nav-item { justify-content: center; }
  .view { padding: 14px; }
  .topbar { padding: 14px; }
}

/* ==================== 扩展模块：表单与通用块 ==================== */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; color: var(--t2); }
.field input[type=text], .field input[type=password], .field input[type=number],
.field input[type=date], .field input[type=datetime-local], .field select, .field textarea {
  width: 100%; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 13px; color: var(--t1);
  font-family: inherit; outline: none;
}
.field textarea { height: auto; min-height: 74px; padding: 8px 10px; line-height: 1.6; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); }
/* 只读展示项（例：红娘卡底部按钮固定「委托牵线」，不让改） */
.field input:disabled { background: #F6F3F4; color: var(--t3); cursor: not-allowed; }
.field .hint { font-size: 11.5px; color: var(--t3); }
.field.full { grid-column: 1 / -1; }
.form-foot { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.form-foot .grow { flex: 1; }

.sec-title { font-size: 12px; color: var(--t3); letter-spacing: .04em; margin: 20px 0 10px; }
.sec-title:first-child { margin-top: 0; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch i {
  width: 34px; height: 19px; border-radius: 10px; background: #DCD6D3;
  position: relative; transition: background .16s; flex: 0 0 34px;
}
.switch i::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px;
  border-radius: 50%; background: #fff; transition: transform .16s;
  box-shadow: 0 1px 2px rgba(0,0,0,.14);
}
.switch.on i { background: var(--rose); }
.switch.on i::after { transform: translateX(15px); }
.switch span { font-size: 12.5px; color: var(--t2); }

.zone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.zone-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: #FCFBFA;
}
.zone-card b { font-size: 13px; display: block; margin-bottom: 3px; }
.zone-card .tiny { display: block; }
.zone-card .code { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--t3); }

.tpl-list { display: flex; flex-direction: column; gap: 8px; }
.tpl-item {
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: #FCFBFA;
  display: flex; gap: 12px; align-items: flex-start;
}
.tpl-item .tpl-body { flex: 1; min-width: 0; }
.tpl-item .tpl-code { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--t3); }
.tpl-item .tpl-text { font-size: 12.5px; color: var(--t2); margin-top: 3px; line-height: 1.55; }

.rank-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.rank-row:last-child { border-bottom: none; }
.rank-no {
  width: 20px; height: 20px; border-radius: 6px; background: #F1EEEC; color: var(--t2);
  font-size: 11px; display: grid; place-items: center; flex: 0 0 20px;
}
.rank-row:nth-child(1) .rank-no { background: #FBE7B8; color: #8A6A12; }
.rank-row:nth-child(2) .rank-no { background: #EDE9E6; color: #6E655F; }
.rank-row:nth-child(3) .rank-no { background: #F3E2D3; color: #8A5A2B; }
.rank-bar { flex: 1; height: 5px; border-radius: 3px; background: #F1EEEC; overflow: hidden; }
.rank-bar i { display: block; height: 5px; background: var(--rose); border-radius: 3px; }

.health-item { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 12.5px; border-bottom: 1px solid var(--line-soft); }
.health-item:last-child { border-bottom: none; }
.dot-ok, .dot-bad { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.dot-ok { background: var(--ok); }
.dot-bad { background: var(--danger); }

.msg-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 16px; align-items: start; }
@media (max-width: 1080px) { .msg-split { grid-template-columns: 1fr; } }

.preview-box {
  background: #FCFBFA; border: 1px solid var(--line-soft); border-radius: 9px;
  padding: 10px 12px; font-size: 12.5px; color: var(--t2); line-height: 1.7;
  max-height: 150px; overflow: auto;
}
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #F6F3F2; font-size: 11.5px; color: var(--t2); }
.chip.dark { background: #2C1A20; color: #E9DDE0; }
.mono-sm { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: var(--t2); }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .split-2 { grid-template-columns: 1fr; } }

/* ============================ 会员生活照 ============================ */
.photo-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 4px 0 8px; padding-top: 12px; border-top: 1px solid var(--line-soft);
}
.photo-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 720px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.photo-cell {
  position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden;
  background: #F7F4F3; border: 1px solid var(--line-soft); cursor: zoom-in;
}
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cell:hover img { opacity: .92; }

/* 老种子数据只有 /upload/photo/365_0.jpg 这种假路径，文件不存在。
   加载失败时把 img 摘掉、露出「文件缺失」，不留一个破图占位。 */
.photo-cell.broken { cursor: not-allowed; background: repeating-linear-gradient(45deg, #F7F4F3, #F7F4F3 6px, #F1EDEC 6px, #F1EDEC 12px); }
.photo-cell.broken img { display: none; }
.photo-miss { display: none; }
.photo-cell.broken .photo-miss {
  display: flex; align-items: center; justify-content: center;
  position: absolute; inset: 0; font-size: 11px; color: #A79F9C;
}

.photo-x {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  border: none; border-radius: 50%; background: rgba(36, 19, 24, .55); color: #fff;
  font-size: 14px; line-height: 18px; padding: 0; cursor: pointer;
  opacity: 0; transition: opacity .12s, background .12s;
}
.photo-cell:hover .photo-x { opacity: 1; }
.photo-x:hover { background: var(--danger); }

.photo-tags { position: absolute; left: 4px; bottom: 4px; display: flex; gap: 3px; flex-wrap: wrap; }
.photo-tags .badge { font-size: 10px; padding: 1px 5px; line-height: 1.5; }

.photo-empty {
  grid-column: 1 / -1; padding: 18px 12px; text-align: center; color: var(--t3);
  border: 1px dashed var(--line); border-radius: 8px; background: #FCFBFA;
}

.photo-viewer {
  position: fixed; inset: 0; z-index: 999; background: rgba(20, 12, 15, .86);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 12px; padding: 24px; cursor: zoom-out;
  /* 认证材料可能有正反两面，多图时纵向滚动而不是被裁掉 */
  overflow-y: auto;
}
.photo-viewer img {
  max-width: min(92vw, 900px); max-height: 72vh; border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45); background: #fff;
  flex-shrink: 0;
}
/* 只有一张时回到垂直居中，不要贴着顶端 */
.photo-viewer img:only-of-type { margin: auto 0; }
.photo-viewer .tiny { color: rgba(255, 255, 255, .72); }

/* ============================ 会员表单里的图片上传 ============================ */
/* 建档时一线收资料：生活照多选、身份证正反两面，都在这一个弹层里完成 */
.up-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
}
@media (max-width: 720px) { .up-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.up-cell {
  position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line-soft); background: #F7F4F3;
}
.up-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

.up-add {
  aspect-ratio: 1 / 1; border: 1px dashed var(--line); border-radius: 8px;
  background: #FCFBFA; color: var(--t3); font-size: 11.5px; line-height: 1.4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; padding: 4px; transition: border-color .12s, color .12s;
}
.up-add:hover { border-color: var(--rose); color: var(--rose); }
.up-add:disabled { cursor: progress; }
.up-plus { font-size: 18px; line-height: 1; }

/* 表单里的删除按钮常显：用户刚选的图，得能一眼看到怎么撤 */
.up-x {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  border: none; border-radius: 50%; background: rgba(36, 19, 24, .55); color: #fff;
  font-size: 14px; line-height: 18px; padding: 0; cursor: pointer;
}
.up-x:hover { background: var(--danger); }

.idcard-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 720px) { .idcard-row { grid-template-columns: 1fr; } }

.idcard-box {
  position: relative; aspect-ratio: 8 / 5; border: 1px dashed var(--line);
  border-radius: 8px; background: #FCFBFA; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .12s;
}
.idcard-box:hover { border-color: var(--rose); }
.idcard-box.has { border-style: solid; border-color: var(--line-soft); background: #fff; }
/* 证件照用 contain：竖着拍的照片也能看全，不会被裁掉四边 */
.idcard-box img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.idcard-ph { text-align: center; font-size: 12px; color: var(--t3); line-height: 1.7; }
.idcard-ph span { font-size: 11px; color: var(--t3); opacity: .8; }

/* ============================ 小程序装修 ============================ */
/* 左边改、右边实时预览。预览是简化版首页，只表达结构，不追求像素级还原。 */
.dwrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 16px; align-items: start;
}
@media (max-width: 1180px) { .dwrap { grid-template-columns: 1fr; } .dside { display: none; } }

.dmain { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dcard { margin: 0; }

.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dgrid .field.full { grid-column: 1 / -1; }
@media (max-width: 720px) { .dgrid { grid-template-columns: 1fr; } }

/* ---- 主视觉背景图 ---- */
.dherobg { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dherobg-pv {
  width: 168px; height: 96px; border-radius: 10px; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: rgba(255, 255, 255, .78); font-size: 11.5px; text-align: center; padding: 0 10px;
}

/* ---- 多图上传宫格（主视觉轮播 / 活动现场） ---- */
.dimg-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.dimg {
  position: relative; width: 132px; height: 84px; border-radius: 10px; overflow: hidden;
  background: #F2EDEE; flex-shrink: 0;
}
.dimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dimg-idx {
  position: absolute; left: 5px; top: 5px; min-width: 17px; height: 17px; border-radius: 9px;
  background: rgba(0, 0, 0, .5); color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; padding: 0 4px;
}
.dimg-x, .dimg-top {
  position: absolute; border: 0; cursor: pointer; color: #fff; font-size: 10.5px;
  background: rgba(0, 0, 0, .55); border-radius: 999px; line-height: 18px; height: 18px;
}
.dimg-x { right: 4px; top: 4px; width: 18px; padding: 0; }
.dimg-top { right: 4px; bottom: 4px; padding: 0 7px; }
.dimg-x:hover { background: var(--danger); }
.dimg-top:hover { background: var(--rose); }
.dimg-add {
  width: 132px; height: 84px; border-radius: 10px; border: 1px dashed var(--line-soft);
  background: #FCFBFA; color: var(--t3); font-size: 11.5px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.dimg-add span { font-size: 15px; line-height: 1; }
.dimg-add:hover { border-color: var(--rose); color: var(--rose); }

/* ---- 人员卡（红娘老师 / 课程） ---- */
/* 红娘首页头像框：按真机 1:1 摆一排，空位可点上传 */
.mmwall-h { font-size: 12px; font-weight: 600; color: #6B6266; margin: 14px 0 8px; }
.mmwall { display: flex; flex-wrap: wrap; gap: 16px; }
.mmslot-wrap { width: 74px; text-align: center; }
.mmslot {
  width: 74px; height: 74px; border-radius: 14px; overflow: hidden; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  background: #FBF1F3; border: 1px dashed #E3C2CA; cursor: pointer;
}
.mmslot:hover { border-color: #D84059; background: #FFF6F8; }
.mmslot.has { border-style: solid; border-color: #F8D7DC; background: #fff; }
.mmslot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mmslot-plus { font-size: 20px; line-height: 1; color: #C98C9A; }
.mmslot-name {
  display: block; font-size: 11px; color: #8A8184; margin-top: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.dpers { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.dper {
  display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line-soft);
  border-radius: 10px; background: #FCFBFA;
}
/* 活动地点这一行跟着活动走：外层统一描边，里面封面行去掉自己的边框 */
.dparty {
  border: 1px solid var(--line-soft); border-radius: 10px;
  background: #FCFBFA; overflow: hidden;
}
.dparty .dper { border: none; border-radius: 0; background: transparent; }
.dplace {
  display: flex; gap: 8px; padding: 0 10px 10px 10px;
}
.dplace select { flex: 0 0 118px; font-size: 12.5px; }
.dplace input { flex: 1; min-width: 0; font-size: 12.5px; }
.dper-av {
  width: 58px; height: 58px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: #F2EDEE; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--t3); text-align: center; line-height: 1.35;
}
.dper-av.cover { width: 86px; height: 58px; }
/* 微信二维码槽：跟头像同尺寸，用浅粉底 + 虚线边区分开 */
.dper-qr { background: #FBF1F3; border: 1px dashed #E3C2CA; box-sizing: border-box; }
.dper-qr img { border: 0; }
.dper-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dper-av:hover { outline: 2px solid var(--rose); outline-offset: 1px; }
.dper-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dper-line { display: flex; gap: 6px; }
.dper-line input { flex: 1; min-width: 0; }
.dper-body input, .dper-body textarea { font-size: 12.5px; }
.dper-body textarea { resize: vertical; }
.dper-ops { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.dper-ops .btn.link { padding: 2px 6px; }

/* ---- 主题渐变块 ---- */
.dtone-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dtone {
  width: 76px; height: 42px; border-radius: 9px; cursor: pointer; position: relative;
  border: 2px solid transparent; transition: border-color .12s, transform .12s;
}
.dtone:hover { transform: translateY(-1px); }
.dtone.on { border-color: #1E1A1C; }
.dtone span {
  position: absolute; left: 0; right: 0; bottom: 4px;
  text-align: center; font-size: 10.5px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

/* ---- 主视觉图卡尺寸 ---- */
.dinset-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dinset {
  min-width: 84px; padding: 7px 10px 8px; border-radius: 9px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: #FCFBFA; transition: border-color .12s, background .12s, transform .12s;
}
.dinset:hover { transform: translateY(-1px); }
.dinset.on { border-color: #1E1A1C; background: #fff; box-shadow: 0 0 0 1px #1E1A1C inset; }
.dinset b { display: block; font-size: 12px; color: #1E1A1C; font-weight: 600; }
.dinset em { display: block; font-style: normal; font-size: 10.5px; color: #C03A52; margin-top: 1px; }
.dinset i { display: block; font-style: normal; font-size: 9.5px; color: #A29A9D; margin-top: 2px; }
.dinset-cust { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dinset-cust input {
  width: 78px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12px; text-align: center;
}

/* ---- 轮播 ---- */
.dbans { display: flex; flex-direction: column; gap: 10px; }
.dban {
  display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 10px;
  background: #FCFBFA;
}
.dban-img {
  width: 150px; height: 72px; border-radius: 8px; background-size: cover; background-position: center;
  flex-shrink: 0; position: relative; background-color: #EFE9EA;
}
.dban-idx {
  position: absolute; left: 6px; top: 6px; min-width: 18px; height: 18px; border-radius: 9px;
  background: rgba(0, 0, 0, .5); color: #fff; font-size: 11px; line-height: 18px; text-align: center; padding: 0 4px;
}
.dban-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dban-body input, .dban-body select { font-size: 12.5px; }

/* ---- 功能入口 ---- */
.dentries { display: flex; flex-direction: column; gap: 8px; }
.dentry {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line-soft); border-radius: 10px; background: #FCFBFA;
}
.dentry-icon {
  width: 44px; height: 44px; border-radius: 12px; overflow: hidden; cursor: pointer;
  flex-shrink: 0; position: relative; background: #F2EDEE;
}
.dentry-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.dentry-icon:hover { outline: 2px solid var(--rose); outline-offset: 1px; }
.dentry-custom {
  position: absolute; right: 0; bottom: 0; background: rgba(0, 0, 0, .5); color: #fff;
  font-size: 9px; line-height: 1; padding: 2px 3px; border-radius: 4px 0 0 0; font-style: normal;
}
.dentry-name { width: 128px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.dentry-name input { font-size: 13px; }
.dentry-link { width: 172px; flex-shrink: 0; font-size: 12.5px; }
.dswitch { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--t2); cursor: pointer; }
.dentry-ops { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.dentry-ops .btn.link { padding: 2px 6px; }

/* ---- 模块开关 ---- */
.dblocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 860px) { .dblocks { grid-template-columns: 1fr; } }
.dblock {
  border: 1px solid var(--line-soft); border-radius: 10px; background: #FCFBFA;
  padding: 10px; display: flex; flex-direction: column; gap: 7px;
}
.dblock-t { display: flex; flex-direction: column; gap: 2px; }
.dblock-t b { font-size: 13px; }
.dblock input, .dblock select { font-size: 12.5px; }

/* ---- 底部保存条 ---- */
.dfoot {
  display: flex; align-items: center; gap: 12px; padding: 12px 0 4px;
}

/* ---- 手机预览 ---- */
.dside { position: sticky; top: 12px; }
.dphone {
  width: 336px; border-radius: 26px; background: #fff; padding: 8px;
  box-shadow: 0 10px 30px rgba(60, 20, 32, .14); border: 1px solid var(--line-soft);
}
.dphone-bar {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--t3); padding: 4px 6px 8px;
}
.dphone-body {
  height: 560px; overflow-y: auto; border-radius: 18px; background: #F6F3F4;
  -webkit-overflow-scrolling: touch;
}
.dtip { margin-top: 8px; line-height: 1.6; }

.pv-hero {
  position: relative; margin: 6px 13px 0; padding: 14px 14px 16px; border-radius: 14px; color: #fff; overflow: hidden;
  /* 和真机一致：左右各留 13px（真机 30rpx），宽度 294px 按 3:2 折算约 196px；
     比例改小了会让人误以为背景图裁得很少 */
  min-height: 196px; display: flex; flex-direction: column; justify-content: center;
}
.pv-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 13px 2px;
}
.pv-note { font-size: 9px; color: rgba(255, 255, 255, .78); }
.pv-city {
  display: inline-block; background: rgba(232, 84, 107, .10); border-radius: 10px;
  padding: 2px 8px; font-size: 10px; color: #C03A52; flex: none;
}
/* 标题在图片上方单独一行（深色），与右侧城市同排 */
.pv-title {
  flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.35;
  font-weight: 700; letter-spacing: .3px; color: #2B2224;
}
/* 认证说明：已在图片下方 */
.pv-hero-sub { margin: 6px 13px 0; font-size: 10px; color: #8C8184; text-align: center; letter-spacing: .3px; }

.pv-notice {
  margin: 8px 10px 0; background: #FFF6E8; color: #A9760F; border-radius: 8px;
  padding: 7px 10px; font-size: 10.5px; line-height: 1.5;
}
.pv-banner {
  margin: 8px 10px 0; height: 86px; border-radius: 12px;
  background-size: cover; background-position: center; background-color: #EDE6E7; position: relative;
}
.pv-dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 4px; }
.pv-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.pv-dots i.on { background: #fff; width: 11px; border-radius: 3px; }

.pv-quick {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px 0;
  background: #fff; margin: -14px 10px 0; padding: 12px 4px 8px; border-radius: 14px;
  position: relative; box-shadow: 0 4px 14px rgba(92, 30, 48, .07);
}
.pv-q { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pv-q img { width: 30px; height: 30px; border-radius: 9px; display: block; }
.pv-q span { font-size: 9.5px; color: #3A3033; transform: scale(.95); }
.pv-empty { grid-column: 1 / -1; text-align: center; font-size: 10.5px; color: #B3AAAD; padding: 8px; }

.pv-sec { margin: 12px 10px 0; }
.pv-sec-h { display: flex; justify-content: space-between; align-items: baseline; }
.pv-sec-h b { font-size: 12.5px; color: #1E1A1C; }
.pv-sec-h span { font-size: 9.5px; color: #A29A9D; }
.pv-cards { display: flex; gap: 8px; margin-top: 7px; }
.pv-cards i {
  flex: 1; height: 66px; border-radius: 10px;
  background: linear-gradient(140deg, #F4E7E9, #E7DADC);
  /* 活动配了封面时用内联 background-image，这里保证铺满不变形 */
  background-size: cover; background-position: center;
}

/* 活动封面行（装修页，一条活动一张） */
.pcov {
  background-size: cover; background-position: center;
  color: var(--t3); font-size: 18px; font-weight: 400;
}
.pcov:hover { outline: 2px solid var(--rose); outline-offset: -2px; }
.pcov-ph { line-height: 1; }

/* 活动现场图带 */
.pv-photos { display: flex; gap: 6px; margin-top: 6px; }
.pv-photo {
  width: 60px; height: 46px; border-radius: 7px; flex-shrink: 0;
  background-size: cover; background-position: center; background-color: #EFE9EA;
}

/* 红娘团队 */
.pv-mm {
  margin: 12px 10px 0; padding: 11px 12px; border-radius: 14px;
  background: linear-gradient(140deg, #FFF3F5 0%, #FDE7EC 100%);
  border: 1px solid #F8D7DC;
}
.pv-mm-h { display: flex; align-items: flex-start; justify-content: space-between; }
.pv-mm-hl b { font-size: 12.5px; color: #8E2C40; display: block; }
.pv-mm-hl span { font-size: 10px; color: #B07A87; }
.pv-mm-more { font-style: normal; font-size: 9.5px; color: #B07A87; padding: 2px 0 0 8px; flex-shrink: 0; }
/* 头像框跟会员卡照片同尺寸、横滑：卡片 96px 是按 750rpx≈320px 折算的示意宽度 */
.pv-mm-row { display: flex; gap: 7px; margin-top: 9px; overflow-x: auto; padding-bottom: 2px; }
.pv-mmcard {
  width: 96px; flex-shrink: 0; background: #fff; border-radius: 9px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(140, 44, 64, 0.1);
}
.pv-mmphoto { position: relative; width: 96px; height: 96px; background: #F7EEF0; overflow: hidden; }
.pv-mmphoto img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pv-mmphoto i {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 24px; color: #fff;
  background: linear-gradient(140deg, #F2A6B6, #C93F63);
}
/* 2026-11-06：文字条放照片下面，尺寸照会员卡（名字加粗、职称灰字），文字水平居中；
   紫字 margin-top:auto 贴底，没填名字的卡里紫字也不会飘到顶上 */
.pv-mmb {
  padding: 5px 6px 6px; min-height: 52px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.pv-mmb b {
  display: block; max-width: 100%; font-size: 10px; line-height: 1.3; color: #1E1A1C; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pv-mmb span {
  display: block; max-width: 100%; margin-top: 2px; font-size: 8px; line-height: 1.3; color: #A29A9D;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pv-mmet {
  display: block; margin-top: auto; padding-top: 3px;
  font-style: normal; font-size: 8px; font-weight: 600; color: #7C4DBE; line-height: 1.3;
}
.pv-mmempty {
  width: 100%; padding: 14px 10px; text-align: center;
  background: #fff; border-radius: 9px; font-size: 11px; color: #8E2C40;
}
.pv-mmempty span { display: block; margin-top: 4px; font-size: 9px; color: #A9828E; line-height: 1.6; }

/* ---- 方形裁剪弹层（红娘头像用，见 pages.decorate.js cropToSquare） ---- */
.sqcrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(28, 18, 22, .72);
  display: flex; align-items: center; justify-content: center;
}
.sqcrop-panel {
  width: 336px; box-sizing: border-box; padding: 18px 18px 14px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .32);
}
.sqcrop-t { font-size: 14px; font-weight: 600; color: #1E1A1C; text-align: center; margin-bottom: 12px; }
.sqcrop-box {
  position: relative; width: 300px; height: 300px; margin: 0 auto;
  overflow: hidden; border-radius: 10px; background: #EFE9EA;
  cursor: grab; user-select: none;
}
.sqcrop-box:active { cursor: grabbing; }
.sqcrop-box img { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.sqcrop-box .gl { position: absolute; background: rgba(255, 255, 255, .42); pointer-events: none; }
.sqcrop-box .gl-h { left: 0; right: 0; height: 1px; }
.sqcrop-box .gl-v { top: 0; bottom: 0; width: 1px; }
.sqcrop-frame {
  position: absolute; inset: 0; pointer-events: none;
  border: 2px solid rgba(255, 255, 255, .9); border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.sqcrop-hint { margin-top: 10px; text-align: center; font-size: 11.5px; color: #A29A9D; }
.sqcrop-bar { display: flex; gap: 10px; margin-top: 14px; }
.sqcrop-btn {
  flex: 1; height: 36px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--t2);
  font-size: 13px; font-family: inherit;
}
.sqcrop-btn.main {
  border: 0; color: #fff; font-weight: 600;
  background: linear-gradient(90deg, #F2697E, #D84059);
}

/* 脱单课堂 */
.pv-cls { margin-top: 7px; display: flex; flex-direction: column; gap: 5px; }
.pv-cls-i { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 9px; padding: 7px 8px; }
.pv-cls-i b {
  width: 15px; height: 15px; border-radius: 5px; background: #FDECEF; color: #C33D55;
  font-size: 9px; line-height: 15px; text-align: center; flex-shrink: 0;
}
.pv-cls-i span { flex: 1; font-size: 10.5px; color: #1E1A1C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-cls-i em { font-size: 9px; color: #A29A9D; font-style: normal; }

.pv-safety {
  margin: 12px 10px 0; background: #fff; border: 1px dashed #F0C9D0; border-radius: 10px;
  padding: 8px 10px; display: flex; flex-direction: column; gap: 2px;
}
.pv-safety b { font-size: 10.5px; color: #C33D55; }
.pv-safety span { font-size: 9px; color: #A29A9D; line-height: 1.5; }
.pv-note { text-align: center; font-size: 9px; color: #C0B8BA; margin: 14px 0 18px; }
