.top-spacer { /*防止导航栏遮挡,导航栏为固定高度*/
  height: 80px;
}
/*** header  设计思路:hedaer中两个box,title与team-photo采用box的背景图片显示,采用box为了精细微调***/
.team-header {
    display: flex;
    justify-content: center; 
    align-items: center;    
    width: 100%;
    aspect-ratio: 4773 / 1332; /*图片比例*/
    box-sizing: border-box;
    background-image:url('https://static.igem.wiki/teams/5858/images/members/roster-bg.webp');
    background-repeat: no-repeat;
    background-size: cover; 
    background-position: 48% center;
}

.team-title {
    width: 400px;      
    max-width: 80%;    
    z-index: 2;        
    position: relative;
    right: 100px;
}

.team-title img {
    width: 100%;
    height: 100%;
    display: block;
}

.team-photo {
    width: 1000px;/*微调容器大小,即调整team-photo大小*/
    max-width: 80%; 
    aspect-ratio: 730 / 235; /*team-photo比例 */
    margin-left: -250px; 
    z-index: 1; 
    position: relative; 
    background-image: url('https://static.igem.wiki/teams/5858/images/members/team-photo.svg');
    background-size: cover; 
    background-position: center 25%;
    background-repeat: no-repeat;

}

.introduction-cards {
    width: 100vw;
    height: auto;
    padding: 40px 20px;
    background-image: url('https://static.igem.wiki/teams/5858/images/members/introduction-card-bg.webp');
    background-size: contain;
    background-position: center;
    background-repeat: repeat;
    min-height: 100vh;
    box-sizing: border-box;
}

.introduction-cards .leader-cards,
.introduction-cards .member-cards {
    margin-bottom: 20px;
}

.introduction-cards .title {
    text-align: center;
    margin: 0 auto 20px;
    color: #333;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.introduction-cards .title i {
    background-image: url('https://static.igem.wiki/teams/5858/images/members/title-frame.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 15px 40px;
    display: inline-block;
}

.introduction-cards .title img {
    width: 60%;
    height: 60%;
    object-fit: cover;
}

.introduction-cards .title-flower {
    background-image: url('https://static.igem.wiki/teams/5858/images/members/title-flower.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 40px;
    height: 40px;
    display: inline-block;
    margin-right: 10px;
}

.introduction-cards ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.introduction-cards .card {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.introduction-cards .img {
    width: 200px;
    height: 200px;
    background-image: url('https://static.igem.wiki/teams/5858/images/members/frame.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.introduction-cards .portrait {
    width: 80%;
    height: 80%;
    object-fit: cover;
}

.introduction-cards .text {
    width: 100%;
    height: 80px;
    background-image: url('https://static.igem.wiki/teams/5858/images/members/name.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
}

footer {
    background-image: url('https://static.igem.wiki/teams/5858/images/members/introduction-card-bg.webp');
    background-size: contain;
    background-position: center;
    background-repeat: repeat;
}