/* 头部样式 */
.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: 10rem;
  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;
  }
  .viewer-content button {
    font-size: 18rem !important;
  }
}

/* 添加网格布局 */
.imgrig__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 13rem 14rem;
  padding: 10rem 13rem 0 13rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .imgrig__items {
    grid-template-columns: 1fr;
    gap: 20rem;
  }

  .imgrig__item {
    height: 150rem;
  }
  .imgrig__item h3 {
    font-size: 12.5rem !important;
    margin-top: 150rem !important;
  }
  .viewer-content {
    width: 100%;
    height: 70%;
    margin-left: 10rem !important;
    margin-top: 30rem !important;
    width: calc(100% - 20rem);
  }
  .image-viewer.active {
    flex-direction: column;
    top: 25rem !important;
  }
  .imgtext {
    width: 100%;
    height: 30%;
    align-items: flex-start;
    justify-content: flex-start !important;
  }

  .ckqdm {
    top: 0rem !important;

    height: calc(100% - 0rem) !important;
    /* border-radius: 3rem!important; */
  }
  .guanbitc {
    transform: scale(1, 1);
    font-size: 20rem !important;
  }

  .ckqdmyy1{
    display: none!important;
  }

  .ckqdmyy2{
    display: none!important;
  }
}

.guanbitc {
   transform: scale(1.15);
    font-size: 11rem;
    line-height: 1;
    height: 40px;
    transform-origin: left top;
    display: flex !important;
    align-items: center;
}

/* 图片自适应 */
.imgrig__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* border-radius: 0.5rem; */
}
.imgrig__item h3 {
  font-weight: normal;
  position: absolute;
  margin-top: 31rem;
  height: 10%;
  font-size: 2.5rem;
  text-align: center;
}

.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;
}

.imgtext-text {
  font-family: Impact; /* 新增 Impact 字体 */
}

.imgtext-text.daziti {
}

.imgtext-text.xiziti {
  font-size: 3rem;
  font-family: 'Bahnschrift';
}

#jjieshao3 {
  margin-top: 2.5rem;
}

#jjieshao4 {
  margin-bottom: 2.5rem;
}
.imgtext {
  flex-direction: column;
  justify-content: flex-end;
}

.ckqdm {
  position: absolute;
  z-index: -10;
  /* top: 16rem; */
  left: 5rem;
  width: calc(100% - 10rem);
  height: calc(100% - 17rem);
  background: #AFAFAF;
  /* border-radius:1.5rem ; */
  opacity: .4;
}

.viewer-content button {
  transform: scale(1);
}

.viewer-btn {
  font-family: 'xiti';
  /* display: none !important; */
}

.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
}

.dot.active {
  background-color: #3b3b3b;
}


.ckqdmyy1{
  bottom: 3rem;
  right: 8rem;
  width: 34rem;
  height: 34rem;
  background-color: #AAAAAA;
  position: absolute;
}

.ckqdmyy2{
  top: 7rem;
  right: 8rem;
  width: 34rem;
  height: 34rem;
  background-color: #AAAAAA;
  position: absolute;
}