* {
  margin: 0;
  padding: 0;
}

.container {
  margin: 0 auto;
  width: 100%;
  height: 100%;
}

/* Zoom.js required critical styles */
.flipbook-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -ms-touch-action: pan-y;
  touch-action: pan-y;
}

.flipbook-viewport .container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.flipbook-viewport .flipbook {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ml_nav ul {
  padding-left: 0;
}

.header {
  width: 100%;
  background-color: #fff;
}

.logo {
  width: 1200px;
  height: 100px;
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.page-container {
  width: 100%;
  background: url('../../images/kzdzs/page-bg.png') no-repeat center center;
  background-size: cover;
}

.page-container .page-main {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.page-container .page-title {
  text-align: center;
  display: none;
}

.page-container .book {
  position: relative;
  height: 100vh;
  padding-top: 7vh;
  background: rgba(255, 255, 255, 0.3);
  /* box-shadow: 0px 0px 10px 7px rgba(30, 51, 27, 0.25); */
}

.controls .prevBtn {
  width: 40px;
  height: 40px;
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  background-color: #0000004a;
}

.controls .prevBtn>img {
  width: 100%;
  height: 100%;
}

.controls .nextBtn>img {
  width: 100%;
  height: 100%;
}

.controls .nextBtn {
  width: 40px;
  height: 40px;
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  background-color: #0000004a;
}

@media(max-width: 768px) {
  .logo {
    width: 100%;
  }

  .page-container .page-main {
    width: 100%;
  }

  .page-title img {
    width: 70%;
  }

  .page-container {
    padding-bottom: 80px;
  }

  .page-container .book {
    height: 475px;
  }

  .controls {
    position: relative;
    margin-top: 20px;
  }

  .controls img {
    width: 38px;
  }

  .controls .prevBtn {
    left: 30%;
    bottom: 0;
  }

  .controls .nextBtn {
    right: 30%;
    bottom: 0;
  }
}

.zoom-buttons {
  width: 100%;
  position: absolute;
  display: flex;
  justify-content: center;
  background-color: #6aa9d7;
  height: 50px;
  align-items: center;
  z-index: 2;
}

.zoom-buttons .zoom-btn {
  border: none;
  width: 26px;
  font-size: 15px;
  cursor: pointer;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.zoom-buttons .zoom-btn img {
  width: 100%;
}


.zoom-buttons .zoom-btn:hover {
  /* background-color: #1976D2; */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

#zoomInBtn:active,
#zoomOutBtn:active {
  background-color: #1565C0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}

/* 缩放按钮容器样式 */
.zoom-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* 图片切换按钮样式 */
.image-switcher {
  position: absolute;
  z-index: 2;
  left: 32px;
  top: 74px;
}

.image-btn {
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 8px;
  padding: 5px;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 200px;
  background-color: #fff;
  margin: 6px;
}

.image-btn:hover {
  border-color: #4CAF50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.image-btn.active {
  background-color: #6aa9d7;
  color: #fff;
}

.image-btn img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.image-btn span {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: bold;
}

/* 去掉数字输入框的上下箭头 */
#zoomLevel::-webkit-outer-spin-button,
#zoomLevel::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#zoomLevel {
  width: 40px;
  text-align: center;
      font-weight: 600;
    border: 0;
    font-size: 14px;
}

.zoom-input {
  display: inline-flex;
  align-items: center;
    background-color: #ffffff;
    font-size: 14px;
    padding: 2px;
}

#totalPages {
      font-weight: bold;
    position: relative;
    top: -1px;
    display: inline-block;
    width: 32px;
}

@media(max-width: 768px) {
  .image-switcher {
    gap: 10px;
  }

  .image-btn {
    max-width: 150px;
  }

  .image-btn span {
    font-size: 12px;
  }
}