/* 发布资料 — 对齐小程序 pages/publish/edit */
.pe-page {
  position: relative;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.pe-page .pe-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 30;
  height: 44px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.pe-page .pe-nav-title {
  font-size: 17px;
  font-weight: 600;
  color: #222;
}
.pe-page .pe-nav-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  font-size: 22px;
  color: #bbb;
  border: none;
  background: none;
  cursor: pointer;
}
.pe-page .pe-body {
  flex: 1;
  min-height: 0;
  padding: 0 14px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pe-page .gender-section { padding: 8px 0 12px; }
.pe-page .gender-title {
  display: block;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 14px;
  position: relative;
}
.pe-page .gender-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: #FF6F6F;
  border-radius: 2px;
  margin: 6px auto 0;
}
.pe-page.theme-male .gender-title::after { background: #4fc3f7; }
.pe-page .gender-row {
  display: flex;
  justify-content: center;
  gap: 40px;
}
.pe-page .gender-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.pe-page .gender-avatar-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.pe-page .gender-item.active .gender-avatar-wrap {
  background: rgba(255, 111, 111, 0.22);
}
.pe-page.theme-male .gender-item.active .gender-avatar-wrap {
  background: #b3e5fc;
}
.pe-page .gender-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
}
.pe-page .gender-item:not(.active) .gender-avatar {
  filter: grayscale(1);
  opacity: 0.55;
}
.pe-page .gender-label { font-size: 14px; color: #999; }
.pe-page .gender-item.active .gender-label {
  color: #FF6F6F;
  font-weight: 600;
}
.pe-page.theme-male .gender-item.active .gender-label { color: #29b6f6; }

.pe-page .album-section { margin: 4px 0 18px; }
.pe-page .album-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pe-page .album-title { font-size: 15px; font-weight: 700; color: #333; }
.pe-page .album-tip { font-size: 11px; color: #999; }
.pe-page .album-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pe-page .album-item {
  position: relative;
  width: calc((100% - 16px) / 3);
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  box-sizing: border-box;
}
.pe-page .album-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pe-page .album-cover-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 2px 7px;
  font-size: 10px;
  color: #fff;
  background: rgba(255, 111, 111, 0.92);
  border-top-right-radius: 6px;
}
.pe-page .album-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  border: none;
  padding: 0;
  cursor: pointer;
}
.pe-page .album-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #bdbdbd;
  background: #fafafa;
  cursor: pointer;
}
.pe-page.theme-female .album-add { border-color: #ffb3c6; }
.pe-page.theme-male .album-add { border-color: #8ec5ff; }
.pe-page .album-add-text { margin-top: 4px; font-size: 11px; color: #999; }
.pe-page .album-hint {
  margin-top: 7px;
  font-size: 11px;
  color: #b0b0b0;
  line-height: 1.5;
}
.pe-page .camera-icon {
  position: relative;
  width: 36px;
  height: 28px;
}
.pe-page .camera-body {
  width: 36px;
  height: 26px;
  border: 2px solid #29b6f6;
  border-radius: 5px;
  box-sizing: border-box;
}
.pe-page .camera-lens {
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border: 2px solid #29b6f6;
  border-radius: 50%;
  box-sizing: border-box;
}
.pe-page .camera-plus {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 14px;
  height: 14px;
  line-height: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #29b6f6;
}

.pe-page .section { margin-bottom: 14px; }
.pe-page .section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}
.pe-page .section-bar {
  width: 4px;
  height: 16px;
  background: #333;
  border-radius: 1px;
  flex-shrink: 0;
}
.pe-page .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.pe-page .ph { color: #bdbdbd; }
.pe-page .cell-val { color: #333; font-size: 14px; }
.pe-page .cell {
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 12px;
  border: 1px dashed #bdbdbd;
  border-radius: 5px;
  background: #fff;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.pe-page.theme-female .cell { border-color: #ffb3c6; }
.pe-page.theme-male .cell { border-color: #8ec5ff; }
.pe-page .cell.half { margin-bottom: 0; }
.pe-page .grid2 .cell { margin-bottom: 0; }
.pe-page .cell.inner {
  margin-bottom: 8px;
  min-height: 40px;
  cursor: text;
}
.pe-page .cell.input-cell {
  cursor: text;
  padding: 0;
}
.pe-page .cell.input-cell input {
  width: 100%;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0 12px;
  font-size: 14px;
  color: #333;
  outline: none;
  font-family: inherit;
}
.pe-page .cell.input-cell input::placeholder { color: #bdbdbd; }
.pe-page .cell-arrow {
  flex-shrink: 0;
  margin-left: 4px;
  font-size: 12px;
  color: #bdbdbd;
}
.pe-page.theme-female .cell-arrow { color: #ff8fab; }
.pe-page.theme-male .cell-arrow { color: #4fc3f7; }

.pe-page .intro-box {
  box-sizing: border-box;
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 1px dashed #bdbdbd;
  border-radius: 5px;
  background: #fff;
  font-size: 14px;
  color: #333;
  resize: vertical;
  font-family: inherit;
  outline: none;
  margin-bottom: 10px;
}
.pe-page.theme-female .intro-box { border-color: #ffb3c6; }
.pe-page.theme-male .intro-box { border-color: #8ec5ff; }
.pe-page .intro-box::placeholder { color: #bdbdbd; }
.pe-page .intro-count {
  text-align: right;
  font-size: 11px;
  color: #bbb;
  margin-top: -6px;
  margin-bottom: 8px;
}

.pe-page .contact-wrap {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #bdbdbd;
  border-radius: 6px;
  background: #fff;
}
.pe-page.theme-female .contact-wrap { border-color: #ffb3c6; }
.pe-page.theme-male .contact-wrap { border-color: #8ec5ff; }
.pe-page .qr-box {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
  border-radius: 6px;
  padding: 4px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  border: none;
  cursor: pointer;
}
.pe-page.theme-female .qr-box {
  background: linear-gradient(135deg, #ffb3c1, #FF6F6F);
}
.pe-page.theme-male .qr-box {
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
}
.pe-page .qr-preview {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
  background: #fff;
}
.pe-page .qr-placeholder {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 4px;
}
.pe-page .qr-plus {
  font-size: 24px;
  line-height: 1;
  color: #fff;
  font-weight: 300;
  margin-bottom: 4px;
}
.pe-page .qr-hint {
  font-size: 10px;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}
.pe-page .qr-sub {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: rgba(255,255,255,.88);
  text-align: center;
  line-height: 1.25;
}
.pe-page .contact-right { flex: 1; min-width: 0; }
.pe-page .contact-note {
  display: block;
  font-size: 11px;
  color: #4fc3f7;
  margin-top: 2px;
}
.pe-page.theme-female .contact-note { color: #FF6F6F; }
.pe-page.theme-male .contact-note { color: #4fc3f7; }

.pe-page .scroll-bottom { height: 24px; }

.pe-page .pe-bottom {
  position: fixed;
  z-index: 40;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 402px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  display: flex;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(3, 155, 229, 0.25);
}
.pe-page.theme-female .pe-bottom {
  box-shadow: 0 3px 12px rgba(255, 111, 111, 0.25);
}
.pe-page.theme-male .pe-bottom {
  box-shadow: 0 3px 12px rgba(3, 155, 229, 0.25);
}
.pe-page .pe-bottom-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  border: none;
  cursor: pointer;
}
.pe-page .pe-bottom-btn.home { background: #81d4fa; }
.pe-page .pe-bottom-btn.next { background: #039be5; }
.pe-page.theme-female .pe-bottom-btn.home { background: #ffb3c6; }
.pe-page.theme-female .pe-bottom-btn.next { background: #FF6F6F; }
.pe-page.theme-male .pe-bottom-btn.home { background: #81d4fa; }
.pe-page.theme-male .pe-bottom-btn.next { background: #039be5; }
.pe-page .btn-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pe-page .btn-arrow {
  font-size: 16px;
  line-height: 1;
  color: #fff;
  font-weight: 700;
}

/* —— 对象要求（对齐小程序 pages/publish/require） —— */
.pr-page .section-title-wrap {
  padding: 12px 0 16px;
  text-align: center;
}
.pr-page .section-title-wrap.small { padding-top: 8px; }
.pr-page .section-main-title {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  position: relative;
  padding-bottom: 10px;
}
.pr-page .section-main-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: #FF6F6F;
  margin: 8px auto 0;
}
.pr-page.theme-male .section-main-title::after { background: #4fc3f7; }

.pr-page .field-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.pr-page .field-bar {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #FF6F6F;
  flex-shrink: 0;
}
.pr-page.theme-male .field-bar { background: #4fc3f7; }
.pr-page .field-label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}
.pr-page .range-block { margin: 8px 0 16px; }
.pr-page .range-vals {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #FF6F6F;
  margin-bottom: 4px;
}
.pr-page.theme-male .range-vals { color: #039be5; }
.pr-page .dual-range {
  position: relative;
  height: 36px;
  margin: 4px 2px 0;
}
.pr-page .dual-range input[type="range"] {
  position: absolute;
  left: 0;
  top: 8px;
  width: 100%;
  height: 20px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.pr-page .dual-range input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: #eee;
}
.pr-page .dual-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: #FF6F6F;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  pointer-events: auto;
  cursor: pointer;
}
.pr-page.theme-male .dual-range input[type="range"]::-webkit-slider-thumb {
  background: #039be5;
}
.pr-page .dual-range input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: #eee;
}
.pr-page .dual-range input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF6F6F;
  border: 2px solid #fff;
  pointer-events: auto;
  cursor: pointer;
}

.pr-page .loc-block { margin-bottom: 12px; }
.pr-page .field-label {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  font-weight: 500;
}
.pr-page .loc-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.pr-page .loc-any {
  flex: 0 0 60px;
  height: 44px;
  border: 1px solid #ffe8ef;
  border-radius: 8px;
  background: #ffe8ef;
  color: #FF6F6F;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
}
.pr-page .loc-any.on {
  background: #FF6F6F;
  border-color: #FF6F6F;
  color: #fff;
}
.pr-page.theme-male .loc-any {
  background: #e1f5fe;
  border-color: #e1f5fe;
  color: #0288d1;
}
.pr-page.theme-male .loc-any.on {
  background: #29b6f6;
  border-color: #29b6f6;
  color: #fff;
}
.pr-page .loc-pick {
  flex: 1;
  min-width: 0;
  margin-bottom: 0 !important;
  height: 44px;
  min-height: 44px;
}
.pr-page .loc-pick.disabled {
  opacity: .55;
}

/* 信息分类：严格对齐小程序 require.wxss .plan-* */
.pr-page .plan-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}
.pr-page .plan-card {
  flex: 1;
  position: relative;
  min-height: 80px;
  padding: 16px 8px 12px;
  border: 1.5px dashed #bdbdbd;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
}
.pr-page.theme-female .plan-card { border-color: #ffb3c6; }
.pr-page.theme-male .plan-card { border-color: #8ec5ff; }
.pr-page .plan-card.active {
  border-style: solid;
  border-color: #b39ddb;
  background: #faf8ff;
}
.pr-page.theme-female .plan-card.active {
  border-color: #FF6F6F;
  background: #fff5f7;
}
.pr-page.theme-male .plan-card.active {
  border-color: #29b6f6;
  background: #f0f9ff;
}
.pr-page .plan-tag {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  background: #9e9e9e;
  line-height: 1.4;
}
.pr-page.theme-female .plan-card.active .plan-tag { background: #FF6F6F; }
.pr-page.theme-male .plan-card.active .plan-tag { background: #29b6f6; }
.pr-page .plan-name {
  font-size: 15px;
  color: #333;
  font-weight: 600;
}
.pr-page .plan-tip {
  display: block;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #999;
}
.pr-page.theme-female .plan-tip { color: #ff8fab; }
.pr-page.theme-male .plan-tip { color: #4fc3f7; }

.pr-page .intro-wrap {
  position: relative;
  width: 100%;
  margin-top: 4px;
}
.pr-page .intro-box {
  display: block;
  width: 100%;
  min-height: 90px;
  margin: 0;
  box-sizing: border-box;
}
.pr-page .intro-count {
  text-align: right;
  font-size: 11px;
  color: #bbb;
  margin: 4px 4px 12px;
  font-weight: normal;
}
.pr-page .intro-count.limit { color: #FF6F6F; }

.pr-page .scroll-bottom {
  height: calc(72px + env(safe-area-inset-bottom));
}

.loveb-modal-mask {
  position: fixed; z-index: 260;
  top: 0; bottom: 0;
  left: 50%; width: 100%; max-width: 430px; transform: translateX(-50%);
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; box-sizing: border-box;
}
.loveb-modal {
  width: 100%; max-width: 300px;
  background: #fff; border-radius: 14px;
  padding: 20px 16px 14px;
}
.loveb-modal-title {
  text-align: center; font-size: 17px; font-weight: 800; color: #222;
}
.loveb-modal-desc {
  margin-top: 12px; font-size: 13px; color: #666; line-height: 1.55; text-align: center;
}
.loveb-modal-actions {
  margin-top: 16px; display: flex; flex-direction: column; gap: 8px;
}
.loveb-modal-btn {
  height: 40px; border: none; border-radius: 999px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.loveb-modal-btn.earn { background: #fff3e0; color: #ef6c00; }
.loveb-modal-btn.vip { background: linear-gradient(90deg, #ff7a8a, #FF6F6F); color: #fff; }
.loveb-modal-btn.normal { background: #f5f5f5; color: #666; }

.pe-file { display: none; }

.pe-picker-mask {
  position: fixed;
  z-index: 200;
  top: 0; bottom: 0;
  left: 50%; width: 100%; max-width: 430px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
}
.pe-picker-panel {
  width: 100%;
  background: #fff;
  border-radius: 12px 12px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.pe-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #eee;
}
.pe-picker-cancel { font-size: 15px; color: #999; border: none; background: none; cursor: pointer; min-width: 40px; }
.pe-picker-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; color: #333; }
.pe-picker-confirm { font-size: 15px; color: #07c160; font-weight: 600; border: none; background: none; cursor: pointer; min-width: 40px; text-align: right; }
.pe-picker-confirm.opt { color: #b39ddb; }
.pe-picker-back { font-size: 15px; color: #b39ddb; border: none; background: none; cursor: pointer; min-width: 40px; }
.pe-picker-list {
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pe-picker-item {
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 16px;
  color: #333;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
}
.pe-picker-item.active {
  color: #FF6F6F;
  font-weight: 600;
  background: rgba(255, 111, 111, 0.06);
}
.pe-page.theme-male ~ .pe-picker-mask .pe-picker-item.active,
.pe-picker-mask.theme-male .pe-picker-item.active {
  color: #29b6f6;
  background: rgba(41, 182, 246, 0.08);
}
.pe-picker-cols {
  display: flex;
  height: 220px;
}
.pe-picker-col {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
}
.pe-picker-col .pe-picker-item { font-size: 14px; padding: 0 4px; }
