.content {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.vertical-content {
  width: 100%;
  padding-bottom: 400px;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.img-horizontal-container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.sheet-img-horizontal {
  width: 100%;
  height: 92%;
}

.sheet-img-vertical {
  width: 100%;
  height: 92%;
}

/* 电脑端：横排展示所有谱页，超出宽度时使用横向滚动条，图片按 A4 比例等比缩放，不做拉伸变形 */
.desktop-content {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: #e9e9e9;
}

.desktop-scroll {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  padding: 24px;
}

.desktop-row {
  display: inline-flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.desktop-page {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
}

.sheet-img-desktop {
  height: 100%;
  width: auto;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  cursor: zoom-in;
}

.paging {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  z-index: 100;
  /* 底栏占满宽度会挡住左下角返回按钮，空白区域不拦截点击 */
  pointer-events: none;
}

.paging-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.paging p {
  cursor: pointer;
  padding: 15px 40px;
  background: #ffd700;
  border-radius: 30px;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.2s;
  min-width: 150px;
  text-align: center;
}

.paging p:hover {
  background: #ffc107;
  transform: scale(1.05);
}

.info {
  background: #ffd700 !important;
  color: #333 !important;
  margin-bottom: 0 !important;
}

.info-container {
  position: relative;
}

.page-info {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  pointer-events: auto;
}

/* 电脑端：备注/歌词按钮与页数信息放在右下角，缩小尺寸，把高度留给谱子显示 */
.desktop-content .paging {
  position: absolute;
  top: auto;
  right: 16px;
  bottom: 16px;
  left: auto;
  background: transparent;
  padding: 0;
}

.desktop-content .info-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.desktop-content .paging-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
}

.desktop-content .paging p {
  padding: 6px 16px;
  min-width: auto;
  font-size: 13px;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.desktop-content .page-info {
  position: static;
  left: auto;
  transform: none;
  display: block;
  margin-top: 0;
  font-size: 12px;
  order: -1;
}

.back-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 110;
  /* 扩大可点区域，方便手指点击 */
  touch-action: manipulation;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
}

.back-btn img {
  width: 20px;
  height: 20px;
}

@media (max-width: 1023px), (hover: none) and (pointer: coarse) {
  .back-btn {
    bottom: 14px;
    left: 14px;
    width: 56px;
    height: 56px;
  }

  .back-btn img {
    width: 28px;
    height: 28px;
  }
}

/* 歌词全屏 layui 层 */
body .layui-layer.lyric-fullscreen-skin {
  border-radius: 0;
}

body .layui-layer.lyric-fullscreen-skin .layui-layer-content {
  height: 100vh;
  overflow: hidden;
  padding: 0;
}

/* 歌词全屏层（layui layer 内容区） */
.lyric-fullscreen-inner {
  position: relative;
  height: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 56px 20px 24px;
  background: #fff;
}

.lyric-fullscreen-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lyric-fullscreen-close:hover {
  background: rgba(0, 0, 0, 0.15);
}

.lyric-fullscreen-scroll {
  height: calc(100vh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 16px;
  line-height: 1.65;
  color: #222;
}

/* 手机端：歌词更大、关闭按钮更大，便于阅读与点击 */
@media (max-width: 1023px), (hover: none) and (pointer: coarse) {
  .lyric-fullscreen-inner {
    padding: 80px 16px 32px;
  }

  body .layui-layer.lyric-fullscreen-skin .lyric-fullscreen-close,
  .lyric-fullscreen-close {
    top: 12px;
    right: 12px;
    width: 60px !important;
    height: 60px !important;
    font-size: 40px !important;
    background: rgba(0, 0, 0, 0.14);
  }

  body .layui-layer.lyric-fullscreen-skin .lyric-fullscreen-scroll,
  .lyric-fullscreen-scroll {
    height: calc(100vh - 112px);
    font-size: 22px !important;
    line-height: 1.9 !important;
  }
}

@media (max-width: 480px) {
  body .layui-layer.lyric-fullscreen-skin .lyric-fullscreen-scroll,
  .lyric-fullscreen-scroll {
    font-size: 24px !important;
    line-height: 2 !important;
  }
}
