/* =============================================
   牵手婚恋 — 征婚资料页样式
   ============================================= */

/* ========== 主体 ========== */
.mp-body {
  margin-top: 60px;
  padding: 20px 18px calc(28px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #FFF5F8 0%, #F7F8FB 100%);
  min-height: calc(100vh - 50px);
}

/* ========== 头部信息卡 ========== */
.mp-header-card {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border-radius: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(255, 88, 155, 0.08);
}

.mp-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: #f2f2f7;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10);
}

.mp-user-info {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

/* ========== 默认头像下的照片提示徽标 ========== */
.mp-photo-hint {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 88, 155, 0.10);
  color: #ff589b;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}
/* 移动端头部卡：徽标换行到头像下方整行（flex 换行 + order），避免溢出卡片 */
.mp-header-card {
  flex-wrap: wrap;
}
.mp-header-card .mp-photo-hint {
  flex-basis: 100%;
  order: 5;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin: 4px 0 0;
  padding: 3px 12px;
  font-size: 11px;
  white-space: normal;
}

/* ========== 登记类型徽标（桌面侧栏 + 移动端头部卡） ========== */
.mp-registrant-type {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 88, 155, 0.10);
  color: #ff589b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: middle;
}
.mp-meta-row .mp-registrant-type {
  margin-left: 0;
}
/* 桌面侧栏：照片提示 + 登记类型徽标同一行（登记类型位于"暂无照片"右侧） */
.mp-sidebar-photo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.mp-sidebar-photo-row .mp-photo-hint {
  margin-top: 0;
}
.mp-sidebar-photo-row .mp-registrant-type {
  margin-left: 0;
}

.mp-name {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.mp-meta {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.mp-meta-member-no {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

/* ========== 会员编号快速复制按钮（移动端 + 桌面端） ========== */
.mp-copy-no-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text-hint);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  white-space: nowrap;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mp-copy-no-btn:hover {
  color: var(--color-primary);
}

.mp-copy-no-btn:active {
  transform: scale(0.9);
}

.mp-meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 平板及以上：两行信息并排显示为一行 */
@media (min-width: 768px) and (max-width: 1023px) {
  .mp-meta-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
  }
}

/* ========== 会员标签行（移动端） ========== */
.mp-mobile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -4px 0 16px;
}

.mp-mobile-tags .tag {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(255, 88, 155, 0.12);
}

.mp-mobile-tags .tag-income {
  background: #FFF3E0;
  color: #E65100;
}

.mp-mobile-tags .tag-height,
.mp-mobile-tags .tag-edu,
.mp-mobile-tags .tag-beauty,
.mp-mobile-tags .tag-job,
.mp-mobile-tags .tag-only-child,
.mp-mobile-tags .tag-beijing {
  background: #fff;
  color: var(--color-primary);
}

.mp-mobile-tags .tag-smoke,
.mp-mobile-tags .tag-drink {
  background: #F3E5F5;
  color: #7B1FA2;
}

.mp-mobile-tags .tag-cook {
  background: #E8F5E9;
  color: #2E7D32;
}

.mp-mobile-tags .tag-pet {
  background: #E0F2F1;
  color: #00695C;
}

.mp-mobile-tags .tag-skill {
  background: #E3F2FD;
  color: #1565C0;
}

.mp-mobile-tags .tag-sport {
  background: #FFF3E0;
  color: #E65100;
}

.mp-mobile-tags .tag-travel {
  background: #E0F2F1;
  color: #00695C;
}

.mp-mobile-tags .tag-social {
  background: #F3E5F5;
  color: #7B1FA2;
}

/* ========== 我的征婚资料（移动端显示：红娘印象下方） ========== */
.mp-profile-mobile {
  display: block;
  position: relative;
}

.mp-profile-mobile .mp-section-title {
  padding-right: 56px;
}

.mp-profile-mobile .mp-copy-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border: none;
  border-radius: 15px;
  background: #fff;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 88, 155, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mp-profile-mobile .mp-copy-btn:active {
  transform: scale(0.94);
}

.mp-profile-mobile-content .mp-profile-line {
  display: flex;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px dashed #F1F1F4;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  word-break: break-word;
}

.mp-profile-mobile-content .mp-profile-line:last-child {
  border-bottom: none;
}

.mp-profile-mobile-content .mp-profile-label {
  flex-shrink: 0;
  min-width: 4em;
  font-weight: 600;
  color: var(--color-primary);
}

