/* 相许相守 · H5 征婚资料站 全局样式
   配色对齐小程序头像：珊瑚粉 + 玫瑰金 + 米白 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary: #e26a7c;
  --primary-light: #f08a96;
  --primary-dark: #c95468;
  --primary-soft: #fdeef0;
  --gold: #c9a063;
  --gold-light: #e3c79b;
  --bg: #fff8f6;
  --card: #ffffff;
  --text: #33302e;
  --text-sub: #8d8380;
  --text-light: #b3a9a6;
  --border: #f0e5e1;
  --danger: #d9534f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(200, 140, 140, 0.1);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue',
    'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ===== 布局 ===== */

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.page--center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* ===== 品牌区 ===== */

.hero {
  padding: 56px 0 32px;
  text-align: center;
  background: radial-gradient(
    circle at 50% 0%,
    #fff2f2 0%,
    rgba(255, 248, 246, 0) 70%
  );
}

.brand-logo {
  width: 76px;
  height: 76px;
  display: block;
  margin: 0 auto 18px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(226, 106, 124, 0.18);
}

.brand-name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--text);
  margin-bottom: 10px;
}

.brand-slogan {
  font-size: 15px;
  color: var(--text-sub);
  letter-spacing: 0.5px;
}

.brand-slogan em {
  font-style: normal;
  color: var(--primary);
}

/* ===== 卡片 ===== */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

/* ===== 卖点列表 ===== */

.points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.points li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.points li:first-child {
  padding-top: 0;
}

.point-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--primary);
}

.point-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.point-text span {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ===== 按钮 ===== */

.btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  -webkit-appearance: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 6px 18px rgba(226, 106, 124, 0.32);
}

.btn--ghost {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary-light);
  box-shadow: none;
}

.btn--sm {
  width: auto;
  display: inline-block;
  padding: 9px 22px;
  font-size: 14px;
}

/* ===== 表单 ===== */

.field {
  margin-bottom: 22px;
}

.field:last-child {
  margin-bottom: 0;
}

.label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.label .required {
  color: var(--primary);
  margin-left: 3px;
}

.label .optional {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-light);
  margin-left: 6px;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fdfbfa;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #fff;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-light);
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23b3a9a6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
}

.textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.6;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-row > * {
  flex: 1;
  min-width: 0;
}

.unit {
  position: relative;
}

.unit-suffix {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-light);
  pointer-events: none;
}

.unit .input {
  padding-right: 46px;
}

/* 单选按钮组 */
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.options--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fdfbfa;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

/* 勾选授权 */
.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 0;
  cursor: pointer;
}

.agree input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.agree-text {
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.55;
}

/* ===== 进度条 ===== */

.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 26px;
}

.step-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.25s;
}

.step-dot.is-done,
.step-dot.is-active {
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
}

.step-label {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

/* ===== 步进面板 ===== */

.panel {
  display: none;
}

.panel.is-active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== 照片上传 ===== */

.photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 160px;
  border: 1.5px dashed var(--primary-light);
  border-radius: var(--radius-sm);
  background: #fffaf9;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.photo-upload img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-text {
  font-size: 13.5px;
  color: var(--text-sub);
}

.photo-upload-hint {
  font-size: 12px;
  color: var(--text-light);
}

.photo-upload input {
  display: none;
}

.photo-upload.is-uploading .photo-upload-text {
  color: var(--primary);
}

/* ===== 底部操作条 ===== */

.actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.actions .btn {
  flex: 1;
}

/* ===== 提示 ===== */

.tip {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 12px;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 68px;
  transform: translate(-50%, 12px);
  max-width: 82%;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(51, 48, 46, 0.9);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s;
  z-index: 99;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== 成功页 ===== */

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  color: var(--primary);
}

.success-title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 12px;
}

.success-desc {
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 28px;
}

.success-desc strong {
  color: var(--primary-dark);
}

/* ===== 隐私政策等长文 ===== */

.doc {
  padding: 28px 0 12px;
}

