html.itbest-hongbao-open,
.itbest-hongbao-open body { overflow: hidden; }

.itbest-hongbao {
  width: min(350px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  overflow: auto;
  background: transparent;
  color: #ffe7ad;
  text-align: center;
  overscroll-behavior: contain;
}
.itbest-hongbao::backdrop { background: rgb(14 17 28 / 72%); }
.itbest-hongbao[open] { animation: itbest-hongbao-arrive .4s ease-out; }
.itbest-hongbao__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 50%;
  background: rgb(111 16 22 / 25%);
  color: #fff4d8;
  font: 26px/1 sans-serif;
  cursor: pointer;
}
.itbest-hongbao__close:hover { background: rgb(111 16 22 / 65%); }
.itbest-hongbao__packet {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 54px 22px 28px;
  overflow: hidden;
  border: 1px solid #ed9c69;
  border-radius: 24px;
  background: linear-gradient(150deg, #ff6543, #e52d30 48%, #c81c2e);
  color: #ffe5a1;
  text-decoration: none;
  box-shadow: inset 0 0 0 6px rgb(255 190 111 / 10%);
}
.itbest-hongbao__packet:hover { color: #fff0c7; }
.itbest-hongbao__packet::before {
  position: absolute;
  z-index: -1;
  top: -145px;
  left: -18%;
  width: 136%;
  height: 410px;
  border-bottom: 2px solid rgb(255 213 145 / 68%);
  border-radius: 0 0 50% 50%;
  background: linear-gradient(160deg, #ff7449, #ef3a35);
  box-shadow: 0 10px 22px rgb(122 10 21 / 17%);
  content: '';
}
.itbest-hongbao__ad {
  position: absolute;
  top: 19px;
  left: 20px;
  padding: 1px 6px;
  border: 1px solid rgb(255 232 187 / 45%);
  border-radius: 4px;
  color: #ffefcf;
  font-size: 11px;
  line-height: 18px;
}
.itbest-hongbao__eyebrow { font-size: 12px; letter-spacing: 2px; }
.itbest-hongbao h2 {
  margin: 8px 0 5px;
  color: #ffebad;
  font-size: clamp(34px, 10vw, 46px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 4px;
  text-shadow: 0 3px 0 rgb(153 29 18 / 25%);
}
.itbest-hongbao__subtitle { font-size: 14px; letter-spacing: 3px; }
.itbest-hongbao__seal {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 30px 0 25px;
  border: 5px solid #f8ce77;
  border-radius: 50%;
  background: linear-gradient(140deg, #fff0b4, #efb548);
  box-shadow: 0 7px 0 #b52d26, 0 12px 25px rgb(119 14 18 / 28%), inset 0 0 0 2px #d99836;
  color: #a94b1c;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  transition: transform .2s ease;
}
.itbest-hongbao__packet:hover .itbest-hongbao__seal { transform: translateY(-3px); }
.itbest-hongbao__cta { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.itbest-hongbao__platforms { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.itbest-hongbao__platforms img { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; background: white; }
.itbest-hongbao__platforms > span { opacity: .6; }
.itbest-hongbao__note { margin: 14px 0 0; color: #e8e3df; font-size: 12px; line-height: 1.9; }
.itbest-hongbao :focus-visible { outline: 3px solid #fff2c5; outline-offset: -4px; }
@keyframes itbest-hongbao-arrive {
  from { opacity: 0; transform: translateY(-32px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-height: 600px) {
  .itbest-hongbao__packet { padding-top: 46px; padding-bottom: 20px; }
  .itbest-hongbao__seal { width: 80px; height: 80px; margin: 18px 0; font-size: 38px; }
  .itbest-hongbao__platforms { margin-top: 12px; }
  .itbest-hongbao__note { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .itbest-hongbao[open] { animation: none; }
  .itbest-hongbao__seal { transition: none; }
}
