﻿:root {
  --bg: #fff3f7;
  --panel: rgba(255, 255, 255, 0.92);
  --text: #3c2330;
  --muted: #8c6473;
  --primary: #ef5f91;
  --primary-dark: #cc3f72;
  --line: rgba(217, 93, 133, 0.18);
  --shadow: 0 18px 45px rgba(180, 56, 101, 0.16);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #f7dce7; touch-action: pan-x pan-y; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 199, 214, 0.95), transparent 28rem),
    linear-gradient(145deg, #fff8fb 0%, #ffe6ef 42%, #f7dce7 100%);
  touch-action: pan-x pan-y;
}
button, input, select, textarea { font: inherit; }
button {
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1rem;
  color: var(--text);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
button.primary, .primary { background: linear-gradient(135deg, var(--primary), #ff8cac); color: #fff; box-shadow: 0 12px 24px rgba(239, 95, 145, 0.28); }
button.ghost { background: rgba(255, 255, 255, 0.62); }
button:active { transform: translateY(1px); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.82rem 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  outline: none;
  font-size: 16px;
}
textarea { resize: vertical; }
label { display: grid; gap: 0.42rem; font-size: 0.88rem; color: var(--muted); }
.hidden { display: none !important; }
.mini-app { min-height: 100vh; padding: 0 clamp(0px, 4vw, 24px); }
.phone-shell {
  position: relative;
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 calc(6.4rem + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
.page { display: none; padding: 0.92rem 0.92rem 1.4rem; }
.page.active { display: block; }
.home-hero {
  position: relative;
  min-height: 20rem;
  padding: 1rem;
  border-radius: 0 0 28px 28px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(150, 39, 82, 0.64), rgba(244, 94, 143, 0.5)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=900&q=80") center/cover;
  box-shadow: var(--shadow);
}
.home-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(91, 28, 54, 0.72)); }
.top-bar, .hero-copy, .hero-actions { position: relative; z-index: 1; }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-lockup, .identity-card { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark, .avatar-dot {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff8cac, #d94880);
  font-weight: 800;
}
.brand-lockup span, .identity-card span { display: block; margin-top: 0.12rem; font-size: 0.78rem; opacity: 0.82; }
.home-hero .mini-btn { color: #fff; background: rgba(255,255,255,0.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35); }
.hero-copy { padding-top: 4.8rem; }
.eyebrow { display: block; font-size: 0.72rem; letter-spacing: 0; color: #b94d76; font-weight: 800; }
.home-hero .eyebrow { color: rgba(255,255,255,0.86); }
h1, h2, p { margin: 0; }
h1 { font-size: 1.62rem; line-height: 1.18; letter-spacing: 0; }
h2 { font-size: 1.04rem; }
.hero-copy p { margin-top: 0.75rem; max-width: 22rem; color: rgba(255,255,255,0.9); font-size: 0.92rem; line-height: 1.65; }
.hero-actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0.65rem; margin-top: 1rem; }
.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.62rem; margin: -1.25rem 0.9rem 0; position: relative; z-index: 2; }
.quick-stats div, .stat-card, .panel, .guest-card, .identity-card, .profile-card, .list-item {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.quick-stats div { display: grid; gap: 0.18rem; padding: 0.82rem 0.35rem; text-align: center; }
.quick-stats strong { color: var(--primary-dark); }
.quick-stats span, .meta-line, .field-hint, .meta, .empty-note, .list-item span, .list-item small { color: var(--muted); font-size: 0.82rem; }
.panel { margin-top: 0.9rem; padding: 0.86rem; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.8rem; }
.split-title { align-items: flex-start; }
.mini-btn { padding: 0.58rem 0.82rem; font-size: 0.84rem; }
.filter-sheet, .form-stack, .stacked-content { display: grid; gap: 0.7rem; }
.field-row, .action-row, .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.62rem; }
.tight button { padding: 0.72rem 0.7rem; }
.profile-feed { display: grid; gap: 0.82rem; }
.profile-card { display: grid; grid-template-columns: 7.2rem 1fr; min-height: 9rem; overflow: hidden; }
.profile-cover { position: relative; min-height: 9rem; background: #ffdce8; }
.profile-cover img, .detail-cover img, .media-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-empty { display: grid; place-items: center; width: 100%; height: 100%; min-height: 8rem; color: #d94a78; background: linear-gradient(135deg, #ffe1eb, #fff7fa); font-weight: 800; }
.status-pill { position: absolute; left: 0.45rem; top: 0.45rem; padding: 0.24rem 0.5rem; border-radius: 999px; color: #fff; background: rgba(70, 25, 45, 0.55); font-size: 0.72rem; }
.profile-body { display: grid; gap: 0.5rem; padding: 0.82rem; min-width: 0; }
.headline { font-weight: 800; line-height: 1.35; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag-row span { padding: 0.3rem 0.54rem; border: 1px solid transparent; border-radius: 999px; font-size: 0.75rem; font-weight: 750; }
.tag-row .tag-role { border-color: #f5b7c7; color: #a82d55; background: #ffe8ef; }
.tag-row .tag-income { border-color: #b9d6f6; color: #245f9e; background: #eaf4ff; }
.tag-row .tag-home { border-color: #b9e1cd; color: #237254; background: #eaf8f1; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.2rem; }
.card-actions button { padding: 0.48rem 0.65rem; font-size: 0.78rem; }
.review-note { padding: 0.5rem; border-radius: 12px; color: #a23d65; background: #fff2f6; font-size: 0.78rem; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.3rem 0.2rem 0.9rem; }
.page-header h1 { margin-top: 0.15rem; color: #5a263b; }
.page-header p { margin-top: 0.28rem; color: var(--muted); font-size: 0.88rem; }
.guest-card { display: grid; gap: 0.5rem; padding: 1rem; }
.guest-card strong { font-size: 1.05rem; }
.identity-card { padding: 0.85rem; margin-bottom: 0.8rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; margin-bottom: 0.75rem; }
.stat-card { display: grid; gap: 0.16rem; padding: 0.75rem 0.5rem; text-align: center; }
.stat-card strong { color: var(--primary-dark); font-size: 1.1rem; }
.stat-card span { font-size: 0.78rem; font-weight: 700; }
.stat-card em { color: var(--muted); font-size: 0.7rem; font-style: normal; }
.segmented { display: grid; grid-auto-flow: column; gap: 0.35rem; padding: 0.25rem; border-radius: 999px; background: rgba(255,255,255,0.66); box-shadow: inset 0 0 0 1px var(--line); }
.segmented button { padding: 0.52rem 0.6rem; box-shadow: none; background: transparent; font-size: 0.82rem; }
.segmented button.active { color: #fff; background: var(--primary); }
.work-tabs { margin-bottom: 0.75rem; overflow-x: auto; }
.work-page { display: none; }
.work-page.active { display: block; }
.inline-filter { grid-template-columns: 0.85fr 1fr auto; margin-bottom: 0.7rem; }
#poolFilter { grid-template-columns: minmax(5.8rem, 0.85fr) minmax(0, 1.35fr) 4.7rem; align-items: stretch; gap: 0.5rem; }
#poolFilter > .field-row { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0.42rem; min-width: 0; }
#poolFilter select, #poolFilter button { width: 100%; height: 3rem; min-height: 3rem; margin: 0; padding: 0.55rem 0.58rem; border-radius: 12px; }
.full-select { margin-bottom: 0.75rem; }
.list-stack { display: grid; gap: 0.7rem; }
.list-item { display: grid; gap: 0.42rem; padding: 0.85rem; }
.admin-portal-card { display: grid; gap: .75rem; }
.admin-portal-card .identity-card { margin: 0; }
.admin-launch { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 8px; color: #fff; background: var(--rose); text-decoration: none; font-weight: 750; }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.item-foot button { padding: 0.45rem 0.65rem; font-size: 0.78rem; }
.notification-panel #notificationList { gap: 0.55rem; }
.notification-panel #notificationList .list-item { gap: 0.3rem; padding: 0.72rem 0.76rem; border-radius: 14px; }
.notification-panel #notificationList .list-item strong { font-size: 0.86rem; line-height: 1.35; }
.notification-panel #notificationList .list-item > span { font-size: 0.75rem; line-height: 1.45; }
.notification-panel #notificationList .item-foot small,
.notification-panel #notificationList .item-foot em { font-size: 0.68rem; }
.connection-panel { order: -1; }
.is-read { opacity: 0.72; }
.empty-note { padding: 0.9rem; border-radius: 16px; background: rgba(255,255,255,0.68); text-align: center; }
.app-tabbar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 460px);
  padding: 0.42rem 0.72rem calc(0.42rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
  box-shadow: 0 -16px 35px rgba(170, 54, 96, 0.12);
  backdrop-filter: blur(18px);
}
.app-tabbar button { position: relative; display: grid; gap: 0.12rem; place-items: center; padding: 0.38rem 0.2rem; color: #9b6c7e; background: transparent; box-shadow: none; font-size: 0.76rem; }
.app-tabbar button.active { color: var(--primary-dark); }
.tab-icon { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 999px; font-size: 1rem; }
.app-tabbar button.active .tab-icon { color: #fff; background: var(--primary); }
.nav-badge { position: absolute; top: 0.12rem; right: 24%; min-width: 1.08rem; height: 1.08rem; padding: 0 0.25rem; border-radius: 999px; color: #fff; background: #e73562; font-size: 0.68rem; line-height: 1.08rem; }
dialog { width: min(94vw, 440px); max-height: 88vh; padding: 0; border: 0; border-radius: 22px; background: #fff9fb; box-shadow: 0 30px 80px rgba(99, 25, 56, 0.3); overflow: hidden; }
dialog::backdrop { background: rgba(73, 24, 45, 0.38); backdrop-filter: blur(4px); }
.dialog-body { max-height: 88vh; overflow: auto; padding: 1rem; }
.sticky-dialog-title { position: sticky; top: -1rem; z-index: 2; padding-top: 0.25rem; background: #fff9fb; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.form-section-title { margin: 1rem 0 0.62rem; color: #b94370; font-weight: 800; }
.checkbox { display: flex; align-items: center; gap: 0.5rem; width: max-content; color: var(--text); }
.checkbox input { width: auto; }
.agreement-check { display: flex; align-items: flex-start; gap: 0.6rem; width: 100%; padding: 0.72rem; border: 1px solid var(--line); border-radius: 14px; background: #fff7fa; color: var(--text); line-height: 1.55; }
.agreement-check input { width: 18px; min-width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--primary); }
.agreement-check span { display: inline; }
.inline-link { display: inline; padding: 0; color: var(--primary-dark); background: transparent; box-shadow: none; font-weight: 750; text-decoration: underline; }
.agreement-copy { display: grid; gap: 0.8rem; color: #5f3e4c; font-size: 0.88rem; line-height: 1.7; }
.agreement-copy > p { padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.agreement-copy > p:last-child { border-bottom: 0; }
.policy-version { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem 0.7rem; color: #6b4052; font-size: 0.78rem; }
.legal-emphasis { padding: 0.8rem !important; border: 1px solid #efbfd0 !important; border-radius: 12px; color: #71354e; background: #fff0f5; }
.policy-section { padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.policy-section h3 { margin: 0 0 0.35rem; color: #5a2b40; font-size: 0.9rem; }
.policy-section p { margin: 0; }
.policy-section ul { display: grid; gap: 0.35rem; margin: 0; padding-left: 1.15rem; }
.policy-note { color: var(--muted); font-size: 0.78rem; }
.wide-action { width: 100%; margin-top: 1rem; }
.pair-target { min-height: 5rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: 14px; background: #fff2f6; }
.pair-target strong, .pair-target span { display: block; }
.pair-target span { margin-top: 0.25rem; color: var(--muted); font-size: 0.8rem; }
.match-result { display: grid; gap: 0.7rem; padding: 0.8rem; border-radius: 16px; background: #fff3f7; }
.match-score { display: flex; align-items: center; gap: 0.75rem; }
.match-score strong { display: grid; place-items: center; width: 4.2rem; height: 4.2rem; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--primary); font-size: 1.2rem; }
.match-score.failed strong { background: #a76b7d; }
.match-score span { color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.match-reason-group { display: grid; gap: 0.35rem; }
.match-reason-group h3 { margin: 0; font-size: 0.84rem; }
.match-reason-group ul { display: grid; gap: 0.32rem; margin: 0; padding-left: 1.2rem; color: #6e4a59; font-size: 0.78rem; line-height: 1.45; }
.match-reason-group.unmet { color: #a33f5f; }
.poster-canvas-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #f8eaf0; box-shadow: 0 12px 30px rgba(166, 62, 102, 0.14); }
#sharePosterCanvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; }
#sharePosterPreview { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; -webkit-touch-callout: default; user-select: auto; }
.poster-dialog .dialog-actions { margin-top: 0.8rem; }
.poster-dialog button:disabled, .match-dialog button:disabled { cursor: not-allowed; opacity: 0.5; }
.media-panel { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.7rem; align-items: stretch; }
.media-preview { min-height: 7.6rem; overflow: hidden; border-radius: 16px; background: #ffe1eb; }
.detail-cover { height: 13rem; overflow: hidden; border-radius: 18px; background: #ffe1eb; }
.detail-lines, .private-box { display: grid; gap: 0.6rem; margin-top: 0.8rem; }
.private-box p { display: grid; gap: 0.18rem; padding: 0.7rem; border-radius: 14px; background: #fff0f5; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: min(86vw, 360px); padding: 0.72rem 1rem; border-radius: 999px; color: #fff; background: rgba(72, 25, 46, 0.92); box-shadow: var(--shadow); }
@media (max-width: 380px) {
  .profile-card { grid-template-columns: 6.2rem 1fr; }
  .form-grid, .field-row, .action-row, .dialog-actions { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .inline-filter { grid-template-columns: 1fr; }
  #poolFilter { grid-template-columns: 1fr; }
}
@media (min-width: 700px) {
  .mini-app { padding-top: 1rem; }
  .phone-shell { border-radius: 32px 32px 0 0; background: rgba(255,255,255,0.2); }
  .app-tabbar { border-radius: 24px 24px 0 0; }
}
/* v23: 首页收紧为前台资源，小程序底部图标升级 */
.resource-header {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.9rem;
  border-radius: 0 0 26px 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,239,246,0.9)),
    linear-gradient(135deg, #ffd4e1, #fff7fa);
  border: 1px solid rgba(255,255,255,0.76);
  box-shadow: var(--shadow);
}
.resource-header .brand-lockup span { color: var(--muted); opacity: 1; }
.resource-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem;
}
.resource-title-row h1 {
  margin-top: 0.14rem;
  color: #522338;
  font-size: 1.55rem;
}
.resource-title-row p {
  margin-top: 0.38rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.resource-count {
  display: grid;
  place-items: center;
  min-width: 5.2rem;
  padding: 0.72rem 0.7rem;
  border-radius: 18px;
  color: var(--primary-dark);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.resource-count strong { font-size: 1.2rem; }
.resource-count span { color: var(--muted); font-size: 0.72rem; }
.compact-panel { margin-top: 0; }
.app-tabbar { padding-top: 0.5rem; }
.app-tabbar button { font-weight: 600; }
.tab-icon {
  width: 1.78rem;
  height: 1.78rem;
  color: currentColor;
}
.tab-icon svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: currentColor;
  display: block;
}
.app-tabbar button.active .tab-icon {
  box-shadow: 0 7px 18px rgba(239, 95, 145, 0.3);
}
.nav-badge { right: 21%; }
@media (max-width: 380px) {
  .resource-title-row { grid-template-columns: 1fr; }
  .resource-count { width: 100%; grid-template-columns: auto auto; justify-content: center; gap: 0.4rem; }
}

/* v24: 缘分来了首页与快速入口 */
body {
  background:
    radial-gradient(circle at 50% -8rem, rgba(255, 231, 239, 0.96), transparent 30rem),
    linear-gradient(180deg, #fff7fa 0%, #ffe7f0 42%, #f8dce7 100%);
}
.elegant-header {
  min-height: 10.5rem;
  align-content: space-between;
  padding: 1.05rem;
  background:
    linear-gradient(140deg, rgba(255,255,255,0.97), rgba(255,246,250,0.88)),
    url("https://images.unsplash.com/photo-1522673607200-164d1b6ce486?auto=format&fit=crop&w=900&q=80") center/cover;
}
.elegant-header .brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #f35f95, #d94a78);
}
.elegant-header .brand-lockup strong {
  font-size: 1.08rem;
}
.elegant-header .resource-title-row {
  align-items: center;
}
.elegant-header .eyebrow {
  color: #c04f7b;
}
.elegant-header .resource-title-row h1 {
  font-size: 1.72rem;
  color: #492237;
}
.elegant-header .resource-count {
  background: rgba(255,255,255,0.84);
  border-radius: 20px;
}
.quick-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.56rem;
  margin-bottom: 0.9rem;
}
.quick-entry-grid button {
  display: grid;
  gap: 0.32rem;
  justify-items: center;
  min-height: 4.7rem;
  padding: 0.68rem 0.35rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 12px 28px rgba(185, 76, 116, 0.12);
}
.quick-entry-grid span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff7fab, #e64e85);
  font-size: 0.74rem;
  font-weight: 800;
}
.quick-entry-grid strong {
  font-size: 0.78rem;
  color: #5a2b40;
}
.info-panel {
  margin-bottom: 0.9rem;
  padding: 0.86rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
}
.info-grid {
  display: grid;
  gap: 0.55rem;
}
.info-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem;
  border-radius: 14px;
  background: #fff4f8;
}
.info-grid article span {
  padding: 0.28rem 0.42rem;
  border-radius: 999px;
  color: #fff;
  background: #ef5f91;
  font-size: 0.72rem;
}
.info-grid article strong {
  font-size: 0.84rem;
  color: #5a2b40;
}
.broker-directory { gap: 0; }
.broker-directory .broker-public-row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.78rem 0.15rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.broker-directory .broker-public-row:last-child { border-bottom: 0; }
.broker-directory .broker-public-avatar {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  color: #fff;
  background: #d84f7d;
  font-size: 0.92rem;
  font-weight: 850;
  padding: 0;
}
.broker-public-row div { min-width: 0; }
.broker-public-row strong { display: block; color: #4f293a; font-size: 0.9rem; }
.broker-public-row p { margin-top: 0.2rem; color: var(--muted); font-size: 0.75rem; }
.broker-public-row em { padding: 0.32rem 0.48rem; border-radius: 999px; color: #8c4261; background: #fff0f5; font-size: 0.7rem; font-style: normal; white-space: nowrap; }
.broker-directory-status { padding: 1rem 0.4rem; color: var(--muted); text-align: center; font-size: 0.82rem; }
.panel .section-title .eyebrow {
  color: #c04f7b;
}
@media (max-width: 380px) {
  .quick-entry-grid { grid-template-columns: repeat(2, 1fr); }
}

/* v25: 下拉筛选、圆角品牌框、相亲者信息瀑布流 */
.elegant-header {
  border-radius: 26px;
  margin-top: 0.72rem;
  min-height: 9.8rem;
}
.elegant-header .brand-lockup strong {
  font-size: 1.26rem;
  font-weight: 900;
  color: #4a2236;
}
.elegant-header .brand-lockup span {
  font-size: 0.8rem;
}
.elegant-header .resource-title-row h1 {
  font-size: 1.58rem;
  font-weight: 900;
}
.elegant-header .brand-mark {
  font-size: 1.05rem;
}
.filter-sheet select {
  min-height: 3.05rem;
  appearance: auto;
}
.waterfall-mode .section-title h2::after {
  content: " · 信息瀑布流";
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}
.waterfall-feed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.68rem;
}
.waterfall-feed .profile-card {
  grid-template-columns: 1fr;
  min-height: 0;
  border-radius: 18px;
}
.waterfall-feed .profile-cover {
  min-height: 6.2rem;
}
.waterfall-feed .cover-empty {
  min-height: 6.2rem;
}
.waterfall-feed .profile-body {
  padding: 0.72rem;
  gap: 0.42rem;
}
.waterfall-feed .headline {
  font-size: 0.9rem;
}
.waterfall-feed .meta-line {
  font-size: 0.75rem;
}
.waterfall-feed .tag-row span {
  font-size: 0.68rem;
  padding: 0.24rem 0.4rem;
}
.waterfall-feed .card-actions button {
  font-size: 0.72rem;
  padding: 0.42rem 0.52rem;
}
@media (max-width: 380px) {
  .waterfall-feed { grid-template-columns: 1fr; }
}

/* v26: 醒目筛选按钮与二级城市筛选 */
.filter-cta {
  display: grid;
  place-items: center;
  min-width: 4.3rem;
  min-height: 3rem;
  padding: 0.48rem 0.72rem;
  color: #fff;
  background: linear-gradient(135deg, #ef5f91, #ff8caf);
  box-shadow: 0 12px 24px rgba(239, 95, 145, 0.32);
  border: 0;
}
.filter-cta span {
  font-weight: 900;
  line-height: 1;
}
.filter-cta b {
  margin-top: 0.12rem;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.86;
}
.filter-cta::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  margin-bottom: 0.12rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: -0.42rem 0.34rem 0 rgba(255,255,255,0.86), 0.42rem 0.34rem 0 rgba(255,255,255,0.72);
}
.filter-sheet > .field-row:first-of-type {
  grid-template-columns: 0.82fr 1.18fr;
}
.filter-sheet input[name="min_height_cm"] {
  background: #fff;
}

/* v27: 简洁筛选按钮、年份手动输入 */
.filter-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  min-width: auto;
  min-height: 2.45rem;
  padding: 0.58rem 0.92rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ef5f91, #f875a6);
  box-shadow: 0 10px 22px rgba(239, 95, 145, 0.24);
  font-weight: 800;
}
.filter-cta::before {
  content: "";
  width: 0.86rem;
  height: 0.86rem;
  margin: 0;
  border-radius: 0;
  background: currentColor;
  box-shadow: none;
  clip-path: polygon(10% 15%, 90% 15%, 60% 50%, 60% 82%, 40% 82%, 40% 50%);
}
.filter-cta b,
.filter-cta span { display: inline; margin: 0; line-height: 1; }
.filter-sheet input[name="birth_year_from"],
.filter-sheet input[name="birth_year_to"] {
  background: #fff;
}

.copy-result {
  min-height: 2.35rem;
  padding: 0.72rem 0.85rem;
  border-radius: 14px;
  background: #fff4f8;
  color: #b4235a;
  font-weight: 800;
  word-break: break-all;
}

/* v38: operational upload, pagination and account management */
.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.2rem auto;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}
.filter-bar button { padding-inline: 0.8rem; }
#adminAuditFilter { grid-template-columns: minmax(0, 1fr) auto auto; }
.identity-card > .mini-btn { margin-left: auto; }
.load-more {
  width: 100%;
  margin-top: 0.35rem;
  color: var(--primary-dark);
  background: #fff7fa;
  font-weight: 800;
}
.photo-uploader {
  display: grid;
  gap: 0.72rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff8fb;
}
.photo-uploader .section-title { align-items: center; }
.upload-trigger {
  display: inline-flex;
  width: auto;
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
  cursor: pointer;
}
.upload-trigger input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.photo-item { position: relative; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: #fff; }
.photo-item.is-avatar { border-color: var(--primary); }
.photo-item img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-item > span { position: absolute; top: 0.42rem; left: 0.42rem; padding: 0.24rem 0.46rem; border-radius: 999px; color: #fff; background: rgba(62, 28, 43, 0.7); font-size: 0.72rem; }
.photo-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.25rem; padding: 0.38rem; }
.photo-actions button { min-width: 0; padding: 0.42rem 0.2rem; border-radius: 6px; font-size: 0.75rem; }
.detail-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 0.65rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.4rem; }
.detail-gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 8px; scroll-snap-align: start; background: #ffeaf1; }
.detail-gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.detail-gallery figure span { position: absolute; inset: auto 0.6rem 0.65rem auto; padding: 0.28rem 0.48rem; color: rgba(255,255,255,0.88); background: rgba(55,20,35,0.28); font-size: 0.7rem; pointer-events: none; }

@media (max-width: 420px) {
  .filter-bar, #adminAuditFilter { grid-template-columns: 1fr 1fr; }
  .filter-bar input { grid-column: 1 / -1; }
  #adminAuditFilter input { grid-column: 1 / -1; }
}

/* v43: 老年红娘友好型三步资料录入 */
#profileDialog {
  width: min(96vw, 580px);
  max-height: 92vh;
}
body:has(dialog[open]) { overflow: hidden; }
.profile-wizard {
  display: block;
  max-height: 92vh;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.profile-wizard .sticky-dialog-title {
  top: 0;
  margin: 0;
  padding: 1rem 1rem 0.82rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 251, 0.98);
  backdrop-filter: blur(12px);
}
.wizard-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}
.wizard-title-row h2 { margin: 0.18rem 0 0; font-size: 1.35rem; }
.wizard-title-row p { margin: 0.28rem 0 0; color: var(--muted); font-size: 0.94rem; font-weight: 750; }
.profile-close-btn { min-width: 4.4rem; min-height: 44px; font-size: 0.98rem; }
.wizard-progress {
  height: 8px;
  margin-top: 0.78rem;
  overflow: hidden;
  border-radius: 999px;
  background: #f3dce5;
}
.wizard-progress-bar {
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #ff8caf);
  transition: width 180ms ease;
}
.wizard-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.38rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}
.wizard-step-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.36rem 0.3rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}
.wizard-step-list li span {
  display: grid;
  place-items: center;
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #eddde3;
}
.wizard-step-list li.is-active { color: var(--primary-dark); background: #fff0f5; }
.wizard-step-list li.is-active span { color: #fff; background: var(--primary); }
.wizard-step-list li.is-complete span { color: #fff; background: #35a66f; }
.profile-step { display: grid; gap: 1rem; padding: 1rem 1rem 1.4rem; }
.profile-step.hidden { display: none; }
.wizard-section-heading { padding: 0.85rem 0.9rem; border-radius: 16px; background: #fff0f5; }
.wizard-section-heading span { color: var(--primary-dark); font-size: 0.86rem; font-weight: 900; }
.wizard-section-heading h3 { margin: 0.18rem 0 0; font-size: 1.28rem; }
.wizard-section-heading p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.96rem; line-height: 1.6; }
.wizard-field-list { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.profile-wizard label {
  gap: 0.48rem;
  color: #523846;
  font-size: 1rem;
  font-weight: 800;
}
.profile-wizard label em { color: var(--primary-dark); font-size: 0.78rem; font-style: normal; font-weight: 700; }
.profile-wizard input,
.profile-wizard select,
.profile-wizard textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.78rem 0.88rem;
  border-radius: 13px;
  background: #fff;
  font-size: 17px;
  line-height: 1.35;
}
.profile-wizard textarea { min-height: 98px; }
.profile-wizard select:disabled { color: #9b8d94; background: #f4f0f2; }
.profile-wizard .field-hint { font-size: 0.88rem; line-height: 1.5; }
.wizard-fieldset {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdfd;
}
.wizard-fieldset legend { padding: 0 0.35rem; color: var(--primary-dark); font-size: 1rem; font-weight: 900; }
.same-region-row { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; }
.same-region-row strong { font-size: 1.05rem; }
.same-region-row button { min-height: 48px; padding-inline: 1rem; color: var(--primary-dark); background: #fff0f5; font-size: 1rem; font-weight: 850; }
.wizard-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.preferred-region-fieldset { background: #fff8fb; }
.profile-wizard .photo-uploader { padding: 0.95rem; }
.profile-wizard .upload-trigger { min-height: 48px; align-items: center; justify-content: center; font-size: 1rem; }
.wizard-actions {
  position: sticky;
  z-index: 3;
  bottom: 0;
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.1fr;
  gap: 0.55rem;
  padding: 0.82rem 1rem max(0.82rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 249, 251, 0.98);
  box-shadow: 0 -12px 28px rgba(91, 40, 61, 0.1);
  backdrop-filter: blur(12px);
}
.wizard-actions button { min-width: 0; min-height: 50px; padding: 0.62rem 0.45rem; font-size: 1rem; font-weight: 900; }
.wizard-actions button:disabled { opacity: 0.45; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 420px) {
  #profileDialog { width: 98vw; border-radius: 18px; }
  .profile-wizard { max-height: 94vh; }
  .profile-wizard .sticky-dialog-title, .profile-step { padding-inline: 0.78rem; }
  .wizard-step-list li { display: grid; gap: 0.2rem; font-size: 0.7rem; }
  .wizard-range { gap: 0.55rem; }
  .wizard-actions { padding-inline: 0.65rem; }
  .wizard-actions button { font-size: 0.92rem; }
}
