html {
    /*a标签平滑跳转*/
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
}

/* 定义滚动条的宽度和高度 */
::-webkit-scrollbar {
    width: 10px;
    height: 0px;
}

/* 定义滚动条滑块的样式 */
::-webkit-scrollbar-thumb {
    background: #ffda94;
    border-radius: 50px;
}

/* 定义滚动条滑块的hover效果 */
::-webkit-scrollbar-thumb:hover {
    background: #ffa704;
}

/* 定义滚动条轨道的样式 */
::-webkit-scrollbar-track {
    /* border-radius: 50px; */
    background-color: #B6D4AC;
}

/* 左侧导航栏滚动条样式-隐藏 */
nav::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

/* 头部样式 */
header {
    background: #B6D4AC;
    color: white;
    padding: 10px 30px;
    display: flex;
    /* justify-content: space-between; 主轴方向两端对齐 */
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header h1 {
    margin: 0 0 0 10px;
    font-size: 28px;
    width: 400px;
    flex: 2;
}

.top-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    width: 100%;
    height: 100%;
}

.top-nav ul li {
    float: left;
    width: 152px;
    height: 100%;
    text-align: center;
    line-height: 50px;
    font-weight: 500;
    margin: 0 -20px;
}

.top-nav ul li:nth-child(6) {
    margin: 0 20px;
}

.top-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    /* font-family: Georgia, 'Times New Roman', Times, serif; */
    transition: color 0.3s;
}

.top-nav ul li {
    color: white;
    text-decoration: none;
    font-size: 20px;
    /* font-family: Georgia, 'Times New Roman', Times, serif; */
    transition: color 0.3s;
}

.top-nav ul li:hover {
    color: #637a5e;
}

.top-nav ul li a:hover {
    color: #637a5e;
}

.top-nav ul li .nav1 {
    overflow: hidden;
    position: absolute;
    left: 90px;
    width: 160px;
    height: 0;
    background-color: #B6D4AC;
    border-radius: 5px;
    transition: height 0.2s, border 0.2s linear;
}

.top-nav ul li:hover .nav1 {
    height: 105px;
    z-index: 10;
}

.top-nav ul li:hover .nav1 a:hover {
    color: #B6D4AC;
    background-color: #ffffff;
    border-radius: 5px;

}

.top-nav ul li .nav1 li {
    margin: 8px;
    width: 140px;
    height: 30px;
    line-height: 30px;
}

.top-nav ul li .nav2 {
    overflow: hidden;
    position: absolute;
    left: 200px;
    width: 160px;
    height: 0;
    background-color: #B6D4AC;
    border-radius: 5px;
    transition: height 0.2s, border 0.2s linear;
}

.top-nav ul li:hover .nav2 {
    height: 150px;
    z-index: 10;
}

.top-nav ul li:hover .nav2 a:hover {
    color: #B6D4AC;
    background-color: #ffffff;
    border-radius: 5px;
}

.top-nav ul li .nav2 li {
    margin: 8px;
    width: 145px;
    height: 30px;
    line-height: 30px;
}

.top-nav ul li .nav3 {
    overflow: hidden;
    position: absolute;
    left: 310px;
    width: 166px;
    height: 0;
    background-color: #B6D4AC;
    border-radius: 5px;
    transition: height 0.2s, border 0.2s linear;
}

.top-nav ul li:hover .nav3 {
    height: 240px;
    z-index: 10;
}

.top-nav ul li:hover .nav3 a:hover {
    color: #B6D4AC;
    background-color: #ffffff;
    border-radius: 5px;
}

.top-nav ul li .nav3 li {
    margin: 8px;
    width: 150px;
    height: 30px;
    line-height: 30px;
}

.top-nav ul li .nav4 {
    overflow: hidden;
    position: absolute;
    left: 438px;
    width: 140px;
    height: 0;
    background-color: #B6D4AC;
    border-radius: 5px;
    transition: height 0.2s, border 0.2s linear;
}

.top-nav ul li:hover .nav4 {
    height: 55px;
    z-index: 10;
}