/* ========== 区块 ========== */
.mp-section {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

.mp-section-title {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  padding-left: 0;
}

/* 区块标题行：标题 + 右上角操作按钮 */
.mp-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mp-edit-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-bg);
  border: 1px solid var(--color-primary-pale);
  border-radius: 8px;
  padding: 5px 12px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  cursor: pointer;
}
.mp-edit-btn-sm:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.mp-text {
  font-size: 14px;
  color: #444;
  line-height: 1.9;
  text-align: justify;
  white-space: pre-wrap;
}

/* ========== 信息网格 ========== */
.mp-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mp-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  flex: 0 0 calc((100% - 20px) / 3);
  min-width: 0;
  min-height: 58px;
  padding: 12px 8px;
  background: var(--color-primary-bg);
  border-radius: 12px;
  box-sizing: border-box;
}

.mp-info-label {
  font-size: 12px;
  color: #B0858F;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 0;
  text-align: center;
}

.mp-info-value {
  font-size: 12px;
  color: var(--color-text-primary);
  font-weight: 600;
  text-align: center;
  word-break: break-word;
  line-height: 1.4;
  min-width: 0;
}

/* ========== 标签 ========== */
.mp-tag-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mp-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-size: 12px;
  border-radius: 14px;
  font-weight: 500;
}

/* ========== 底部提示 / CTA ========== */
.mp-footer-hint {
  padding: 8px 0 0;
}

.mp-cta-card {
  background: linear-gradient(135deg, #FFF5F8 0%, #FFE6ED 100%);
  border: 1px solid #FFD3E0;
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
}

.mp-cta-text {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mp-cta-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.mp-cta-desc {
  font-size: 13px;
  color: #B0858F;
  line-height: 1.7;
  margin-bottom: 16px;
}

.mp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: linear-gradient(135deg, #FF8AB3, #FF589B);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 24px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(255, 88, 155, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mp-cta-btn:active {
  transform: scale(0.96);
  box-shadow: 0 3px 8px rgba(255, 88, 155, 0.3);
}

.mp-cta-btn i {
  font-size: 17px;
}

/* ========== 返回按钮（‹ 箭头样式） ========== */
.page-header .back-btn.back-btn-arrow {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  z-index: 102;
  text-decoration: none;
  line-height: 1;
}

/* ========== 标题水平居中（相对整个 header，不受左右按钮影响） ========== */
.page-header .header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  flex: none;
  width: auto;
  white-space: nowrap;
  pointer-events: none;
  z-index: 101;
}

/* ========== 首页按钮（汉字「首页」样式） ========== */
.page-header .share-btn.header-home-text {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
  z-index: 102;
}

/* ========== 分享按钮（三圈图标，位于「首页」右侧） ========== */
.page-header .share-btn.header-share-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 17px;
  color: #fff;
  cursor: pointer;
  z-index: 102;
}

.page-header.has-share-btn .share-btn.header-home-text {
  right: 58px;
}

/* ========== 分享面板（复用 about.css 样式） ========== */
.share-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-overlay.active {
  opacity: 1;
  visibility: visible;
}

.share-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.share-panel.active {
  transform: translateY(0);
}

.share-panel .panel-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #ddd;
  margin: 0 auto 16px;
}

.share-panel .panel-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  margin-bottom: 20px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.share-option:active {
  background: #f5f5f5;
}

.share-option .option-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.share-option[data-action="wechat"] .option-icon {
  background: #07c160;
}

.share-option[data-action="moments"] .option-icon {
  background: #07c160;
}

.share-option[data-action="copy"] .option-icon {
  background: #8e8e93;
}

.share-option .option-label {
  font-size: 12px;
  color: #666;
  text-align: center;
  line-height: 1.3;
}

