/* =============================================
   牵手婚恋 — 筛选会员页面样式
   ============================================= */

/* ========== 标题栏 ========== */
.filter-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 50px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.filter-header .back-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}

.filter-header .back-btn:active {
  background: rgba(255,255,255,0.2);
}

.filter-header .header-title {
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  flex: 1;
  text-align: center;
}

.filter-header .header-action {
  width: 44px;
}

/* ========== 筛选面板（固定于标题栏下方） ========== */
.filter-panel {
  margin-top: 50px;
  padding: 16px 16px 8px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

/* ========== 筛选行 ========== */
.filter-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f8f8f8;
}

.filter-row:last-child {
  border-bottom: none;
}

.filter-label {
  width: 70px;
  flex-shrink: 0;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* ========== 按钮组（性别、是否在编等） ========== */
.filter-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-opt {
  padding: 6px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  background: #fff;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.filter-opt.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.filter-opt:active {
  transform: scale(0.96);
}

/* ========== 下拉选择 ========== */
.filter-select {
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.filter-select-full {
  flex: 1;
  max-width: 220px;
}

.city-select {
  flex: 1;
  max-width: 48%;
}

.filter-city-row {
  display: flex;
  gap: 8px;
  flex: 1;
}

/* ========== 范围输入（年龄、身高） ========== */
.filter-range-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.range-input {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  color: #333;
  -webkit-appearance: none;
}

.range-input::placeholder {
  color: #ccc;
}

.range-sep {
  color: #999;
  font-size: 14px;
}

.range-unit {
  color: #999;
  font-size: 12px;
}

/* ========== 勾选框 ========== */
.filter-check-row {
  display: flex;
  gap: 20px;
}

.filter-check-label {
  font-size: 13px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

/* ========== 高级筛选展开/收起 ========== */
.advanced-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
  color: var(--color-primary);
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}

.advanced-toggle i {
  font-size: 12px;
  transition: transform 0.3s;
}

.advanced-toggle.open i {
  transform: rotate(180deg);
}

/* ========== 操作按钮 ========== */
.filter-actions {
  display: flex;
  gap: 12px;
  padding: 16px 0 8px;
}

.btn-reset,
.btn-search {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-reset {
  background: #f5f5f5;
  color: #666;
}

.btn-reset:active {
  background: #e8e8e8;
}

.btn-search {
  background: var(--color-primary);
  color: #fff;
}

.btn-search:active {
  opacity: 0.9;
}

/* ========== 结果统计栏 ========== */
.result-bar {
  padding: 12px 16px;
  background: #fafafa;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

.result-bar strong {
  color: var(--color-primary);
}

/* ========== 会员列表（复用首页样式） ========== */
.member-list {
  padding: 0 16px;
}

/* 加载更多 / 空结果 */
.load-more-tip {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #999;
}

.empty-tip {
  text-align: center;
  padding: 60px 20px;
  font-size: 15px;
  color: #999;
}