body {
  overflow: hidden;
  background-color: #606060;
  margin: 0;
  padding: 0;
}

.main-container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.magazine-viewport {
  overflow: hidden;
  width: 100%;
  flex: 1;
  position: relative;
}

.magazine-viewport .container {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: auto;
}

.magazine-viewport .magazine {
  width: 1550px;
  height:750px;
  left: -750px;
  top: -375px;
}
.magazine-viewport .page {
  width: 750px;
  height: 750px;
  background-color: white;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.magazine .page {
  -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  -ms-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  -o-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.magazine-viewport .page img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin: 0;
}

.magazine-viewport .shadow {
  -webkit-transition: -webkit-box-shadow 0.5s;
  -moz-transition: -moz-box-shadow 0.5s;
  -o-transition: -webkit-box-shadow 0.5s;
  -ms-transition: -ms-box-shadow 0.5s;

  -webkit-box-shadow: 0 0 20px #ccc;
  -moz-box-shadow: 0 0 20px #ccc;
  -o-box-shadow: 0 0 20px #ccc;
  -ms-box-shadow: 0 0 20px #ccc;
  box-shadow: 0 0 20px #ccc;
}

.cover {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d0d0e;
}

.cover img {
    position: absolute;
   width: 100%; 
   height: 100%; 
   object-fit: cover;
    z-index: 1;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background-color: #030303;
}

.loading-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #030303;
    z-index: 2;
}

.loading-container.hidden {
    display: none;
}

.loading-svg {
    width: 60px !important;
    height: 60px !important;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.back-cover {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: none;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-wrap {
  background-color: #f9fafe !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #111;
}

.left-page-overlay,
.right-page-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.left-page-overlay {
  /* background: linear-gradient(to right, #ffffff00 92%, #ccc 100%);
  border-right: solid 2.5px #bbb; */
}

.right-page-overlay {
  /* background: linear-gradient(to left, #ffffff00 92%, #ccc 100%);
  border-left: solid 2.5px #bbb; */
}

.left-page-container {
  padding: 20px 30px 20px 20px;
}

.right-page-container {
  padding: 20px 20px 20px 30px;
}

.no-cols {
  column-count: unset;
}

.no-indent {
  text-indent: 0;
}

.page-num-left,
.page-num-right {
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  float: right;
  margin: 0px 18px;
  font-weight: bold;
}

.title-page-num {
  position: absolute;
  color: #f9fafe;
  bottom: 6px;
  margin-bottom: 6px;
}

.page-num-left {
  float: left;
}

.page-num-right {
  float: right;
}

.quote-line {
  border-top: 0.5px solid #999;
  width: 170px;
  margin: 10px 5px;
  text-indent: 0;
}

.col1,
.col2 {
  display: table-cell;
  vertical-align: top;
  padding: 10px;
  width: 50%;
}
.col1:before,
.col2:before {
  float: right;
  width: 1px;
  height: 112px;
  content: "";
}
.col2:before {
  float: left;
}
.quote-block {
  float: right;
  clear: right;
  width: 110px;
  height: 210px;
  position: relative;
}
.quote-block img {
  position: absolute;
  left: 10px;
  top: 10px;
}
.col2 p:first-child:before {
  content: "";
  float: left;
  clear: left;
  width: 88px;
  height: 210px;
  margin: 0px 10px 10px -17.5px;
  border-radius: 0 110px 110px 0;
}

.quote-block aside {
  width: 200px;
  height: 200px;
}

.quote-block aside p {
  font-size: 18px;
}

.bottom-quote {
  position: absolute;
  bottom: 10px;
  padding-right: 65px;
}

.bottom-image {
  position: absolute;
  bottom: 70px;
  right: 15px;
  border-radius: 50px;
  z-index: 1;
}


.next-btn,
.prev-btn {
  background-color: rgba(46, 42, 42, 0.4);
  border-radius: 50%;
  border: none;
  padding: 8px 16px;
  font-size: 21px;
}
.big-btn{
   padding: 10px 40px;
   font-size: 70px;
}

.next-btn:hover,
.prev-btn:hover {
  background-color: rgba(51, 51, 51, 0.8);
  cursor: pointer;
}

.next-btn:focus,
.prev-btn:focus {
  outline: none;
}

.controls {
  height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  /* background-color: rgba(0, 0, 0, 0.3);
  z-index: 100; */
}

.side-controls {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}

.side-controls.left {
  left: 20px;
}

.side-controls.right {
  right: 20px;
}

.page-display {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: #fff;
}

a:focus {
  outline: none;
}

/* 移动端样式 */
@media (max-width: 768px) {
  body {
    overflow: hidden;
  }
  
  .main-container {
    height: 100vh;
  }
  
  .magazine-viewport {
    width: 100%;
    flex: 1;
    height: calc(100vh-80px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .magazine-viewport .container {
    position: relative;
    top: auto;
    left: auto;
    margin: 0;
    width: 100vw;
    height: 100vw;
    max-height: calc(100vh - 120px);
  }
  
  .magazine-viewport .magazine {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: relative;
  }
  
  .magazine-viewport .page {
    width: 100%;
    height: 100%;
  }
  
  .side-controls.left,
  .side-controls.right {
    display: none;
  }
  
  .controls {
    position: fixed;
    bottom: 0;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: env(safe-area-inset-bottom);
    /* background-color: rgba(0, 0, 0, 0.7); */
    z-index: 1000;
  }
  
  .next-btn,
  .prev-btn {
    padding: 10px 22px;
    font-size: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 80px;
  }
}