/* =====================
   内容页 · 图片书
   ===================== */

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
}

.issue {
  margin: 0;
  padding: 0;
}

/* =====================
   每一页
   ===================== */

.issue-page {
  display: flex;
  align-items: center;
  justify-content: center;
}

.issue-page img {
  display: block;
  width: 100%;
  height: auto;
}

/* =====================
   手机端：一页一屏
   ===================== */

@media (max-width: 768px) {
  .issue-page {
    height: 100vh;
  }

  .issue-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* =====================
   桌面端：A5 阅读尺寸
   ===================== */

@media (min-width: 769px) {
  .issue-page img {
    width: 680px;
    max-width: 92vw;
  }
}

/* =====================
   顶部返回 · 书架
   ===================== */

.issue-header {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;

  font-size: 12px;
  letter-spacing: 0.02em;

  color: rgba(0,0,0,0.45);
  text-decoration: none;

  -webkit-tap-highlight-color: transparent;
  transition: opacity .3s ease;
}

/* 隐藏状态（阅读开始后） */
.issue-header.hidden {
  opacity: 0;
  pointer-events: none;
}

.issue-header.bottom {
  top: auto;
  bottom: 14px;
}


/* 强制覆盖所有链接状态 */
.issue-header:link,
.issue-header:visited,
.issue-header:hover,
.issue-header:active {
  color: rgba(0,0,0,0.45);
  text-decoration: none;
}

.issue-header:hover {
  color: rgba(0,0,0,0.8);
}

/* =====================
   结尾留白（合书）
   ===================== */

.issue-page:last-child {
  padding-bottom: 120px;
}
