:root {
  --paper-width: 415px;
  --ink: #3e3e3e;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #f7f7f7;
  color: var(--ink);
}

body {
  padding: 0;
  overflow-x: hidden;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body:not([class]) {
  padding: 0;
}

.tn-reader-paper {
  position: relative;
  width: var(--paper-width);
  max-width: 100vw;
  margin: 0 auto;
  margin-top: 0;
  margin-bottom: 0;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 0 3px rgba(0, 0, 0, .2);
}

.tn-board-head {
  position: relative;
  z-index: 5;
  padding: 8px 8px 0;
  background: #fff;
  color: #333;
  line-height: 1.2;
}

.tn-board-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
}

.tn-head-info {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 8px;
  color: #777;
}

.hor-sep {
  width: 1px;
  height: 9px;
  background: #bbb;
}

.tn-board-head hr,
.tn-board-foot hr {
  margin: 7px 0 0;
  border: 0;
  border-top: 1px solid #ddd;
}

.tn-article-body,
.tn-cube-box,
.tn-show-page {
  width: 100%;
}

.tn-article-body.display-system-page-margins {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.tn-article-body.display-system-page-margins > .tn-cube-box {
  width: 100% !important;
  max-width: none !important;
}

.tn-show-page {
  overflow: hidden;
  background: #fff;
}

.tn-show-page img {
  max-width: 100%;
  height: auto;
  content-visibility: auto;
}

.tn-show-page > .tn-comp-top-level {
  content-visibility: auto;
  contain-intrinsic-size: 180px;
}

.editable-cover {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

.editable-cover__rail {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 4;
  width: 14%;
  color: #fffdfa;
  background: #0b0e0c;
}

.editable-cover__rail-mark {
  position: absolute;
  top: 5.2rem;
  left: 50%;
  color: #e2c986;
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  font-size: clamp(2rem, 10vw, 4.4rem);
  line-height: 1;
  transform: translateX(-50%);
}

.editable-cover__rail-copy {
  position: absolute;
  bottom: 9rem;
  left: 50%;
  color: rgba(255, 255, 255, .6);
  font-size: .57rem;
  letter-spacing: .22em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: translateX(-50%);
}

.editable-cover__photo {
  position: absolute;
  inset: 0 0 20% 6%;
  overflow: hidden;
  background: #152017;
}

.editable-cover__photo img {
  position: relative;
  top: -20%;
  left: -4%;
  width: 108%;
  max-width: none;
  height: 120%;
  object-fit: cover;
  object-position: 52% 50%;
  filter: saturate(.78) contrast(1.04) brightness(.87);
}

.editable-cover__shade {
  position: absolute;
  inset: 0 0 20% 6%;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 12, 9, .28), transparent 30%, rgba(11, 15, 12, .12) 62%, rgba(11, 15, 12, .48)), linear-gradient(90deg, rgba(5, 8, 6, .68), transparent 36%);
}

.editable-cover__copy {
  position: absolute;
  top: max(5rem, env(safe-area-inset-top));
  left: 17%;
  z-index: 5;
  width: 59%;
  color: #fffdf8;
  text-align: left;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .34);
}

.editable-cover__eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .9rem;
  color: #ead28d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .56rem;
  letter-spacing: .38em;
}

.editable-cover__eyebrow::before {
  width: 1.6rem;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: .75;
}

.editable-cover__copy h1 {
  margin: 0;
  color: #fffdf8;
  font-family: "STKaiti", "华文楷体", KaiTi, serif;
  font-size: clamp(2.1rem, 6.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .04em;
}

.editable-cover__copy h1 span,
.editable-cover__copy h1 em {
  display: block;
}

.editable-cover__copy h1 span {
  margin: 0 0 .12rem;
  color: #f1d98f;
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  font-size: .52em;
  font-weight: 500;
  letter-spacing: .24em;
}

.editable-cover__copy h1 em {
  font-size: 1em;
  font-style: normal;
  white-space: nowrap;
}

.editable-cover__date {
  margin: 1rem 0 0;
  color: #e7c96d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 3.3vw, 1.45rem);
  font-style: italic;
  letter-spacing: .13em;
}

.editable-cover__names {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: max-content;
  margin: .62rem 0 0;
  color: rgba(255, 253, 248, .92);
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  font-size: clamp(.72rem, 1.65vw, .84rem);
  letter-spacing: .18em;
}

.editable-cover__names i {
  color: #e7c96d;
  font-family: Georgia, serif;
  font-style: normal;
  letter-spacing: 0;
}

.editable-cover__paper {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 20%;
  background: #f3efe7;
}

.editable-cover__illustration {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 6;
  width: 64%;
  height: auto;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, .38));
}

