@font-face {
    font-family: 'apple-chancery';
    src: url('https://static.igem.wiki/teams/5015/wiki/fonts/apple-chancery-regular.ttf');
}

@font-face {
    font-family: 'pilgrim-italic';
    src: url('https://static.igem.wiki/teams/5015/wiki/fonts/pilgrim-italic.ttf');
}
a {
    font-family: 'pilgrim-italic' !important;
}


body {
    background-color: #fff !important;
}

/* 文案描述相关 */
.page-content {
    background-color: #fff;
    width: 100vw;
    position: relative;
    min-height: 200vh;
    
}

.page-content-box {
    width: 80vw;
}

/* 文案描述-目录相关 */
.sidebar {
    background-color: #c6e1be;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    width: 24%;
    padding: 30px 20px;

    position: sticky;
    top: 80px;
    height: 100vh;
    overflow-y: auto;
}

/* 滚动条 */
/* 初始状态下的滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 4px; /* 设置滚动条的宽度 */
    background-color: #F5F5F5; /* 设置滚动条的背景颜色 */
    transition: width 0.3s ease; 
}

/* 滚动条滑块的样式 */
.sidebar::-webkit-scrollbar-thumb {
    background-color: #000000; /* 设置滑块的颜色 */
    border-radius: 2px; /* 设置滑块的圆角 */
    

}

/* 滚动条轨道的样式 */
.sidebar::-webkit-scrollbar-track {
    background-color: #F5F5F5; /* 设置轨道的颜色 */
}

/* 鼠标悬浮在滚动区域时的滚动条样式 */
.sidebar:hover::-webkit-scrollbar {
    width: 12px; /* 设置滚动条宽度变大 */
}

/* 鼠标悬浮在滚动区域时的滑块样式 */
.sidebar:hover::-webkit-scrollbar-thumb {
    border-radius: 6px; /* 设置滑块的圆角变大 */
}


.sidebar-title {
    font-weight: bold;
    font-size: 3rem;
    margin-bottom: 30px;
}

.sidebar>a {
    text-decoration: none;
    width: 80%;
    margin: 10px 0;
    color: black; 
    font-family: auto !important;   
}

.sidebar-item {
    width: 100%;
}


.sidebar-item-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 8px;
    transition: .2s;
}


.sidebar-item-text {
    transition: .2s;
    font-size: 1.4rem;
    width: 80%
}



.sidebar-item:hover>.sidebar-item-circle {
    background-color: #6595c7;
}

.sidebar-item:hover>.sidebar-item-text {
    
}

.sidebar-item-text-active {
    
}

.sidebar-item-circle-active {
    background-color: #6595c7;
}



/* 二级 */

.sidebar-item-b {
    width: 90%;
    margin-left: 10%;
}

.sidebar-item-b:hover>.sidebar-item-circle-b {
    
}

.sidebar-item-b:hover>.sidebar-item-text-b {
    
}



.sidebar-item-circle-b {
    
}

.sidebar-item-text-b {
    transition: .2s;
    font-size: 1rem;
    margin-left: 2rem;
}


/* 文案描述-正文相关 */

.desc-content {
    width: 60%;
    margin: 0 auto;
    padding-top: 4rem;
}

/* 标题文本 */
.desc-content-title {
    margin: 30px 0;
    width: 100%;
}

.desc-content-title-text {
    font-size: 2.2rem;
    font-weight: bold;
    font-family: 'apple-chancery';
}

.desc-content-title-b {
    margin: 20px 0;
    width: 100%;
    
}


.desc-content-title-text-b {

    width: 100%;

    font-size: 1.7rem;
    font-weight: bold;
    font-family: 'apple-chancery';
}

.desc-content-title-text-c {

    width: 100%;

    font-size: 1.3rem;
    font-weight: bold;
    font-family: 'apple-chancery';
}


/* 普通文本 */
.descrption-article-text {
    border-bottom: 1.7rem solid transparent;
}

.descrption-article-text>p {
    font-size: 1.4rem !important;

    line-height: 1.7 !important;
    font-family: 'Times New Roman', Times, serif;
    overflow: inherit;
    word-wrap: break-word;
    margin: 0;
}

/* 视频 */
.desc-content iframe {
    margin-left: calc(50% - 280px);
}

/* PDF */
.desc-content-pdf {
    margin-left: 0 !important;
}


/* 列表 */
.desc-content ul,
ol {
    border-bottom: 1.7rem solid transparent;

}

.desc-content ul,
ol li {
    font-size: 1.4rem !important;
    line-height: 1.7 !important;
    font-family: 'Times New Roman', Times, serif;
    overflow: inherit;
    word-wrap: break-word;
}


/* 图片 */
.desc-content img {
    margin: 20px 10%;
    width: 80%;
}

.desc-content-img-desc {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    color: #919090;
    margin-top: -10px;
}

/* 图片 -- 新 */
.desc-imgs-1 {
    width: 80%;
    margin: 0 auto;
}

.desc-imgs-2 {
    width: 80%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}



.desc-imgs-2 > img {
    width: 49%;
    height: auto
}

.desc-imgs-3 {
    width: 80%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin: 0 auto;
}

.desc-imgs-3 > img {
    width: 33%;
    height: auto
}

.desc-img-desc {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    color: #919090;
    margin-top: -10px;
}

.desc-content p {
    font-family: 'Times New Roman', Times, serif;

}



/* 超链接 */
.desc-content a {
    color: #2d89e5;
    text-decoration: none;
}

.desc-content a:hover {
    color: #0a58ca;
}


/* 表格 */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
    vertical-align: middle;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #e6e6e6;
}