/* ===== 公益相亲信息墙 · 移动端优先 ===== */
:root {
  --bg: #faf6f2;
  --surface: #fffdfb;
  --ink: #2f2823;
  --ink-2: #5b4d45;
  --muted: #93847a;
  --line: #efe3d9;
  --line-strong: #e6d5c8;
  --primary: #d4583c;
  --primary-deep: #b6432b;
  --primary-soft: #fcebe4;
  --sage: #5c7d6a;
  --sage-soft: #eaf2ec;
  --gold: #b8843d;
  --gold-soft: #fbf1df;
  --blue-soft: #eaf0f8;
  --blue: #4f6d92;
  --danger-soft: #fbeaea;
  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 6px 20px rgba(88, 60, 42, .07);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, #f7e8dc 0, transparent 42%),
    radial-gradient(circle at 82% 82%, #efe7dd 0, transparent 45%),
    #eae2d9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- 手机外框 ---------- */
.phone {
  position: relative;
  width: 390px;
  height: 844px;
  max-height: calc(100vh - 32px);
  background: var(--bg);
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 32px 64px rgba(64, 42, 30, .26),
    0 2px 6px rgba(64, 42, 30, .1),
    inset 0 0 0 1px rgba(255, 255, 255, .7);
}

/* ---------- 顶栏 ---------- */
.appbar {
  flex: 0 0 auto;
  padding: 18px 18px 12px;
  background: linear-gradient(180deg, #fffdfa 0%, #fdf7f1 100%);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(140deg, #e2765c 0%, #c14a30 100%);
  color: #fff;
  display: grid; place-items: center;
  font-size: 19px; font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 5px 12px rgba(196, 74, 48, .28);
}
.brand-text { flex: 1; min-width: 0; }
.brand-text h1 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.brand-text p { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }
.free-pill {
  flex: 0 0 auto;
  font-size: 10.5px;
  color: var(--sage);
  background: var(--sage-soft);
  border: 1px solid #d7e7dc;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: .5px;
}
.bar-row { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.bar-title { flex: 1; font-size: 16px; font-weight: 700; }
.icon-btn {
  width: 36px; height: 36px; flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.ghost { opacity: 0; pointer-events: none; }
.text-btn {
  border: 0; background: none; color: var(--primary);
  font-size: 12.5px; padding: 6px 2px; cursor: pointer;
}

/* ---------- 内容区 ---------- */
.view {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px 26px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.view::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- 底部导航 ---------- */
.tabbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: rgba(255, 253, 251, .97);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
}
.tab {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 0 4px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.2;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.tab svg { width: 21px; height: 21px; }
.tab span {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-size: 10.5px;
}
.tab.active { color: var(--primary-deep); background: var(--primary-soft); font-weight: 600; }
.fab {
  position: absolute;
  right: calc(20% - 26px);
  bottom: calc(25% - 26px);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #e8a87c);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(176, 96, 58, .36);
  cursor: pointer;
  z-index: 5;
}
.fab svg { width: 22px; height: 22px; }
.fab-space { height: 70px; }

/* ---------- 公益提示 ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #fff7f0 0%, #fce9df 100%);
  border: 1px solid #f5ddcf;
  border-radius: var(--radius-lg);
  padding: 14px 15px 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -28px; top: -34px;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(212, 88, 60, .07);
}
.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: .8px;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.hero-text { margin: 0; font-size: 12.5px; line-height: 1.65; color: #6b564b; }

/* ---------- 筛选 ---------- */
.filters { margin-bottom: 12px; }
.search {
  position: relative;
  display: flex; align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  height: 40px;
  margin-bottom: 10px;
}
.search svg { width: 16px; height: 16px; color: var(--muted); flex: 0 0 auto; }
.search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  font-size: 13px; padding: 0 8px; color: var(--ink);
}
.search input::placeholder { color: #b3a69c; }
.search .clear {
  border: 0; background: #f2e9e2; color: #8b7a70;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 13px; line-height: 18px; cursor: pointer;
  padding: 0;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #6f6159;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .16s;
}
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 3px 8px rgba(196, 74, 48, .22);
}
.count { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.wall-tools { display: flex; gap: 8px; margin-bottom: 9px; }
.wall-tools .search { flex: 1; margin-bottom: 0; }
.filter-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 5px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.filter-btn.on { border-color: var(--primary); color: var(--primary-deep); background: var(--primary-soft); }
.filter-badge {
  font-style: normal;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 9.5px;
  line-height: 16px;
  text-align: center;
}
.wall-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.filter-group { margin-bottom: 13px; }
.filter-group .filter-label { font-size: 11.5px; font-weight: 600; color: #6f6159; margin-bottom: 7px; }
.filter-chips { flex-wrap: wrap; margin-bottom: 0; }
.filter-chips .chip { padding: 5px 10px; font-size: 11px; }

/* ---------- 卡片流 ---------- */
.wall-list { display: flex; flex-direction: column; gap: 11px; }
.person-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.person-card:active { transform: scale(.985); border-color: var(--line-strong); }
.mine-card-wrap { margin-bottom: 12px; }
.person-card.mine-card { position: relative; }
.mine-card .pc-top { padding-right: 52px; }
.mine-card .pc-arrow { display: none; }
.pc-badge {
  position: absolute;
  top: 11px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eaf5e9;
  color: #3c7a4e;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
}
.pc-top { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 52px; height: 52px; flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  display: grid; place-items: center;
  font-size: 19px; font-weight: 600; color: #fff;
  overflow: hidden;
  background: #e8d9cd;
}
.avatar.sm { width: 38px; height: 38px; font-size: 15px; }
.avatar.lg { width: 76px; height: 76px; font-size: 28px; }
.avatar.female { background: linear-gradient(140deg, #e79b8b, #cf6a52); }
.avatar.male { background: linear-gradient(140deg, #8fab9d, #5e7f70); }
.pc-head { flex: 1; min-width: 0; }
.pc-name { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.report-entry { text-align: center; margin: 12px 0 0; }
.report-entry button {
  border: 0; background: none; color: var(--muted);
  font-size: 11px; padding: 4px 8px; cursor: pointer;
}
.card-status {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: -5px 2px 12px;
  font-size: 11px; color: var(--muted);
}
.card-status b { font-weight: 600; color: var(--ink-2); }
.card-status.rejected b { color: #a04b44; }
.card-status.rejected span { color: #a04b44; background: var(--danger-soft); border-radius: 6px; padding: 2px 7px; }
.card-status .link-more { font-size: 11px; }
.role-pill {
  padding: 1px 7px;
  border-radius: 999px;
  background: #f1ece7;
  color: #8a7466;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
}
.role-pill.parent { background: #eaf0f6; color: #5b7590; }
.pc-meta { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.pc-arrow { flex: 0 0 auto; color: #c9b9ae; }
.pc-arrow svg { width: 15px; height: 15px; display: block; }
.pc-intro {
  margin: 10px 0 9px;
  font-size: 12.5px; line-height: 1.6; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tags span {
  font-size: 10.5px; color: #7a6a5f;
  background: #f7f1eb;
  padding: 3px 8px; border-radius: 6px;
}
.pill {
  font-size: 10px; font-weight: 500;
  padding: 1.5px 7px; border-radius: 999px;
  line-height: 1.5;
}
.pill.pink { color: #b84a52; background: #fbe9ea; }
.pill.blue { color: #47698c; background: #e8eff7; }

/* ---------- 空态 ---------- */
.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}
.empty .empty-icon {
  width: 58px; height: 58px; margin: 0 auto 14px;
  border-radius: 50%;
  background: #f5ece5;
  display: grid; place-items: center;
  color: #c4ad9e;
}
.empty .empty-icon svg { width: 26px; height: 26px; }
.empty h3 { margin: 0 0 7px; font-size: 14px; color: var(--ink-2); }
.empty p { margin: 0 0 16px; font-size: 12px; line-height: 1.7; }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 18px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity .15s, transform .12s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; }
.btn.primary {
  background: linear-gradient(135deg, #de6a4b, #c8492f);
  color: #fff;
  box-shadow: 0 6px 14px rgba(196, 74, 48, .24);
}
.btn.ghost { background: #fff; border-color: var(--line-strong); color: var(--ink-2); }
.btn.soft { background: var(--primary-soft); color: var(--primary-deep); }
.btn.sm { font-size: 12px; padding: 8px 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ---------- 详情 ---------- */
.profile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.profile-top { display: flex; gap: 13px; align-items: center; }
.profile-top h2 {
  margin: 0 0 6px;
  font-size: 19px;
  display: flex; align-items: center; gap: 7px;
}
.profile-top .meta-line { font-size: 12px; color: var(--muted); line-height: 1.6; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag-row span {
  font-size: 10.5px; color: #7a6a5f;
  background: #f7f1eb; padding: 3px 8px; border-radius: 6px;
}
.privacy-note {
  margin-top: 14px;
  display: flex; align-items: center; gap: 7px;
  background: var(--sage-soft);
  color: #4d6b59;
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.5;
}
.privacy-note svg { width: 14px; height: 14px; flex: 0 0 auto; }
.block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  margin-bottom: 12px;
}
.block h3 {
  margin: 0 0 9px;
  font-size: 13px;
  color: var(--primary-deep);
  display: flex; align-items: center; gap: 7px;
}
.block h3::before {
  content: "";
  width: 3px; height: 13px; border-radius: 2px;
  background: var(--primary);
}
.block p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--ink-2); white-space: pre-wrap; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; margin: 0; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts .full { grid-column: 1 / -1; }
.facts dt { font-size: 10.5px; color: var(--muted); }
.facts dd { margin: 0; font-size: 12.5px; color: var(--ink-2); font-weight: 500; line-height: 1.6; }
.share-facts { margin: 0 0 10px; }
.share-facts .muted { font-size: 11px; color: var(--muted); font-weight: 400; }
.detail-photos { display: grid; gap: 8px; }
.detail-photos.count-1 { grid-template-columns: 1fr; }
.detail-photos.count-2 { grid-template-columns: 1fr 1fr; }
.detail-photos.count-3 { grid-template-columns: repeat(3, 1fr); }
.detail-photos img {
  width: 100%; display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #f2e9e2;
}
.detail-photos.count-1 img { aspect-ratio: 4 / 3; max-height: 340px; }
.quote-line {
  margin: 10px 0 0;
  padding: 11px 13px;
  background: #fdf6f0;
  border-left: 3px solid #e7b5a3;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.85;
  color: #6b564b;
  white-space: pre-wrap;
}
.tip-card {
  background: var(--gold-soft);
  border: 1px solid #f0e0c4;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 11.5px;
  color: #7c6337;
  line-height: 1.75;
  margin-bottom: 14px;
}
.tip-card b { color: #6a5227; }
.detail-actions {
  position: sticky;
  bottom: 0;
  display: flex; gap: 10px;
  padding: 10px 0 2px;
  background: linear-gradient(180deg, rgba(250, 246, 242, 0), var(--bg) 34%);
}
.detail-actions .primary { flex: 1; }

/* ---------- 表单 ---------- */
.role-gate {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 22px;
}
.role-mark {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), #e8a87c);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(176, 96, 58, .28);
}
.role-mark svg { width: 30px; height: 30px; }
.role-gate h2 { text-align: center; margin: 0 0 8px; font-size: 22px; }
.role-gate > p {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 0 auto 22px;
  max-width: 310px;
}
.role-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 11px;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-family: inherit;
}
.role-card b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.role-card small { font-size: 11.5px; color: var(--muted); }
.role-card:active { border-color: var(--primary); background: var(--primary-soft); }
.role-gate .role-note { font-size: 10.5px; color: #a49489; margin: 6px 0 0; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 15px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.field { margin-bottom: 12px; }
.field.full { grid-column: 1 / -1; }
.field > label {
  display: block;
  font-size: 11.5px;
  color: #6f6159;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .req { color: var(--primary); margin-left: 2px; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 11px;
  padding: 10px 11px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393847a' stroke-width='2.4'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.field textarea { resize: vertical; min-height: 78px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #dfa08c;
  box-shadow: 0 0 0 3px rgba(212, 88, 60, .08);
}
.field .under { font-size: 10.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.sibling-note { display: flex; align-items: center; gap: 6px; }
.sibling-note span { flex: 1; min-width: 0; }
.sibling-note .text-btn { padding: 0; font-size: 10.5px; flex: 0 0 auto; }
.parent-box {
  grid-column: 1 / -1;
  border: 1px solid #f2dccf;
  background: #fff9f5;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}
.parent-box .box-title { font-size: 12px; font-weight: 700; color: var(--primary-deep); margin-bottom: 10px; }
.check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; line-height: 1.6; color: #6b5a50;
  cursor: pointer;
}
.check input {
  width: 16px; height: 16px; margin: 1px 0 0;
  accent-color: var(--primary);
  flex: 0 0 auto;
}
.form-section-title {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px;
  margin: 6px 0 11px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-deep);
}
.form-section-title em {
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
}
.check-group { display: flex; flex-wrap: wrap; gap: 7px; }
.check-pill {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11.5px;
  color: #6f6159;
  cursor: pointer;
}
.check-pill input { width: 13px; height: 13px; margin: 0; accent-color: var(--primary); }
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row input { flex: 1; min-width: 0; }
.range-row span { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }
.photo-field {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 11px;
  margin-bottom: 12px;
  background: #fdfaf7;
}
.photo-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 9px;
}
.photo-head .ph-label { font-size: 11.5px; font-weight: 600; color: #6f6159; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.photo-grid .muted { font-size: 10.5px; color: var(--muted); }
.photo-thumb {
  position: relative;
  width: 66px; height: 66px;
  border-radius: 10px;
  overflow: hidden;
  background: #f0e6de;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb button {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(43, 32, 26, .66);
  color: #fff; font-size: 12px; line-height: 18px;
  cursor: pointer;
}
.upload-btn {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: pointer;
  flex: 0 0 auto;
}
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-btn input:disabled { cursor: not-allowed; }
.form-note {
  font-size: 10.5px; color: var(--muted);
  line-height: 1.7; margin: 12px 2px 0;
}
.form-note b { color: #7a6a5f; }

/* ---------- 成功 / 空态通用 ---------- */
.success {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 20px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.success-icon {
  width: 62px; height: 62px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
  display: grid; place-items: center;
}
.success-icon svg { width: 30px; height: 30px; }
.success h2 { margin: 0 0 10px; font-size: 18px; }
.success p { margin: 0 auto 14px; max-width: 280px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }
.success .id-line {
  display: inline-block;
  font-size: 11px; color: var(--muted);
  background: #f7f1eb;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 20px;
}
.success .btn { margin: 4px 4px 0; }

/* ---------- 我的 ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 18px 2px 9px;
}
.section-head:first-child { margin-top: 2px; }
.section-head h2 { margin: 0; font-size: 14px; }
.section-head span { font-size: 11px; color: var(--muted); }
.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  margin-bottom: 9px;
  box-shadow: 0 3px 12px rgba(88, 60, 42, .04);
}
.mini-card.match-card { border-color: #d9e9dd; background: linear-gradient(180deg, #f7fbf8, #fff); }
.mini-card.match-card .mini-head strong { color: #33503f; }
.match-follow { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.match-follow .ms-hint { font-size: 11px; color: var(--muted); }
.ms-tag { padding: 2px 9px; border-radius: 999px; background: #f1ece7; color: #8a7466; font-size: 10.5px; font-weight: 600; }
.ms-tag.wechat { background: #eaf5e9; color: #3c7a4e; }
.ms-tag.met { background: #eaf0f6; color: #4d6b8a; }
.ms-tag.unsuitable { background: #f6f1ec; color: #8a7d73; }
.chip.sm { padding: 4px 10px; font-size: 11px; }
.mini-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mini-head strong { font-size: 13px; }
.mini-head .time { margin-left: auto; font-size: 10.5px; color: var(--muted); }
.mini-body { margin-top: 7px; font-size: 11.5px; line-height: 1.7; color: var(--ink-2); }
.mini-body b { color: #7a6a5f; font-weight: 600; }
.mini-reason {
  margin-top: 8px;
  background: var(--danger-soft);
  color: #a04b44;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.6;
}
.mini-note {
  margin-top: 8px;
  background: var(--sage-soft);
  color: #4d6b59;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.6;
}
.status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.status.pending { background: var(--gold-soft); color: #95702f; }
.status.published { background: var(--sage-soft); color: #4d6b59; }
.status.rejected { background: var(--danger-soft); color: #a04b44; }
.status.offline { background: #f0ece9; color: #8a7d73; }
.status.agreed { background: var(--sage-soft); color: #4d6b59; }
.status.declined { background: #f0ece9; color: #8a7d73; }
.status.done { background: #eef1f4; color: #6c7a86; }
.contact-card {
  background: linear-gradient(135deg, #fffdfb, #fdf4ec);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.contact-card .tips { font-size: 10.5px; color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
.inline-form { display: flex; gap: 8px; }
.inline-form input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 12.5px;
  outline: none;
  background: #fff;
}
.inline-form input:focus { border-color: #dfa08c; }
.inline-form .btn { flex: 0 0 auto; padding: 9px 14px; font-size: 12px; }
.saved-contact { display: flex; align-items: center; gap: 10px; }
.saved-contact .val { flex: 1; font-size: 14px; font-weight: 600; letter-spacing: .4px; }
.saved-contact .val small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; margin-top: 3px; letter-spacing: 0; }
.link-more {
  border: 0; background: none; color: var(--primary);
  font-size: 11px; padding: 0; cursor: pointer;
}
.menu-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 4px; }
.menu-item {
  width: 100%;
  display: flex; align-items: center; gap: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  box-shadow: 0 3px 12px rgba(88, 60, 42, .04);
  cursor: pointer;
  text-align: left;
}
.menu-item:active { background: #fdf8f4; }
.mi-icon {
  width: 36px; height: 36px; flex: 0 0 auto;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  display: grid; place-items: center;
}
.mi-icon svg { width: 18px; height: 18px; }
.mi-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mi-text b { font-size: 13px; color: var(--ink); }
.mi-text small { font-size: 10.5px; color: var(--muted); }
.mi-arrow { flex: 0 0 auto; color: #c9b9ae; }
.mi-arrow svg { width: 15px; height: 15px; display: block; }
.mi-badge {
  flex: 0 0 auto;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

/* ---------- 我的 ---------- */
.mine-hero {
  display: flex; align-items: center; gap: 13px;
  padding: 17px 15px;
  background: linear-gradient(135deg, #fff6ee, #fdfcf9);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.mine-avatar {
  width: 56px; height: 56px; flex: 0 0 auto;
  border-radius: 50%;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), #e8a87c);
  color: #fff;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(176, 96, 58, .25);
}
.mine-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mine-info { flex: 1; min-width: 0; }
.mine-info h2 { margin: 0 0 5px; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.mine-edit {
  flex: 0 0 auto;
  align-self: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary-deep);
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.account-avatar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.account-avatar {
  width: 58px; height: 58px; flex: 0 0 auto;
  border: 0; border-radius: 50%; padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), #e8a87c);
  color: #fff;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-avatar-row b { display: block; font-size: 13px; margin-bottom: 3px; }
.account-avatar-row small { font-size: 11px; color: var(--muted); }
.pick-card-list { display: flex; flex-direction: column; gap: 8px; }
.pick-card {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.pick-card .avatar { width: 40px; height: 40px; font-size: 15px; }
.pick-card-info { flex: 1; min-width: 0; }
.pick-card-info b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink); }
.pick-card-info small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.mine-info p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.mine-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 6px; }
.mine-stats button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 4px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(88, 60, 42, .04);
}
.mine-stats b { display: block; font-size: 18px; color: var(--primary-deep); }
.mine-stats span { font-size: 10.5px; color: var(--muted); }

/* ---------- 关于 ---------- */
.about-hero {
  background: linear-gradient(140deg, #fff6ee, #fbe7dc);
  border: 1px solid #f4dccd;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin-bottom: 12px;
}
.about-hero h2 { margin: 0 0 8px; font-size: 18px; }
.about-hero p { margin: 0; font-size: 12px; line-height: 1.75; color: #6b564b; }
.rule-list { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rule-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}
.rule-list li::before {
  counter-increment: r;
  content: counter(r);
  position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 10px;
  font-weight: 700;
  display: grid; place-items: center;
}
.bullet-list { margin: 0; padding-left: 17px; }
.bullet-list li { font-size: 12px; line-height: 1.8; color: var(--ink-2); margin-bottom: 4px; }
.about-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.admin-link {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
}
.admin-link span { color: var(--muted); font-size: 11px; }
.danger-link {
  border: 0; background: none;
  color: #b25a4e;
  font-size: 11px;
  text-decoration: underline;
  padding: 8px 0;
  cursor: pointer;
}

/* ---------- 管理台 ---------- */
.login-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 20px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  margin-top: 20px;
}
.login-box .lock {
  width: 54px; height: 54px; margin: 0 auto 14px;
  border-radius: 16px;
  background: #f5ece5;
  color: var(--primary-deep);
  display: grid; place-items: center;
}
.login-box .lock svg { width: 24px; height: 24px; }
.login-box h2 { margin: 0 0 6px; font-size: 17px; }
.login-box p { margin: 0 0 18px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.login-box .field { text-align: left; }
.login-hint {
  margin-top: 12px;
  font-size: 10.5px;
  color: #a2938a;
}
.login-error {
  color: #b3443a;
  font-size: 11.5px;
  margin: 0 0 9px;
  min-height: 15px;
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 13px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 4px;
  text-align: center;
}
.stat b { display: block; font-size: 17px; color: var(--primary-deep); }
.stat span { font-size: 9.5px; color: var(--muted); }
.admin-tabs {
  display: flex; gap: 5px;
  margin-bottom: 12px;
  background: #f1e7df;
  border-radius: 12px;
  padding: 3px;
  overflow-x: auto;
}
.admin-tabs button {
  flex: 1 0 auto;
  border: 0; background: none;
  font-size: 11.5px;
  color: #7c6b60;
  padding: 8px 9px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
}
.admin-tabs button.active { background: #fff; color: var(--primary-deep); font-weight: 700; }
.admin-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  margin-bottom: 10px;
  box-shadow: 0 3px 12px rgba(88, 60, 42, .04);
}
.ai-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ai-head strong { font-size: 13.5px; }
.ai-head .time { margin-left: auto; font-size: 10px; color: var(--muted); }
.ai-meta { margin-top: 5px; font-size: 10.5px; color: var(--muted); line-height: 1.6; }
.ai-text { margin: 7px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--ink-2); }
.ai-text b { color: #7a6a5f; font-weight: 600; }
.ai-contact {
  margin-top: 8px;
  font-size: 11px;
  color: #6b5a50;
  background: #f8f3ee;
  border-radius: 8px;
  padding: 7px 9px;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.ai-contact span { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ink); }
.ai-contact button {
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 6px;
  font-size: 10px;
  padding: 3px 7px;
  cursor: pointer;
  color: var(--ink-2);
}
.ai-photo { margin-top: 8px; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.ai-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ai-actions .btn { flex: 1; }
.ai-note {
  margin-top: 9px;
  background: var(--sage-soft);
  color: #4d6b59;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 10.5px;
  line-height: 1.65;
}
.admin-cards-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 2px 9px; }
.admin-cards-head h2 { margin: 0; font-size: 13.5px; }
.admin-cards-head .hint { font-size: 10px; color: var(--muted); }

/* ---------- 弹窗 ---------- */
.modal-root { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(43, 32, 26, .46);
  display: flex; align-items: flex-end;
  pointer-events: auto;
  animation: fade .18s ease;
}
.modal {
  width: 100%;
  max-height: 88%;
  overflow-y: auto;
  background: #fffdfb;
  border-radius: 24px 24px 0 0;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  animation: slideUp .24s cubic-bezier(.2, .8, .3, 1);
}
.modal::-webkit-scrollbar { width: 0; }
.modal h3 { margin: 0 0 6px; font-size: 16px; }
.modal .modal-sub { margin: 0 0 14px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.modal .field { margin-bottom: 11px; }
.modal-actions { display: flex; gap: 9px; margin-top: 14px; }
.modal-actions .btn { flex: 1; padding: 11px; }
.modal-cancel {
  width: 100%; border: 0; background: none;
  color: var(--muted); font-size: 11.5px;
  padding: 10px 0 0; cursor: pointer;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(28px); opacity: .5; } }

/* 居中弹窗（身份确认等短确认框） */
.modal-mask.center {
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}
.modal-mask.center .modal {
  width: 100%;
  max-width: 330px;
  max-height: 80%;
  border-radius: 20px;
  padding: 20px 18px;
  text-align: center;
  animation: popIn .2s cubic-bezier(.2, .8, .3, 1);
  box-shadow: 0 18px 44px rgba(64, 42, 30, .22);
}
.modal-mask.center .modal h3 { text-align: center; }
.modal-mask.center .modal .modal-sub { text-align: center; }
@keyframes popIn { from { transform: scale(.93); opacity: 0; } }

/* ---------- Toast ---------- */
.toast {
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translate(-50%, 12px);
  background: rgba(47, 40, 35, .93);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 16px;
  border-radius: 10px;
  max-width: 78%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 可见性 / 分级展示 ---------- */
.label-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.label-row > label { font-size: 11.5px; color: #6f6159; font-weight: 600; }
.vis-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 0;
  margin-bottom: 6px;
  cursor: pointer;
  font-family: inherit;
}
.label-row .vis-switch { margin-bottom: 0; }
.vs-track {
  position: relative;
  width: 34px; height: 20px;
  border-radius: 999px;
  background: #ded2c7;
  transition: background .18s;
}
.vs-track i {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(60, 40, 30, .2);
  transition: transform .18s;
}
.vis-switch.on .vs-track { background: var(--sage); }
.vis-switch.on .vs-track i { transform: translateX(14px); }
.vis-switch em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.vis-switch.on em { color: var(--sage); font-weight: 600; }
.vis-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 10px;
  background: var(--sage-soft);
  border: 1px solid #d7e7dc;
  border-radius: 12px;
  padding: 10px 11px;
  margin: 4px 0 12px;
}
/* 说明文字独占整行，自行按容器宽度横向换行 */
.vis-bar > div { flex: 1 1 100%; min-width: 0; }
.vis-bar b { font-size: 11.5px; color: #4d6b59; }
.vis-bar p {
  margin: 4px 0 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: #5f7a68;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
.vis-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.bulk-btn {
  flex: 1 1 auto;
  min-height: 32px;
  border: 1px solid #cfe2d5;
  background: #fff;
  color: #4d6b59;
  font-size: 10.5px;
  line-height: 1.2;
  padding: 6px 8px;
  border-radius: 9px;
  white-space: nowrap;
  cursor: pointer;
}
.bulk-btn.on {
  background: #e7f2ea;
  border-color: #a9c9b4;
  color: #33503f;
  font-weight: 600;
}
.self-tag {
  display: inline-block;
  font-style: normal;
  margin-left: 4px;
  font-size: 9px;
  color: #8a7d73;
  background: #f0ece9;
  border-radius: 4px;
  padding: 1px 4px;
  vertical-align: 1px;
}
.locked-panel {
  background: linear-gradient(135deg, #fdf8f3, #fbf1e9);
  border: 1px dashed #e6cdbd;
  border-radius: 14px;
  padding: 17px 16px;
  margin-bottom: 12px;
  text-align: center;
}
.locked-panel .lock-ico {
  width: 38px; height: 38px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #f0d8c9;
  color: var(--primary-deep);
  display: grid; place-items: center;
}
.locked-panel .lock-ico svg { width: 18px; height: 18px; }
.locked-panel h3 { margin: 0 0 6px; font-size: 13px; color: var(--ink); }
.locked-panel p { margin: 0; font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.exchange-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 12px;
}
.ep-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.ep-head svg { width: 15px; height: 15px; color: var(--primary); }
.ep-head b { font-size: 12.5px; }
.ep-head .status { margin-left: auto; }
.exchange-panel p { margin: 0 0 10px; font-size: 11.5px; line-height: 1.7; color: var(--ink-2); }
.exchange-panel p:last-child { margin-bottom: 0; }
.contact-reveal {
  display: flex; align-items: center; gap: 8px;
  margin-top: 9px;
  background: #f2f8f3;
  border: 1px solid #d9e9dd;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  color: #4d6b59;
}
.contact-reveal b { flex: 1; min-width: 0; font-size: 12.5px; color: #33503f; letter-spacing: .4px; word-break: break-all; }
.contact-reveal button { flex: 0 0 auto; border: 0; background: none; color: var(--primary); font-size: 11px; padding: 0; cursor: pointer; }
.status.exchanged { background: var(--blue-soft); color: var(--blue); }
.stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 9px; }
.mini-head .mini-sub { font-size: 10.5px; color: var(--muted); }
.demo-tag { font-size: 9px; color: var(--gold); background: var(--gold-soft); border-radius: 4px; padding: 1px 5px; }
.mini-note.muted-note { background: #f6f1ec; color: #8a7d73; }
.photo-head .ph-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vis-list { display: flex; flex-direction: column; margin: 4px 0 14px; }
.vis-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.vis-row:last-child { border-bottom: 0; }
.switch { position: relative; flex: 0 0 auto; width: 38px; height: 22px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #e6ddd6; transition: background .18s; }
.switch i::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(60, 40, 30, .18);
  transition: transform .18s;
}
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(16px); }
.flow-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

/* ---------- 公开字段标签 / 三档可见性 ---------- */
.pub-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pub-tags span {
  font-size: 10px;
  line-height: 1.4;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef6f0;
  border: 1px solid #d7e7dc;
  color: #42664f;
}
.pub-tags .more { background: #f4f1ee; border-color: var(--line); color: var(--muted); }
.lock-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 8px; }
.lock-tags span {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ead6c8;
  color: #8a6a55;
}
.lock-foot { margin-top: 8px !important; font-size: 10px !important; color: #a08c7e !important; }
.photo-vis { margin-top: 6px; font-size: 10px; color: var(--muted); }
.vis-select {
  flex: 0 0 auto;
  max-width: 128px;
  font-size: 11px;
  color: var(--ink-2);
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
}
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.ask-chips span {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.ask-pool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 4px 0 10px;
}
.ask-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  background: #fff;
  cursor: pointer;
}
.ask-pick input { accent-color: var(--primary); }
.ask-count { font-size: 10.5px; color: var(--muted); margin: 0 0 10px; }
.applicant-box {
  background: #faf7f4;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  margin-top: 8px;
}
.applicant-meta { font-size: 11px; color: var(--ink-2); line-height: 1.6; }
.applicant-intro { margin: 4px 0 0; font-size: 11px; line-height: 1.65; color: var(--muted); }
.applicant-box .facts { margin-top: 7px; }
.applicant-box .facts dt { width: 84px; font-size: 10.5px; }
.applicant-box .facts dd { font-size: 11px; }
.applicant-need { margin-top: 7px; font-size: 10px; color: var(--muted); }
.share-note { margin: 0 0 10px; font-size: 11px; line-height: 1.65; }
.profile-form .field { margin-bottom: 8px; }
.profile-form label { display: block; font-size: 11px; color: #6f6159; font-weight: 600; margin-bottom: 4px; }
.profile-form input,
.profile-form select,
.profile-form textarea { width: 100%; }
.profile-form .check-group { margin-top: 2px; }

/* ---------- 响应式 ---------- */
@media (max-width: 480px) {
  body {
    display: block;
    background: var(--bg);
  }
  .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }
  .appbar { padding-top: calc(14px + env(safe-area-inset-top)); }
}
