/* member.css - 青藤青年风格（优化版） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 防止手机端横向滚动偏移 */
body {
    background-color: #fef8f0;
    font-family: 'Inter', sans-serif;
    color: #3b2e26;
    line-height: 1.4;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: hidden;
    width: 100%;
}

/* 首页按钮 */
.home-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #e7cfb5;
    color: #5d3a2a;
    border: none;
    border-radius: 40px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: 0.2s;
}
.home-btn:hover {
    background: #dbbc9b;
    color: white;
}

@media (max-width: 720px) {
    .header-section {
        margin-top: 3rem;
    }
    .home-btn {
        top: 0.8rem;
        right: 0.8rem;
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* 头部区域 */
.header-section {
    text-align: center;
    margin-bottom: 2rem;
}
.badge {
    background: #e8ddd0;
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.75rem;
    color: #8f6844;
    margin-bottom: 1rem;
}
h1 {
    font-size: 2.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #bc8f6b, #9b6e4c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.25rem;
}
.subhead {
    font-size: 0.9rem;
    color: #aa8b72;
    border-bottom: 1px solid #eee0d2;
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* 筛选区域 */
.search-filter-area {
    background: #ffffffdb;
    border-radius: 32px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0 1rem;
    border: 1px solid #f0e0d0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.02);
}
.search-wrapper {
    position: relative;
    margin-bottom: 1.2rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #c0a080;
    pointer-events: none;
    z-index: 1;
}
#searchInput {
    flex: 1;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 1px solid #f0dfcf;
    border-radius: 60px;
    font-size: 0.9rem;
    background: white;
    outline: none;
    transition: 0.2s;
}
#searchInput:focus {
    border-color: #dbba9a;
    box-shadow: 0 0 0 3px rgba(219,186,154,0.15);
}
.search-btn {
    background: #deb887;
    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: #cfaa7a;
    color: white;
}
.filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 720px) {
    .filter-grid {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}
.filter-group {
    background: #fffcf8;
    border-radius: 40px;
    padding: 0.3rem 1rem;
    border: 1px solid #ecdccd;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.filter-group:hover {
    background: #fdf8f2;
    border-color: #dbbc9b;
}
.filter-group label {
    font-weight: 500;
    color: #9b7657;
}
.filter-group select, .filter-group input {
    background: white;
    border: 1px solid #eedfcb;
    border-radius: 30px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    outline: none;
}
.reset-btn {
    background: transparent;
    border: 1px solid #dccdbd;
    border-radius: 30px;
    padding: 0.3rem 1rem;
    cursor: pointer;
    margin-left: auto;
    color: #a77c56;
    transition: 0.2s;
}
.reset-btn:hover {
    background: #f7ede3;
}
.result-count {
    text-align: right;
    font-size: 0.8rem;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0e0d0;
    color: #b48b64;
}

/* 会员卡片网格 */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.member-card {
    background: white;
    border-radius: 28px;
    border: 1px solid #efe0d2;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px -6px rgba(60,40,20,0.04);
}
.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(80,50,25,0.12);
}
.card-inner {
    padding: 1.2rem;
}
.avatar-head {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f2e4d8;
    padding-bottom: 0.8rem;
    align-items: center;
}
.avatar-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fcf4ea;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-nickname {
    font-size: 1.4rem;
    font-weight: 700;
    color: #5e3e2a;
}
.member-basic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.chip {
    background: #f6ede5;
    color: #aa784e;
    font-size: 0.7rem;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
}

/* 分类区块 */
.info-section {
    margin-top: 16px;
    border-top: 1px solid #f0e0d0;
    padding-top: 12px;
}
.info-section:first-of-type {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}
.section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #b57c4a;
    margin-bottom: 8px;
}
.section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    margin-bottom: 4px;
}
.detail-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 0.75rem;
    flex-wrap: wrap;
}
.detail-label {
    background: #fdf5ef;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #9b7657;
    white-space: nowrap;
}
.detail-value {
    color: #5e3e2a;
    font-weight: 500;
    word-break: break-word;
}
.expectation-section {
    margin-top: 12px;
    background: #fefaf6;
    border-radius: 20px;
    padding: 10px;
    border-left: 3px solid #dbba9a;
}
.expectation-section > div:first-child {
    font-size: 0.7rem;
    color: #b57c4a;
    margin-bottom: 4px;
}
.expectation-section > div:last-child {
    font-size: 0.8rem;
    color: #5e3e2a;
    word-break: break-word;
}

/* 卡片按钮容器（统一） */
.card-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid #f0e3d8;
}

