* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box
}
container0{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}
.nav{
    height: 100px;
    background-color: #B2D3E4;
    box-shadow: 0 1px 2px #666;

    /* 新增加的样式 */
    width: 100%;
    position: fixed;
    top: 0px;
    z-index: 11;
    
}
.btli{
    float: left;
    min-width: 100px;
    line-height: 50px;
    text-align: center;
    
}
.nav-img{
    float: left;
    max-width: 80px;
    line-height: 50px;
    text-align: center;
}
.navlist{
    display: flex;
    align-items: center;
    padding: 0px 20px;
    height: 100%;
}

.navlist .logo{
    color: #fff;font-weight: bold;
    font-size: 20px;
    padding: 0px 20px;
}

.navlist a{
    color: white; 
    display: block;
}

.droplist{
    background-color: rgb(135, 205, 255);
    box-shadow: 0 1px 2px rgb(194, 242, 255);
    display: none;
    border-radius: 6px;
    overflow: hidden;
    position: absolute;
    width: 100px;
}
.btli:hover .droplist{
    display: block;
}
.droplist li{
    border-top: 1px solid #666;

}
.container {
    padding: 0;
    width: 100%;
    background-color: #b6cc4e;
    height: auto;
    overflow: auto;
    clip-path: inset(0 round 20px);
}

.lside {
    width: 20%;
    float: left;
    height: 100%;
    text-align: center;
    float: left;
}

.d-sidetittle1 {
    font-size: large;
    line-height: 2;
    padding: 10px 0;
}

.content {
    width: 80%;
    float: left;
    box-sizing: border-box;
}

.Box {
    background-color: antiquewhite;
    float: left;
    width: 100%;
    text-align: center;
    line-height: 400px;
    height: 400px;
    font-size: 100px;
}
.Box .IMGS{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:auto;
    object-fit: cover;
    object-position: center
}
.box {
    padding: 2%;
    background-color: #fff3ab;
    float: left;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    border-radius: 20px;
    clip-path: inset(0 round 20px);
}

.box .imgs {
    width: 70%;
    object-fit: cover;
    object-position: center;
    text-align: center;
}

.box .imgs-1 {
    width: 20%;
    object-fit: cover;
    object-position: center;
    text-align: center;
}

.box .imgs-2 {
    width: 55%;
    object-fit: cover;
    object-position: center;
    text-align: center;
}

.box .imgs-3 {
    width: 25%;
    object-fit: cover;
    object-position: center;
    text-align: center;
}

.tittle {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px
}

.Subtitle {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 20px
}

.text {
    font-size: 20px;
    width: 98%;
    margin: 0 auto;
    float: left;
    text-align: justify;
    text-justify: inter-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    padding-right: 1em;
    margin-bottom: 20px
}

.figurelegends {
    margin: 20px 0px;
    font-size: smaller;
    font-weight: bold;
    text-align: center;
}

.bold-text {
    font-weight: bold;
}

.section{
    padding:60px 10% 60px;
}

.footer{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,auto));
    background: #004f07;
    /* position: absolute;
    left: 0;
    right: 0;
    bottom: 0; */
    padding: 20px 20px;

    display: flex !important;

}

