:root {
  --canvas-w: 1846;
  --canvas-h: 49149.8;
  --phone-w: 100vw;
  --u: calc(100vw / 1846);
  --story-in: 87.685;
  --story-w: 1670.63;
  --story-gap: 36.02;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #ededed;
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
}

@font-face {
  font-family: "f_221";
  src: url("./font/4113699_221.ttf");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: "f_223";
  src: url("./font/4113699_223.ttf");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: "f_236";
  src: url("./font/4113699_236.ttf");
  font-style: normal;
  font-weight: normal;
}

.phone-shell {
  position: relative;
  width: var(--phone-w);
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}

.phone {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.phone::-webkit-scrollbar {
  display: none;
}

.stage {
  position: relative;
  width: 100%;
  height: auto;
}

#long_page,
.long-page {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #fff;
  padding-bottom: calc(80 * var(--u));
}

.block {
  position: static;
}

.stack > .block,
.stack .block,
.save-the-date > .block {
  position: absolute;
}

.stack > .thecallphone {
  display: contents;
}

/* 婚礼乎 initSmSm：输入框在 400 画布上是 250×30、border-box、1px 边框、15px 字 */
#long_page input.block,
#long_page table.invite-field {
  box-sizing: border-box;
  padding: 0;
  font-family: Arial, sans-serif;
  line-height: normal;
  -webkit-appearance: none;
  appearance: none;
}

#long_page input.block[type="button"] {
  outline: none;
}

#long_page input.block::placeholder {
  color: #262626;
  opacity: 1;
  text-align: center;
}

.guest-submit::placeholder {
  color: #fff;
}

#long_page input.block:-webkit-autofill,
#long_page input.block:-webkit-autofill:hover,
#long_page input.block:-webkit-autofill:focus {
  -webkit-text-fill-color: #262626;
  box-shadow: 0 0 0 1000px #fff inset;
  caret-color: #262626;
  transition: background-color 99999s ease-out;
}

#long_page table.invite-field {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  line-height: normal;
}

#long_page table.invite-field td {
  padding: 0;
  border: none;
  text-align: center;
  vertical-align: middle;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

#long_page table.invite-field span {
  display: block;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

.guest-count td {
  position: relative;
}

#guestCountSelect {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
  border: none;
  background: transparent;
}

.theimgi {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.long-page .timedown {
  display: grid;
  grid-template-columns: repeat(4, 17%);
  column-gap: 4%;
  justify-content: center;
  align-items: stretch;
}

.long-page .timedown_td {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 5px;
  background-color: #262626;
  color: #fff;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
}

.long-page .timedown_num {
  font-size: 18px;
  height: 20px;
  line-height: 20px;
}

.long-page .timedown_td label {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 20px;
}

.long-page .timedown_unit {
  font-size: 14px;
  line-height: 16px;
}

.save-the-date {
  position: relative;
  left: 0;
  width: 100%;
}

.long-page .calen_week,
.long-page .calen {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.long-page .calen_week > span,
.long-page .calen > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.long-page .calen {
  font-size: 12px;
}

.long-page .calen > span {
  position: relative;
  color: #606261;
  font-family: f_null;
}

.long-page .calen > span.calen-on {
  color: #fff;
}

.shansuo {
  z-index: -1;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url("./images/static/calen_heart_1.png");
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  animation: twinkling 1s infinite ease-in-out;
}

@keyframes twinkling {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes menurotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hud {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.hud > * {
  pointer-events: auto;
  position: absolute;
}

.hud.is-qingping .hud-level2,
.hud.is-qingping .trbutton,
.hud.is-qingping #noheadf {
  display: none !important;
}

#bottomgray {
  left: 0;
  right: 0;
  bottom: -300px;
  height: 10px;
  z-index: 300;
  pointer-events: none;
  box-shadow: 0 0 350px 250px #222;
}

.music-hud {
  position: absolute;
  top: calc(12px + constant(safe-area-inset-top));
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 40;
  display: flex;
  align-items: center;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

#musicPlay {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
#musicPlay img {
  width: 35px;
  height: 35px;
  margin: 4.5px;
  display: block;
  pointer-events: none;
}

@keyframes notice_music {
  0% {
    transform: translateX(400px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.notice_music {
  position: relative;
  margin-right: -4px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  animation: notice_music 1s 1 2s both;
}

.notice_music img {
  height: 26px;
  display: block;
}

.notice_music.is-gone {
  display: none;
}

#goonscroll {
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  z-index: 28;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.05s linear;
}

#goonscroll.is-on {
  opacity: 1;
  pointer-events: auto;
}

#goonscroll img {
  width: 40px;
  height: 40px;
  display: block;
}

#musicPlay.is-playing img {
  animation: menurotate 3s infinite linear;
}

#wishdanmu {
  left: 15px;
  bottom: 50px;
  width: 265px;
  height: 125px;
  overflow: hidden;
  z-index: 25;
}

