* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: #eaf6ff; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }

.stage {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(#a9def8, #e8f8ff 55%, #d5f0e6);
  box-shadow: 0 0 24px rgba(0, 90, 160, .12);
}
.stage img { display: block; width: 100%; height: auto; }

/* 首页：背景 + 绝对定位的 9 个按钮 */
#home-bg { width: 100%; }
.menu-btn {
  position: absolute;
  display: block;
  transition: transform .16s ease, filter .16s ease;
}
.menu-btn img { width: 100%; height: auto; }
.menu-btn:active { transform: scale(.94); filter: brightness(1.06); }

/* 内容页 */
.page-img { width: 100%; }

/* 浮动返回按钮 */
.home-fab {
  position: fixed;
  right: max(12px, calc((100vw - 750px) / 2 + 12px));
  top: 14px;
  z-index: 99;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(0, 120, 200, .25);
  box-shadow: 0 2px 10px rgba(0, 70, 130, .18);
  color: #1678c8;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.home-fab:active { transform: scale(.92); }

/* 点击放大查看 */
.page-img { cursor: zoom-in; }
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 12, 24, .94);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.lightbox.show { display: block; }
.lightbox img {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  cursor: zoom-out;
}
.lightbox-hint {
  position: fixed;
  left: 0; right: 0; bottom: 18px;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  pointer-events: none;
}
