/* 前台样式 - 完整修复 */
.header-section {
    text-align: center;
    margin-bottom: 2rem;
}
.badge {
    background: #e7dfd5;
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.75rem;
    color: #a57142;
    margin-bottom: 1rem;
}
h1 {
    font-size: 2.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #b28054, #8e623f);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.25rem;
}
.subhead {
    font-size: 0.9rem;
    color: #8b7a6b;
    border-bottom: 1px solid #ede3d8;
    display: inline-block;
    padding-bottom: 0.5rem;
}
.search-filter-area {
    background: #ffffffd9;
    border-radius: 32px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0 1rem;
    border: 1px solid #f0e3d8;
}
.search-wrapper {
    position: relative;
    margin-bottom: 1.2rem;
}
.search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #c0a082;
}
#searchInput {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 1px solid #efe2d6;
    border-radius: 60px;
    font-size: 0.9rem;
    outline: none;
    background: white;
}
.filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}
.filter-group {
    background: #fefaf5;
    border-radius: 40px;
    padding: 0.3rem 1rem;
    border: 1px solid #efe0d2;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
}
.filter-group select {
    background: white;
    border: 1px solid #eedfcb;
    border-radius: 30px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
}
.result-count {
    text-align: right;
    font-size: 0.8rem;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0e3d8;
    color: #b29b84;
}
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.8rem;
    margin: 2rem 0;
}
.member-card {
    background: white;
    border-radius: 28px;
    border: 1px solid #f3e8df;
    overflow: hidden;
    transition: 0.2s;
}
.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 36px -14px rgba(70,40,20,0.12);
}
.card-inner {
    padding: 1.2rem;
}
.avatar-head {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed #f0e3d8;
    padding-bottom: 0.8rem;
    align-items: center;
}
.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #faf1ea;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-nickname {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3e2a1c;
}
.member-basic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.chip {
    background: #f7efe8;
    color: #b77c4a;
    font-size: 0.7rem;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
}
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.8rem 0;
    font-size: 0.75rem;
}
.detail-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    word-break: break-word;
    line-height: 1.4;
}
.detail-label {
    background: #fdf8f2;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #a88768;
    white-space: nowrap;
    display: inline-block;
}
.detail-value {
    color: #3f2e22;
    font-weight: 500;
    word-break: break-word;
}
.expectation {
    background: #fefaf6;
    border-radius: 20px;
    padding: 0.5rem 0.7rem;
    margin-top: 0.6rem;
    border-left: 3px solid #dbbc9b;
    font-size: 0.75rem;
}
.contact-request-btn, .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3ea;
    border: 1px solid #f3e2d4;
    border-radius: 40px;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    cursor: pointer;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
}
.share-btn {
    background: #e9dfd3;
}
.fill-info-btn {
    background: linear-gradient(115deg, #f3e7dd, #fef3ea);
    border-radius: 60px;
    padding: 0.8rem 1.8rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e6d5c5;
    cursor: pointer;
    margin: 0.5rem 0 1rem;
    font-weight: 600;
    color: #7a5b42;
}
.contact-section {
    background: linear-gradient(105deg, #ffffff, #fef7f0);
    border-radius: 2rem;
    padding: 1rem 2rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border: 1px solid #efe1d4;
}
.qrcode-box {
    text-align: center;
    background: white;
    padding: 0.4rem 1rem 0.7rem;
    border-radius: 24px;
    border: 1px solid #f0e0d2;
}
.qrcode-box img {
    width: 100px;
    height: 100px;
    border-radius: 16px;
}
.qr-modal .modal-content {
    max-width: 300px;
    text-align: center;
}
footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.7rem;
    color: #cfbcab;
    border-top: 1px solid #eee3d8;
    padding-top: 1.5rem;
}
@media (max-width: 720px) {
    .filter-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .details-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    .members-grid {
        grid-template-columns: 1fr;
    }
}
.search-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative;
}
.search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #c0a082;
    pointer-events: none;
    z-index: 1;
}
#searchInput {
    flex: 1;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 1px solid #efe2d6;
    border-radius: 60px;
    font-size: 0.9rem;
    background: white;
    outline: none;
}
.search-btn {
    background: #ddc3ab;
    border: none;
    border-radius: 60px;
    padding: 0.85rem 1.2rem;
    cursor: pointer;
    font-weight: 500;
    color: #4f3624;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-btn:hover {
    background: #cfb08f;
    color: white;
}
/* 原有样式不变，新增顶部栏和会员编号样式 */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0e3d8;
}
.back-home {
    background: #fef3ea;
    border: 1px solid #f3e2d4;
    border-radius: 40px;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    text-decoration: none;
    color: #b77c4a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.back-home:hover {
    background: #f4e5d8;
}
.site-title {
    font-size: 0.9rem;
    color: #b59272;
}

/* 会员卡片中的编号样式（已整合在 .member-basic-tags .chip 中） */
.member-basic-tags .chip:last-child {
    background: #e8dfd5;
    color: #9b7a5a;
}