.editable-cover__scroll {
  position: absolute;
  right: 1.3rem;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 8;
  display: flex;
  gap: .7rem;
  align-items: center;
  padding: 0;
  color: #555b54;
  font-size: .66rem;
  letter-spacing: .2em;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.editable-cover__scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: rgba(23, 27, 24, .24);
}

.editable-cover__scroll i::after {
  position: absolute;
  inset: -100% 0 auto;
  height: 100%;
  content: "";
  background: #171b18;
  animation: editable-cover-scroll 2s ease-in-out infinite;
}

@keyframes editable-cover-scroll {
  0% { transform: translateY(0); }
  65%, 100% { transform: translateY(200%); }
}

.tn-show-page > .tn-comp-slot:first-of-type > .tn-comp-top-level:nth-child(1),
.tn-show-page > .tn-comp-slot:first-of-type > .tn-comp-top-level:nth-child(2) {
  display: none !important;
}

.editable-calendar {
  position: relative;
  z-index: 9;
  margin-top: 3rem;
  color: #20231f;
}

.editable-calendar__heading {
  position: relative;
  z-index: 4;
  padding: 0 .5rem 3.2rem;
  text-align: center;
}

.editable-calendar__heading p {
  margin: 0 0 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 600;
  letter-spacing: .04em;
}

.editable-calendar__heading p::before,
.editable-calendar__heading p::after {
  margin: 0 .25rem;
  color: #a55336;
  content: "—";
}

.editable-calendar__heading p i {
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .02em;
}

.editable-calendar__heading > strong,
.editable-calendar__heading > span {
  display: block;
}

.editable-calendar__heading > strong {
  margin-bottom: .5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .08em;
}

.editable-calendar__heading > span {
  color: #5f625c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: .08em;
}

.editable-calendar__body {
  position: relative;
  padding-top: 6.2rem;
  overflow: visible;
  border: 1px solid rgba(82, 79, 69, .12);
  background: linear-gradient(150deg, rgba(255, 255, 255, .72), transparent 42%), #faf8f3;
  box-shadow: 0 24px 55px rgba(45, 42, 34, .13);
}

.editable-calendar__couple {
  position: absolute;
  top: -6.9rem;
  left: 0;
  z-index: 3;
  width: 35%;
  height: 28rem !important;
  max-height: none !important;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 7px 8px rgba(35, 31, 25, .14));
}

.editable-calendar__month {
  position: absolute;
  top: 2.2rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #a55336;
}

.editable-calendar__month span {
  margin-bottom: .2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: .22em;
}

.editable-calendar__month strong {
  font-family: "STKaiti", KaiTi, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .12em;
}

.editable-calendar__weekdays,
.editable-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.editable-calendar__weekdays {
  position: relative;
  z-index: 4;
  min-height: 2.45rem;
  align-items: center;
  padding: 0 .35rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  text-align: center;
  border-radius: 0 0 1.15rem 1.15rem;
  background: #111411;
}

.editable-calendar__days {
  row-gap: .2rem;
  padding: .75rem .6rem 1rem;
}

.editable-calendar__days > span {
  position: relative;
  display: grid;
  min-height: 2.15rem;
  color: #363a35;
  font-family: Georgia, "Times New Roman", serif;
  place-items: center;
}

.editable-calendar__days b {
  font-size: 15px;
  font-weight: 600;
}

.editable-calendar__days small {
  position: absolute;
  bottom: 3px;
  z-index: 2;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .06em;
}

.editable-calendar__days .is-wedding {
  width: 2.85rem;
  height: 2.85rem;
  min-height: 0;
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  border: 1px solid rgba(255, 232, 205, .58);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .18), transparent 24%), #a8443c;
  box-shadow: 0 7px 16px rgba(116, 42, 36, .25);
}

.editable-calendar__days .is-wedding b {
  position: static;
  transform: none;
  line-height: 1;
}

