/*平台样式首页*/       
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "微软雅黑", "PingFang SC", sans-serif;
        }
body {
    background: #f9f4f4;
    padding-bottom: 20px;
}

        .header {
            background: linear-gradient(90deg, #e63946, #c92a2a);
            color: white;
            padding: 18px 15px;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }
        .section {
            background: white;
            margin: 5px;
            padding: 6px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        .section-title {
            display: flex;
            align-items: center;
            font-size: 20px;
            font-weight: bold;
            color: #c92a2a;
            margin-bottom: 18px;
        }
        .section-title::before {
            content: "";
            width: 5px;
            height: 24px;
            background: #c92a2a;
            margin-right: 10px;
            border-radius: 2px;
        }
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 10px;    /* 👈 单独控制「行与行之间的垂直间距」（就是你问的这个） */
    column-gap: 4px; /* 👈 单独控制「同一行内按钮的左右间距」 */
}

.func-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

        .tag-btn {
            background: #fff0f3;
            color: #c92a2a;
            border: none;
            border-radius: 10px;
            padding: 12px 2px;
            font-size: 14px;
            text-align: center;
            font-weight: 500;
            cursor: pointer;
            transition: 0.2s;
            white-space: nowrap;  /* 强制不换行 */
            overflow: hidden;     /* 超出隐藏 */
        }
        .tag-btn:hover {
            background: #ffd6e0;
        }
/* 顶部会员分类按钮 */
.top-btn {
    background: #fff0f3;
    color: #c92a2a;
    border: none;
    border-radius: 10px;
    padding: 8px 12px; /* 对应原来的内联padding */
    font-size: 14px;   /* 对应原来的内联font-size */
    line-height: 1.4;  /* 对应原来的内联line-height */
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.top-btn:hover {
    background: #ffd6e0;
}

        .member-container {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 10px;
        }
.member-card {
    background: #fff5f5;
    border-radius: 12px;
    padding: 10px 8px 10px 6px;
    margin-bottom: 12px;
    border-left: 4px solid #c92a2a;
}
.member-card h4 {
    font-size: 21px;
    font-weight: 900;
    color: #c92a2a;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: visible;
}
.member-card p {
    font-size: 17px;
    line-height: 1.4;
    margin: 2px 0;
    display: flex;
    align-items: flex-start;
}
.member-card .label {
    font-size: 15px;
    color: #995555;
    font-weight: normal;
    flex: 0 0 auto; /* 核心：不再固定宽度，标签多宽就占多宽 */
    min-width: 100px; /* 给个最小宽度，保证所有标签左对齐 */
    margin-right: 2px; /* 标签和内容之间只留一点点空隙 */
}

.member-card .text {
    font-size: 17px;
    color: #000;
    font-weight: bold;
    flex: 1;
    word-break: break-word;
}

/* 👇 这两段是新加的，专门让「择偶要求」突出 */
.member-card p.mate .label {
  color: #c92a2a;
  font-weight: bold;
}
.member-card p.mate .text {
  color: #c92a2a;
  font-weight: bold;
}

        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 20px 0;
        }
        .page-btn {
            padding: 10px 16px;
            background: #e63946;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            cursor: pointer;
        }
        .page-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
        }
        .page-info {
            font-size: 16px;
            line-height: 38px;
            color: #666;
        }
        #memberList {
            display: none;
        }

        /* 搜索弹窗样式（新增，适配手机） */
        .search-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }
        .search-box {
            background: white;
            width: 90%;
            max-width: 500px;
            border-radius: 12px;
            padding: 20px;
            max-height: 90vh;
            overflow-y: auto;
        }
        .search-title {
            font-size: 20px;
            font-weight: bold;
            color: #c92a2a;
            margin-bottom: 15px;
            text-align: center;
        }
        .form-group {
            margin-bottom: 15px;
        }
        .form-label {
            font-size: 16px;
            font-weight: bold;
            color: #333;
            margin-bottom: 8px;
            display: block;
        }
        .form-select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
        }
        .age-check-group {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }
        .age-check-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 15px;
            padding: 6px;
            border: 1px solid #eee;
            border-radius: 6px;
        }
.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    min-height: 50px;    /* 加高输入框 */
    white-space: normal; /* 提示语自动换行 */
}
        .form-input::placeholder {
            color: #999;
        }
        .btn-group {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }
        .search-btn {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
        }
        .btn-cancel {
            background: #f0f0f0;
            color: #333;
        }
        .btn-confirm {
            background: #e63946;
            color: white;
        }
/*控制弹窗样式*/
    .bigPicLayer{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.9);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999;}
    .bigPicLayer img{max-width:95%;max-height:85%;touch-action:manipulation;}
.bigPicLayer .label {
    color: #d85a5a;
    display: inline-block;
    width: 130px;
    font-weight: bold;
}
.bigPicLayer .text {
    color: #000;
    font-weight: bold;
}
/*<!-- ====================== -->
<!-- 防骗提示模块 开始 -->
<!-- ====================== -->
防骗图标 */
.fangpian-icon {
    width: 40px;
    height: 40px;
    margin-left: auto;
    cursor: pointer;
}
/* 纯文字提示弹窗 */
.tip-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}
.tip-box {
    background: #fff;
    width: 85%;
    max-width: 400px;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
}
.tip-box h3 {
    color: #c92a2a;
    margin-bottom: 15px;
    font-size: 18px;
}
.tip-box p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}
.tip-close {
    background: #c92a2a;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}
/* 防骗图标 */
.fangpian-icon {
    width: 40px;
    height: 40px;
    margin-left: auto;
    cursor: pointer;
}
/* 纯文字提示弹窗 */
.tip-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}
.tip-box {
    background: #fff;
    width: 85%;
    max-width: 400px;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
}
.tip-box h3 {
    color: #c92a2a;
    margin-bottom: 15px;
    font-size: 18px;
}
.tip-box p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}
.tip-close {
    background: #c92a2a;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}
.btn-active {
  background: #c92a2a !important;
  color: #ffffff !important;
}
/* 会员照片外框样式（从JS抽离） */
.member-photo-box {
    margin: -24px 0 25px 0;
    padding: 16px;
    background: #fff5f5;
    border-radius: 12px;
    border-left: 4px solid #c92a2a;
}

/* 返回首页按钮容器样式（从JS抽离） */
#backToHomeBtn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
}

/* 返回首页按钮样式（从JS抽离） */
#backToHomeBtn button {
    background: #e63946;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 大图弹窗提示文字样式（从JS抽离） */
.big-pic-tip {
    text-align: center;
    color: #ffffff;
    margin-bottom: 10px;
}

/* 大图预览图片样式（从JS抽离） */
.big-pic-img {
    max-width: 95%;
    max-height: 85%;
}
/* 新人专区 */
.new-area {
  padding: 0 15px 12px;
  background: #faf7f7;
}
.new-area-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #994c4c;
}
.new-area-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  background: #c92a2a;
  border-radius: 2px;
}
.new-btns {
  display: flex;
  gap: 6px;
}
.new-btn {
  flex: 1;
  padding: 8px 0;
  background: #c92a2a;
  color: #fff;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  display: block;
}

.back-btn {
    text-align: center;
    margin: 15px 0;
}
.back-btn a {
    display: inline-block;
    padding: 8px 16px;
    background: #c92a2a;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}