/* 联系方式按钮（主要） */
.contact-btn {
    flex: 2;
    background: linear-gradient(115deg, #e8d9cc, #f3e6dc);
    border: none;
    border-radius: 60px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #7a5b42;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.contact-btn:hover {
    background: linear-gradient(115deg, #ddcbbd, #ecd9cb);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    color: #5e3a28;
}

/* 分享按钮 */
.share-btn {
    flex: 1;
    background: #fef3ea;
    border: 1px solid #f3e2d4;
    border-radius: 40px;
    padding: 8px 12px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #b28054;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.share-btn:hover {
    background: #f4e5d8;
    border-color: #dbbb9b;
    color: #8e623f;
}

/* 分页 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.page-btn, .page-current {
    background: #fcf3ea;
    border: 1px solid #eedbcb;
    border-radius: 40px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}
.page-btn:hover {
    background: #f7e6da;
}
.page-current {
    background: #debc98;
    color: white;
    font-weight: bold;
    border-color: #debc98;
}
.no-result {
    text-align: center;
    padding: 3rem;
    background: #fffbf7;
    border-radius: 48px;
    color: #ba987a;
}

/* 填写资料入口卡片 */
.apply-card {
    background: linear-gradient(115deg, #f8efe6, #fffaf5);
    border-radius: 60px;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e8d5c4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.apply-card:hover {
    background: #f7e8dd;
    transform: translateY(-2px);
}
.apply-icon {
    font-size: 2rem;
    color: #cb9a6b;
}
.apply-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8a5a3a;
    margin-bottom: 0.2rem;
}
.apply-text p {
    font-size: 0.8rem;
    color: #b88a61;
}
.apply-arrow {
    font-size: 1.2rem;
    color: #cb9a6b;
}

/* 二维码弹窗 */
.modal {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.qr-modal .modal-content {
    background: #fffef8;
    border-radius: 48px;
    max-width: 340px;
    width: 85%;
    text-align: center;
    padding: 2rem 1.5rem 1.8rem;
    position: relative;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.2);
    border: 1px solid #e8d5c4;
}
.modal-close {
    position: absolute;
    right: 1.2rem;
    top: 1rem;
    font-size: 1.4rem;
    cursor: pointer;
    color: #bba88c;
    transition: 0.2s;
}
.modal-close:hover { color: #8e6a48; }
.qr-icon {
    font-size: 2.5rem;
    color: #daaa7a;
    margin-bottom: 0.5rem;
}
.qr-modal h3 {
    font-size: 1.3rem;
    color: #7a563c;
    margin-bottom: 0.3rem;
}
.qr-desc {
    font-size: 0.85rem;
    color: #b88a61;
    margin-bottom: 1rem;
}
.qr-img {
    width: 160px;
    border-radius: 20px;
    margin: 0.5rem auto;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
    border: 1px solid #e8d5c4;
}
.qr-footer {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #977a60;
}
.qr-footer .small {
    font-size: 0.7rem;
    color: #c0a080;
    margin-top: 0.3rem;
}

/* 底部联系区 */
.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 #e8d5c4;
}
.qrcode-box {
    text-align: center;
    background: white;
    padding: 0.4rem 1rem 0.7rem;
    border-radius: 24px;
    border: 1px solid #e8d5c4;
}
.qrcode-box img {
    width: 100px;
    border-radius: 16px;
}
footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.7rem;
    color: #bba88c;
    border-top: 1px solid #f0e0d0;
    padding-top: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 720px) {
    .filter-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .reset-btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    .section-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .members-grid {
        grid-template-columns: 1fr;
    }
    .contact-section {
        flex-direction: column;
        text-align: center;
    }
    .card-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .contact-btn, .share-btn {
        width: 100%;
    }
}

/* 验证弹窗按钮样式（如仍使用 verifyModal） */
#verifyModal .btn-primary {
    background: #debc98;
    border: none;
    border-radius: 40px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
#verifyModal .btn-primary:hover {
    background: #cfaa7a;
    color: white;
}
#verifyModal input {
    font-size: 1rem;
}
/* 二维码弹窗优化 */
.qr-modal .modal-content {
    background: #fffef8;
    border-radius: 48px;
    max-width: 340px;
    width: 85%;
    text-align: center;
    padding: 2rem 1.5rem 1.8rem;
    position: relative;
    box-shadow: 0 25px 40px -12px rgba(0,0,0,0.25);
    border: 1px solid #f0e0d0;
    transition: all 0.2s ease;
}
.qr-icon {
    font-size: 2.8rem;
    color: #e7a16b;
    margin-bottom: 0.5rem;
}
.qr-modal h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #6b4a2e;
    margin-bottom: 0.2rem;
}
.qr-desc {
    font-size: 0.85rem;
    color: #b88a61;
    margin-bottom: 1rem;
}
.qr-img {
    width: 160px;
    border-radius: 20px;
    margin: 0.5rem auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid #e8d5c4;
}
.qr-footer {
    margin: 12px 0 8px;
    font-size: 0.75rem;
    color: #977a60;
}
.qr-footer .small {
    font-size: 0.7rem;
    color: #c0a080;
    margin-top: 4px;
}
#wechatIdDisplay {
    font-size: 1rem;
    color: #d98e3a;
    background: #fef3e8;
    padding: 2px 8px;
    border-radius: 40px;
    display: inline-block;
}
.btn-copy-wechat {
    background: #ddc3ab;
    border: none;
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4f3624;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-copy-wechat:hover {
    background: #cfb08f;
    color: white;
}