.editable-calendar__days .is-wedding small {
  position: static;
  z-index: auto;
  margin: 0;
  color: #f6d9a4;
  font-size: 8px;
  line-height: 1;
}

.editable-calendar__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  color: #fff;
  background: #293129;
}

.editable-calendar__footer span {
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  letter-spacing: .16em;
}

.editable-calendar__footer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .12em;
}

@media (min-width: 721px) {
  .editable-calendar__heading {
    padding-bottom: 82px;
  }

  .editable-calendar__body {
    padding-top: 150px;
  }

  .editable-calendar__couple {
    top: -130px;
    width: 40%;
    max-height: 280px;
  }

  .editable-calendar__month {
    top: 3rem;
    right: 2rem;
  }

  .editable-calendar__days {
    row-gap: 10px;
    padding: 20px 24px 24px;
  }

  .editable-calendar__days > span {
    min-height: 42px;
  }

  .editable-calendar__days .is-wedding {
    width: 40px;
    height: 40px;
  }

  .editable-calendar__footer {
    min-height: 55px;
    box-sizing: border-box;
  }
}

.tn-board-foot {
  position: relative;
  padding: 0 8px 8px;
  background: #fff;
  color: #888;
  font-size: 8px;
  line-height: 18px;
}

.tn-board-foot .text-left {
  float: left;
}

.tn-board-foot .text-right {
  float: right;
}

.tn-board-foot::after {
  display: block;
  clear: both;
  content: "";
}

.global-docker {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}

.global-docker .player-button {
  pointer-events: auto;
}

.player-button {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(0.85rem, env(safe-area-inset-right));
  cursor: pointer;
}

.player-button button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .75);
  cursor: pointer;
}

.player-button .btn,
.player-button.on .btn {
  background-image: none !important;
}

.player-button button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(226, 201, 134, .5);
  border-radius: 50%;
  background: rgba(16, 20, 17, .72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  backdrop-filter: blur(8px);
}

.player-icon {
  display: grid;
  width: 28px;
  height: 28px;
  color: #171b18;
  font-size: 18px;
  border-radius: 50%;
  background: #e2c986;
  place-items: center;
}

.player-icon::before {
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  content: "";
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
  border-left: 9px solid #171b18;
  border-right: 0;
}

