/*  ===================================  Dry Lab Style ============================================== */
    
/* 卡片导航样式 */
.card-navigation {
    /* position: relative;
    top: 20vh; */
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30vh 20px 0 20px;
    z-index: 5;
    background: linear-gradient(to right, #fcfdff, #d1e3fc);
}

.nav-card {
    width: 220px;
    height: 240px;
    background: white;
    border-radius: 16px;
    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: 65%;
    padding-top: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-text {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    color: #4e659c;
    background: white;
}

/* 悬浮导航按钮 */
.doc-nav-button {
    position: fixed;
    bottom: 130px;
    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: 200px;
        height: 240px;
    }

    .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: 140px;
    }

    .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;
    }
}




/*  =======================  公式的格式：公式居中，编号在右边 */

.equation-container {
    width: 100%;
    text-align: center;
}

.equation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1em 0;
    position: relative;
}

.equation-content {
    font-family: equation;
    flex: 1;
    text-align: center;
    /* 防止编号挤占公式空间 */
}

.equ-num {
    position: absolute;
    right: 0;
}

.desc-img1,
.desc-img2,
.desc-img3,
.desc-img4,
.desc-img5 {
    width: 85%;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    text-align: center;

    display: flex;
    align-items: center;
    justify-self: center;
    flex-direction: column;
}



.desc-img1 img {
    display: block;
    width: 100%;
    margin: 0 auto;
    object-fit: contain;
    flex-shrink: 0;
}

.desc-img2 img {
    display: block;
    width: 50%;
    margin: 0 auto;
    object-fit: contain;
    flex-shrink: 0;
}

.desc-img3 img {
    display: block;
    width: 50%;
    margin: 0 auto;
    object-fit: contain;
    flex-shrink: 0;
}

.desc-img4 img {
    display: block;
    width: 70%;
    margin: 0 auto;
    object-fit: contain;
    flex-shrink: 0;
}

.desc-img5 img {
    display: block;
    width: 70%;
    margin: 0 auto;
    object-fit: contain;
    flex-shrink: 0;
}


/* 图注 */
.sub-img1-cpt {
    margin-top: 2px;
    margin-bottom: 10px;
    color: #000;
    font-size: 20px;
    font-weight: 700;
}

a {
    text-decoration: none;
    /* 核心属性：去掉下划线 */
    color: #401179e1;
    /* 设置链接颜色 */
}

a:hover {
    text-decoration: underline;
    /* 悬停时显示下划线 */
    color: #117fc9;
    /* 悬停时改变颜色 */
}