/* AdSwim 前端样式 */
.adswim-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.adswim-layer--bg { z-index: -1; }
.adswim-layer--top { z-index: 2147483000; }
.adswim-layer canvas { position: absolute; inset: 0; }

.adswim-sprite {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.adswim-lottie svg { width: 100%; height: 100%; display: block; }

html.adswim-cursor, html.adswim-cursor body { cursor: pointer; }

#adswim-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 12, 24, 0.55);
  backdrop-filter: blur(2px);
}
.adswim-modal__box {
  position: relative;
  max-width: min(480px, 88vw);
  max-height: 80vh;
  overflow: auto;
  background: #0b1626;
  color: #dff3ff;
  border: 1px solid rgba(120, 220, 255, 0.45);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(80, 200, 255, 0.25);
  padding: 28px 24px 20px;
  font-size: 15px;
  line-height: 1.65;
}
.adswim-modal__box img { max-width: 100%; height: auto; }
.adswim-modal__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: #9fd8ef;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.adswim-modal__close:hover { color: #fff; }
.adswim-modal__ad {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(120, 220, 255, 0.15);
  border: 1px solid rgba(120, 220, 255, 0.5);
  color: #bfeaff;
  text-decoration: none;
  font-size: 13px;
}
.adswim-modal__ad:hover { background: rgba(120, 220, 255, 0.3); }