.player-button.on .player-icon::before {
  width: 10px;
  height: 12px;
  margin-left: 0;
  content: "";
  border: 0;
  background: linear-gradient(90deg, #171b18 0 3px, transparent 3px 7px, #171b18 7px 10px);
}

.player-button button::before {
  display: none;
}

.player-button:not(.on) button::before {
  content: "♪";
}

.reader-nav-panel {
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: 80px;
  margin-left: 25px;
  z-index: 10;
}

[style*="b981c16f0348094dbdb0b17bffe53821"] {
  background-image: url("assets/b981c16f0348094dbdb0b17bffe53821_sz-164957.png") !important;
}

[style*="5e8d80d6dca7112d30af3220b26ce0d6"] {
  background-image: url("assets/5e8d80d6dca7112d30af3220b26ce0d6-sz_641451.png") !important;
}

[style*="d74ed3b4bf9fc7af781a9dc4fd25458e"] {
  background-image: url("assets/d74ed3b4bf9fc7af781a9dc4fd25458e-sz_320235.jpg") !important;
}

.qr-code-box {
  width: 58px;
  height: 58px;
  border: 5px solid #fff;
  background:
    linear-gradient(90deg, #222 10%, transparent 10% 20%, #222 20% 30%, transparent 30% 40%, #222 40% 50%, transparent 50% 60%, #222 60% 70%, transparent 70% 80%, #222 80% 90%, transparent 90%),
    linear-gradient(#222 10%, transparent 10% 20%, #222 20% 30%, transparent 30% 40%, #222 40% 50%, transparent 50% 60%, #222 60% 70%, transparent 70% 80%, #222 80% 90%, transparent 90%);
  background-color: #fff;
  box-shadow: 0 0 0 1px #aaa;
}

@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .tn-reader-paper {
    width: min(var(--paper-width), calc(100% - 32px));
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
    box-shadow: none;
  }

  .tn-article-body,
  .tn-article-body.display-system-page-margins {
    width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .reader-nav-panel {
    display: none;
  }

  .editable-calendar__month {
    top: .8rem;
    right: 1rem;
    z-index: 5;
  }

  .editable-cover__photo,
  .editable-cover__shade {
    right: 0;
    left: 6%;
  }

  .editable-cover__photo img {
    left: -4%;
  }

  .tn-reader-paper .tn-cube-box.paper.html-for-preview .editable-cover__photo img {
    width: 108% !important;
    max-width: none !important;
  }

  .editable-calendar__body {
    padding-top: 21rem;
  }

  .editable-calendar__couple {
    top: 0;
    width: 40%;
    height: 21rem !important;
    max-height: none !important;
    object-fit: contain;
    object-position: left bottom;
  }

  .uniform-small-copy .tn-cell-text,
  .story-text-replacement__copy {
    font-size: 12px;
    letter-spacing: 0.04em;
    line-height: 2.35;
  }

  .uniform-small-copy .tn-cell-text p,
  .story-text-replacement__copy p {
    white-space: nowrap;
  }
}

@media (min-width: 721px) {
  .tn-reader-paper .tn-cube-box.paper.html-for-preview .editable-cover {
    width: calc(100% + 62px) !important;
    max-width: none !important;
    min-height: 950px;
    height: 950px;
    margin-left: -31px;
  }

  .editable-cover__rail {
    width: 12%;
  }

  .editable-cover__photo,
  .editable-cover__shade {
    left: 6%;
  }

  .editable-cover__illustration {
    width: 64%;
  }
}

html,
body {
  background: #eee8dc;
}

.tn-reader-paper {
  background-color: #f4eee3;
}

.tn-show-page {
  background-color: #f4eee3;
  background-image: url("assets/paper-wedding-background.png");
  background-position: top center;
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.editable-cover {
  min-height: 100svh;
  background: #fff;
}

.editable-cover__photo,
.editable-cover__shade,
.editable-cover__paper,
.editable-cover__illustration {
  display: block;
}

.editable-cover__copy {
  top: max(5rem, env(safe-area-inset-top));
  left: 17%;
  width: 59%;
  color: #fffdf8;
  text-align: left;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .34);
}

.editable-cover__eyebrow {
  justify-content: flex-start;
  margin-bottom: .9rem;
  color: #ead28d;
  letter-spacing: .38em;
}

.editable-cover__eyebrow::before {
  display: block;
}

.editable-cover__copy h1 {
  color: #fffdf8;
  font-size: clamp(2.1rem, 6.6vw, 3.25rem);
}

.editable-cover__copy h1 span {
  color: #f1d98f;
}

.editable-cover__date {
  color: #e7c96d;
}

.editable-cover__names {
  justify-content: flex-start;
  width: max-content;
  color: rgba(255, 253, 248, .92);
}

.editable-cover__names i {
  color: #e7c96d;
}

.story-text-replacement {
  margin: 10px 0;
}

.welcome-lettering {
  width: 49%;
  margin: 18px auto 4px;
  padding: 0;
  line-height: 0;
  text-align: center;
}

.welcome-lettering img {
  display: block;
  width: 100%;
  height: auto;
}

.uniform-small-copy .tn-cell-text,
.story-text-replacement__copy {
  color: #5c514b;
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  line-height: 2.35;
  text-align: center;
}

.uniform-small-copy .tn-cell-text em {
  font-style: normal;
}

.uniform-small-copy .tn-cell-text [style*="background-color"] {
  background-color: transparent !important;
}

.story-text-replacement__copy {
  padding: 34px 18px 38px;
}

.story-text-replacement__copy p {
  margin: 0;
}

.tn-cell-text[opera-tn-ra-cell*="comps:27.col1:0.col1:1"] {
  text-align: left !important;
}

@media (max-width: 480px) {
  .welcome-lettering {
    margin-top: 14px;
  }

  .uniform-small-copy .tn-cell-text,
  .story-text-replacement__copy {
    font-size: 12px;
    letter-spacing: 0.08em;
    line-height: 2.35;
  }

  .uniform-small-copy .tn-cell-text p,
  .story-text-replacement__copy p {
    white-space: nowrap;
  }

  .story-text-replacement__copy {
    padding: 28px 10px 32px;
  }
}