.top-nav ul li:hover .nav4 a:hover {
    color: #B6D4AC;
    background-color: #ffffff;
    border-radius: 5px;
}

.top-nav ul li .nav4 li {
    margin: 8px;
    width: 125px;
    height: 30px;
    line-height: 30px;
}

.top-nav ul li .nav5 {
    overflow: hidden;
    position: absolute;
    left: 565px;
    width: 195px;
    height: 0;
    background-color: #B6D4AC;
    border-radius: 5px;
    transition: height 0.2s, border 0.2s linear;
}

.top-nav ul li:hover .nav5 {
    height: 195px;
    z-index: 10;
}

.top-nav ul li:hover .nav5 a:hover {
    color: #B6D4AC;
    background-color: #ffffff;
    border-radius: 5px;
}

.top-nav ul li .nav5 li {
    margin: 8px;
    width: 180px;
    height: 30px;
    line-height: 30px;
}

.top-nav ul li div ul {
    width: 100%;
    height: 0px;
    display: flex;
    flex-direction: column;
}

.top-nav ul li div ul li a {
    display: block;
    /*填充li */
    height: 30px;
    padding: 5px;
    border-radius: 5px;
    color: #ffffff;
    transition: color 0.3s, background-color 0.3s;
    /*添加颜色变化的过渡效果 */
}

.top-nav {
    position: relative;
}

.top-nav ul .nav-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100%/7*1);
    height: 6px;
    border-radius: 2px;
    transition: .5s;
}

.top-nav ul li:nth-child(1):hover~.nav-box {
    /* left: calc(100%/7*0); */
    left: 0;
    width: 110px;
    background-color: #ffda94;
}

.top-nav ul li:nth-child(2):hover~.nav-box {
    /* left: calc(100%/7*1); */
    left: 116px;
    background-color: #ffda94;
}

.top-nav ul li:nth-child(3):hover~.nav-box {
    /* left: calc(100%/7*2); */
    left: 230px;
    background-color: #ffda94;
}

.top-nav ul li:nth-child(4):hover~.nav-box {
    /* left: calc(100%/7*3); */
    left: 340px;
    background-color: #ffda94;
}

.top-nav ul li:nth-child(5):hover~.nav-box {
    /* left: calc(100%/7*4); */
    left: 450px;
    background-color: #ffda94;
}

.top-nav ul li:nth-child(6):hover~.nav-box {
    /* left: calc(100%/7*5); */
    left: 600px;
    background-color: #ffda94;
}

.top-nav ul li:nth-child(7):hover~.nav-box {
    /* left: calc(100%/7*6); */
    left: 746px;
    background-color: #ffda94;
}

.logo {
    width: 70px;
}

/* 容器样式 */
.container {
    margin-top: 70px;
    /* 留出顶部空间以适应固定头部 */
}

/* 左侧导航栏样式 */
nav {
    float: left;
    width: 200px;
    height: 610px;
    background-color: #daefd600;
    padding: 20px;
    position: absolute;
    top: 720px;
    z-index: 999;
    /* 提升层级 */
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.149); */
    border-right: 5px dotted #daefd6;
    transition: top ease;
    overflow: scroll;
}

nav.show {
    position: fixed;
    top: 70px;
}

nav h1 {
    font-size: 25px;
    margin: 0;
}

nav ul {
    list-style-type: none;
    /* 去掉列表样式 */
    padding: 0;
}

nav ul li {
    margin: 10px 0;
}

.nav-a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    background-color: #B6D4AC;
    border-radius: 10px;
    transition: background 0.3s;
    transition: transform 0.3s ease;
}

.nav-a:hover {
    transform: scale(0.9);
    /*方块缩小*/
}

.nav-a.active {
    background-color: #ffd371;
}

.submenu-items {
    display: none;
    list-style: disc;
}

nav ul li::marker {
    color: #70b4a1;
    font-size: 20px;
}

.submenu-item {
    margin-left: 25px;
}

.submenu-item a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    width: 150px;
    background-color: #B6D4AC;
    border-radius: 10px;
    transition: all 0.5s ease;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 15px 0;
    background: #B6D4AC;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow: hidden;
}

