/*  ===================================  Dry Lab Style ============================================== */


/*  ====================================  engineering 的顶部：一张图片和文字，竖向排列   ======================================== */
.engi-top {
    position: relative;
    top: 10vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 90vh;
    margin: 0 auto;
    background: linear-gradient(to right, #fcfdff, #d1e3fc);
    padding: 60px auto;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.engi-top-container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 80%;
    height: 100%;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
 .top-box .title-desc {
    position: relative;
    top: 29vh;
    left: 9vw;
    padding-left: 12px;
    font-size: 2vw;
    font-weight: 500;
    color: #38466b;
}
.engi-top-img {
    margin: 40px auto 20px;
    width: 60%;
    max-width: 900px;
}

.engi-top-img img {
    width: 95%;
    height: auto;
    margin-left: -5%;
    transition: transform 0.3s ease;
}

.engi-top-text {
    font-size: 18px;
    margin-top: 10px;
    width: 90%;
    padding-top: 10px;
    text-align: center;
    margin-bottom: 5px;
    border-top: 2px solid #6b3d3d;
    color: #6b3d3d;
    max-width: 900px;
    font-family: 'play';
    font-weight: 700;
    line-height: 1.8;
}

.engi-top-text1 {
    font-size: 18px;
    margin-top: 5px;
    width: 90%;
    padding-top: 5px;
    text-align: justify;
    margin-bottom: 20px;
    color: #6b3d3d;
    max-width: 900px;
    font-family: 'play';
    font-weight: 700;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .engi-top {
        padding: 25px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .engi-top-text {
        font-size: 1rem;
    }
}






/*  ====================================  engineering 的  切换卡片   ======================================== */

/* 卡片导航样式 */
.card-navigation {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 10vh 60px 0 60px;
    z-index: 5;
    background: linear-gradient(to right, #fcfdff, #d1e3fc);
    margin-bottom: -140px;
}

.nav-card {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.nav-card.active {
    box-shadow: 0 0 0 3px #4e659c, 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-card.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(78, 101, 156, 0.1);
    z-index: 2;
}

.card-image {
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.card-image1 {
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.card-image2 {
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.card-image3 {
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.card-image img {
    width: 67%;
    height: 110%;
    object-fit: cover;
}
.card-image1 img {
    width: 70%;
    height: 95%;
    object-fit: cover;
}

.card-image2 img {
    width: 95%;
    height: 93%;
    object-fit: cover;
}

.card-image3 img {
    width: 80%;
    height: 100%;
    object-fit: cover;
}

.card-text {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #4e659c;
    background: white;
}

/* 悬浮导航按钮 */
.doc-nav-button {
    position: fixed;
    bottom: 60px;
    width: auto;
    min-width: 50px;
    height: 60px;
    padding: 0 15px;
    background-color: rgba(78, 101, 156, 0.8);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    margin-bottom: 10%;
}

.doc-nav-prev {
    left: 300px;
    flex-direction: row;
}

.doc-nav-next {
    right: 20px;
    flex-direction: row-reverse;
}

/* 按钮图标样式 */
.doc-nav-button .button-icon {
    margin: 0 4px;
    font-size: 14px;
    flex-shrink: 0;
}

/* 按钮文本样式 */
.doc-nav-button .button-text {
    font-size: 18px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-nav-button:hover {
    background-color: rgba(78, 101, 156, 1);
    transform: scale(1.1);
}

/* 当按钮在footer区域内时的样式 */
.footer-active .doc-nav-button {
    position: absolute;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
}

.footer-active .doc-nav-prev {
    left: 20px;
}

.footer-active .doc-nav-next {
    right: 20px;
}


/* 响应式调整 */
@media (max-width: 1100px) {
    .card-navigation {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-card {
        width: 150px;
        height: 190px;
    }

    .card-image {
        height: 120px;
    }
}

@media (max-width: 700px) {
    .card-navigation {
        margin-top: -80px;
    }

    .nav-card {
        width: 120px;
        height: 160px;
    }

    .card-image {
        height: 100px;
    }

    .card-text {
        font-size: 14px;
    }

    .doc-nav-button {
        width: 40px;
        height: 40px;
        padding: 0 10px;
    }

    .doc-nav-button .button-text {
        display: none;
    }

    .doc-nav-button .button-icon {
        margin: 0;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    .doc-nav-button .button-text {
        max-width: 80px;
    }
}

@media (max-width: 500px) {
    .card-navigation {
        gap: 10px;
    }

    .nav-card {
        width: 100px;
        height: 140px;
    }

    .card-image {
        height: 80px;
    }

    .card-text {
        font-size: 12px;
        padding: 8px;
    }

    .doc-nav-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .doc-nav-prev {
        left: 15px;
    }

    .doc-nav-next {
        right: 15px;
    }
}




/*rgba(90, 172, 153, 0.299)*/

/*  ================================  iter  ============================== */

.iteration-card {
    height: 80vh;
    background-color: rgba(159, 134, 199, 0.164);
    border-radius: 10px;
    margin: 12vh auto;
    padding: 30px 10px 0px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.2;
    transition: opacity 1.0s ease;
    box-sizing: border-box;
}

.iteration-card.active-iter {
    opacity: 1;
}

.iteration-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px;
    gap: 30px;
    margin-top: -30px;
}

/*  ========== 每一个卡片的引导文字  ======= */
.doc-intro-text {
    padding: 40px 50px 10px;
    max-width: 1000px;
    margin-top: 30px;
    border-radius: 12px;
    background-color: rgba(91, 149, 197, 0.781);
}

.doc-intro-text p {
    font-size: 20px;
    margin-top: -10px;
    line-height: 1.7;
    color: #efeae3;
    text-align: justify;
}

/* ============== 左侧迭代进度--图片容器 ======== */
.image-panel {
    flex: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.iter-image {
    position: absolute;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}



.iter-image.active {
    transform: scale(1.2);
    opacity: 1;
    z-index: 2;
}

/* 位置：左上、右上、左下、右下（保留你的自定义位置） */
.iter-image[data-pos="0"] {
  
    height: 48px;
    top: 10px;
    left: 50px;
}

.iter-image[data-pos="1"] {
    height: 105px;
    bottom: 12px;
    right: -32px;
}

.iter-image[data-pos="2"] {
    height: 48px;
    bottom: -13px;
    left: 50px;
}

.iter-image[data-pos="3"] {
    height: 105px;
    bottom: 12px;
    left: 28px;
}

/*   =============== 右侧文字部分  =============== */
.text-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 72vh;
    box-sizing: border-box;
}

/* —— 新增：可滚动的文字内容区 —— */
.text-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px 30px 10px;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f0f0f0;
}

.text-content::-webkit-scrollbar {
    width: 6px;
}

.text-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.text-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.text-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.text-content h2 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 6px;
    padding: 0;
    color: #333333;
    border-bottom: 3px solid #e8a921c2;
    padding-bottom: 8px;
}

.step-text p {
    font-size: 18px;
    line-height: 1.4;
    color: #000000;
}

/* —— Step 内嵌图片样式（新增）—— */
.step-img,
.step-img1,
.step-img2,
.step-img3,
.step-img4,
.step-img5,
.step-img6,
.step-img7,
.step-img8 {
    margin: 20px 0;
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px 30px;
}

.step-img img {
    width: 95%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(142, 61, 61, 0.1);
}

.step-img1 img {
    width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(142, 61, 61, 0.1);
}

.step-img2 img {
    width: 80%;
    height: auto;
    border-radius: 8px;
    margin-left: 5%;
    box-shadow: 0 4px 8px rgba(142, 61, 61, 0.1);
}

.step-img3 img {
    width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(142, 61, 61, 0.1);
}

.step-img4 img {
    width: 102%;
    height: auto;
    margin-left: -1%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(142, 61, 61, 0.1);
}

.step-img5 img {
    width: 65%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(142, 61, 61, 0.1);
}

.step-img6 img {
    width: 72%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(142, 61, 61, 0.1);
}

.step-img7 img {
    width: 88%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(142, 61, 61, 0.1);
}

.step-img8 img {
    width: 58%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(142, 61, 61, 0.1);
}

.step-img .step-img-caption1 {
    margin-top: 8px;
    font-size: 12px;
    color: #000;
}
.step-img .step-img-caption2 {
    margin-top: 8px;
    font-size: 15px;
    color: #666;
    text-align: justify;
}

.step-img1 .step-img-caption1 {
    margin-top: 8px;
    font-size: 12px;
    color: #000;
}
.step-img1 .step-img-caption2 {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    text-align: justify;
}

.step-img2 .step-img-caption1 {
    margin-top: 8px;
    font-size: 12px;
    color: #000;
}
.step-img2 .step-img-caption2 {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    text-align: justify;
}

.step-img3 .step-img-caption1 {
    margin-top: 8px;
    font-size: 12px;
    color: #000;
}
.step-img3 .step-img-caption2 {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    text-align: justify;
}

.step-img4 .step-img-caption1 {
    margin-top: 8px;
    font-size: 12px;
    color: #000;
}
.step-img4 .step-img-caption2 {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    text-align: justify;
}

.step-img5 .step-img-caption1 {
    margin-top: 8px;
    font-size: 12px;
    color: #000;
}
.step-img5 .step-img-caption2 {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    text-align: justify;
}

.step-img6 .step-img-caption1 {
    margin-top: 8px;
    font-size: 12px;
    color: #000;
}
.step-img6 .step-img-caption2 {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    text-align: justify;
}

.step-img7 .step-img-caption1 {
    margin-top: 8px;
    font-size: 12px;
    color: #000;
}
.step-img7 .step-img-caption2 {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    text-align: justify;
}

.step-img8 .step-img-caption1 {
    margin-top: 8px;
    font-size: 12px;
    color: #000;
}
.step-img8 .step-img-caption2 {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    text-align: justify;
}

/*  ===== iteration 右侧区域的按钮 ==== */
.iter-nav-buttons {
    position: sticky;
    bottom: 0px;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 6px 0;
    /* background: rgb(255, 212, 201); */
    background: transparent;
    z-index: 10;
    position: sticky !important;
    bottom: 10px !important;
}

.iter-btn {
    padding: 10px 24px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: #4e659c;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.iter-btn:hover:not(:disabled) {
    background: #3a507a;
}

.iter-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}





/*========================================表格=============================================*/
.igem-table-wrapper {
  text-align: center;
  margin: 40px 0;
}

.igem-table-title {
  font-size: 15px;
  color: #000000;
  margin-bottom: 15px;
  text-align: center;
}

.igem-table {
  border-collapse: collapse;
  width: 90%;
  margin: 0 auto;
  font-size: 15px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(202, 124, 124, 0.15);
}

.igem-table thead {
  background-color: #3c8dbc; /* iGEM 蓝色 */
  color: white;
  font-size: 16px;
}

.igem-table th, .igem-table td {
  border: 1px solid #ddd;
  padding: 10px 14px;
}

.igem-table tbody tr:nth-child(even) {
  background-color: #f7fbff;
}

.igem-table tbody tr:hover {
  background-color: #e3f2fd;
  transition: 0.2s;
}




/*======================================三线表==============================================*/
.three-line-table-wrapper {
  text-align: center;
  margin: 40px 0;
}

.three-line-table-title {
  font-family: "Open Sans", sans-serif;
  font-size: 17px;
  color: #2a5d8f;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

/* 表格整体样式 */
.three-line-table {
  border-collapse: collapse;
  width: 85%;
  margin: 0 auto;
  font-family: "Courier New", monospace;
  font-size: 15px;
  text-align: center;
}

/* 三线表的“上中下三条线” */
.three-line-table thead tr:first-child {
  border-top: 2px solid #000;
  border-bottom: 1.5px solid #000;
}

.three-line-table tbody tr:last-child {
  border-bottom: 2px solid #000;
}

/* 单元格间距 */
.three-line-table th,
.three-line-table td {
  padding: 6px 12px;
}

/* 去掉其他边框 */
.three-line-table th,
.three-line-table td {
  border-left: none;
  border-right: none;
}



/*===================================参考文献======================================*/
.refer-title {
  font-size: 16px;
  font-weight: 600;
  color: #2a5d8fd8;              /* iGEM 蓝色标题 */
  margin-top: 100px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  position: relative;
  text-align: left;
  border-bottom: 1px solid rgba(23, 22, 24, 0.42);
}

/* 引用正文部分 */
.refer-content {
  font-size: 14px;
  color: #00000081;
  margin-top: 8px;
  line-height: 1.6;
  text-align: left;
  padding-left: 4px;
} 