/* 熊猫六合 · 添加到主屏幕引导弹层
   只在移动浏览器出现，独立窗口模式（已安装）不显示。 */

#xinao-pwa-mask {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 0 12px calc(18px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  animation: xinao-pwa-fade 0.22s ease-out;
}

@keyframes xinao-pwa-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#xinao-pwa-mask .xinao-pwa-card {
  width: 100%;
  max-width: 420px;
  max-height: 86vh;
  overflow: auto;
  background: #17110f;
  border: 1px solid rgba(244, 196, 106, 0.28);
  border-radius: 18px;
  padding: 20px 18px 16px;
  box-sizing: border-box;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  color: #f3ece3;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  animation: xinao-pwa-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes xinao-pwa-rise {
  from {
    transform: translateY(28px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#xinao-pwa-mask .xinao-pwa-logo {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: #1a0a08 url('/assets/icon-192.png') center / cover no-repeat;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

#xinao-pwa-mask .xinao-pwa-title {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
  color: #f4c46a;
}

#xinao-pwa-mask .xinao-pwa-note {
  margin: 8px 0 16px;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  color: rgba(243, 236, 227, 0.62);
}

#xinao-pwa-mask .xinao-pwa-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#xinao-pwa-mask .xinao-pwa-step {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(243, 236, 227, 0.9);
}

#xinao-pwa-mask .xinao-pwa-step b {
  color: #f4c46a;
  font-weight: 600;
}

#xinao-pwa-mask .xinao-pwa-idx {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(244, 196, 106, 0.16);
  color: #f4c46a;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 19px;
  text-align: center;
}

#xinao-pwa-mask .xinao-pwa-icon {
  font-size: 13px;
}

#xinao-pwa-mask .xinao-pwa-ok {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 12px 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4c46a, #d99b4a);
  color: #2a1a06;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#xinao-pwa-mask .xinao-pwa-ok:active {
  transform: scale(0.98);
  opacity: 0.9;
}

#xinao-pwa-mask .xinao-pwa-demo {
  margin: 0 0 14px;
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 196, 106, 0.16);
}

#xinao-pwa-mask .xinao-pwa-demo-label,
#xinao-pwa-mask .xinao-pwa-demo-arrow {
  text-align: center;
  font-size: 12px;
  color: #f4c46a;
}

#xinao-pwa-mask .xinao-pwa-demo-arrow {
  margin-top: 6px;
}

#xinao-pwa-mask .xinao-safari {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 8px;
  padding: 8px 6px;
  border-radius: 12px;
  background: #2a2a2c;
  color: #8e8e93;
  font-size: 18px;
}

#xinao-pwa-mask .xinao-safari-share {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.35);
  animation: xinao-pwa-pulse 1.4s ease-in-out infinite;
}

#xinao-pwa-mask .xinao-share {
  width: 22px;
  height: 22px;
}

@keyframes xinao-pwa-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

#xinao-pwa-mask .xinao-carousel {
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 16px;
}

#xinao-pwa-mask .xinao-slides {
  display: flex;
  transition: transform 0.45s ease;
}

#xinao-pwa-mask .xinao-slides img {
  width: 100%;
  height: 50vh;
  flex: 0 0 100%;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}

#xinao-pwa-mask .xinao-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

#xinao-pwa-mask .xinao-dots i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(243, 236, 227, 0.28);
}

#xinao-pwa-mask .xinao-dots i.on {
  width: 16px;
  background: #f4c46a;
}

#xinao-pwa-mask .xinao-pwa-card-guide {
  padding-top: 12px;
}

#xinao-pwa-mask .xinao-stage {
  margin-bottom: 14px;
}

#xinao-pwa-mask .xinao-phone {
  position: relative;
  height: 336px;
  border-radius: 22px;
  overflow: hidden;
  background: #0e1511;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#xinao-pwa-mask .xinao-web {
  position: absolute;
  inset: 0 0 58px;
  padding: 14px 14px 0;
}

#xinao-pwa-mask .xinao-addr {
  height: 28px;
  border-radius: 8px;
  background: #1c1c1e;
  color: #d1d1d6;
  font-size: 12px;
  line-height: 28px;
  text-align: center;
}

#xinao-pwa-mask .xinao-webcard {
  height: 86px;
  margin-top: 12px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 40%, #f4c46a 0 10px, transparent 11px),
    linear-gradient(180deg, #243128, #121814);
}

#xinao-pwa-mask .xinao-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(28, 28, 30, 0.96);
  color: #f2f2f7;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#xinao-pwa-mask .xinao-svg {
  width: 22px;
  height: 22px;
  display: block;
}

