/* ===== MMOM社区专属礼品弹窗样式 开始 ===== */
#giftsPopup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.72);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}
#giftsPopup.active {
  display: flex;
}
.ip-popup-wrap {
  width: 1323px;
  max-width: 100vw;
  height: 551.89px;
  height: auto;
  position: relative;
  animation: ipPopupIn .28s cubic-bezier(.4,0,.2,1);
}

#giftsPopupExplain {
  display: none;
}

@keyframes ipPopupIn {
  from { transform: scale(.88); }
  to   { transform: scale(1); }
}
.ip-popup-close {
  position: absolute;
  top: 30px;
  right: 90px;
  width: 45px; 
  height: 45px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 17px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
  background: url(../image/lottery/close_btn.png) no-repeat center/100% 100%;
}
.ip-popup-close:hover { 
  transform: scale(1.3);
}
.ip-popup-img {
  width: 100%;
  height: 100%;
  display: block;
  line-height: 0;
}
.ip-popup-img img {
  width: auto;
  height: auto;
  display: block;
}
.ip-popup-img .pc-img {
  display: block;
}
.ip-popup-img .mobile-img {
  display: none;
}
.ip-popup-btns {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
}
.ip-popup-btn {
  width: 309px;
  height: 94px;
  padding: 10px 6px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 260ms ease,
    filter 260ms ease;
  white-space: nowrap;
}
.ip-popup-btn:hover { transform: translateY(-6px) scale(1.04); }
.ip-popup-btn-primary {
  background: linear-gradient(90deg, #53FECD, #2C74C9);
  color: #fff;
  background: url(../image/lottery/tutorial_btn.png) no-repeat center/100% 100%;
}
.ip-popup-btn-secondary {
  background: #5865F2;
  color: #fff;
  background: url(../image/lottery/btn_dark.png) no-repeat center/100% 100%;
  margin-left: auto;
  margin-right: -30px;
}
.ip-popup-btn-cancel {
  width: 433px;
  height: 132px;
  color: #ccc;
  background: url(../image/lottery/btn_bright.png) no-repeat center/100% 100%;
}
#giftsPopupExplain .ip-popup-btns .ip-popup-btn-primary {
  background: url(../image/lottery/back_btn.png) no-repeat center/100% 100%;
}
@media only screen and (min-width: 1025px) and (max-width: 1323px){
  .ip-popup-img img {
    max-width: 100%;
  }
  .ip-popup-btns {
    max-width: 80%;
  }
}
@media (max-width: 1024px) {
  .ip-popup-img .pc-img {
    display: none;
  }
  .ip-popup-img .mobile-img {
    display: block;
  }
  .ip-popup-wrap {
    width: 316px;
    height: 518px;
  }
  #giftsPopupExplain {
    width: 326px;
  }
  .ip-popup-btns {
    flex-wrap: wrap;
    bottom: 60px;
  }
  .ip-popup-btn { 
    width: 154.5px;
    height: 47px;
  }

  .ip-popup-btn-cancel {
    width: 310px;
    height: 100.91px;
  }

  .ip-popup-btn-secondary {
    margin-right: 0;
  }

  .ip-popup-close {
    top: unset;
    bottom: -50px;
    right: unset;
    transform: translateX(-50%);
    left: 50%;
  }

  #giftsPopupExplain {
    background: url(../image/lottery/prize-bg.png) no-repeat center/100% 100%;
  }

  #giftsPopupExplain .ip-popup-img {
    overflow: auto;
    height: 280px;
    margin: auto;
    margin-top: 28px;
    padding: 15px;
    width: calc(100% - 10px);
  }
}
/* ===== MMOM社区专属礼品弹窗样式 结束 ===== */