/* 菜单按钮样式 */
.comic-button {
  padding: 10px 16px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background-color: #7c9dff;
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow: 5px 5px 0px #000;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%; /* 按钮宽度自适应容器 */
  white-space: nowrap;
}

/* 遮罩层 - 用于点击外部关闭菜单 */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent; /* 完全透明 */
  z-index: 80; /* 在导航栏下面，但覆盖其他内容 */
  display: none;
}

.menu-overlay.active {
  display: block;
}

/* 按钮动画 - 依次出现 */
.menu-btn.show .comic-button {
  animation: slideIn 0.3s ease forwards;
  opacity: 0;
}

.menu-btn.show .comic-button:nth-child(1) {
  animation-delay: 0s;
}

.menu-btn.show .comic-button:nth-child(2) {
  animation-delay: 0.1s;
}

.menu-btn.show .comic-button:nth-child(3) {
  animation-delay: 0.2s;
}

.menu-btn.show .comic-button:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 菜单隐藏时，按钮立即隐藏 */
.menu-btn:not(.show) .comic-button {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}