/* 地区筛选页面样式 */
.region-main {
    padding: 0 16px 80px;
    background-color: #f4f5f7;
    min-height: calc(100vh - 60px);
}

/* 筛选条件区域 */
.filter-section {
    margin: 16px 0;
}

.filter-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #f472b6, #c084fc);
    border-radius: 2px;
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.province-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.province-option {
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    font-size: 13px;
    color: #374151;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.province-option:hover {
    border-color: #f97373;
    color: #f97373;
}

.province-option.active {
    background: linear-gradient(135deg, #f472b6, #c084fc);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(249, 115, 115, 0.3);
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    min-width: 80px;
    margin-right: 12px;
}

.filter-selects {
    display: flex;
    gap: 8px;
    flex: 1;
}

.region-select {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 14px;
    color: #374151;
    flex: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.region-select:focus {
    outline: none;
    border-color: #f97373;
    box-shadow: 0 0 0 3px rgba(249, 115, 115, 0.1);
}

.region-select:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* 会员等级筛选 */
.membership-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.membership-btn {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background-color: #ffffff;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.membership-btn:hover {
    border-color: #f97373;
    color: #f97373;
}

.membership-btn.active {
    background: linear-gradient(135deg, #f472b6, #c084fc);
    border-color: transparent;
    color: #ffffff;
}

.membership-btn:disabled {
    background-color: #f9fafb;
    color: #d1d5db;
    cursor: not-allowed;
}

/* 当前选择显示 */
.current-selection {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.selection-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.selection-item:last-child {
    margin-bottom: 0;
}

.selection-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    min-width: 50px;
}

.selection-value {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}

.selection-value.empty {
    color: #9ca3af;
}

/* 区域选择部分 */
.region-section {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #f472b6, #c084fc);
    border-radius: 2px;
}

/* 区域网格 */
.region-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.region-item {
    padding: 12px 16px;
    border-radius: 12px;
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.region-item:hover {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    transform: translateY(-1px);
}

.region-item.selected {
    background: linear-gradient(135deg, #f472b6, #c084fc);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(249, 115, 115, 0.3);
}

.region-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* 确认按钮 */
.confirm-section {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 414px;
    width: 100%;
    padding: 0 16px;
    pointer-events: none;
}

.confirm-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 50px;
    background: linear-gradient(90deg, #f472b6, #c084fc);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(249, 115, 115, 0.4);
    transition: all 0.3s;
    pointer-events: auto;
}

.confirm-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(249, 115, 115, 0.5);
}

.confirm-btn:disabled {
    background: linear-gradient(90deg, #d1d5db, #9ca3af);
    box-shadow: none;
    cursor: not-allowed;
}

/* 筛选结果 */
.filter-results {
    margin-top: 16px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.results-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.results-count {
    font-size: 14px;
    color: #6b7280;
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f472b6, #c084fc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-id {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.member-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.member-tag {
    background-color: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.membership-tag {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.membership-tag.normal {
    background-color: #e5e7eb;
    color: #6b7280;
}

.membership-tag.vip {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    color: #ffffff;
}

.membership-tag.super {
    background: linear-gradient(90deg, #f472b6, #c084fc);
    color: #ffffff;
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .header-filters {
        gap: 6px;
    }
    
    .region-select {
        min-width: 80px;
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .member-card {
        padding: 12px;
    }
    
    .member-avatar {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}
