.attachment-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 20px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f9f9f9;
    width: 360px;
}

.attachment-card .attachment-card-details {
    font-size: 14px;
}

.attachment-card .download-button {
    background-color: #000;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.attachment-card .attachment-card-icon {
    margin-right: 20px;
    width: 60px;

}

.attachment-card .download-button:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);

}

.attachment-card-details-filename {
    width: 160px;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap; /* 不换行 */
    overflow: hidden; /* 隐藏溢出的内容 */
    text-overflow: ellipsis; /* 超出部分显示省略号 */
}

.attachment-card-details > p {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

body {
    cursor: url('https://static.igem.wiki/teams/5481/ico-64.png'),auto; /* auto 是备用的默认光标 */
}



.my-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* background-color: #b3d8fc !important; */
}


.nav-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 100px;
}

.nav-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* 封图 */

.cover-img {
    width: 100%;
    margin-bottom: 10vh;
}



/* 侧边栏 */ 
#description-article-sidebar {
    overflow-y: auto !important;
    width: 15vw;
    height: 80vh;
    display: flex; /* 一开始就让它存在 */
    position: fixed;
    z-index: 100020;
    border-radius: 2em;
    padding: 20px;
    padding-bottom: 0;
    flex-direction: column;
    background-color: #FAB9B6;
    color: #FFF9EB;
    overflow: hidden;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 20%);
    font: initial;
    line-height: normal;
    left: -5vw; /* 默认隐藏在屏幕外 */
    top: 20vh;
    opacity: 0; /* 隐藏时透明度为 0 */
    transition: all 0.3s ease; /* 平滑过渡 */
}

#description-article-sidebar.show {
    left:5vw;
    opacity: 1; /* 显示时透明度为 1 */
}

#description-article-sidebar > a:hover {
    color: #c09084 !important; 
}

.sidebar-contents {
    font-size: 1.4rem !important;
    color: #FFF9EB;
    text-align: center !important;
    /* text-align: center; */
    font-family: 'Lucida Handwriting', cursive;
    font-weight: bold;
}



/* .article-sidebar-a {
    width: 100%;
    display: flex;
    flex-direction: column;
    line-height: 30px;
    font-family: Arial;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #FFF9EB;
} */

.article-sidebar-a {
    display: flex;
    align-items: center;
    padding: 8px; /* 增加内边距 */
    color: #fff;
}

.article-sidebar-a .sidebar-icon {
    flex-shrink: 0;
    width: 60px; /* 适应你的图标大小 */
    height: 60px;
    background-image: url('https://static.igem.wiki/teams/5481/description/icon1.png'); /* 默认icon1 */
    background-size: contain;
    background-repeat: no-repeat;
}

/* 当章节被激活时，图标变为icon2 */
.article-sidebar-a.active .sidebar-icon {
    background-image: url('https://static.igem.wiki/teams/5481/description/icon2.png'); /* 激活状态icon2 */
}


.sidebar-b {
    width: 95% !important;
    margin-left: 1em;
    font-size: 0.9rem;
    color: #FFF9EB;
}


.sidebar-c {
    width: 90% !important;
    margin-left: 3em;
    font-size: 0.7rem;
    color: #FFF9EB;
}

.sidebar-d {
    width: 60% !important;
    margin-left: 5em;
    font-size: 0.7rem;
    color: #FFF9EB;
}


.article-sidebar-a:hover {
    
}


  ::-webkit-scrollbar {
    width: 14px;
    height: 14px;
  }
  
  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 5px solid transparent;
  }
  
  ::-webkit-scrollbar-track {
    box-shadow: 1px 1px 5px #ffe374  inset;
  }
  
  ::-webkit-scrollbar-thumb {
    min-height: 20px;
    background-clip: content-box;
    box-shadow: 0 0 0 5px #dec355  inset;
  }
  
  ::-webkit-scrollbar-corner {
    background: transparent;
  }


  table {
    max-width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    margin-top: 20px;
    background-color: #fff;
    text-align: center;
}
th, td {
    word-wrap:break-word;
    border: 2px solid #fff;
    padding: 8px !important;
    text-align: left;
    font-size: 14px;
}
th {
    background-color: #f2f2f2;
}
tr:nth-child(odd) {
    background-color: #73cbd73d;
}

tr:nth-child(1) {
    background-color: #5ccbd7;
    font-weight: bold;
    color: #fff;
    padding: 16px 0;
}

tr:hover {
    background-color: #66d0dbc7;
}

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



