.template {
    padding-top: 80px;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.banner {
    width: 100vw;
    height: auto;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/bigbanner-v2.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-text {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Arima Madurai';
    color: #fff;
    white-space: nowrap;
    max-width: 100vw;
    overflow: hidden;
    transform-origin: center;
}

.banner-text h1 {
    font-size: clamp(2rem, 10vw, 10em);
    margin: 0;
    padding: 0;
}

.banner-text img {
    width: clamp(2rem, 10vw, 10em);
    height: auto;
    flex-shrink: 1;
    min-width: 4vw;
}

.main {
    padding: 70px 60px 50vh 40px;
    width: 100vw;
    display: flex;
    background-color: #efebec;
    min-height: calc(100vh - 302px);
    /* 减去banner高度 */
    gap: 40px;
    /* sidenav和paper之间的间距 */
}

/* 侧边栏样式 */
.sidenav {
    position: sticky;
    top: 15vh;
    /* 距离视口顶部 20px 开始粘住，可自行调整 */
    align-self: flex-start;
    margin-top: 20px;
    width: 25%;
    max-width: 300px;
    height: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;

}

/* 侧边栏导航样式 */
.sidenav .sidenav-content {
    padding: 40px 40px 40px 40px;
    position: relative;
    /* 改为相对定位 */
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    z-index: 1;
    background-color: #B8B0E2;
    border-radius: 16px;
    max-height: 80vh;
}

/* 1. 滚动条整体区域 */
.sidenav-content::-webkit-scrollbar {
    width: 6px;
    /* 默认细线 */
    transition: width .2s;
    /* 悬停时平滑变宽 */
}

/* 2. 滑块本身 */
.sidenav-content::-webkit-scrollbar-thumb {
    background: rgba(174, 108, 235, 0.5);
    border-radius: 3px;
}

/* 3. 滑块悬停/拖动状态 */
.sidenav-content:hover::-webkit-scrollbar {
    width: 10px;
    /* 悬停时稍宽，便于拖拽 */
}

.sidenav-content::-webkit-scrollbar-thumb:hover {
    background: rgba(174, 108, 235, 0.8);
}

/* 4. 轨道（背景槽）保持隐形 */
.sidenav-content::-webkit-scrollbar-track {
    background: transparent;
}

/* 5. Firefox 纯 CSS 兜底 */
@supports (scrollbar-width: thin) {
    .sidenav-content {
        scrollbar-width: thin;
        scrollbar-color: rgba(174, 108, 235, 0.5) transparent;
    }

    .sidenav-content:hover {
        scrollbar-color: rgba(174, 108, 235, 0.8) transparent;
    }
}

.sidenav h3 {
    margin: 15px 0 10px 0;
}

.sidenav ul {
    list-style: none;
    opacity: 1;
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.sidenav li {
    margin: 15px 0;
}

.sidenav a {
    color: #434349;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1em;
}

.sidenav a.highlight {
    color: #FFFFFF
        /* 高亮时文字颜色 */
    ;
    font-weight: bold;
    /* 高亮时文字加粗 */
}

.sidenav a:hover {
    color: #FFFFFF;

}

.sidenav-content {
    position: relative;
}

.sidenav-top {
    position: absolute;
    top: -5vh;
    right: -9vh;
    z-index: 0;
    width: 25vh;
    pointer-events: none;
    /* 防止遮挡点击 */
}

.sidenav-bottom {
    position: absolute;
    top: calc(100% - 26vh *1.26* 0.3);
    left: -7vh;
    z-index: 1;
    width: 28vh;
    pointer-events: none;
}

.sub-menu.collapsed {
    max-height: 0;
    opacity: 0;
}

/* 主内容区样式 */
.paper-content {
    z-index: 1;
    min-height: 100%;
    overflow: hidden;
}

ul.sub-menu p.no-indent {
    margin: 0;
    margin-left: -20px;
    /* 负边距抵消ul的padding-left */
}

/* .paper-top {
    width: 100%;
    height: 40px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/template-paper-top.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top left;
}

.paper-bottom {
    width: 100%;
    height: 40px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/template-paper-bottom.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom left;
} */

.paper {
    flex: 1;
    /* background-image: url('https://static.igem.wiki/teams/5858/images/template/template-paper.webp');
    background-size: contain;
    background-repeat: repeat;
    background-position: top left; */
    background-color: #f0e7d8;
    border-radius: 40px;
    padding: 40px;
    padding-left: 80px;
    padding-right: 80px;
}

/* 内容区域样式 */
.paper section {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 50px;
}

.paper section::before {
    position: absolute;
    bottom: 0;
    left: 0;
    content: '';
    background-size: contain;
    background-image: url(https://static.igem.wiki/teams/5858/images/template/boundary.webp);
    width: 100%;
    height: 50px;
    background-repeat: no-repeat;
    background-position: center;
}

.paper .section-divider {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 50px;
}

.paper .section-divider::before {
    position: absolute;
    bottom: 0;
    left: 0;
    content: '';
    background-size: contain;
    background-image: url(https://static.igem.wiki/teams/5858/images/template/boundary.webp);
    width: 100%;
    height: 50px;
    background-repeat: no-repeat;
    background-position: center;
}


.paper .intro_box {
    position: relative;
    width: 100%;
    min-height: 150px;
    background-color: #a99ad3;
    border-radius: 20px;
    margin: 20px auto;
    padding: 70px;
    overflow: hidden;
}

.paper .intro_box::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 15px;
    background-color: #a99ad3;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.paper .intro_box .left_top_corner,
.paper .intro_box .right_top_corner,
.paper .intro_box .left_bottom_corner,
.paper .intro_box .right_bottom_corner {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

.paper .intro_box .left_top_corner {
    top: 25px;
    left: 25px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/left-top-box.webp');
}

.paper .intro_box .right_top_corner {
    top: 25px;
    right: 25px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/right-top-box.webp');
}

.paper .intro_box .left_bottom_corner {
    bottom: 25px;
    left: 25px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/left-bottom-box.webp');
}

.paper .intro_box .right_bottom_corner {
    bottom: 25px;
    right: 25px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/right-bottom-box.webp');
}

.paper .intro_box p {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 1.5em;
    line-height: 1.6;
}

.paper img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.paper .figure-caption {
    display: block;
    text-align: center;
    font-size: 1.4em;
    color: #555;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align-last: center;
    font-weight: 600;
}


.paper h2 {
    position: relative;
    font-family: 'Arima Madurai';
    font-weight: 900;
    font-style: normal;
    color: #333;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 2.4em;
    width: fit-content;
    z-index: 3;
}

.paper h2::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -60px;
    width: 120px;
    height: 40px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/h2tl.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.paper h2::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -60px;
    width: 120px;
    height: 40px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/h2tr.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}


.paper h3 {
    position: relative;
    font-family: 'Arima Madurai';
    font-weight: 800;
    font-style: normal;
    color: #fff;
    margin-bottom: 20px;
    margin-left: 50px;
    padding: 5px 25px;
    font-size: 2.0em;
    width: fit-content;
    z-index: 3;
}

.paper h3::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -50px;
    width: 40px;
    height: 40px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/title/h3t.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.paper h3::after {
    content: '';
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background-color: #554c72;
    border-radius: 2.0em;
    z-index: -1;
}

.paper h4 {
    position: relative;
    font-family: 'Arima Madurai';
    font-weight: 600;
    font-style: normal;
    color: #444;
    margin-bottom: 20px;
    margin-left: 50px;
    padding: 5px 35px;
    font-size: 1.7em;
    width: fit-content;
    z-index: 3;
}

.paper h4::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -50px;
    width: 40px;
    height: 40px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/title/h4t.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.paper h4::after {
    content: '';
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background-color: #a99ad3;
    border-radius: 1.7em;
    z-index: -1;
}

.paper h5 {
    position: relative;
    font-family: 'Arima Madurai';
    font-weight: 600;
    font-style: normal;
    color: #666;
    margin-bottom: 20px;
    margin-left: 50px;
    padding: 5px 45px;
    font-size: 1.5em;
    width: fit-content;
    z-index: 3;
}

.paper h5::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(-50px + 20px - 12.5px);
    width: 25px;
    height: 25px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/title/h5t.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.paper h5::after {
    content: '';
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background-color: #d2c7ef;
    border-radius: 1.5em;
    z-index: -1;
}

.paper h6 {
    position: relative;
    font-family: 'Arima Madurai';
    font-weight: 600;
    font-style: normal;
    color: #666;
    margin-bottom: 20px;
    margin-left: 50px;
    padding: 5px 45px;
    font-size: 1.3em;
    width: fit-content;
    z-index: 3;
}

.paper h6::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(-50px + 20px - 7.5px);
    width: 15px;
    height: 15px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/title/h6t.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.paper h6::after {
    content: '';
    position: absolute;
    bottom: 9px;
    right: 0px;
    width: 100%;
    height: 5px;
    background-color: #d2c7ef;
    border-radius: 5px;
    z-index: -1;
}

.paper p {
    color: #333;
    font-family: 'Crimson Text', normal;
    line-height: 1.5;
    margin-bottom: 20px;
    text-indent: 0;
    font-size: 1.5em;
    text-align: justify;
    text-align-last: left;
    /* overflow-wrap: break-word;*/
    /* hyphens: auto; */
}

.paper .strong {
    font-weight: bold;
    color: #2c5f2d;
}

.paper .strong:hover {
    color: #444;
    text-decoration: underline;
}


.paper .reference {
    position: relative;
    width: 100%;
    min-height: 150px;
    background-color: #a99ad3;
    border-radius: 20px;
    margin: 40px auto 80px;
    padding: 80px;
    padding-top: 90px;
}

.paper .reference::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 15px;
    background-color: #a99ad3;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.paper .reference .left_top_corner,
.paper .reference .right_top_corner,
.paper .reference .left_bottom_corner,
.paper .reference .right_bottom_corner {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

.paper .reference .left_top_corner {
    top: 25px;
    left: 25px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/left-top-box.webp');
}

.paper .reference .right_top_corner {
    top: 25px;
    right: 25px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/right-top-box.webp');
}

.paper .reference .left_bottom_corner {
    bottom: 25px;
    left: 25px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/left-bottom-box.webp');
}

.paper .reference .right_bottom_corner {
    bottom: 25px;
    right: 25px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/right-bottom-box.webp');
}

.paper .reference .top {
    position: absolute;
    top: -40px;
    left: 80px;
    width: 80px;
    height: 80px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/reference-bottom.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
}

.paper .reference .bottom {
    position: absolute;
    bottom: -75px;
    left: 80px;
    width: 80px;
    height: 80px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/reference-bottom.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
}

.paper .reference .reference_title {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/references.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 1;
}

.paper .reference::after {
    content: '';
    position: absolute;
    bottom: -25px;
    /* 调整底部凸出的大小 */
    left: 0;
    right: 0;
    height: 50px;
    /* 调整底部凸出的大小 */
    background-color: #d4cde9;
    border-radius: 20px;
    z-index: -3;
    border-top: 1px solid #a99ad3;
    border-bottom: 1px solid #a99ad3;
}

.paper .reference .line {
    position: absolute;
    height: 1.5px;
    width: 90%;
    background-color: #a99ad3;
    z-index: -2;
}

.paper .reference .top-line {
    left: 7%;
    bottom: -10px;
}

.paper .reference .bottom-line {
    left: 4%;
    bottom: -18px;
}


.paper .reference p {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 1.2em;
    line-height: 1.6;
    text-indent: 0;
}

.paper .referlink {
    color: #acb2ef;
    font-weight: bold;
    text-decoration: underline;
}

.paper .referlink:hover {
    color: #b28dd7;
    text-decoration: underline;
}

.paper .reference a {
    color: #fff;
}

.paper .reference a:hover {
    text-decoration: underline;
}

.paper .displayboard_pic_text {
    position: relative;
    width: 135vh;
    height: 100vh;
    padding: 50px;
    margin: 20px auto;
    background-image: url(https://static.igem.wiki/teams/5858/images/template/picture-display-board/board.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.paper .displayboard_pic_text .turnup {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    margin: 0 auto;
    background-image: url(https://static.igem.wiki/teams/5858/images/template/picture-display-board/turn-up.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.paper .displayboard_pic_text .turndown {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background-image: url(https://static.igem.wiki/teams/5858/images/template/picture-display-board/turn-down.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.paper .displayboard_pic_text .turndown:hover,
.paper .displayboard_pic_text .turnup:hover {
    scale: 1.2;
    transition: all 0.5s ease;
    cursor: pointer;
}

.paper .displayboard_pic_text .brush {
    position: absolute;
    left: -8%;
    top: 58%;
    transform: translateY(-50%);
    width: 16%;
    min-height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.paper .displayboard_pic_text .brush ul {
    padding: 0;
    margin: 0 auto;
}

.paper .displayboard_pic_text .brush img {
    object-fit: contain;
}

.paper .displayboard_pic_text .brush li {
    position: relative;
    left: -10%;
    transition: left 0.5s ease;
    cursor: pointer;
}

.paper .displayboard_pic_text .brush li:hover {
    left: 0%;
}

/* 被选中的刷子往右探出 */
.paper .displayboard_pic_text .brush li.active {
    left: 20%;
}

.paper .displayboard_pic_text .bagfront {
    position: absolute;
    left: -20%;
    top: 58%;
    transform: translateY(-50%);
    width: 30%;
    height: 42%;
    background-image: url(https://static.igem.wiki/teams/5858/images/template/picture-display-board/bagfront.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 2;
    pointer-events: none;
}

.paper .displayboard_pic_text .bagback {
    position: absolute;
    left: -15%;
    top: 58%;
    transform: translateY(-50%);
    width: 30%;
    height: 42%;
    background-image: url(https://static.igem.wiki/teams/5858/images/template/picture-display-board/bagback.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.paper .displayboard_pic_text .pic_text {
    width: 100%;
    height: 100%;
}

.paper .displayboard_pic_text .pic_text h5 {
    position: relative;
    font-family: 'Arima Madurai';
    font-weight: 900;
    font-style: normal;
    color: #333;
    margin-bottom: 10px;
    padding-left: 50px;
    width: fit-content;
    z-index: 3;
    font-size: 2.0em;
}

.paper .displayboard_pic_text .pic_text h5::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 40px;
    height: 40px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/h2title-dot.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.paper .displayboard_pic_text .context {
    display: flex;
    width: 100%;
    height: 85%;
    box-sizing: border-box;
}

.paper .displayboard_pic_text .context .pic {
    flex: 0 0 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 40px;
    margin-left: 60px;
    margin-bottom: 20px;
    margin-top: 40px;
    width: 500px;
    border-radius: 40px;
    overflow: hidden;
}

.paper .displayboard_pic_text .context .text {
    overflow-y: auto;
}

.paper .displayboard_pic_text .context p {
    flex: 1 1 0;
    margin: 0;
    font-size: 1.3em;
    line-height: 1.4;
    padding-right: 20px;
}

.paper .displayboard_pic_text .context h6 {
    color: #666;
    margin-bottom: 20px;
    font-weight: bold;
    text-indent: 0;
    margin-left: 0;
    padding-right: 20px;
}

.paper .displayboard_pic_text .context img {
    width: 100%;
    height: 100%;
    margin: 0;
    max-width: 100%;
}

.paper .displayboard_pic {
    position: relative;
    width: 100%;
    /* 先占满可用宽度 */
    max-width: 1200px;
    /* 你想让它最大多大就写多少 */
    height: auto;
    /* 让高度随内容走 */
    aspect-ratio: 135 / 100;
    /* 保持原来的“宽高比” */
    padding: 50px;
    margin: 20px auto;
    background-image: url(https://static.igem.wiki/teams/5858/images/template/picture-display-board/board.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.paper .displayboard_pic .turnup {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    margin: 0 auto;
    background-image: url(https://static.igem.wiki/teams/5858/images/template/picture-display-board/turn-up.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.paper .displayboard_pic .turndown {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background-image: url(https://static.igem.wiki/teams/5858/images/template/picture-display-board/turn-down.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.paper .displayboard_pic .turndown:hover,
.paper .displayboard_pic .turnup:hover {
    scale: 1.2;
    transition: all 0.5s ease;
    cursor: pointer;
}

.paper .displayboard_pic .brush {
    position: absolute;
    left: -8%;
    top: 58%;
    transform: translateY(-50%);
    width: 16%;
    min-height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.paper .displayboard_pic .brush ul {
    padding: 0;
    margin: 0 auto;
}

.paper .displayboard_pic .brush img {
    object-fit: contain;
}

.paper .displayboard_pic .brush li {
    position: relative;
    left: -10%;
    transition: left 0.5s ease;
    cursor: pointer;
}

.paper .displayboard_pic .brush li:hover {
    left: 0%;
}

/* 被选中的刷子往右探出 */
.paper .displayboard_pic .brush li.active {
    left: 20%;
}

.paper .displayboard_pic .bagfront {
    position: absolute;
    left: -20%;
    top: 58%;
    transform: translateY(-50%);
    width: 30%;
    height: 42%;
    background-image: url(https://static.igem.wiki/teams/5858/images/template/picture-display-board/bagfront.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 2;
    pointer-events: none;
}

.paper .displayboard_pic .bagback {
    position: absolute;
    left: -15%;
    top: 58%;
    transform: translateY(-50%);
    width: 30%;
    height: 42%;
    background-image: url(https://static.igem.wiki/teams/5858/images/template/picture-display-board/bagback.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.paper .displayboard_pic .pic_text {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
}

.paper .displayboard_pic .pic_text h5 {
    position: relative;
    font-family: 'Arima Madurai';
    font-weight: 900;
    font-style: normal;
    color: #333;
    margin-bottom: 10px;
    padding-left: 50px;
    width: fit-content;
    z-index: 3;
    font-size: 2.0em;
}

.paper .displayboard_pic .pic_text h5::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 40px;
    height: 40px;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/h2title-dot.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.paper .displayboard_pic .context {
    display: flex;
    width: 100%;
    height: 90%;
    box-sizing: border-box;
    padding-left: 50px;
    padding-right: 50px;
}

.paper .displayboard_pic .context .pic {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-radius: 40px;
    overflow: hidden;
}

.paper .displayboard_pic .context p {
    flex: 1 1 0;
    margin: 0;
    font-size: 1.2em;
    line-height: 1.4;
}

.paper .displayboard_pic .context img {
    width: 100%;
    height: 100%;
    margin: 0;
    max-width: 100%;
    /* object-fit: cover; */
}

/* 锚点偏移，防止被固定头部遮挡 */
:target {
    scroll-margin-top: 80px;
}


/* back-to-top.css */
.back-to-top-btn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 999;
    width: 7vw;
    height: 7vw;
    background-image: url('https://static.igem.wiki/teams/5858/images/template/back-to-top-botton.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
    max-height: 70px;
    max-width: 70px;
    border: none;
    cursor: pointer;
    outline: none;
    transition: transform 0.1s ease-in-out, filter 0.2s ease-in-out;
}

.back-to-top-btn:hover {
    filter: brightness(80%);
    transform: scale(1.1);
}

.back-to-top-btn:active {
    transform: scale(0.8);
    filter: brightness(70%);
}

footer {
    background-color: #efebec;
}

/* --------------------------------------------- 思维导图容器样式 --------------------------------------------- */
#mindmap-container {
    /* background-image: url('https://static.igem.wiki/teams/5858/images/template/template-paper.webp'); */
    /* 你的背景图片路径 */
    /* background-size: cover;
    background-repeat: no-repeat;
    background-position: center; */
    background-color: #f0e7d8;

    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px auto;
    max-width: 100%;
    overflow-x: auto;
}

#mindmap-container .caption {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: #666;
    text-align-last: center;
}

/* --- 修正 V2：强制覆盖内联样式，解决截断和居中问题 --- */
#mindmap-container svg {
    /* 使用 !important 强制覆盖JS脚本生成的 style 属性 */
    width: 100% !important;
    /* 强制宽度占满容器 */
    height: auto !important;
    /* 强制高度自动适应 */
    display: block !important;
    /* 强制变为块级元素 */
    margin: 0 auto !important;
    /* 强制水平居中 */

    /* (可选) 也可以设置一个最小高度，以防内容过少时塌陷 */
    min-height: 400px;
}


/* 1. 节点胶囊样式 */
#mindmap-container .markmap-foreign>div>div {
    background-color: #c7adca;
    border-radius: 15px;

    padding: 5px 10px;

    font-family: 'Crimson Text', sans-serif;
    font-size: 14px;
    color: #3d3d3d;

    /* * 关键修正：
   * 1. 去除border
   * 2. 我们用一个内嵌的 box-shadow 来“伪造”一个黄色的边框。并且inset
   */
    /* border: 1.5px solid transparent; 步骤1: 真实边框变透明 */
    box-shadow: inset 0 0 0 1.5px #EDCC3E;
    /* 步骤2: 伪造1.5px的黄色内边框 */

    /* 确保div尺寸能包裹内容 */
    display: inline-block;
    box-sizing: border-box !important;

}

/* 2. 按层级设定不同的背景色 */
/* 第一层节点 */
#mindmap-container .markmap-node[data-depth="1"] .markmap-foreign>div>div {
    background-color: #554c72;
    /* 淡紫色背景 */
    color: #e6f2f7;
}

/* 第二层节点 */
#mindmap-container .markmap-node[data-depth="2"] .markmap-foreign>div>div {
    background-color: #CDC7E2;
    /* 淡绿色背景 */
}

/* 第三层及更深层节点 */
#mindmap-container .markmap-node[data-depth="3"] .markmap-foreign>div>div {
    background-color: #E7CDE8;
    /* 淡蓝色背景 */
}

#mindmap-container .markmap-node[data-depth="4"] .markmap-foreign>div>div {
    background-color: #F1E2F2;
    /* 淡蓝色背景 */
}

/* 3. 连接线样式 */
/* 选中 SVG 内所有的 path 元素，强制应用下面的样式。*/
#mindmap-container svg path {
    stroke: #BCA3D6 !important;
    stroke-width: 2px !important;
    opacity: 0.8 !important;
}

#mindmap-container svg line,
circle {
    stroke: #BCA3D6 !important;
}

/* 圆圈内部为白色 */
#mindmap-container svg g>circle {
    fill: white !important;
}

/* 修改粗细 */
#mindmap-container svg path,
#mindmap-container svg line,
#mindmap-container svg circle {
    stroke-width: 4px !important;
}

/* 4. 鼠标悬停交互效果 */
#mindmap-container .markmap-node:hover .markmap-foreign>div>div {
    background-color: #A99AD3;
    border-color: transparent;
    /* box-shadow: inset 0 0 0 1.5px #e74c3c; */
}

.content-area {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.8;
}

.content-area h2 {
    border-bottom: 2px solid #b28dd7;
    padding-bottom: 5px;
    margin-top: 30px;
}

/* --- 修正 V3：统一链接文字颜色，去除下划线 --- */
#mindmap-container .markmap-foreign a,
#mindmap-container .markmap-foreign a:visited {
    color: inherit;
    text-decoration: none;
}

#mindmap-container .markmap-foreign>div>div::after {
    background-color: #BCA3D6 !important;
    /* 将装饰线强制变为淡紫色 */
}

/* --------------------------------------------- 思维导图容器样式 --------------------------------------------- */

/* 解决锚点链接被固定导航栏遮挡的问题 */
.paper-section,
.section {
    /* 80px是导航栏高度 */
    scroll-margin-top: 90px;
}

.video {
    max-width: 100%;
    margin: 20px auto;
    height: auto;
    display: flex;
    justify-content: center;
}

em{
    font-style: italic;
}
