/* ================== 弹窗广告 ================== */
#ads-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

#ads-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}

#ads-popup-box {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

#ads-popup-box img {
  display: block;
  width: 100%;
  height: auto;
}

#ads-close {
  position: absolute;
  right: 8px;
  top: 4px;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

/* ================== 悬浮广告 ================== */
#ads-float {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 99998;
  width: 160px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  overflow: hidden;
  display: none;
}

#ads-float img {
  width: 100%;
  display: block;
}

#ads-float-close {
  position: absolute;
  right: 4px;
  top: 2px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 14px;
  color: #fff;
  background: rgba(0,0,0,.6);
  border-radius: 50%;
  cursor: pointer;
}

/* ================== 手机端 ================== */
@media (max-width: 768px) {
  #ads-float {
    right: 10px;
    bottom: 60px;
    width: 120px;
  }
}