#xinao-pwa-mask .xinao-sharebtn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

#xinao-pwa-mask .xinao-stage[data-step='1'] .xinao-sharebtn {
  background: rgba(10, 132, 255, 0.22);
  box-shadow: 0 0 0 2px #0a84ff;
}

#xinao-pwa-mask .xinao-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}

#xinao-pwa-mask .xinao-stage[data-step='2'] .xinao-scrim,
#xinao-pwa-mask .xinao-stage[data-step='3'] .xinao-scrim {
  opacity: 1;
}

#xinao-pwa-mask .xinao-sheet,
#xinao-pwa-mask .xinao-confirm {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  transform: translateY(105%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

#xinao-pwa-mask .xinao-sheet {
  height: 250px;
  background: #f2f2f7;
  color: #1c1c1e;
  border-radius: 18px 18px 0 0;
}

#xinao-pwa-mask .xinao-stage[data-step='2'] .xinao-sheet,
#xinao-pwa-mask .xinao-stage[data-step='3'] .xinao-sheet {
  transform: translateY(0);
}

#xinao-pwa-mask .xinao-handle {
  width: 36px;
  height: 5px;
  margin: 8px auto 10px;
  border-radius: 99px;
  background: #c7c7cc;
}

#xinao-pwa-mask .xinao-apps {
  display: flex;
  gap: 10px;
  padding: 0 14px 10px;
}

#xinao-pwa-mask .xinao-apps i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #e5e5ea);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

#xinao-pwa-mask .xinao-act {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 10px 8px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
}

#xinao-pwa-mask .xinao-badge {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #e5e5ea;
  color: #1c1c1e;
  font-size: 14px;
  line-height: 28px;
  text-align: center;
  font-weight: 500;
}

#xinao-pwa-mask .xinao-stage[data-step='2'] .is-target {
  box-shadow: inset 0 0 0 2px #0a84ff;
}

#xinao-pwa-mask .is-target .xinao-badge {
  background: #0a84ff;
  color: #fff;
}

#xinao-pwa-mask .xinao-confirm {
  z-index: 5;
  height: 100%;
  background: #f2f2f7;
  color: #1c1c1e;
}

#xinao-pwa-mask .xinao-stage[data-step='3'] .xinao-confirm {
  transform: translateY(0);
}

#xinao-pwa-mask .xinao-cnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

#xinao-pwa-mask .xinao-cnav em {
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
}

#xinao-pwa-mask .xinao-go {
  color: #0a84ff;
  font-weight: 600;
}

#xinao-pwa-mask .xinao-stage[data-step='3'] .xinao-go {
  background: #0a84ff;
  color: #fff;
  border-radius: 8px;
  padding: 4px 10px;
}

#xinao-pwa-mask .xinao-citem {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
}

#xinao-pwa-mask .xinao-citem img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

#xinao-pwa-mask .xinao-citem strong,
#xinao-pwa-mask .xinao-citem small {
  display: block;
}

#xinao-pwa-mask .xinao-citem small {
  margin-top: 3px;
  color: #8e8e93;
  font-size: 12px;
}

#xinao-pwa-mask .xinao-hand {
  position: absolute;
  z-index: 6;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  margin-top: -8px;
  transition: top 0.55s cubic-bezier(0.22, 1, 0.36, 1), left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

#xinao-pwa-mask .xinao-hand i {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #d1d1d6 70%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
  animation: xinao-press 1.15s ease-in-out infinite;
}

@keyframes xinao-press {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.82);
  }
}

#xinao-pwa-mask .xinao-stage[data-step='1'] .xinao-hand {
  top: 292px;
  left: 50%;
}

#xinao-pwa-mask .xinao-stage[data-step='2'] .xinao-hand {
  top: 248px;
  left: 42px;
}

#xinao-pwa-mask .xinao-stage[data-step='3'] .xinao-hand {
  top: 22px;
  left: calc(100% - 28px);
}

#xinao-pwa-mask .xinao-pwa-step.is-on {
  background: rgba(244, 196, 106, 0.1);
  border-radius: 10px;
  padding: 6px 8px;
  margin: 0 -8px;
}

#xinao-pwa-mask .xinao-pwa-copy {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 0;
  border: 0;
  border-radius: 12px;
  background: #0a84ff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* 独立窗口（已添加到主屏幕）里，顶部安全区由页面自己让出 */
html.xinao-standalone,
html.xinao-standalone body {
  overscroll-behavior-y: none;
  background: #0b120e;
}
