/* 头部样式 */
.header {
   
    color: rgb(0, 0, 0);
   
    display: flex;
    height: 13.5rem;
    flex-direction: column;
   
}

a{
    text-decoration: none;
    color: #000000; 
}



/* 导航菜单 */
.nav {
    background: #666;
    padding: 1.5rem;
    margin-bottom: 3rem;
    display: none;
}

.logo {
   
  
    
}

.logolab1{
    font-size: 10rem;
    font-style: italic;
    font-weight: 1000;
}
.logolab2{
    font-size: 4rem;
    font-weight: bold;
   
}

/* 新增轮播样式 */
.slider-container {
    position: relative;
    width: 100%;
    --width: 260px;
    --repeat-mode: auto-fit;
    display: grid;
    gap: 50px 20px;
    grid-template-columns: 1fr;
    width: 100%;
   
}

.slider-item {
    position: relative;
    transition: opacity 0.5s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255,255,255,0.8);
}

.slider-prev {
    left: 2rem;
}

.slider-next {
    right: 2rem;
}

.yincang{
    transform: scale(0);
}
/* 添加在文件任意位置 */
.wzgd {
    width: 100%;
    overflow: hidden;
    height: 12rem;
}

.wzgd p {
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    line-height: 6rem;
    font-size: 10rem;
    color: #000000;
    margin: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
.wzgd:hover p {
    animation-play-state: paused;
}

.menutitle{
    text-align: center;
    font-size: 7rem;
    line-height: 12.5rem;
    font-family: "arialbd";
}


/* 新增电脑端隐藏按钮 */
.menu-toggle {
    display: block !important;
    position: absolute;
    right: 14rem;
    top: 2rem;
    background: none;
    border: none;
    font-size: 7.4rem;
    color: #000000;
}




/* 手机端适配 (屏幕小于768px) */
@media (max-width: 768px) {
   
    .header {
        height: 25.5rem;       
    }

    .menutitle{
        text-align: center;
        font-size: 10rem;
        line-height: 22.5rem;
    }
    /* 新增汉堡菜单按钮 */
    .menu-toggle {
        font-size: 13.4rem;
       
    }

    
   
}


/* 添加网格布局 */
.imgrig__items {
    display: flex
    ;
        /* gap: 13rem 14rem; */
    flex-direction: column;
   
}



/* 响应式调整 */
@media (max-width: 768px) {
    .imgrig__items {
        gap: 20rem 14rem;
        flex-direction: column;
    }
    
    .imgrig__item {
        padding: 1.5rem;
        /* height: 90rem; */

    }
    #imgrig_text h3{
      
        font-size: 6.5rem !important;
       
    }
    .viewer-content{
        width: 100%;
        height: 70%;
    }
    .image-viewer.active {
        flex-direction: column;
    }
    .imgtext{
        width: 100%;
        height: 30%;
        align-items: flex-start;
    }
    .content{
       
        /* height: calc(100vh - 25.5rem) !important; */
    }

    .erweimacont{
        width: 120rem !important;
        height: 170rem!important;;

       
        border-radius: 3rem;
      
    }
    .erweimacont img{
        width: 90rem !important;
        height: 90rem !important;
        margin: auto;
    }
    .erweimacont span{
        font-size: 7rem !important;
    
        margin-bottom: 20rem !important;
    }
    .closeewm{
        font-size: 10rem !important;
      
        width: 20rem !important;
        height: 20rem !important;
       
        margin-bottom: 7rem !important;
    }

}

.content{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 14rem;
    /* height: calc(100vh - 13.5rem); */
}
#imgrig_text{
    text-align: left;
}

/* 图片自适应 */
.imgrig__item img {
    width: 400px;
    height: 400px;
    border-radius: 0.5rem;
    max-width: 60vw;
    max-height: 60vw;
}
#imgrig_text h3{
    margin-top: 2rem;
    height: 10%;
    font-size: 2.5rem;
    text-align: left;
    font-family: 'arialbd';
    line-height: 1;
}

.main-gallery .gallery-cell {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-gallery img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close-gallery {
    font-size: 2rem;
    cursor: pointer;
}

.gallery-cell {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-cell img {
    transition: transform 0.3s;
    max-width: none;
    cursor: grab;
    position: relative;
}

.erweima{
    position: absolute;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0;
    top: 0;
}

.erweimacont{
    width: 45rem;
    height: 60rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border-radius: 3rem;
    align-items: center;
}
.erweimacont img{
    width: 35rem;
    height: 35rem;
    margin: auto;
}
.erweimacont span{
    font-size: 3rem;
    text-align: center; 
    margin-bottom: 2rem;
}
.closeewm{
    font-size: 3rem;
    color: #ffffff;
    background: #0000005c;
    width: 6rem;
    height: 6rem;
    border: 0 slateblue;
    border-radius: 10rem;
    margin-bottom: 2rem;
}