.share-panel .panel-cancel {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: #f5f5f5;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.share-panel .panel-cancel:active {
  background: #e8e8e8;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: calc(170px + env(safe-area-inset-bottom, 0px));
  z-index: 10000;
  max-width: calc(100vw - 40px);
  width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: rgba(28, 28, 30, 0.92);
  color: #fff;
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ========== 择偶条件标签 ========== */
.mp-req-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ========== 移动端隐藏侧边栏 ========== */
.mp-sidebar {
  display: none;
}

/* ========== 桌面端 ≥1024px ========== */
@media (min-width: 1024px) {

  /* 隐藏移动端顶部导航 */
  body .page-header {
    display: none !important;
  }

  /* 显示侧边栏 */
  .mp-sidebar {
    display: block;
  }

  /* 桌面端隐藏移动端"我的征婚资料"区块（避免与侧栏重复） */
  .mp-profile-mobile {
    display: none;
  }

  .mp-body {
    margin-top: 0;
    min-height: 100vh;
    padding: 40px;
    background: linear-gradient(135deg, #f0f2f5 0%, #e8ebf0 100%);
  }

  /* 桌面端双栏容器 */
  .mp-desktop-layout {
    display: flex;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
  }

  /* ===== 左栏：侧边栏 ===== */
  .mp-sidebar-wrap {
    width: 280px;
    flex-shrink: 0;
  }

  .mp-sidebar {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 36px 26px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
  }

  /* 两块侧边栏卡片之间的间距（露出页面灰色背景） */
  .mp-sidebar-wrap .mp-sidebar + .mp-sidebar {
    margin-top: 10px;
  }

  .mp-sidebar-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    background: var(--color-off-white);
  }

  .mp-sidebar-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 4px;
  }

  .mp-sidebar-member-no {
    font-size: 13px;
    color: var(--color-text-primary);
    margin-bottom: 18px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mp-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }

  .mp-sidebar-tags .tag {
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
  }

  .mp-sidebar-tags .tag-income {
    background: #FFF3E0;
    color: #E65100;
  }

  .mp-sidebar-tags .tag-house,
  .mp-sidebar-tags .tag-car,
  .mp-sidebar-tags .tag-height,
  .mp-sidebar-tags .tag-edu,
  .mp-sidebar-tags .tag-beauty,
  .mp-sidebar-tags .tag-job,
  .mp-sidebar-tags .tag-only-child,
  .mp-sidebar-tags .tag-beijing {
    background: var(--color-primary-pale);
    color: var(--color-primary);
  }

  .mp-sidebar-tags .tag-smoke,
  .mp-sidebar-tags .tag-drink {
    background: #F3E5F5;
    color: #7B1FA2;
  }

  .mp-sidebar-tags .tag-cook {
    background: #E8F5E9;
    color: #2E7D32;
  }

  .mp-sidebar-tags .tag-pet {
    background: #E0F2F1;
    color: #00695C;
  }

  .mp-sidebar-tags .tag-skill {
    background: #E3F2FD;
    color: #1565C0;
  }

  .mp-sidebar-tags .tag-sport {
    background: #FFF3E0;
    color: #E65100;
  }

  .mp-sidebar-tags .tag-travel {
    background: #E0F2F1;
    color: #00695C;
  }

  .mp-sidebar-tags .tag-social {
    background: #F3E5F5;
    color: #7B1FA2;
  }

  .mp-sidebar-profile {
    text-align: left;
  }

  .mp-sidebar-profile-head {
    position: relative;
    margin-bottom: 14px;
  }

  .mp-sidebar-profile-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 1px;
    padding-bottom: 12px;
  }

  .mp-sidebar-copy-btn {
    position: absolute;
    top: -16px;
    right: -12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border: none;
    border-radius: 15px;
    background: #fff;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 88, 155, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mp-sidebar-copy-btn:hover {
    color: var(--color-primary-hover);
    box-shadow: 0 3px 10px rgba(255, 88, 155, 0.24);
  }

  .mp-sidebar-copy-btn:active {
    transform: scale(0.94);
  }

  .mp-sidebar-profile-content {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    word-break: break-word;
  }

  .mp-profile-line {
    display: flex;
    align-items: baseline;
    padding: 3px 0;
    border-bottom: 1px dashed #F1F1F4;
  }

  .mp-profile-line:last-child {
    border-bottom: none;
  }

  .mp-profile-label {
    flex-shrink: 0;
    min-width: 4em;
    font-weight: 600;
    color: var(--color-primary);
  }

  /* ===== 右栏：主内容 ===== */
  .mp-main {
    flex: 1;
    min-width: 0;
  }

  .mp-header-card {
    display: none;
  }

  /* 桌面端隐藏移动端标签行 */
  .mp-mobile-tags {
    display: none;
  }

  .mp-main .mp-section {
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
  }

  .mp-main .mp-section-title {
    font-size: 17px;
    margin-bottom: 18px;
  }

  .mp-main .mp-text {
    font-size: 15px;
    line-height: 1.9;
  }

  .mp-main .mp-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }

  .mp-main .mp-info-item {
    flex: 0 1 33.333%;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    padding: 6px 0;
    min-height: auto;
    background: none;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .mp-main .mp-info-label {
    width: 4em;
    flex-shrink: 0;
    font-size: 13px;
    color: #999;
    text-align: justify;
    text-align-last: justify;
    margin-right: 14px;
  }

  .mp-main .mp-info-value {
    font-size: 14px;
    color: #333;
    font-weight: 400;
  }

  .mp-main .mp-footer-hint {
    padding: 20px 0;
    font-size: 14px;
  }

  .mp-main .mp-req-tags {
    gap: 8px;
  }

  .mp-main .mp-tag {
    font-size: 13px;
    padding: 5px 14px;
  }
}

