* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, #faf8f5 0%, #f2efe9 100%);
    color: #2c2a28;
    line-height: 1.4;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #e2dbd1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #b8aa9a;
    border-radius: 10px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(160, 140, 120, 0.2);
    flex-wrap: wrap;
    gap: 15px;
}
.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #c7a55b, #a57c3c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.logo span {
    font-size: 1.2rem;
    font-style: italic;
    background: none;
    color: #a57c3c;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: #4e4036;
    font-weight: 500;
    transition: 0.3s ease;
    font-size: 0.95rem;
}
.nav-links a:hover {
    color: #b47c44;
}
.nav-btn {
    background: transparent;
    border: 1.5px solid #c7a55b;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    color: #b47c44;
    transition: all 0.25s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.nav-btn:hover {
    background: #c7a55b;
    color: white;
    border-color: #c7a55b;
}

.user-menu {
    position: relative;
    cursor: pointer;
}
.user-avatar {
    width: 44px;
    height: 44px;
    background: #d9c7b0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #5a3f28;
    font-size: 1.2rem;
    transition: 0.2s;
    border: 2px solid #c7a55b;
}
.dropdown-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    width: 220px;
    z-index: 100;
    display: none;
    overflow: hidden;
    backdrop-filter: blur(8px);
    border: 1px solid #e3cfb8;
}
.user-menu.active .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}
.dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid #f0e6dd;
    background: #fefaf5;
}
.dropdown-header p {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.dropdown-header span {
    font-size: 0.7rem;
    color: #a58460;
}
.dropdown-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
    color: #4e3c2c;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}
.dropdown-item i {
    width: 20px;
    color: #b47c44;
}
.dropdown-item:hover {
    background: #f9f1e8;
}
.logout-item {
    border-top: 1px solid #f0e3d8;
    color: #b0553c;
}

.hero {
    text-align: center;
    padding: 70px 0 40px 0;
}
.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.8rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: #2f2a26;
}
.hero .accent {
    color: #b47c44;
    border-bottom: 2px solid rgba(180,124,68,0.3);
    display: inline-block;
}
.hero p {
    font-size: 1.1rem;
    color: #6b5a4e;
    margin-top: 16px;
}

.filter-bar {
    background: rgba(255, 251, 245, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 70px;
    padding: 12px 24px;
    margin: 30px 0 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 10px 25px -8px rgba(0,0,0,0.05);
    border: 1px solid rgba(199,165,91,0.3);
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 5px 20px;
    border-radius: 60px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.filter-group i {
    color: #b47c44;
    font-size: 1rem;
}
select {
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #2c2a28;
    cursor: pointer;
    outline: none;
}
.reset-btn {
    background: #efe3d6;
    border: none;
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 500;
    color: #7a5a3e;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.reset-btn:hover {
    background: #e2cfbc;
    color: #5a3e2a;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin: 30px 0 60px;
}
.member-card {
    background: #ffffffea;
    backdrop-filter: blur(2px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(220, 195, 160, 0.5);
    cursor: default;
    animation: cardFloatUp 0.5s ease-out;
}
@keyframes cardFloatUp {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}
.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 45px -15px rgba(80, 60, 40, 0.2);
    border-color: #e3caaa;
}
.card-img {
    position: relative;
    height: 190px;
    background: #e9dfd3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
    background: #fff;
}
.badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255,250,235,0.9);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #b67e46;
    letter-spacing: 0.5px;
}
.card-info {
    padding: 20px 22px 24px;
}
.name-age {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.name {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
}
.age {
    font-weight: 500;
    color: #b67e46;
    background: #fef3e8;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
}
.occupation, .location {
    font-size: 0.85rem;
    color: #7d6b5c;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.occupation i, .location i {
    width: 20px;
    color: #bb956b;
}
.bio {
    font-size: 0.8rem;
    color: #5e5246;
    margin: 14px 0 18px;
    line-height: 1.45;
    border-left: 2px solid #e7d5c2;
    padding-left: 12px;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.like-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #947c62;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 40px;
    transition: 0.2s;
}
.like-btn i {
    font-size: 1.2rem;
}
.like-btn.liked {
    color: #e35f5f;
}
.like-btn:hover {
    background: #faf0e6;
}
.like-count {
    font-weight: 600;
    font-size: 0.9rem;
}
.no-result {
    text-align: center;
    padding: 70px 20px;
    background: #fff7ef;
    border-radius: 50px;
    margin: 30px 0;
    color: #ab8a64;
}
.footer {
    text-align: center;
    padding: 40px 0 30px;
    border-top: 1px solid #e1d3c6;
    margin-top: 30px;
    color: #ab8f74;
    font-size: 0.8rem;
}
.toast-message {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1c1a;
    color: #fff4e8;
    padding: 12px 28px;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 3000;              /* 关键：大于 modal 的 2000 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeUp 0.3s ease;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    backdrop-filter: none;
}
@keyframes fadeUp {
    from { opacity: 0; bottom: 0; }
    to { opacity: 1; bottom: 35px; }
}
@media (max-width: 760px) {
    .container { padding: 0 20px; }
    .hero h1 { font-size: 2.5rem; }
    .filter-bar { border-radius: 40px; padding: 18px 16px; }
    .filter-group { padding: 3px 14px; }
    .navbar { flex-direction: column; }
    .nav-right { width: 100%; justify-content: space-between; }
}





/* 手机登录弹窗专用样式 */
.phone-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 40px;
    border: 1px solid #e2d4c8;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: 0.2s;
}
.phone-input:focus {
    border-color: #c7a55b;
    box-shadow: 0 0 0 3px rgba(199,165,91,0.2);
}
#getSmsCodeBtn:disabled {
    background: #aaa !important;
    cursor: not-allowed;
}




/* 模态框（弹窗）基础样式 */
.modal {
    display: none;           /* 默认隐藏，JS 控制显示为 flex */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-card {
    background: white;
    width: 360px;
    max-width: 90%;
    border-radius: 32px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}