/* 首页海报自适应布局 */
html {
  height: 100%;
  background: #07090c;
}
body {
  height: 100%;
  margin: 0;
  background: #07090c;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* 同图模糊放大作背景，铺满任意屏幕比例，避免黑边 */
body::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background-image: url("/poster.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(26px) brightness(0.33) saturate(1.1);
  transform: scale(1.15);
  opacity: 0.95;
  pointer-events: none;
}

.poster {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

@media (min-width: 900px) {
  .poster {
    max-width: 640px;
    max-height: 92vh;
    border-radius: 6px;
  }
}