.wishdanmu_one {
  position: absolute;
  left: 0;
  font-size: 11px;
  color: #fff;
  background: rgba(225, 117, 117, 0.5);
  height: 28px;
  line-height: 14px;
  margin: 3px 0;
  border-radius: 20px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
  transition: top 0.4s linear;
  cursor: pointer;
}

.wishdanmu_one span {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#btmhope {
  left: 15px;
  bottom: 16px;
  width: 58%;
  height: 36px;
  line-height: 36px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  border-radius: 30px;
  font-size: 14px;
  padding: 0 5px 0 15px;
  box-sizing: border-box;
  cursor: pointer;
  z-index: 25;
  display: flex;
  align-items: center;
}

#btmhope span {
  display: inline-block;
  width: calc(100% - 24px);
  overflow: hidden;
  white-space: nowrap;
}

#btmhope .dan-icon {
  height: 16px;
  width: auto;
  vertical-align: middle;
}

#getsms {
  right: 111px;
  bottom: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: url("./assets/more.png") center / 100% 100% no-repeat;
  cursor: pointer;
  z-index: 26;
}

#dianzanf {
  right: 63px;
  bottom: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: url("./assets/like.png") center / 100% 100% no-repeat;
  cursor: pointer;
  z-index: 26;
}

#dianzan_no {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 16px;
  color: #fff;
  font-size: 9px;
  text-align: center;
  background: linear-gradient(#ff9aa6, #ff4969);
}

#dianzanf.shake {
  animation: hud-shake 0.1s 3;
}

@keyframes hud-shake {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.upout1 {
  position: absolute;
  z-index: 40;
  pointer-events: none;
  animation: upout 1.1s 0.08s both;
}

@keyframes upout {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-120px);
    opacity: 0;
  }
}

#headf {
  right: 15px;
  bottom: 16px;
  width: 36px;
  height: 49px;
  overflow: visible;
  background: url("./assets/headf.png") center / 100% 100% no-repeat;
  cursor: pointer;
  z-index: 26;
  text-align: center;
}

#headf .headf-pic {
  position: relative;
  top: -22px;
  left: -1px;
}

#headf #f_surl {
  width: 36px;
  height: 36px;
  box-sizing: content-box;
  border: 1px solid #fff;
  border-radius: 30px;
  object-fit: cover;
  display: block;
}

#noheadf {
  display: none;
  right: 15px;
  bottom: 16px;
  width: 36px;
  height: 36px;
  border-radius: 30px;
  background: url("./assets/noheadf.png") center / 100% 100% no-repeat;
  cursor: pointer;
  z-index: 26;
}

.hud.is-right-open #headf {
  display: none;
}

.hud.is-right-open #noheadf {
  display: block;
}

.trbutton {
  display: none;
  right: 15px;
  width: 45px;
  height: 45px;
  cursor: pointer;
  z-index: 26;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px 36px;
}

.hud.is-right-open .trbutton {
  display: block;
}

#invitationf {
  right: 17px;
  bottom: 250px;
  background: none;
  cursor: default;
}

#invitationf img {
  width: 45px;
  height: 45px;
  box-sizing: content-box;
  border: 1px solid #fff;
  border-radius: 30px;
  object-fit: cover;
  margin-left: 3px;
  display: block;
}

#mapf {
  bottom: 180px;
  background-image: url("./assets/mapbtn.png");
}

#addzhanf {
  bottom: 110px;
  background-image: url("./assets/signbtn.png");
}

