/* 用户详情 — 对齐小程序 pages/user/detail */
.md-page {
  min-height: 100%;
  background: #f3f4f8;
  padding-bottom: calc(72px + var(--safe-bottom));
  box-sizing: border-box;
}
.md-top-nav {
  position: sticky; top: 0; z-index: 20;
  height: 44px; display: flex; align-items: center; justify-content: center;
  background: #fff; border-bottom: 1px solid #f0f0f0;
  padding-top: env(safe-area-inset-top, 0);
}
.md-top-title {
  font-size: 17px; font-weight: 700; color: #4f6ef7; letter-spacing: 1px;
}
.md-empty { text-align: center; color: #999; padding: 80px 16px; font-size: 14px; }

.md-hero-wrap { position: relative; }
.md-hero-swiper {
  position: relative; height: 375px; background: #e5e7eb; overflow: hidden;
}
.md-hero-img { width: 100%; height: 375px; object-fit: cover; display: block; }
.md-hero-empty {
  display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 14px;
}
.md-hero-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
}
.md-hero-dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); padding: 0; border: none;
}
.md-hero-dot.on { background: #fff; width: 14px; border-radius: 999px; }

.md-profile-card {
  position: relative;
  margin: 12px 12px 0; background: #fff; border-radius: 12px;
  padding: 12px 12px 10px;
  box-shadow: 0 4px 16px rgba(99,102,241,.08);
}
.md-display-id {
  position: absolute; top: 8px; right: 12px; z-index: 3;
  font-size: 13px; color: #9ca3af; font-weight: 600;
}
.md-edit-fab {
  position: absolute; top: 28px; right: 12px; z-index: 4;
  display: flex; align-items: center; gap: 3px;
  padding: 5px 9px; border-radius: 999px;
  background: linear-gradient(135deg, #ff8e8e, #FF6F6F);
  color: #fff; font-size: 11px; font-weight: 500;
  box-shadow: 0 3px 8px rgba(255,111,111,.35);
}
.md-profile-top { display: flex; align-items: flex-start; gap: 10px; }
.md-avatar-wrap {
  position: relative; flex-shrink: 0; width: 64px; padding-bottom: 14px;
}
.md-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; background: #f3f4f6;
  box-shadow: 0 3px 10px rgba(139,92,246,.2); display: block;
}
.md-avatar-badge {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  max-width: 60px; padding: 2px 8px; font-size: 10px; font-weight: 600;
  line-height: 1.3; border-radius: 999px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; text-align: center;
  background: #e8e8e8; color: #666;
}
.md-avatar-badge.member, .md-avatar-badge.normal {
  background: linear-gradient(135deg, #ffe8ec, #ffd0d8);
  color: #e04555; border: 1px solid rgba(255,111,111,.4);
}
.md-avatar-badge.vip {
  background: linear-gradient(90deg, #c3994c, #fee517, #c3994c); color: #844b00;
}
.md-profile-main { flex: 1; min-width: 0; padding-top: 4px; }
.md-profile-card.is-self .md-profile-main { padding-right: 70px; }
.md-name-row { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.md-name {
  font-size: 20px; font-weight: 800; color: #111827;
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.md-gender.male { color: #3b82f6; font-weight: 700; }
.md-gender.female { color: #ec4899; font-weight: 700; }
.md-tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.md-pill {
  font-size: 11px; color: #6b7280; background: #f3f4f6;
  border-radius: 999px; padding: 3px 8px; line-height: 1.4;
}

.md-quick-row {
  --md-u: calc(min(100vw, 430px) / 750);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(16 * var(--md-u));
  margin-top: calc(20 * var(--md-u));
  padding-top: calc(16 * var(--md-u));
  border-top: 1px solid #f3f4f6;
}
.md-quick-row.is-self { justify-content: flex-start; }
.md-moment .md-mutual-icon { overflow: hidden; background: #fff5f7; }
.md-moment .md-mutual-img {
  width: calc(72 * var(--md-u));
  height: calc(72 * var(--md-u));
  object-fit: contain;
}
.md-mutual {
  flex-shrink: 0;
  width: calc(128 * var(--md-u));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.2;
}
.md-mutual-icon {
  width: calc(108 * var(--md-u));
  height: calc(108 * var(--md-u));
  border-radius: calc(22 * var(--md-u));
  border: 1px solid #ffb4b4;
  background: #fff5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: calc(8 * var(--md-u));
  box-sizing: border-box;
}
.md-mutual-img,
.md-mutual-icon img {
  width: calc(72 * var(--md-u));
  height: calc(72 * var(--md-u));
  object-fit: contain;
  display: block;
}
.md-mutual-fallback {
  font-size: calc(36 * var(--md-u));
  color: #ff5a7a;
  line-height: 1;
}
.md-mutual-label {
  font-size: calc(26 * var(--md-u));
  color: #ff5a7a;
  font-weight: 600;
  line-height: 1.2;
}
.md-mutual.active .md-mutual-icon,
.md-mutual.matched .md-mutual-icon {
  border-color: #FF6F6F;
  background: rgba(255, 111, 111, 0.12);
  box-shadow: 0 2px 6px rgba(255, 111, 111, 0.2);
}
.md-mutual.matched .md-mutual-label { color: #FF6F6F; }

.md-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: calc(12 * var(--md-u));
  flex: 1;
  min-width: 0;
}
.md-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: calc(72 * var(--md-u));
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: inherit;
  line-height: 1.2;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.md-act-count {
  font-size: calc(22 * var(--md-u));
  color: #333;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: calc(4 * var(--md-u));
  min-height: calc(28 * var(--md-u));
}
.md-act-icon {
  width: calc(56 * var(--md-u));
  height: calc(56 * var(--md-u));
  border: 1px solid #e5e7eb;
  border-radius: calc(12 * var(--md-u));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(28 * var(--md-u));
  color: #9ca3af;
  margin-bottom: calc(4 * var(--md-u));
  box-sizing: border-box;
}
.md-act-icon.loveb {
  border-color: #ffb4b4;
  color: #ff5a7a;
  background: #fff5f7;
  font-size: calc(24 * var(--md-u));
  font-weight: 700;
}
.md-act-label {
  font-size: calc(20 * var(--md-u));
  color: #6b7280;
  white-space: nowrap;
}
.md-act.active { color: #ff5a7a; }
.md-act.active .md-act-icon {
  border-color: #ff5a7a;
  color: #ff5a7a;
  background: #fff5f7;
}
.md-act.active .md-act-label,
.md-act.active .md-act-count { color: #ff5a7a; }

.md-block-row {
  display: flex;
  justify-content: flex-end;
  margin-top: calc(16 * var(--md-u));
}
.md-block-btn {
  font-size: calc(24 * var(--md-u));
  color: #999;
  padding: calc(8 * var(--md-u)) calc(20 * var(--md-u));
  border: 1px solid #ddd;
  border-radius: 999px;
  background: transparent;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
}
.md-block-btn.on {
  color: #FF6F6F;
  border-color: #FF6F6F;
}

.md-section {
  margin: 10px 12px 0; background: #fff; border-radius: 12px; padding: 14px 10px 12px;
}
.md-sec-head {
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px; padding: 0 4px;
}
.md-sec-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #ff9a9a, #FF6F6F);
  color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.md-sec-title { font-size: 15px; font-weight: 600; color: #222; }
.md-sec-body {
  font-size: 14px; color: #333; line-height: 1.75; padding: 2px 6px 4px; white-space: pre-wrap;
}
.md-attr-grid {
  display: flex; flex-wrap: wrap;
  background-image: linear-gradient(#ececec,#ececec), linear-gradient(#ececec,#ececec);
  background-size: 1px 100%, 1px 100%;
  background-position: 33.333% 0, 66.666% 0;
  background-repeat: no-repeat;
}
.md-attr-cell {
  width: 33.333%; box-sizing: border-box; padding: 9px 6px; text-align: center;
}
.md-attr-label {
  display: block; font-size: 11px; color: #999; line-height: 1.3; margin-bottom: 5px;
}
.md-attr-value {
  display: block; font-size: 13px; color: #333; line-height: 1.4; word-break: break-all;
}
.md-other-req {
  margin-top: 8px; padding: 10px 6px 4px; border-top: 1px solid #f0f0f0;
}
.md-other-label { font-size: 12px; color: #999; margin-bottom: 5px; }
.md-other-text { font-size: 13px; color: #333; line-height: 1.7; white-space: pre-wrap; }

.md-related-scroll { width: 100%; overflow: hidden; white-space: nowrap; }
.md-related-track { display: inline-flex; gap: 10px; padding: 2px 0 4px; }
.md-related-track.animate {
  animation-name: md-related-marquee; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes md-related-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.md-related-item {
  display: inline-flex; flex-direction: column; align-items: center;
  width: 60px; flex-shrink: 0; background: none; border: none; padding: 0; color: inherit;
}
.md-related-av {
  width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #f3f4f6; margin-bottom: 4px;
}
.md-related-name {
  font-size: 12px; color: #374151; max-width: 60px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.md-related-age { font-size: 11px; color: #9ca3af; }

.md-contact-box { display: flex; gap: 10px; align-items: flex-start; }
.md-qr-wrap {
  flex-shrink: 0; padding: 0; border: none; background: transparent;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.md-qr {
  width: 100px; height: 100px; background: #f9fafb; border-radius: 6px;
  object-fit: contain; display: block;
}
.md-qr-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px dashed #e5e7eb; box-sizing: border-box;
  font-size: 10px; color: #9ca3af; gap: 2px; padding: 8px;
  width: 100px; height: 100px;
}
.md-qr-ico { font-size: 24px; color: #d1d5db; line-height: 1; }
.md-qr-cost { color: #FF6F6F; font-weight: 600; }
.md-qr-tip {
  margin-top: 6px;
  width: 100%;
  font-size: 10px;
  line-height: 1.4;
  color: #FF6F6F;
  text-align: center;
}
.md-contact-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.md-contact-pill {
  width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px;
  background: #fafafa; border: 1px solid #f0f0f0; color: inherit;
}
.md-pill-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #666; margin-bottom: 4px;
}
.md-pill-hint { font-size: 10px; color: #FF6F6F; }
.md-pill-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.md-pill-val { font-size: 15px; font-weight: 700; color: #222; word-break: break-all; }
.md-copy {
  flex-shrink: 0; padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: #fff; font-size: 11px; font-weight: 600;
}
.md-online {
  text-align: left; padding: 8px 4px; font-size: 13px; color: #8b5cf6; font-weight: 600;
  background: none; border: none;
}
.md-gender-tip {
  margin-top: 8px; font-size: 12px; color: #c2410c; line-height: 1.45;
  background: #fff7ed; border-radius: 8px; padding: 8px 10px;
}

.md-integrity {
  margin: 10px 12px 0; padding: 10px 12px; border-radius: 8px;
  background: #fff5f5; border: 1px solid #fecaca;
  display: flex; gap: 6px; align-items: flex-start;
  font-size: 12px; color: #dc2626; line-height: 1.6;
}
.md-integrity-ico {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: #ef4444; color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.md-bottom-space { height: 8px; }

.md-bottom-bar {
  position: fixed; z-index: 40;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; bottom: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: rgba(255,255,255,.96);
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  box-sizing: border-box;
}
.md-bar-back {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff; font-size: 24px; font-weight: 300; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(239,68,68,.35);
}
.md-bar-online,
.md-bar-contact {
  flex: 1; height: 40px; border-radius: 999px; border: none;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 15px; font-weight: 700; color: #fff;
}
.md-bar-online {
  background: linear-gradient(90deg, #fb923c, #f97316);
  box-shadow: 0 3px 8px rgba(249,115,22,.3);
}
.md-bar-contact {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  box-shadow: 0 3px 8px rgba(59,130,246,.3);
}
.md-bar-ico { font-size: 16px; line-height: 1; }