/* 内容 */
.content-div {
    max-width: 70%; /* 控制内容的最大宽度 */
    margin: 40px auto; /* 居中对齐并设置顶部和底部的外边距 */
    padding: 4em; /* 内边距 */
    background-color: #FCE7E6; /* 设置内容区域的背景颜色 */
    border: 1px solid black; /* 黑色边框 */
    box-shadow: 0 4px 10px rgba(251, 203, 191, 0.5); /* 设置阴影颜色 */
    border-radius: 8px; /* 圆角边框（可选） */
}

.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: #ddd;
    z-index: 9999;
  }
  
  .progress-bar span {
    display: block;
    height: 100%;
    background-color: #4faaad;
    width: 0%;
    /* background-image: url('https://static.igem.wiki/teams/5481/footer/thumb.png');
    background-repeat: no-repeat; 
    background-size: contain; 
    background-position: right center; 
    transition: background-position 0.5s; */

    position: relative; /* 设置相对定位 */
  }

  .progress-bar span::after {
    content: ''; /* 必须设置 content 属性 */
    position: absolute;
    top: 50%;
    right: -26px;
    transform: translateY(-70%);
    width: 50px;
    height: 50px;
    background: url('https://static.igem.wiki/teams/5481/footer/thumb.png') no-repeat center center; /* 小人图片 */
    background-size: cover;
    transition: right 0.5s; /* 平滑移动效果 */
  }

.content-div a {
    color: #5aa4ae;
    word-break: break-all;
}

.content-div > a:hover {
    color: #108b96;
}

.article-top-line {
    width: 100%;
}



.descrption-article-text {
    font-size: 1.1rem;
    margin-top: 20px;
    line-height: 1.7;
}

.descrption-article-text > p {
    /* text-indent: 2em; */
    overflow-wrap: break-word;
    line-height: 1.7;
    font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", "SimHei", sans-serif;
}

.article-desc-title {
    font-size: 2.2rem;
    font-weight: 700;
    width: fit-content;
    margin: 1.5rem 0 0rem 0;
    font-family: cmunrm;
    color: #fff;
    border-radius: 30px;
    background: rgba(242, 178, 167, 1);
    /* url(https://img.js.design/assets/img/66f9200c3280c0d64ad9d8d3.png#8af1508b19d3a19e085cb571d2bacd9c) no-repeat center center;  */
    padding: 10px 50px;
    position: relative; /* 如果需要定位背景图片 */
} 


.article-desc-sub-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 1.5rem 0 0rem 0;
    color: rgba(247, 116, 87, 1);
}

.article-desc-sub-sub-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 0 0;
    /* font-family: 'Lucida Handwriting', cursive; */
}

.article-desc-sub-sub-sub-title {
    font-size: 1.0rem;
    font-weight: 700;
    margin: 1rem 0 0 0;
    
}



.content-div strong {
    font-weight: 700;
    text-decoration: underline;
}

.content-div li {
    font-size: 1.1rem;
    line-height: 1.5;
    list-style: disc;
    margin-left: 3em;
}

.content-div .italics {
    font-style:italic;
}

.descrption-article-img {
    margin: 20px auto 0 auto;
    width: 100%;
}

.descrption-article-text a {
    text-decoration: none;
    color: #90cbf7;
}

.descrption-article-text a:hover {
    text-decoration: none;
    color: #70b6eb;
}

.article-img-description {
    margin-top: 10px;
    color: #0707069a;
    font-size: 0.8rem;
    margin-bottom: 10px;
    text-align: center;
}

.article-refences {
    font-family: "Arial";
    color: #7a7d82;
}

.article-refences-title {
    margin-top: 40px;
    font-size: 1.4rem;
    font-weight: bold;
}

.article-refences-item {
    margin-top: 20px;
    font-size: 1.1rem;
}



/* 底部 */
footer {
    width: 72%;
    padding-left: 14%;
    padding-right: 14%;
    margin-top: 100px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #8f8f8f85;
    height: 230px;
    padding-top: 20px;
}

.footer-left {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-item-div {
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100px;
    font-size: 17px;
}

.footer-item-div-img {
    width: 100px;
}

.footer-item-div-text {
    margin-left: 20px;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    height: 160px;
    font-size: 17px;
    color: #fff;
    margin-top: -10px;
}




.music-player {
    text-align: center;
    background: white;
    padding: 20px;
    width: 20vw;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* margin: 0 auto; */
}
  
  .track-info {
    margin-bottom: 10px;
  }
  
  #track-name {
    color: #333;
    font-size: 18px;
    display: block;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
  }
  
  audio {
    width: 100%;
    max-width: 400px;
    outline: none;
  }
  
  audio::-webkit-media-controls-panel {
    background-color: #f0f0f0;
  }