/* ===== 头像灯箱：点击查看大图 ===== */
[data-lightbox] {
  cursor: zoom-in;
}
.mp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  animation: mp-fade-in 0.2s ease;
}
.mp-lightbox-img {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  animation: mp-fade-in 0.25s ease;
}
.mp-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.mp-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
@keyframes mp-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== 灯箱图片缩放与重置按钮 ===== */
.mp-lightbox-img {
  transform-origin: center center;
  will-change: transform;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.mp-lightbox-img:active {
  cursor: grabbing;
}
.mp-lightbox-reset {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.mp-lightbox-reset:hover {
  background: rgba(255, 255, 255, 0.25);
}
/* 移动端缩小提示文字：操作说明 */
.mp-lightbox-hint {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ===== 本人查看展示页：编辑入口条 ===== */
.mp-owner-bar {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-primary-bg, #FFF5F8);
  border-bottom: 1px solid var(--color-border, #EEEEEE);
}

.mp-owner-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.mp-owner-bar a:hover {
  opacity: 0.85;
}

.mp-edit-btn {
  background: var(--color-primary, #FF589B);
  color: #fff;
}

.mp-back-btn {
  background: #fff;
  color: var(--color-primary, #FF589B);
  border: 1.5px solid var(--color-primary, #FF589B);
}

@media (min-width: 1024px) {
  .mp-owner-bar {
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: none;
    padding: 16px 24px 0;
  }
  .mp-owner-bar a {
    flex: 0 0 auto;
    min-width: 160px;
  }
}

/* ===== 后备资源：加入按钮 + 弹窗 ===== */
/* 按钮基础样式（移动端底部悬浮 + 桌面端侧边栏共用） */
.mp-reserve-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: var(--color-primary, #FF589B);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(255, 88, 155, 0.28);
}

.mp-reserve-btn:hover {
  opacity: 0.88;
}

/* 已加入状态：描边样式 */
.mp-reserve-btn.added {
  background: #fff;
  color: var(--color-primary, #FF589B);
  border: 1.5px solid var(--color-primary, #FF589B);
  box-shadow: none;
}

/* 移动端：底部悬浮操作栏（始终可见，规避固定顶栏遮挡） */
.mp-reserve-bar-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #f0e2e9;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(6px);
}

/* 有底部悬浮按钮时，正文底部留出空间避免被遮挡 */
body.mp-has-reserve .mp-body {
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

/* 桌面端侧边栏按钮：默认隐藏，仅 ≥1024px 显示 */
.mp-reserve-sidebar {
  display: none;
}

/* 本人查看自己页面时的编辑入口条：避开固定顶栏 */
.mp-owner-bar {
  margin-top: 60px;
}

/* 弹窗遮罩与内容 */
.mp-reserve-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.mp-reserve-modal {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.mp-reserve-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 18px;
}

.mp-reserve-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.mp-reserve-modal-body select,
.mp-reserve-modal-body input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 15px;
  box-sizing: border-box;
  background: #fff;
}

.mp-reserve-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

/* 曾相亲过（禁止加入后备资源）提示正文 */
.mp-dated-prompt-body {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}

.mp-reserve-modal-btn {
  flex: 1;
  padding: 12px 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.mp-reserve-modal-btn.cancel {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.mp-reserve-modal-btn.confirm {
  border: none;
  background: var(--color-primary, #FF589B);
  color: #fff;
}

/* 访客登录引导弹窗 */
.mp-login-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.mp-login-box {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  padding: 30px 24px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: mpLoginPop 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.25);
}

@keyframes mpLoginPop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.mp-login-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 14px;
}

.mp-login-text {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.6;
  margin-bottom: 22px;
}

.mp-login-actions {
  display: flex;
  gap: 12px;
}

.mp-login-btn {
  flex: 1;
  padding: 11px 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.mp-login-btn.cancel {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.mp-login-btn.confirm {
  border: none;
  background: var(--color-primary, #FF589B);
  color: #fff;
}

@media (min-width: 1024px) {
  /* 桌面端隐藏移动端底部悬浮栏 */
  .mp-reserve-bar-mobile {
    display: none;
  }


  /* 桌面端侧边栏显示后备按钮 */
  .mp-reserve-sidebar {
    display: block;
    margin-top: 14px;
  }

  /* 桌面端无固定顶栏，编辑入口条顶部留白即可 */
  body.mp-has-reserve .mp-body,
  .mp-body {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
}
