/* 全局样式 */
:root {
    --primary-color: #ffb6c1; /* 粉色主题 */
    --primary-dark: #ff8da1;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f8f8;
    --white: #fff;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 5px;
}

/* 顶部导航 */
.header {
    width: 100%;
    height: 3.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 900;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.city-selector {
    display: flex;
    justify-content: left;
    align-items: center;
}

.city-selector select {
    padding: 0 15px;
    line-height: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--white);
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
}

.filter-container {
    display: flex;
    justify-content: right;
    align-items: center;
}

.filter-container .filter-btn {
    padding: 0 15px;
    display: flex;
    align-items: center;
    line-height: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary-color);
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
}

.filter-btn i {
    margin-right: 5px;
}

.county-city-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.county-city-container::-webkit-scrollbar {
    display: none;
}

.county-city {
    display: inline-flex;
    white-space: nowrap;
}

.county {
    flex: 0 0 auto;
    margin: 0 5px;
    line-height: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.members-container {
    width: 100%;
    margin-top: 3.5rem;
    padding: 0 5px 50px 5px;
}

/* 最近新注册会员 */
.new-members-container {
    width: 100%;
}

/* 分区标题 */
.section-title {
    margin: 5px 0;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.new-members-content {
    overflow-x: auto;
}

.new-members {
    display: inline-flex;
    gap: 8px;
}

.member-card {
    width: 120px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    flex-shrink: 0;
}

.member-card .member-photo {
    position: relative;
    width: 100%;
    height: 120px;
    margin: 0 auto;
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
}

.member-card .member-photo img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.member-card .member-photo .member-status {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(255, 141, 161, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(255, 141, 161, 0.4);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.member-card .member-info {
    padding: 0 5px;
}

.member-card .number-city {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    line-height: 1.2rem;
}

.member-card .info-number {
    width: 60%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.member-card .info-city {
    width: 40%;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: right;
    overflow: hidden;
}

.member-card .age-zodiac-height {
    display: flex;
    align-items: center;
    font-size: 0.65rem;
    line-height: 1.2rem;
}

.member-card .info-age-zodiac {
    color: var(--text-light);
}

.member-card .info-height {
    margin-left: 5px;
    color: var(--text-light);
}

.member-card .info-educational-background {
    margin-left: 5px;
    color: var(--text-light);
}

.new-members-tip {
    padding: 0 30px;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 2rem;
    display: none;
}

/* 全部会员 */
.all-members-container {
    width: 100%;
}

.all-members {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.member-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.member-item .member-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    margin: 0 auto;
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
}

.member-item .member-photo img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.member-item .member-photo .member-status {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(255, 141, 161, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(255, 141, 161, 0.4);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.member-item .member-info {
    padding: 0 5px;
}

.member-item .number-city {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    line-height: 1.5rem;
}

.member-item .info-number {
    width: 60%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.member-item .info-city {
    width: 40%;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: right;
    overflow: hidden;
}

.member-item .age-zodiac-height {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    line-height: 1.5rem;
}

.member-item .info-age-zodiac {
    color: var(--text-light);
}

.member-item .info-height {
    margin-left: 10px;
    color: var(--text-light);
}

.member-item .info-educational-background {
    margin-left: 10px;
    color: var(--text-light);
}

.all-members-tip {
    padding: 0 30px;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 2rem;
    display: none;
}

/* 加载更多 */
.loading, .no-more {
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    display: none;
    overflow: hidden;
}

/* 筛选弹窗 */
.filter-modal {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.filter-modal-content {
    width: 90%;
    max-width: 400px;
    max-height: 90%;
    background-color: var(--white);
    border-radius: var(--border-radius);
    animation: modalFadeIn 0.3s;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.filter-modal-header {
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.filter-modal-body {
    height: 300px;
    padding: 10px;
    font-size: 0.9rem;
    overflow: auto;
}

.filter-group {
    margin-bottom: 10px;
}

.filter-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.age-range {
    display: flex;
    align-items: center;
    gap: 5px;
}

.age-range input {
    width: 35%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.annual-income-range {
    display: flex;
    align-items: center;
    gap: 5px;
}

.annual-income-range input {
    width: 35%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.height-range {
    display: flex;
    align-items: center;
    gap: 5px;
}

.height-range input {
    width: 35%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.weight-range {
    display: flex;
    align-items: center;
    gap: 5px;
}

.weight-range input {
    width: 35%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.filter-modal-tip {
    display: flex;
    justify-content: center;
    font-size: 0.8rem;
    color: red;
    overflow: hidden;
}

.filter-modal-footer {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
}

.btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
}

.reset-btn {
    background-color: #f5f5f5;
    color: var(--text-light);
    margin-right: 10px;
}

.confirm-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 底部导航栏样式 */
.navigation-container {
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navigation-container .bottom-nav {
    height: 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav .nav-item {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
    color: #999;
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.nav-item.active {
    color: var(--primary-dark) /* 选中状态颜色 */
}

.divider {
    width: 1px;
    height: 30px;
    background: #e0e0e0;
    align-self: center;
}

.login-modal {
    width: 100%;
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 998;
}

.login-modal .login-modal-content {
    width: 100%;
    height: 200px;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    overflow: hidden;
}

.login-modal-content .login-modal-header {
    width: 100%;
    height: 100px;
    margin: 0 auto;
}

.login-modal-header p {
    width: 100%;
    margin: 0 auto;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 100px;
    text-align: center;
}

.login-modal-content .login-modal-body {
    width: 100%;
    margin: 0 auto;
}

.login-modal-body .login-button {
    width: 75%;
    margin: 0 auto;
    line-height: 50px;
    font-size: 0.9rem;
    color: white;
    text-align: center;
    background: linear-gradient(135deg, #07C160 0%, #05a850 100%);
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
}

.login-button i {
    margin-right: 8px;
}

.login-modal-body .agreement {
    width: 100%;
    margin: 0 auto;
    line-height: 50px;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
}

.login-modal-body .agreement a {
    color: #07C160;
    text-decoration: none;
}

.login-modal-body .agreement a:hover {
    text-decoration: underline;
}

.prompt-box-container {
    width: 100%;
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
    z-index: 998;
}

.prompt-box {
    width: 85%;
    max-width: 320px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

.prompt-box-content {
    width: 100%;
    border-radius: 15px;
    background-color: var(--white);
    box-shadow: 0 10px 25px rgba(255, 141, 161, 0.25);
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.prompt-box-container.active .prompt-box-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.prompt-header {
    width: 100%;
    padding: 15px 0 5px 0;
}

.prompt-title {
    width: 100%;
    line-height: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.prompt-body {
    width: 100%;
    padding: 10px 20px 20px 20px;
}

.prompt-body p {
    width: 100%;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
}

.prompt-footer {
    width: 100%;
    padding: 0 15px 15px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prompt-footer .confirm-btn {
    width: 100%;
    height: 40px;
    line-height: 40px;
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #ff708a 100%);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 141, 161, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.prompt-footer .confirm-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(255, 141, 161, 0.4);
}

.tip-box-container {
    width: 100%;
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
    z-index: 998;
}

.tip-box {
    width: 85%;
    max-width: 320px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

.tip-box-content {
    width: 100%;
    border-radius: 15px;
    background-color: var(--white);
    box-shadow: 0 10px 25px rgba(255, 141, 161, 0.25);
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.tip-box-container.active .tip-box-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.tip-header {
    width: 100%;
    padding: 15px 0 5px 0;
}

.tip-title {
    width: 100%;
    line-height: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.tip-body {
    width: 100%;
    padding: 10px 20px 20px 20px;
}

.tip-body p {
    width: 100%;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (min-width: 768px) {
    .all-members {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .all-members {
        grid-template-columns: repeat(4, 1fr);
    }
}