.footer .footer-contentlogo{
    color: #fff;
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer .footer_logo{
    width: 100px;
    height: auto;
}

.footer .footer_box{
    display: flex;
    justify-content: space-evenly;
    flex-grow: 1;
}

.footer-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-content h4{
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 16px;

}

.footer-content li{
    margin-bottom: 16px;
    color: #fff;
}

.footer-content li a{
    display: block;
    color: #efffd2;
    font-size: 15px;
    font-weight: 400;
    transition: all .40s ease;
}

.footer-content li a:hover{
    transform: translateY(-3px) translateX(-5px);
    color: #d0ffa2;
}

.footer-content p{
    color: #d6d6d6;
    font-size: 12px;
    line-height: 30px;
    margin: 10px 0;
}
.icons a{
    display: inline-block;
    font-size: 22px;
    color: #d6d6d6;
    margin-right: 17px;
    transition: all .40s ease;  
}

.icons a:hover{
    color: #fff;
    transform: translateY(-5px)
}

.picture-box {
    padding-top: 100px;
    width: 100%;
}

.picture-img {
    width: 100%;
    aspect-ratio: 1276 / 713;
}

.body-figure{
    width: 100%;
    height: auto;
}

.home-container {
    padding: 0;
    width: 100%;
    background-color: #fff3ab;
    height: auto;
    overflow: auto;
}




.lside {
    position: sticky;
    top: 100px;
    /* 距离视口顶部0 */
    align-self: flex-start;
    /* 保证在flex布局中行为正确 */
    /* 其他样式 */
}
.navlist {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navlist .btli {
    flex: 1;
}

.btli {
    position: relative;
}

.btli>a {
    display: flex;
}

.nav-img {
    transition: transform 0.3s;
}

.nav-img:hover {
    transform: scale(1.1);

}

.logo {
    text-align: center;
    width: 30%;
}

.lside a,
.lside a:link,
.lside a:visited,
.lside a:active,
.lside a:focus,
.lside a:hover {
    text-decoration: none;
    color: inherit;
    outline: none;
    background: none;
    box-shadow: none;
}

.container {
    display: flex;
    overflow: inherit;
}

.lside {
    float: none;
}

.content {
    float: none;
}

.d-sidetittle1.active {
    color: #fff;
}

.footer-container {
    background-color: #1a242f;
}

.footer-bottom {
    border-top: 1px solid #adadad;
    color: white;
    text-align: center;
    padding: 10px 0;
}

.droplist {
    width: 200px;
    min-width: 100px;
    left: calc(-60px);
}

.long-img-box {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.two-circle-img-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.long-img {
    height: 100px;
}

.circle-img {
    height: 100px;
    border-radius: 50%;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

section.footer>* {
    min-width: 50%;
    max-width: 50%;
}

.video {
    flex: 1;
}

.video-element {
    width: 100%;
}

.icon-small-img {
    width: 100px;
}


.home-container {
    background: url("https://static.igem.wiki/teams/5902/home/home-content.webp") no-repeat center;
    background-size: cover;
}

.body-figure {
    text-align: center;
}

.body-figure-img {
    width: 100%;
    text-align: center;
}


.icons {
    display: flex;
    height: 800px;
    justify-content: space-between;
}

.icon-small {
    text-align: center;
}

.icon-group1,
.icon-group2 {
    padding: 60px 0;
    width: 25vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
}

.icon-text {
    text-align: center;
    font-size: 30px;
    background-color: #8ccfe2;
    padding: 2px 4px;
    color: white;
    border-radius: 10px;
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video {
    width: 50vw;
}

.footer {
    background: url("https://static.igem.wiki/teams/5902/footer/footer-background.webp") no-repeat center;
    background-size: cover;
}


        /* 每个角色板块样式 */
.part {
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.part:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 职位标题样式 */
.position {
    background-color: #3498db;
    color: #fff;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 30px;
}

.body {
    background-color: #fff3ab;
    /* 页面整体背景色 */
    color: #333;
    line-height: 1.6;
}

.container-1 {
    background-color: #fff3ab;
}

/* 双标题特殊样式（Instructor & Advisers） */
.position.instructor-advisers {
    display: flex;
    background-color: transparent;
    height: auto;
    line-height: normal;
    justify-content: center;
    gap: 60px;
}

.instructor,
.advisers {
    background-color: #3498db;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 18px;
}

/* 统一卡片样式 */
.profile-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    width: 280px;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.photo {
    width: 200px;
    height: 280px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


.photo img {
    width: 100%;    
    height: 100%;   
    object-fit: cover; 
}

/* 姓名样式 */
.name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

/* 学生职位标签（Student Leaders/Members） */
.student-position {
    font-size: 14px;
    color: #3498db;
    font-weight: 500;
}

/* 介绍文本样式 */
.information {
    width: calc(100% - 300px);
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
    color: #555;
}

/* 布局容器（Flex/Grid 替代float） */
/* 1. Primary PI 布局（左卡片 + 右介绍） */
.pi-layout {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

/* 2. 多卡片横向布局（Secondary PI / 学生团队） */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* 学生团队四卡片布局专用 */
.student-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* 缩小间距，适配四卡片 */
    justify-content: center;
}

.student-card-grid .profile-card {
    width: 240px;
    height: 350px;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .pi-layout {
        flex-direction: column;
        text-align: center;
    }

    .information {
        width: 100%;
    }

    .profile-card {
        width: 240px;
        height: 350px;
    }
}

@media (max-width: 768px) {

    .picture-box {
        height: 200px;
    }

    .position {
        font-size: 18px;
    }

    .position.instructor-advisers {
        flex-direction: column;
        gap: 15px;
    }

    .card-grid,
    .student-card-grid {
        gap: 20px;
    }

    .profile-card {
        width: 100%;
        max-width: 300px;
    }
}

.box-1 .imgs {
    width: 50vw;
    object-fit: cover;
    object-position: center;
    text-align: center;
}

.box {
    padding: 2%;
    background-color: none;
    float: left;
    width: 100%;
    text-align: left;
    clip-path: inset(0 round 20px);
}