html {
    font-size: 16px;
    /* 默认基准 */
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
        /* 平板 */
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
        /* 手机 */
    }
}

body {
    padding-top: 56px;
}

.left-aligned {
    margin-left: auto;
}

.bg-dark {
    background-color: #343a40 !important;
}

.bg-hero {
    background-color: #45b06cff;
}

/* CALLOUT */
.bd-callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e9ecef;
    border-left-width: .25rem;
    border-radius: .25rem
}

.bd-callout h4 {
    margin-bottom: 1.25rem
}

.bd-callout p:last-child {
    margin-bottom: 0
}

.bd-callout code {
    border-radius: .25rem
}

.bd-callout+.bd-callout {
    margin-top: -.25rem
}

.bd-callout-info {
    border-left-color: #5bc0de
}

.bd-callout-warning {
    border-left-color: #f0ad4e
}

.bd-callout-danger {
    border-left-color: #d9534f
}


/* menu */
.menu .logo {
    height: 53px;
    width: 53px;
}

.menu .nav-container {
    display: flex;
    margin: 0 5%;
}



.menu .nav-icon {
    height: 40px;
    width: 34px;
}



@media (max-width: 1400px) {
    .menu .container {
        margin: 0 2vw;
        max-width: 100%;
    }
}


@media (max-width: 992px) {
    .menu .container {
        margin: 0 20px;
    }
}


.menu .nav-item {
    display: flex;
    flex-direction: column;
}

.menu .nav-link {
    font-family: Arial;
    font-weight: bold;
    font-size: 18px;
    color: #FAFEE8;
    line-height: 21px;
    color: #EEB200;
    /* margin-right: 12px; */
}

.menu .nav-link:hover {
    color: #EEB200;
}

.menu .dropdown-menu {
    border-radius: 0;
    background-color: #252525;
    padding: 0;
    margin-top: 10px !important;
}

.menu .dropdown-item {
    color: #fff;
    padding: 12px 16px;
}

.menu .dropdown-item:hover {
    background-color: #EEB200;
    color: #252525;
}

.menu .dropdown-item:hover {
    background-color: #EEB200;
    color: #252525;
}


/* footer */
footer a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* members */
.members {
    background-color: #F4F4F4;
}


.members .team-title {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 0;
    font-family: Arial;
    font-weight: bold;
    font-size: 6vw;
    color: #EEB200;
    text-shadow: 0px 6px 23px rgba(37, 37, 37, 0.5);
    font-style: italic;
}

.members .member-list-container {
    overflow: hidden;
}

.members .member-list {
    margin: 0 20vw;
}

.members .member-item-container {
    border: 2px solid #EEB200;
    border-radius: 2vw;
    padding: 24px 30px;
    position: relative;
    height: 15rem;
}

.members .member-item-container .avatar {
    width: 8.889rem;
    height: 8.889rem;
    border-radius: 50%;
    border: 2px solid #F3E099;
    position: absolute;
    top: -30px;
    right: 30px;
    background-color: #BABABA;
    overflow: hidden;
}

.members .member-item-container .name {
    padding-top: 2.778rem;
}

.members .member-item-container .line {
    width: calc(100% - 7rem);
    height: 4px;
    background: linear-gradient(to right, #EEAA47, #FDE194);
}

.member-item-container .desc {
    height: 5rem;
    overflow-y: auto;
    margin: 20px 10px;
    scrollbar-color: rgba(0, 0, 0, 0.4) transparent;
    font-family: Arial;
    font-weight: 400;
    font-size: 12px;
    color: #666666;
    line-height: 20px;
}

/* WebKit (Chrome, Safari, Edge Chromium) */
.member-item-container .desc::-webkit-scrollbar {
    width: 8px;
    /* 保留宽度以显示 thumb */
}

.member-item-container .desc::-webkit-scrollbar-track {
    background: transparent;
    /* 轨道透明 */
}

.member-item-container .desc::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 2px solid transparent;
    /* 可用来产生内间距效果 */
}



/* desc */
.description {
    background-color: #F4F4F4;
}

.article-header {
    height: calc(100vh - 80px);
    background-color: #f2efe1;
    background-image: url('https://static.igem.wiki/teams/5923/images/desc-bg.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.article-header>h1 {
    font-family: Arial;
    font-weight: bold;
    font-size: 7vw;
    color: #E2A800;
    line-height: 9.611rem;
    font-style: italic;
    z-index: 10;
}



html {
    scroll-padding-top: 90px;
}

.desc-content {
    scroll-padding-top: 200px;
}

.desc-content .main {
    overflow: hidden;
    position: relative;
}


.desc-content .main section {
    margin-bottom: 50px;
}

.desc-content .main section h1 {
    font-family: Arial;
    font-weight: bold;
    font-size: 30px;
    line-height: 80px;
    color: #EEB200;
}

section h1:not(:first-of-type) {
    margin-top: 50px;
}



.desc-content .main section article {
    font-family: Arial;
    font-weight: 400;
    color: #666666;
}



/* side nav */

.side-nav {
    top: 8.333rem;
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
}

.side-nav .title {
    font-family: Arial;
    font-weight: bold;
    font-size: 1.556rem;
    color: #AC4A24;
    line-height: 2.056rem;
}

.side-nav .nav-item {
    margin: 20px 0;
    padding: 0;
}

.side-nav .nav-item>a {
    display: block;
    border-left: 2px solid #AC4A24;
    padding: 0 4.444rem 0 1.111rem;
    font-family: Arial;
    font-weight: bold;
    font-size: 14px;
    color: #E2A800;
    text-decoration: none;
}

.side-nav .nav-item>a.highlight {
    background-color: #F3E18E;
    color: #AC4A24 !important;
}

.side-nav .nav-item.child-item {
    margin: 10px 0;
    padding: 0;
}

.side-nav .nav-item.child-item>a {
    display: block;
    padding: 0 2.222rem 0 0.556rem;
    border-left: none;
    font-family: Arial;
    font-weight: normal;
    font-size: 12px;
    color: #E2A800;
    text-decoration: none;
}

.side-nav .nav-item.child-item>a.highlight {
    background-color: #F3E18E;
    color: #AC4A24 !important;
}

.anchor {
    padding: 4px;
}


/* home */

.home-container .links {
    width: 100%;
    padding: 8vw;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.home-container .links a {
    text-decoration: none;
    font-family: Maple Mono;
    font-weight: 800;
    font-size: 1.5rem;
    color: #252525;
    line-height: 3.125rem;
}

@media (max-width: 768px) {
    .home-container .links a {
        font-size: 1rem;
    }
}

.home-container .link-content {
    width: 15vw;
    height: 14vw;
    border: 0.222rem solid #AE481F;
    border-radius: 1vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-container .link-content img {
    height: 94%;
}

.home-container p {

    text-align: center;
}

.home-container .video-container {
    position: relative;
}

.home-container .video-container iframe {
    width: 60%;
    height: 30%;
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.main {
    margin-left: 20rem;
    margin-top: -180px;
}





.text-center {
    text-align: center;
}

.main section {
    font-family: Arial;
    font-weight: 400;
    font-size: 16px;
    color: #666666;
    line-height: 22px;
}

.dropdown-menu li {
    text-align: center;
}


h2 {
    font-size: 20px;
    margin-top: 18px;
}

h3 {
    font-size: 18px;
    margin-top: 8px;
}

h4 {
    font-size: 16px;
    margin-top: 8px;
}

table {
    margin-bottom: 20px;
}

img.center {
    display: block;
    margin: 0 auto;
}

p {
    text-align: justify
}

.ct {
    text-align: center;
    font-size: 14px;
}