*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; background: #000; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
img { user-select: none; }

.landing {
  min-height: 100vh;
  background: #000;
}
.landing[data-layout="pending"] { visibility: hidden; }
.landing[data-layout="pc"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-shell {
  position: relative;
  background: #000;
  overflow: hidden;
}
.poster-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}
.poster-hot {
  position: absolute;
  display: block;
  z-index: 3;
  background: transparent;
  border: 0;
  outline: 0;
  text-decoration: none;
  cursor: pointer;
}
.landing.debug-hotspots .poster-hot {
  outline: 2px solid rgba(255, 32, 32, .7);
  background: rgba(255, 32, 32, .12);
}

.poster-pc {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  display: none;
}
.landing[data-layout="pc"] .poster-pc { display: block; }
.landing[data-layout="pc"] .poster-mobile { display: none; }

/* PC coordinates are based on landing-pc.png, 1920x1080. */
.pc-channel  { left: 74.38%; top: 4.63%; width: 4.06%; height: 10.56%; }
.pc-business { left: 80.89%; top: 4.63%; width: 4.06%; height: 10.56%; }
.pc-group    { left: 87.29%; top: 4.63%; width: 4.06%; height: 10.56%; }
.pc-service  { left: 93.39%; top: 4.63%; width: 4.06%; height: 10.56%; }
.pc-ios      { left: 16.72%; top: 54.17%; width: 16.98%; height: 8.89%; }
.pc-android  { left: 16.72%; top: 64.63%; width: 16.98%; height: 8.89%; }
.pc-risk     { left: 3.91%; top: 80.65%; width: 29.17%; height: 8.33%; }
.qr-overlay {
  position: absolute;
  background: #fff;
  overflow: hidden;
  z-index: 4;
}
.pc-qr {
  left: 3.91%;
  top: 54.54%;
  width: 10.16%;
  aspect-ratio: 1 / 1;
}
.qr-overlay canvas,
.qr-overlay img,
.qr-overlay table,
.qr-overlay svg {
  width: 100% !important;
  height: 100% !important;
}

.poster-mobile {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  display: none;
}
.landing[data-layout="h5"] {
  min-height: 100vh;
}
.landing[data-layout="h5"] .poster-mobile { display: block; }
.landing[data-layout="h5"] .poster-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
body.landing-h5 {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Mobile coordinates are based on landing-mobile.png, 750x1454. */
.mobile-channel  { left: 88.67%; top: 3.58%; width: 9.60%; height: 5.78%; }
.mobile-business { left: 88.67%; top: 10.87%; width: 9.60%; height: 5.78%; }
.mobile-group    { left: 88.67%; top: 18.23%; width: 9.60%; height: 5.78%; }
.mobile-service  { left: 88.67%; top: 25.52%; width: 9.60%; height: 5.78%; }
.mobile-ios      { left: 46.67%; top: 74.21%; width: 42.13%; height: 6.12%; }
.mobile-android  { left: 46.67%; top: 82.12%; width: 42.13%; height: 6.12%; }
.mobile-risk     { left: 20.00%; top: 92.71%; width: 60.00%; height: 4.13%; }
.mobile-qr {
  left: 14.27%;
  top: 74.42%;
  width: 26.00%;
  aspect-ratio: 1 / 1;
}

/* ========== 安卓「安装包报毒解决方案」弹层 ========== */
.android-modal {
  position: fixed; inset: 0;
  background: #f5f5f5;
  color: #222;
  z-index: 100;
  overflow-y: auto;
}
.android-modal[hidden] { display: none; }
.android-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky; top: 0; z-index: 2;
}
.android-modal-back {
  width: 32px; height: 32px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
}
.android-modal-back img { width: 100%; height: 100%; object-fit: contain; }
.android-modal-title { font-size: 16px; font-weight: 600; flex: 1; text-align: center; }
.android-modal-spacer { width: 32px; }

.android-modal-list { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.android-modal-cell {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}
.android-modal-cell img { width: 100%; display: block; }

.android-modal-detail { padding: 12px; }
.android-modal-detail[hidden] { display: none; }
.android-modal-pic { background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.android-modal-pic img { width: 100%; display: block; }