.doc h1 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.doc .doc-meta {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.doc h2 {
  font-size: 15.5px;
  font-weight: 600;
  margin: 24px 0 10px;
}

.doc p,
.doc li {
  font-size: 14px;
  color: #5c5654;
  line-height: 1.8;
}

.doc ol,
.doc ul {
  padding-left: 20px;
  margin: 8px 0;
}

.doc .doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.doc .doc-table th,
.doc .doc-table td {
  border: 1px solid var(--border);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  font-size: 13px;
  color: #5c5654;
}

.doc .doc-table th {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

/* 政策内需要用户自行填写的占位项 */
.doc .doc-fill {
  color: var(--primary-dark);
  font-weight: 600;
}

/* ===== 管理端 ===== */

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 16px 0;
}

.admin-bar .input {
  flex: 1;
  min-width: 120px;
  padding: 10px 13px;
  font-size: 14px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.stat {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-num {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

.profile-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.profile-head {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.profile-photo {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--primary-soft);
}

.profile-head-main {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.profile-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-rows {
  font-size: 13.5px;
  color: #5c5654;
  line-height: 1.9;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.profile-rows b {
  color: var(--text-sub);
  font-weight: 400;
}

.profile-contact {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  font-size: 14px;
  color: var(--primary-dark);
  word-break: break-all;
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  margin-left: 6px;
  vertical-align: 2px;
}

.profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12.5px;
  color: var(--text-sub);
  cursor: pointer;
}

.chip.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

.load-more {
  text-align: center;
  padding: 18px 0;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 14px;
}

/* ===== ICP 备案页脚 ===== */

.icp-footer {
  padding: 28px 0 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}

.icp-footer a {
  color: var(--text-light);
  text-decoration: none;
}

.icp-footer a:active {
  color: var(--text-sub);
}

/* ===== 我的资料：状态步骤条 ===== */

.status-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 6px 4px 2px;
}

.status-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.status-step .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
}

.status-step .s-label {
  font-size: 12px;
  color: var(--text-light);
}

.status-step.is-done .dot {
  background: var(--primary);
}

.status-step.is-done .s-label {
  color: var(--primary-dark);
}

.status-step.is-active .dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.status-step.is-active .s-label {
  color: var(--primary-dark);
  font-weight: 600;
}

.status-step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}

.status-step:first-child::before {
  display: none;
}

.status-step.is-done::before,
.status-step.is-active::before {
  background: var(--primary);
}

/* ===== 我的资料：键值行 ===== */

.kv-list {
  margin: 0;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.kv:last-child {
  border-bottom: none;
}

.kv .k {
  flex: 0 0 auto;
  color: var(--text-sub);
}

.kv .v {
  text-align: right;
  color: var(--text);
  word-break: break-all;
}

.kv .v.is-empty {
  color: var(--text-light);
}

/* ===== 状态标签 ===== */

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.tag--ok {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.tag--off {
  background: #f1f2f4;
  color: var(--text-sub);
}

/* ===== 常见问题 ===== */

.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.faq-a {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-sub);
  margin: 0;
  white-space: pre-line;
}

.faq-a strong {
  color: var(--primary-dark);
}

/* ===== 账号体系 ===== */

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--primary-soft);
}

.avatar--lg {
  width: 56px;
  height: 56px;
}

.avatar--ph {
  display: inline-block;
  background: linear-gradient(135deg, #f7c9d0, #efd3d8);
}

.radio-row {
  display: flex;
  gap: 10px;
}

.radio-pill {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-sub);
}

.radio-pill input {
  display: none;
}

.radio-pill.is-checked {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

/* 现代浏览器：选中态由 :has 直接驱动，无需 JS 加 class */
.radio-pill:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

/* ===== 相册 ===== */

.photo-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.photo-cell {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #faf7f7;
}

.photo-cell img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.photo-caption {
  margin: 0;
  padding: 8px 10px 10px;
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.5;
}

.photo-cell .photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: #fff;
}

.photo-del {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
}

.photo-modal.is-show {
  display: block;
}

.photo-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.photo-modal__body {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  height: 100%;
  overflow-y: auto;
  padding: 20px 16px 40px;
  box-sizing: border-box;
}

.photo-modal__body > img {
  display: block;
  max-width: 100%;
  border-radius: 12px;
  margin: 20px auto 12px;
}

.photo-modal__meta {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}

.photo-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 240px;
  overflow-y: auto;
}

.comment-item {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
}

.comment-item .avatar {
  width: 32px;
  height: 32px;
}

.comment-item .avatar--ph {
  width: 32px;
  height: 32px;
}

.comment-head {
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 2px;
}

.comment-text {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
  word-break: break-all;
}

/* ===== 搜索结果 ===== */

.member-card {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.member-photo {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #faf7f7;
}

.member-photo--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary);
  background: var(--primary-soft);
}

.member-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.member-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.member-meta {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-sub);
}

.member-intro {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 管理端：审核列表 ===== */

.review-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.review-item:last-child {
  border-bottom: none;
}

.review-item > img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.review-main {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.review-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