#inviteMap,
#inviteMap * {
  box-sizing: content-box;
}

#inviteMap {
  width: 100%;
  height: 100%;
}

.map-nav-btn {
  width: 18%;
  position: absolute;
  bottom: 5px;
  right: 5px;
  z-index: 50;
  cursor: pointer;
  display: block;
}

.toast {
  display: none;
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 99;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 8px;
  max-width: 80%;
  text-align: center;
}

.sheet-mask {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.45);
}

.dm_con_1,
.more_con_1 {
  position: absolute;
  left: 2%;
  bottom: 0;
  width: 96%;
  padding: 2%;
  background: #fff;
  border-radius: 15px 15px 0 0;
  box-sizing: border-box;
  animation: dm-con-up 0.3s both;
}

.dm_con_1 {
  height: 400px;
}

.more_con_1 {
  height: 200px;
}

@keyframes dm-con-up {
  from {
    transform: translateY(200px);
  }
  to {
    transform: translateY(0);
  }
}

.sheet-title {
  position: relative;
  width: 100%;
  height: 35px;
  line-height: 20px;
  font-size: 15px;
  font-weight: 700;
  color: #ff537e;
  text-align: center;
  background: url("./assets/sheet-title.png") center / contain no-repeat;
}

.closeimgbugift {
  position: absolute;
  right: 10px;
  top: 6px;
  width: 22px;
  height: 22px;
  border: none;
  padding: 0;
  background: #fcf6f7;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.closeimgbugift::before,
.closeimgbugift::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  background: #212121;
}
.closeimgbugift::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.closeimgbugift::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#dmList {
  width: 100%;
  height: calc(100% - 60px);
  overflow-y: auto;
  text-align: center;
}

.dm-row {
  width: 95%;
  margin: 0 auto;
  font-size: 13px;
  color: #aaa;
  padding: 10px 0;
  border-top: 0.6px solid #d7d7d7;
  text-align: left;
  box-sizing: border-box;
}

.dm-row .dm-name {
  color: #000;
  font-weight: 700;
}

.dm-row .dm-time {
  float: right;
  font-size: 11px;
  color: #aaa;
  font-weight: 300;
}

.dm-row .dm-msg {
  margin-top: 4px;
}

.more-actions {
  margin-top: 30px;
  text-align: center;
}

#qingpingBtn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

#qingpingBtn img {
  height: 50px;
  display: block;
  margin: 0 auto;
}

.wish-detail-card {
  position: absolute;
  left: 10%;
  top: 50%;
  width: 80%;
  max-height: 100%;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  transform: translateY(-40%);
}

.wish-detail-close {
  position: absolute;
  right: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  -webkit-appearance: none;
  appearance: none;
}
.wish-detail-close::before,
.wish-detail-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: #212121;
}
.wish-detail-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.wish-detail-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.wish-detail-body {
  width: calc(100% - 64px);
  padding: 25px 32px;
  font-size: 16px;
  overflow: auto;
}

.wish-detail-name {
  font-weight: 700;
  font-size: 18px;
  margin: 10px 0;
}

.wish-detail-msg {
  margin: 0 0 10px;
}

#wishDetail.sheet-mask {
  background: rgba(0, 0, 0, 0.7);
  z-index: 85;
}

.hud.is-qingping #getsms {
  right: auto;
  left: 15px;
}

.leavehope-mask {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.7);
}

.leavehope-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 30px;
  box-sizing: border-box;
}

.leavehope-title {
  position: relative;
  font-size: 25px;
  text-align: center;
  line-height: 1.2;
}

.leavehope-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.leavehope-close::before,
.leavehope-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: #212121;
}
.leavehope-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.leavehope-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.leavehope-panel input {
  display: block;
  width: 100%;
  height: 35px;
  margin-top: 20px;
  background: #f2f3f6;
  border: none;
  border-radius: 30px;
  padding: 0 20px;
  outline: none;
  font-size: 14px;
  box-sizing: border-box;
}

#leavehopeSend {
  display: block;
  width: 100%;
  height: 35px;
  margin-top: 20px;
  background: #f396a1;
  border: none;
  border-radius: 30px;
  color: #fff;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 430px) {
  html,
  body {
    background: #fff;
  }
}
