.container {
  width: 100%;
  height: 100%;
}
.concent {
  width: 100%;
  height: 100%;
}

.header {
  /* width: 100%; */
  height: 0.44rem;
  background-color: #f8352b;
  padding-top: 0.44rem;
  padding: 0.31rem 0.24rem 0 0.16rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: content-box;
}
.image_11 {
  width: 0.22rem;
  height: 0.22rem;
}
.text {
  font-size: 0.15rem;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: bold;
  color: #ffffff;
  line-height: 0.21rem;
}

main {
  width: 100%;
  min-height: 100%;
  padding-top: 0.2rem;
  overflow: hidden;
  /* min-height: calc(100% - 0.75rem); */
  background: url("../img/background.png") no-repeat;
  background-size: cover;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.ruleBox {
  width: 100%;
  margin-top: 0.34rem;
  /* height: 0.44rem; */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 0.3rem;
}
.ruleText_1 {
  width: 0.34rem;
  font-size: 0.11rem;
  height: 0.34rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background: url("../img/ruleBg.png") no-repeat center center;
  background-size: cover;
  overflow-y: hidden;
}
.title {
  width: 100%;
  height: 0.9rem;
  text-align: center;
  color: #ffffff;
  font-size: 0.3rem;
  font-weight: bold;

  /* .text_1 {
      color: linear-gradient( 180deg, #FFFFFF 0%, #FFFFFF 55%, rgba(255,255,255,0.7) 100%);;
      margin-top: 0.25rem;
      text-shadow: 4px 4px 2px rgba(173,5,0,0.4);;
  } */
}
.image_1 {
  margin-top: 0.35rem;
  width: 2.46rem;
  height: 0.325rem;
}
.image_2 {
  width: 2.92rem;
  height: 0.59rem;
  margin-top: 0.17rem;
}
.text-wrapper {
  width: 2.2rem;
  background: url("../img/textBg.png") 100% no-repeat;
  background-size: cover;
  margin: 0 auto;
  padding: 0.08rem 0.185rem 0.08rem 0.195rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.text_2 {
  font-size: 0.11rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 0.15rem;
  text-align: center;
  overflow-wrap: break-word;
  white-space: nowrap; /* 不换行 */
}
.footer {
  width: 100%;
  height: 3.95rem;
  background: url("../img/footerBg.png") no-repeat;
  background-size: cover;
  position: absolute;
  bottom: 0;
}

/* 红包盒子 */
.packer-box {
  height: 3.375rem;
  margin-top: 0.78rem;
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.315rem;
}
/* 红包头部 */
.packer-top-box {
  width: 2.5rem;
  height: 1.5rem;
  margin: 0 auto;
  transform: translateY(0);
  background: url("../img/hongbao_top.png") no-repeat;
  background-size: cover;
  /* text-align: center; */
  z-index: 2;
  position: relative;
}
.image_3 {
  width: 0.66rem;
  height: 0.655rem;
  position: absolute;
  top: 0.915rem;
  left: 1.215rem;
}
.button {
  width: 0.85rem;
  height: 0.9rem;
  border-radius: 0.5rem;
  position: absolute;
  top: 0.6rem;
  left: 0.83rem;
  z-index: 3;
}

/* 红包底部 */
.packer-bottom-box {
  width: 2.5rem;
  height: 2.6869rem;
  /* margin: auto; */
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  /* transform: translateY(-0.9rem); */
  background: url("../img/hongbao_bottom.png") no-repeat;
  background-size: cover;
  text-align: center;
  z-index: 1;
}
.text-wrapper_1 {
  width: 100%;
  position: absolute;
  bottom: 0.28rem;
  z-index: 3;
  text-align: center;
  font-size: 0.12rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 0.17rem;
}

/* 红包打开后样式 */
.packer-content {
  width: 2.51rem;
  height: 3.28rem;
  margin: auto;
  background: url("../img/hongbao.png") no-repeat;
  background-size: cover;
  z-index: 2;
  position: relative;
}
.packer-button {
  width: 1.83rem;
  height: 0.55rem;
  margin: 0.515rem auto 0;
  background: url("../img/button.png") no-repeat center center;
  background-size: cover;
  position: relative;
}
.button_text {
  font-size: 0.15rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 0.21rem;
  text-align: center;
  padding-top: 0.12rem;
}
.button_tip {
  position: absolute;
  top: -0.24rem;
  right: -0.1rem;
  width: 0.83rem;
  height: 0.31rem;
  background: url("../img/tips.png") no-repeat center center;
  background-size: 100% 100%;
  font-size: 0.12rem;
  font-weight: 500;
  color: #f8352b;
  line-height: 0.155rem;
  text-align: center;
  padding-top: 0.05rem;
}
.packer-text {
  font-size: 0.2rem;
  font-weight: 800;
  color: #f8352b;
  text-align: center;
  margin-top: 1.64rem;
}
.packer-button_1 {
  background: url("../img/button_1.png") no-repeat;
  background-size: cover;
}

/* 规则背景 */
.rulePopup {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  /* position: absolute;
  top: 0;
  left: 0; */
  z-index: 20;
  /* transition: 10s linear; */
  display: none;
}

/* 规则 */
.ruleContent {
  width: 70%;
  height: 4rem;
  position: absolute;

  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  margin: auto;
}

/* 规则图片 */
.ruleImg {
  position: absolute;
  right: 0;
  left: 0;
  margin: auto;
  z-index: 23;
  width: 80%;
  height: 0.8rem;
  background: url("../img/ruleHeader.png") no-repeat center center;
  background-size: contain;
}

/* 规则内容+标题 */
.ruleContentText {
  top: 76px;
  position: absolute;
  z-index: 25;
  width: 100%;
  height: 3rem;
  border-radius: 30px;
  background: linear-gradient(180deg, #fff5dc 0%, #ffffff 100%);
  padding: 15px;
}

/* 规则标题 */
.ruleTitle {
  color: #f8352b;
  font-size: 0.17rem;
  font-weight: 900;
  width: 100%;
  height: 0.35rem;
  text-align: center;
}
/*规则文字*/
.ruleText {
  color: #1a1a1a;
  height: 2.3rem;
  font-size: 0.13rem;
  font-weight: 400;
  line-height: 0.2rem;
  overflow-y: scroll;
}

/* 规则关闭按钮 */
.ruleClose {
  width: 0.35rem;
  height: 0.35rem;
  background: url("../img/ruleClose.png") no-repeat center center;
  background-size: contain;
  position: absolute;
  right: 0;
  left: 0;
  margin: auto;
  bottom: -0.5rem;
}

/* 红包打开动画 */
.anim-ease-in {
  animation-duration: 0.5s;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}
.anim-out-top {
  animation-name: slideOutTop;
}
.anim-out-bottom {
  animation-name: slideOutBottom;
}

/* 晃动动画 */
.bonus {
  animation: shaking 1s ease infinite;
  z-index: 1;
}

/* 撒花样式 */
.surprises .fly {
  display: block;
  position: absolute;
  top: 3.2rem;
  left: 0;
  color: #f37476;
  z-index: 0;
  opacity: 0;
  font-size: 0.15rem;
  animation: flying 1.65s ease-in-out infinite;
}
.surprises .fly:nth-child(1) {
  animation-delay: 1.5s;
  left: 1.6rem;
}
.surprises .fly:nth-child(2) {
  animation-delay: 1.2s;
  left: 0.9rem;
}
.surprises .fly:nth-child(3) {
  animation-delay: 0.9s;
  left: 1.8rem;
}
.surprises .fly:nth-child(4) {
  animation-delay: 1.6s;
  left: 2.4rem;
}
.surprises .fly:nth-child(5) {
  animation-delay: 0.3s;
  left: 2.95rem;
}
.surprises .fly:nth-child(6) {
  animation-delay: 0.15s;
  left: 1.37rem;
}
.surprises .fly:nth-child(7) {
  animation-delay: 1.15s;
  left: 2.75rem;
}
.surprises .fly:nth-child(8) {
  animation-delay: 0.75s;
  left: 2.38rem;
}
.hearts {
  position: relative;
}
.hearts:before,
.hearts:after {
  position: absolute;
  content: "";
  width: 0.09rem;
  height: 0.15rem;
  background: #ff370f;
  border-radius: 0.03rem 0.03rem 0 0;
  transform: rotate(-45deg);
  transform-origin: 10% 50%;
}
.hearts:after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 110% 68%;
}

/* 红包打开动画 */
@keyframes slideOutTop {
  from {
    opacity: 1;
    transform: translateY(0px);
  }

  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}
@keyframes slideOutBottom {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
    /* transform: translateY(-0.9rem); */
  }

  to {
    opacity: 0;
    transform: translate(-50%, 100%);
    /* transform: translateY(100%); */
  }
}

/* 撒花动画 */
@keyframes flying {
  0% {
    transform: rotate(20deg);
    opacity: 0;
  }
  50% {
    transform: rotate(-20deg);
    opacity: 1;
  }
  100% {
    top: 0.7rem;
    transform: rotate(20deg);
    opacity: 0;
  }
}
/* 红包左右晃动动画 */
@keyframes shaking {
  0% {
    transform: translateX(-10px) translateY(0);
  }
  10% {
    transform: translateX(10px) translateY(-2px);
  }
  20% {
    transform: translateX(-8px) translateY(0);
  }
  30% {
    transform: translateX(8px) translateY(-2px);
  }
  40% {
    transform: translateX(-6px) translateY(0);
  }
  50% {
    transform: translateX(6px) translateY(2px);
  }
  60% {
    transform: translateX(-4px) translateY(5px);
  }
  70% {
    transform: translateX(4px) translateY(3px);
  }
  80% {
    transform: translateX(-2px) translateY(1px);
  }
  90% {
    transform: translateX(2px) translateY(0);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}
