.members-container {
    position: relative;
    width: 100%;
    background-image: url("https://static.igem.wiki/teams/5776/images/home/home-theme-bg-001.webp");
    min-height: 100vh;
}

.members-cover {
    width: 100%;
}

.members-cover img {
    width: 100%;
    object-fit: cover;
}

.members-bg {
    width: 60%;
    margin-left: 40%;
    position: relative;
}

.members-bg img {
    width: 100%;
}

#members-content {
    position: relative;
    z-index: 2;
    padding-top: 50px;
    padding-bottom: 100px;
    width: 100%;
}

/* 成员卡片样式 */
.member-card {
    position: relative;
    width: 150px;
    height: 200px;
    cursor: pointer;
    perspective: 1000px;
}

.member-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    background-image: url("https://static.igem.wiki/teams/5776/images/members/member-card.webp");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 10px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.member-photo {
    /* position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%); */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    /* position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%); */
    width: 70px;
    text-align: center;
    padding: 10px 5px;
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.member-name {
    font-size: 12px;
    font-weight: bold;
    line-height: 1.3;
    white-space: normal;
}

/* 鼠标悬停效果 */
.member-card:hover .member-card-inner {
    transform: scale(1.05) translateY(-5px) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    #members-content {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .member-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .member-card {
        width: 120px;
        height: 160px;
    }

    .member-photo {
        width: 50px;
        height: 50px;
    }

    .member-info {
        width: 60px;
    }

    .member-name {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .member-card {
        width: 100px;
        height: 140px;
    }

    .member-photo {
        width: 40px;
        height: 40px;
    }

    .member-info {
        width: 50px;
    }

    .member-name {
        font-size: 10px;
    }
}

.members-cutline {}

.members-cutline img {
    width: 10px;
    height: 10px;
}

/* 成员详情弹窗样式 */
.member-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.member-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.member-modal-content {
    position: relative;
    background-image: url("https://static.igem.wiki/teams/5776/images/members/member-card.webp");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 15px;
    padding: 30px;
    width: 1000px;
    width: 90%;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); */
    transform-origin: center;
}

.member-modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
}

.member-modal-close {
    background: none;
    border: none;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.member-modal-close:hover {
    background-color: white;
    transform: scale(1.1);
}

.member-modal-body {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
}

.member-modal-avatar {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.member-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-modal-info {
    flex: 1;
    color: #333;
}

.member-modal-name {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.member-modal-bio {
    font-size: 20px;
    line-height: 1.6;
    /* background-color: rgba(255, 255, 255, 0.9); */
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .member-modal-body {
        flex-direction: column;
        text-align: center;
    }

    .member-modal-avatar {
        width: 120px;
        height: 120px;
    }

    .member-modal-name {
        font-size: 20px;
    }

    .member-modal-bio {
        font-size: 14px;
    }
}