/* 前台（会员展示 + 资料登记）样式 */

body.site { background: #f2f5f9; }

.site-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  box-shadow: 0 0 40px -24px rgba(15, 23, 42, .35);
  position: relative;
  padding-bottom: 28px;
}
@media (max-width: 520px) {
  .site-shell { box-shadow: none; }
}

/* ---------------- 顶部 ---------------- */
.site-head {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  padding: 14px 16px 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-head-top { display: flex; align-items: center; gap: 10px; }
.site-logo {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.site-logo svg { width: 17px; height: 17px; color: #fff; }
.site-title { font-size: 16px; font-weight: 600; letter-spacing: .3px; }
.site-sub { font-size: 11px; opacity: .82; margin-top: -2px; }
.site-head .head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.head-btn {
  border: none;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.head-btn:hover { background: rgba(255, 255, 255, .28); }

.gender-tabs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.gender-tab {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  background: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: .15s ease;
}
.gender-tab svg { width: 15px; height: 15px; }
.gender-tab.active { background: #fff; color: var(--blue-700); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .5); }

/* ---------------- 筛选区 ---------------- */
.filter-panel {
  background: #fff;
  padding: 12px 14px 14px;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 108px;
  z-index: 15;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: .15s ease;
}
.chip:hover { border-color: var(--blue-100); color: var(--blue-700); }
.chip.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(37, 99, 235, .9);
}
.filter-row { display: flex; gap: 10px; margin-top: 12px; }
.filter-row select { width: 110px; flex: none; padding: 9px 30px 9px 12px; }
.chip-more { border-style: dashed; color: var(--blue-700); border-color: #c7d2fe; font-weight: 500; }
.chip .cnt { font-size: 10.5px; color: var(--muted-2); margin-left: 4px; }
.chip.active .cnt { color: rgba(255, 255, 255, .85); }

/* 地区选择面板 */
.region-search { margin-bottom: 14px; }
.region-group { margin-bottom: 16px; }
.region-group h5 {
  margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.region-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.region-chips .chip { font-size: 13px; padding: 5px 11px; }
.region-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--blue-600); cursor: pointer; margin-bottom: 10px;
}
.search-box { position: relative; flex: 1; }
.search-box svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--muted-2);
}
.search-box input { padding-left: 40px !important; padding-top: 9px; padding-bottom: 9px; }

.stat-strip {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}
.stat-strip b { color: var(--blue-700); font-size: 13px; }

/* ---------------- 会员卡片 ---------------- */
.member-list { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 12px; }
.member-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: .18s ease;
}
.member-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.member-top { display: flex; gap: 12px; }
.member-photo {
  width: 96px;
  height: 120px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #eef2ff, #e0e7ff);
  position: relative;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo .no-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #a5b4fc;
}
.member-photo .no-photo svg { width: 30px; height: 30px; }
.member-photo .photo-count {
  position: absolute; right: 5px; bottom: 5px;
  background: rgba(15, 23, 42, .6); color: #fff;
  font-size: 10px; border-radius: 999px; padding: 0 6px;
}
.member-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
  align-content: start;
  flex: 1;
  min-width: 0;
}
.member-badges .badge { font-size: 11.5px; padding: 2px 7px; }
.member-badges .badge.wide { grid-column: 1 / -1; }
.badge-soft { background: var(--line-soft); color: var(--muted); border-color: var(--line); }

.member-desc {
  margin-top: 12px;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.member-desc b { color: var(--blue-700); }
.member-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.member-foot { display: flex; align-items: center; margin-top: 12px; gap: 10px; }
.member-foot .detail-link { margin-left: auto; font-size: 13px; }
.featured-flag {
  position: absolute; left: -1px; top: -1px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff; font-size: 10px;
  border-radius: 12px 0 12px 0;
  padding: 2px 8px;
}

.load-more { padding: 14px; }
.list-end { text-align: center; color: var(--muted-2); font-size: 12px; padding: 6px 0 18px; }

.site-foot { padding: 18px 16px 6px; text-align: center; color: var(--muted-2); font-size: 11.5px; line-height: 1.9; }

/* 悬浮入口 */
.float-btn {
  position: fixed;
  right: 16px;
  bottom: 22px;
  z-index: 30;
  background: var(--rose-600);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 24px -10px rgba(225, 29, 72, .9);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.float-btn svg { width: 15px; height: 15px; }

/* ---------------- 登记表单 ---------------- */
.apply-wrap { padding: 14px; }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.form-card > h2 {
  margin: 0 0 16px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-card > h2 .icon-box {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--blue-50); color: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center;
}
.form-card > h2 .icon-box svg { width: 15px; height: 15px; }

.gender-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gender-option {
  border: 1px solid var(--line);
  background: var(--line-soft);
  border-radius: 12px;
  padding: 13px;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .15s ease;
}
.gender-option svg { width: 17px; height: 17px; }
.gender-option.active {
  border-color: var(--blue-600);
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 600;
}

.upload-box {
  border: 1.5px dashed #c7d2fe;
  border-radius: 14px;
  background: #fbfcff;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  transition: .15s ease;
}
.upload-box:hover, .upload-box.drag { border-color: var(--blue-500); background: var(--blue-50); }
.upload-box .icon-box {
  width: 46px; height: 46px; margin: 0 auto 10px;
  border-radius: 14px; background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.upload-box .icon-box svg { width: 22px; height: 22px; }
.upload-box .t1 { font-size: 14px; font-weight: 500; }
.upload-box .t2 { font-size: 12px; color: var(--muted); margin-top: 2px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.photo-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--line-soft);
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item .del {
  position: absolute; right: 3px; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(15, 23, 42, .68); color: #fff;
  cursor: pointer; font-size: 13px; line-height: 1; padding: 0;
}
.photo-item .main-flag {
  position: absolute; left: 3px; bottom: 3px;
  background: rgba(37, 99, 235, .9); color: #fff;
  font-size: 10px; border-radius: 5px; padding: 0 5px;
}

.submit-bar { padding: 4px 14px 0; }
.agreement {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.agreement input { width: 15px; height: 15px; accent-color: var(--blue-600); }
.tips {
  background: var(--blue-50);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #1e40af;
  line-height: 1.8;
  margin-bottom: 14px;
}
.success-card { text-align: center; padding: 40px 20px; }
.success-card .ok-icon {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--emerald-50); color: var(--emerald-700);
  display: flex; align-items: center; justify-content: center;
}
.success-card .ok-icon svg { width: 32px; height: 32px; }

/* 协议弹窗正文 */
.doc { font-size: 13.5px; color: #4b5563; line-height: 1.9; }
.doc h4 { margin: 16px 0 6px; font-size: 14px; color: var(--text); }
.doc p { margin: 6px 0; }

.search-box svg { pointer-events: none; z-index: 1; }