footer p {
    margin: 0;
    /* 去掉默认外边距 */
    font-size: 14px;
    /* 字体大小 */
    color: #ffffff;
}

.foot1{
    margin: 30px 150px 50px 150px;
}

.foot1-1{
    display: flex;
    width: 100%;
}

.foot1-1 div{
    margin: 20px 0;
    flex: 1;
}

.foot1-2{
    display: flex;
    width: 100%;
}

.foot1-2 div{
    margin: 0;
    flex: 1;
}

.foot2 div{
    width: 100%;
    display: flex;
}

.foot2 div div{
    font-size: 25px;
    font-weight: bolder;
    width: 550px;
    text-align: center;
    align-items: center;
}

.foot2-2{
    position: absolute;
    top: 270px;
    left: 320px;
}

.foot2-3{
    position: absolute;
    top: 440px;
    left: 320px;
}

.foot2-4{
    position: relative;
    top: -20px;
    left:800px;
}

.foot2-5{
    position: relative;
    top: 0px;
    left: 800px;
}

.foot3{
    position: absolute;
    top: 470px;
    left: 30px;
    font-size: 20px;
    font-weight: 500;
    text-align: left;
}

.foot4{
    display: flex;
    position: relative;
    left: 300px;
}

.foot4 div{
    margin: 10px 20px;
}

.foot4 a{
    color: #456b37;
    text-decoration: none;
}

.footImg1{
    width: 250px;
    position: absolute;
    left: 50px;
    top: 200px;
}

.footImg2{
    width: 150px;
    margin-right: 20px;
}

.footImg3{
    width: 150px;
    margin-right: 20px;
}

.footImg4{
    width: 150px;
    margin-right: 20px;
}

.footImg5{
    width: 150px;
    margin-right: 20px;
}

/* 进度条样式 */
.progress-container {
    position: fixed;
    top: 0;
    z-index: 1001;
    width: 100%;
    background-color: #B6D4AC;
}

.progress-bar {
    height: 5px;
    background: linear-gradient(to right, #F5DEB3, #ffda94);
    width: 0%;
    border-radius: 1px;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 0vw;
    right: 0vw;
    background-image: url(https://static.igem.wiki/teams/5818/wiki-image/backtotop1.webp);
    background-color: #b6d4ac00;
    background-size: 100%;
    border: none;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    transform: rotate(360deg);
    transition: transform 1s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.leaderBox {
    height: 650px;
    text-align: center;
    overflow: hidden;
    background-image: url(https://static.igem.wiki/teams/5818/wiki-image/starts.webp);
    background-size: 500px;
}

.boll1 {
    background-color: #809d75;
    width: 500px;
    height: 500px;
    border-radius: 100%;
    box-shadow: -180px -150px 0px #B6D4AC;
    position: relative;
    left: 200px;
    top: 140px;
}

.boll2 {
    background-color: #feffbb;
    width: 400px;
    height: 400px;
    border-radius: 100%;
    box-shadow: -150px 200px 0px #fae082;
    position: relative;
    left: 750px;
    top: -480px;
}

.boll3 {
    background-color: #d2f0f7;
    width: 300px;
    height: 300px;
    border-radius: 100%;
    box-shadow: 180px -180px 0px #bad5db;
    position: relative;
    left: 950px;
    top: -580px;
}

.allTitleImg {
    width: 500px;
    position: relative;
    left: -480px;
    top: -1150px;
}

.leaderBox h1 {
    font-size: 150px;
    color: #f8d3dc;
    text-shadow: 8px 8px 0px #448aab;
    /* -webkit-text-stroke: 5px #d49ba9; */
    position: relative;
    left: 200px;
    top: -1600px;
}

.pages-title {
    margin-top: -150px;
    width: 100%
}

/* 加载动画容器 */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #B6D4AC;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

/* 加载动画隐藏状态 */
.loader-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-gif{
    width: 800px;
}

/* 加载文本样式 */
.loading-text {
    margin-top: 20px;
    font-size: 50px;
    color: #446936;
    font-weight: 500;
    animation: pulse 1.5s infinite;
}

/* 文本脉冲动画 */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

