/* 页面链接菜单样式 */
    .page-links-menu {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin-bottom: 30px;
        padding: 0;
    }

    .page-links-menu li {
        list-style: none;
    }

    .page-links-menu a {
        display: block;
        padding: 12px 10px;
        background-color: #f8f8f8;
        border-radius: 8px;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
        text-align: center;
        border: 1px solid #eaeaea;
        font-size: 16px;
        font-weight: 500;
    }

    .page-links-menu a:hover {
        background-color: #1e88e5;
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
    }

    .page-links-menu .current-menu-item a {
        background-color: #1e88e5;
        color: white;
        box-shadow: 0 3px 10px rgba(30, 136, 229, 0.2);
    }

    /* 在小屏幕上调整字体大小，但保持4列布局 */
    @media (max-width: 768px) {
        .page-links-menu a {
            padding: 8px 5px;
            font-size: 13px;
        }
    }
    
    @media (max-width: 480px) {
        .page-links-menu a {
            padding: 6px 2px;
            font-size: 11px;
        }
    }

    /* 实验室展示页面样式 */


    .post-container {
        background: #fff;
        padding: 25px;
        margin-bottom: 30px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        width: 100%;
    }

    .post-title {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 20px;
        color: #333;
    }

    .laboratory-gallery {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        margin-top: 30px;
    }

    @media (min-width: 576px) {
        .laboratory-gallery {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 992px) {
        .laboratory-gallery {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    .laboratory-item {
        transition: all 0.3s ease;
    }

    .laboratory-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .lab-image-container {
        position: relative;
        border: 1px solid #eaeaea;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
    }

    .lab-image {
        width: 100%;
        height: 250px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    /* 添加证书专用样式 */
    .certificate-gallery .lab-image {
        height: 350px;
        object-fit: contain;
        background-color: #f8f8f8;
    }
    
    .certificate-gallery .lab-image-container {
        border: 1px solid #ddd;
        background-color: #f8f8f8;
    }
    
    /* 为证书页面添加特殊样式 */
    .page-template-page-gallery .laboratory-gallery {
        margin-bottom: 50px;
    }
    


    .lab-image-container:hover .lab-image {
        transform: scale(1.05);
    }

    .lab-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 10px;
        text-align: center;
    }

    /* 模态框样式 */
    .gallery-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background-color: rgba(0, 0, 0, 0.9);
        display: none;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        position: relative;
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
    }

    .close-modal {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 30px;
        color: #fff;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 10;
    }

    .image-container {
        position: relative;
        text-align: center;
    }

    .modal-image {
        max-height: 80vh;
        max-width: 100%;
        margin: 0 auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .modal-caption {
        color: #fff;
        text-align: center;
        margin-top: 15px;
        font-size: 20px;
        font-weight: bold;
    }

    .modal-description {
        color: #fff;
        text-align: center;
        margin-top: 10px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.5;
    }

    .nav-button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #fff;
        font-size: 40px;
        opacity: 0.7;
        cursor: pointer;
        transition: opacity 0.3s;
    }

    .nav-button:hover {
        opacity: 1;
    }

    .prev-button {
        left: 15px;
    }

    .next-button {
        right: 15px;
    }

    .pagination {
        position: absolute;
        bottom: -35px;
        left: 0;
        right: 0;
        text-align: center;
    }

    .pagination span {
        color: #fff;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 5px 15px;
        border-radius: 20px;
        display: inline-block;
    }

    /* 实验室图片网格布局响应式调整 */
    @media (max-width: 768px) {
        .laboratory-gallery {
            grid-template-columns: repeat(2, 1fr);
        }

        .lab-image {
            height: 180px;
        }

        .modal-content {
            width: 95%;
        }

        .nav-button {
            font-size: 30px;
        }
    }

    @media (max-width: 480px) {
        .laboratory-gallery {
            grid-template-columns: repeat(1, 1fr);
        }

        .lab-image {
            height: 220px;
        }

        .modal-caption {
            font-size: 16px;
        }

        .modal-description {
            font-size: 14px;
        }
    }

    /* 添加显示模态框的样式 */
    .gallery-modal.show {
        display: flex;
    }

    /* 当模态框打开时禁止页面滚动 */
    body.modal-open {
        overflow: hidden;
    }