/* 团队成员样式表 */
/* 所有样式都应该限制在team-content-wrapper内，避免与其他页面样式冲突 */

/* 仅为team-content-wrapper内的h2标题添加前后图片 */
.team-content-wrapper h2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-content-wrapper h2[style*="text-align: center"] {
    display: flex;
    margin: 0 auto;
}

.team-content-wrapper h2::before, .team-content-wrapper h2::after {
    content: '';
    display: inline-block;
    background-image: url('https://static.igem.wiki/teams/5588/page/linehead1.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 40px;
    height: 1.2em; /* 使图片高度与文字高度一致 */
    vertical-align: middle;
    margin: 0 10px;
}

/* 为每个成员的name和teamposition设置不同的背景颜色 */
/* 示例样式，可以根据需要修改 */
.team-content-wrapper .name-jiachun-chen { background-color: #e23535; }
.team-content-wrapper .teamposition-jiachun-chen { background-color: #1aa910; }

.team-content-wrapper .name-yuxuan-liu { background-color: #e23535; }
.team-content-wrapper .teamposition-yuxuan-liu { background-color: #ebc220; }

.team-content-wrapper .name-haocheng-li { background-color: #e23535; }
.team-content-wrapper .teamposition-haocheng-li { background-color: #1aa910; }

.team-content-wrapper .name-yutong-chen { background-color: #954ec5; }
.team-content-wrapper .teamposition-yutong-chen { background-color: #1aa910; }

.team-content-wrapper .name-xinyue-feng { background-color: #ee8310; }
.team-content-wrapper .teamposition-xinyue-feng { background-color: #048ae4; }

.team-content-wrapper .name-shujing-bu { background-color: #1aa910; }
.team-content-wrapper .teamposition-shujing-bu { background-color: #0e6f07; }

.team-content-wrapper .name-minwei-chen { background-color: #1aa910; }
.team-content-wrapper .teamposition-minwei-chen { background-color: #954ec5; }

.team-content-wrapper .name-qizheng-liu { background-color: #1aa910; }
.team-content-wrapper .teamposition-qizheng-liu { background-color: #0e6f07; }

.team-content-wrapper .name-ruohan-shi { background-color: #1aa910; }
.team-content-wrapper .teamposition-ruohan-shi { background-color: #ebc220; }

.team-content-wrapper .name-ziqi-yang { background-color: #1aa910; }
.team-content-wrapper .teamposition-ziqi-yang { background-color: #0e6f07; }

.team-content-wrapper .name-xiaying-zhou { background-color: #1aa910; }
.team-content-wrapper .teamposition-xiaying-zhou { background-color: #0e6f07; }

.team-content-wrapper .name-bingying-zhu { background-color: #048ae4; }
.team-content-wrapper .teamposition-bingying-zhu { background-color: #184b9d; }

.team-content-wrapper .name-zhuoming-zou { background-color: #048ae4; }
.team-content-wrapper .teamposition-zhuoming-zou { background-color: #184b9d; }

.team-content-wrapper .name-pi { background-color: #e23535; }
.team-content-wrapper .teamposition-pi { background-color: #e23535; }

.team-content-wrapper .name-ad { background-color: #954ec5; }
.team-content-wrapper .teamposition-ad { background-color: #954ec5; }

.team-content-wrapper .ad-title {
    text-shadow: 0 0 5px #954ec5;
    padding: 20px 0 0 0;
    color: #fff;
}

.team-content-wrapper .pi-title {
    text-shadow: 0 0 5px #e23535;
    padding: 0px 0 0 0;
    color: #fff;
}

.team-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
    padding-top: 50px;
    max-width: 95%;
    margin: 0 auto;
}

.team-content-wrapper .membersbox, .team-content-wrapper .pisbox, .team-content-wrapper .advsbox, .team-content-wrapper .membersbox-group1, .team-content-wrapper .membersbox-group2, .team-content-wrapper .membersbox-group3 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.team-content-wrapper .members {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 300px;
    margin: 0 50px;
}

.team-content-wrapper .member {
    height: 400px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* background-color: brown; */
    clip-path: inset(0 0 0 0 round 0 0 520px 520px);
    perspective: 1000px;
    cursor: pointer;
    margin: 0 0 10px 0;
}

.team-content-wrapper .member-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.team-content-wrapper .member.flipped .member-inner {
    transform: rotateY(180deg);
}

.team-content-wrapper .member-front, .team-content-wrapper .member-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.team-content-wrapper .member-back {
    transform: rotateY(180deg);
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    padding: 50px 0 0 0;
    box-sizing: border-box;
    /* border-radius: 50%; */
    /* clip-path: circle(50% at 50% 50%); */
    width: 100%;
    height: 100%;
    /* aspect-ratio: 1; */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.team-content-wrapper .membersbox, .team-content-wrapper .membersbox-group1, .team-content-wrapper .membersbox-group2, .team-content-wrapper .membersbox-group3 {
    position: relative;
    padding: 0 30px 40px 30px;
    background-color: rgba(240, 240, 240, 0.7);
    border-radius: 25px;
    margin: 20px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 95%;
}

.team-content-wrapper .member-info-box {
    /* background-color: red; */
    /* background-image: url(https://static.igem.wiki/teams/5588/teammembers/background2.webp); */
    background-size: cover;
    border-radius: 50%;
    width: 300px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-content-wrapper .member-qphoto {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto 0 auto;
}

.team-content-wrapper .member-qphoto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-content-wrapper .member-intro {
    text-align: center;
    padding: 20px;
}

.team-content-wrapper .member-intro h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: rgb(0, 0, 0);
}

.team-content-wrapper .jiachun-chen-title {
    color: #7e7122; /* 混合 #e23535 和 #1aa910 */
    text-shadow: 2px 2px 4px rgba(226, 53, 53, 0.5), -2px -2px 4px rgba(26, 169, 16, 0.5), 0 0 8px rgba(226, 53, 53, 0.2), 0 0 8px rgba(26, 169, 16, 0.2);
}

.team-content-wrapper .jiachun-chen-italic {
    text-shadow: 2px 2px 4px rgba(255, 0, 0, 0.1), -2px -2px 4px rgba(0, 128, 0, 0.1), 0 0 8px rgba(255, 0, 0, 0.2), 0 0 8px rgba(0, 255, 0, 0.2);
    font-size: 14px;
}

.team-content-wrapper .ziqi-yang-title {
    color: #14740b; /* 混合 #1aa910 和 #0e6f07 */
    text-shadow: 2px 2px 4px rgba(26, 169, 16, 0.5), -2px -2px 4px rgba(14, 111, 7, 0.5), 0 0 8px rgba(26, 169, 16, 0.2), 0 0 8px rgba(14, 111, 7, 0.2);
}

.team-content-wrapper .ziqi-yang-italic {
    text-shadow: 2px 2px 4px rgba(0, 0, 255, 0.1), -2px -2px 4px rgba(255, 165, 0, 0.1), 0 0 8px rgba(0, 0, 255, 0.2), 0 0 8px rgba(255, 165, 0, 0.2);
    font-size: 14px;
}

.team-content-wrapper .xiaying-zhou-title {
    color: #14740b; /* 混合 #1aa910 和 #0e6f07 */
    text-shadow: 2px 2px 4px rgba(26, 169, 16, 0.5), -2px -2px 4px rgba(14, 111, 7, 0.5), 0 0 8px rgba(26, 169, 16, 0.2), 0 0 8px rgba(14, 111, 7, 0.2);
}

.team-content-wrapper .xiaying-zhou-italic {
    text-shadow: 2px 2px 4px rgba(128, 0, 128, 0.1), -2px -2px 4px rgba(0, 255, 255, 0.1), 0 0 8px rgba(128, 0, 128, 0.2), 0 0 8px rgba(0, 255, 255, 0.2);
    font-size: 14px;
}

.team-content-wrapper .bingying-zhu-title {
    color: #0e6bc0; /* 混合 #048ae4 和 #184b9d */
    text-shadow: 2px 2px 4px rgba(4, 138, 228, 0.5), -2px -2px 4px rgba(24, 75, 157, 0.5), 0 0 8px rgba(4, 138, 228, 0.2), 0 0 8px rgba(24, 75, 157, 0.2);
}

.team-content-wrapper .bingying-zhu-italic {
    text-shadow: 2px 2px 4px rgba(255, 192, 203, 0.1), -2px -2px 4px rgba(0, 128, 128, 0.1), 0 0 8px rgba(255, 192, 203, 0.2), 0 0 8px rgba(0, 128, 128, 0.2);
    font-size: 14px;
}

.team-content-wrapper .zhuoming-zou-title {
    color: #0e6bc0; /* 混合 #048ae4 和 #184b9d */
    text-shadow: 2px 2px 4px rgba(4, 138, 228, 0.5), -2px -2px 4px rgba(24, 75, 157, 0.5), 0 0 8px rgba(4, 138, 228, 0.2), 0 0 8px rgba(24, 75, 157, 0.2);
}

.team-content-wrapper .zhuoming-zou-italic {
    text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.1), -2px -2px 4px rgba(75, 0, 130, 0.1), 0 0 8px rgba(255, 215, 0, 0.2), 0 0 8px rgba(75, 0, 130, 0.2);
    font-size: 14px;
}

.team-content-wrapper .ruohan-shi-title {
    color: #7e7122; /* 混合 #1aa910 和 #ebc220 */
    text-shadow: 2px 2px 4px rgba(26, 169, 16, 0.5), -2px -2px 4px rgba(235, 194, 32, 0.5), 0 0 8px rgba(26, 169, 16, 0.2), 0 0 8px rgba(235, 194, 32, 0.2);
}

.team-content-wrapper .ruohan-shi-italic {
    text-shadow: 2px 2px 4px rgba(0, 191, 255, 0.1), -2px -2px 4px rgba(255, 69, 0, 0.1), 0 0 8px rgba(0, 191, 255, 0.2), 0 0 8px rgba(255, 69, 0, 0.2);
    font-size: 14px;
}

.team-content-wrapper .shujing-bu-title {
    color: #14740b; /* 混合 #1aa910 和 #0e6f07 */
    text-shadow: 2px 2px 4px rgba(26, 169, 16, 0.5), -2px -2px 4px rgba(14, 111, 7, 0.5), 0 0 8px rgba(26, 169, 16, 0.2), 0 0 8px rgba(14, 111, 7, 0.2);
}

.team-content-wrapper .shujing-bu-italic {
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.1), -2px -2px 4px rgba(0, 128, 0, 0.1), 0 0 8px rgba(255, 105, 180, 0.2), 0 0 8px rgba(0, 128, 0, 0.2);
    font-size: 14px;
}

.team-content-wrapper .minwei-chen-title {
    color: #577c6a; /* 混合 #1aa910 和 #954ec5 */
    text-shadow: 2px 2px 4px rgba(26, 169, 16, 0.5), -2px -2px 4px rgba(149, 78, 197, 0.5), 0 0 8px rgba(26, 169, 16, 0.2), 0 0 8px rgba(149, 78, 197, 0.2);
}

.team-content-wrapper .minwei-chen-italic {
    text-shadow: 2px 2px 4px rgba(138, 43, 226, 0.1), -2px -2px 4px rgba(255, 215, 0, 0.1), 0 0 8px rgba(138, 43, 226, 0.2), 0 0 8px rgba(255, 215, 0, 0.2);
    font-size: 14px;
}

.team-content-wrapper .qizheng-liu-title {
    color: #14740b; /* 混合 #1aa910 和 #0e6f07 */
    text-shadow: 2px 2px 4px rgba(26, 169, 16, 0.5), -2px -2px 4px rgba(14, 111, 7, 0.5), 0 0 8px rgba(26, 169, 16, 0.2), 0 0 8px rgba(14, 111, 7, 0.2);
}

.team-content-wrapper .qizheng-liu-italic {
    text-shadow: 2px 2px 4px rgba(0, 128, 128, 0.1), -2px -2px 4px rgba(255, 140, 0, 0.1), 0 0 8px rgba(0, 128, 128, 0.2), 0 0 8px rgba(255, 140, 0, 0.2);
    font-size: 14px;
}

.team-content-wrapper .weizhao-chen-title {
    color: #79867a; /* 混合 #ee8310 和 #048ae4 */
    text-shadow: 2px 2px 4px rgba(238, 131, 16, 0.5), -2px -2px 4px rgba(4, 138, 228, 0.5), 0 0 8px rgba(238, 131, 16, 0.2), 0 0 8px rgba(4, 138, 228, 0.2);
}

.team-content-wrapper .weizhao-chen-italic {
    text-shadow: 2px 2px 4px rgba(30, 144, 255, 0.1), -2px -2px 4px rgba(255, 165, 0, 0.1), 0 0 8px rgba(30, 144, 255, 0.2), 0 0 8px rgba(255, 165, 0, 0.2);
    font-size: 14px;
}

.team-content-wrapper .yuxuan-liu-title {
    color: #e4ae2a; /* 混合 #e23535 和 #ebc220 */
    text-shadow: 2px 2px 4px rgba(226, 53, 53, 0.5), -2px -2px 4px rgba(235, 194, 32, 0.5), 0 0 8px rgba(226, 53, 53, 0.2), 0 0 8px rgba(235, 194, 32, 0.2);
}

.team-content-wrapper .yuxuan-liu-italic {
    text-shadow: 2px 2px 4px rgba(138, 43, 226, 0.1), -2px -2px 4px rgba(255, 215, 0, 0.1), 0 0 8px rgba(138, 43, 226, 0.2), 0 0 8px rgba(255, 215, 0, 0.2);
    font-size: 14px;
}

.team-content-wrapper .haocheng-li-title {
    color: #7e7122; /* 混合 #e23535 和 #1aa910 */
    text-shadow: 2px 2px 4px rgba(226, 53, 53, 0.5), -2px -2px 4px rgba(26, 169, 16, 0.5), 0 0 8px rgba(226, 53, 53, 0.2), 0 0 8px rgba(26, 169, 16, 0.2);
}

.team-content-wrapper .haocheng-li-italic {
    text-shadow: 2px 2px 4px rgba(50, 205, 50, 0.1), -2px -2px 4px rgba(255, 69, 0, 0.1), 0 0 8px rgba(50, 205, 50, 0.2), 0 0 8px rgba(255, 69, 0, 0.2);
    font-size: 14px;
}

.team-content-wrapper .yutong-chen-title {
    color: #577c6a; /* 混合 #954ec5 和 #1aa910 */
    text-shadow: 2px 2px 4px rgba(149, 78, 197, 0.5), -2px -2px 4px rgba(26, 169, 16, 0.5), 0 0 8px rgba(149, 78, 197, 0.2), 0 0 8px rgba(26, 169, 16, 0.2);
}

.team-content-wrapper .yutong-chen-italic {
    text-shadow: 2px 2px 4px rgba(255, 20, 147, 0.1), -2px -2px 4px rgba(0, 191, 255, 0.1), 0 0 8px rgba(255, 20, 147, 0.2), 0 0 8px rgba(0, 191, 255, 0.2);
    font-size: 14px;
}

.team-content-wrapper .xinyue-feng-title {
    color: #79867a; /* 混合 #ee8310 和 #048ae4 */
    text-shadow: 2px 2px 4px rgba(238, 131, 16, 0.5), -2px -2px 4px rgba(4, 138, 228, 0.5), 0 0 8px rgba(238, 131, 16, 0.2), 0 0 8px rgba(4, 138, 228, 0.2);
}

.team-content-wrapper .xinyue-feng-italic {
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.1), -2px -2px 4px rgba(64, 224, 208, 0.1), 0 0 8px rgba(255, 105, 180, 0.2), 0 0 8px rgba(64, 224, 208, 0.2);
    font-size: 14px;
}

.team-content-wrapper .member-intro p {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: rgb(0, 0, 0);
}

.team-content-wrapper .membercircle {
    border-radius: 50%;
    /* border:2px solid #000; */
    width: 100%;
    position: absolute;
    bottom: 0;
    opacity: .7;
    transition: transform .3s, opacity .5s;
}

.team-content-wrapper .memberimg {
    position: relative;
    width: 80%;
    transform: translateY(80px);
    transition: transform .3s;
}

.team-content-wrapper .member:hover .memberimg {
    transform: translateY(26px) scale(1.2);
}

.team-content-wrapper .member:hover .name {
    transform: translateX(-50%) translateY(-40px) scale(1.3);
    transform-origin: center center;
    z-index: 10;
    /* 移除背景颜色变化，保持放大前后颜色一致 */
    opacity: 1;
}

.team-content-wrapper .member:hover .membercircle {
    transform: rotate(20deg);
    opacity: 0.3;
}

.team-content-wrapper .click-hint {
    text-align: center;
    font-size: 12px;
    color: #ffffff;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
    background-color: rgba(128, 128, 128, 0.4);
    padding: 3px 8px;
    border-radius: 12px;
    /* margin-bottom: 20px; */
}

.team-content-wrapper .member:hover .teamposition {
    opacity: 1;
}

.team-content-wrapper .member:hover ~ .click-hint {
    opacity: 1;
    transform: scale(1);
}

.team-content-wrapper .wire {
    background-color: #000;
    width: 200px;
    height: 2px;
    margin: 20px 0 20px 0;
}

.team-content-wrapper .name {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    transition: transform .3s, background-color .3s, opacity .3s;
    z-index: 10;
    white-space: nowrap;
    /* background-color: rgba(0, 0, 0, 0.7); */
    padding: 2px 15px 6px 15px;
    border-radius: 20px;
    opacity: 0.8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.team-content-wrapper .teamposition {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    transition: transform .3s, opacity .3s;
    z-index: 10;
    opacity: 0;
    text-align: center;
    /* background-color: rgba(0, 0, 0, 0.7); */
    padding: 2px 15px 6px 15px;
    border-radius: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.team-content-wrapper .position {
    color: #000000;
    font-size: 22px;
    text-align: center;
    font-weight: bold;
    margin: 3px 0 3px 0;
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
}

.team-content-wrapper .team-leader {
    color: #f93c3c;
}

.team-content-wrapper .wet-lab {
    color: #0ecc00;
}

.team-content-wrapper .entrepreneurship {
    color: #ba5ff7;
}

.team-content-wrapper .web {
    color: #ff8300;
}

.team-content-wrapper .design-dry {
    color: #009aff;
}

.team-content-wrapper .human {
    color: #ffe200;
}

.team-content-wrapper .teamphotobox {
    display: relative;
    width: 80vw;
    height: 45vw;
    max-width: 640px;
    max-height: 360px;
    margin: 0 auto;
    color: white;
    perspective: 1000px;
    transform-origin: center;
}

.team-content-wrapper .teamphotocontent {
    display: flex;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: translateZ(-30vw) rotateY(0deg);
    animation: carousel 6s infinite cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.team-content-wrapper .teamphoto {
    position: absolute;
    width: 80vw;
    height: 45vw;
    max-width: 800px;
    max-height: 450px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-size: cover;
    /* -webkit-box-reflect: below 5px -webkit-linear-gradient(transparent 50%, rgba(255, 255, 255, 0.3));  */
}

.team-content-wrapper .teamphoto:nth-child(1) {
    background-image: url(https://static.igem.wiki/teams/5588/teammembers/teamphoto/teamphoto1.webp);
    transform: rotateY(0deg) translateZ(35vw);
}

.team-content-wrapper .teamphoto:nth-child(2) {
    background-image: url(https://static.igem.wiki/teams/5588/teammembers/teamphoto/teamphoto4.webp);
    transform: rotateY(120deg) translateZ(35vw);
}

.team-content-wrapper .teamphoto:nth-child(3) {
    background-image: url(https://static.igem.wiki/teams/5588/teammembers/teamphoto/teamphoto3.webp);
    transform: rotateY(240deg) translateZ(35vw);
}

@keyframes carousel {
    0%,
    17.5% {
        transform: translateZ(-35vw) rotateY(0deg);
    }

    27.5%,
    45% {
        transform: translateZ(-35vw) rotateY(-120deg);
    }

    55%,
    72.5% {
        transform: translateZ(-35vw) rotateY(-240deg);
    }

    82.5%,
    100% {
        transform: translateZ(-35vw) rotateY(-360deg);
    }
}

