:root {
  --replica-ink: #171b18;
  --replica-paper: #f3efe7;
  --replica-white: #fffdfa;
  --replica-gold2: #e2c986;
  --replica-serif: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --replica-script: STKaiti, KaiTi, FangSong, serif;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--replica-paper);
}

.hero__rail {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 4;
  width: 22%;
  color: var(--replica-white);
  background: #0b0e0c;
}

.hero__rail-mark {
  position: absolute;
  top: 5.2rem;
  left: 50%;
  color: var(--replica-gold2);
  font-family: var(--replica-serif);
  font-size: clamp(2rem, 10vw, 4.4rem);
  line-height: 1;
  transform: translateX(-50%);
}

.hero__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%);
}

.hero__photo {
  position: absolute;
  inset: 0 0 auto 13%;
  z-index: 1;
  height: 80%;
  overflow: hidden;
  background: #20281f;
}

.hero__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);
  animation: replica-hero-drift 12s ease-out both;
}

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

.hero__shade {
  position: absolute;
  inset: 0 0 20% 13%;
  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%);
}

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

.hero__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;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

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

.hero__copy h1 {
  margin: 0;
  color: var(--replica-white);
  font-family: "STKaiti", "华文楷体", KaiTi, serif;
  font-size: clamp(2.1rem, 6.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .04em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .42);
}

.hero__copy h1 span,
.hero__copy h1 em {
  display: block;
}

.hero__copy h1 span {
  margin: 0 0 .12rem;
  color: #f1d98f;
  font-family: var(--replica-serif);
  font-size: .52em;
  font-weight: 500;
  letter-spacing: .24em;
}

.hero__copy h1 em {
  margin: 0;
  font-size: 1em;
  font-style: normal;
  white-space: nowrap;
}

.hero__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;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

.hero__names {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: max-content;
  margin: .62rem 0 0;
  padding: 0;
  color: rgba(255, 253, 248, .92);
  font-family: var(--replica-serif);
  font-size: clamp(.72rem, 1.65vw, .84rem);
  letter-spacing: .18em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .58);
}

.hero__names i {
  color: #e7c96d;
  font-family: Georgia, serif;
  font-size: .9em;
  font-style: normal;
  letter-spacing: 0;
}

.hero__paper {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  width: 100%;
  height: 20%;
  background: var(--replica-paper);
}

.hero__illustration {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  z-index: 6;
  width: 86%;
  height: auto;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, .34));
}

.hero__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;
}

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

.hero__scroll i::after {
  position: absolute;
  inset: -100% 0 auto;
  height: 100%;
  content: "";
  background: var(--replica-ink);
  animation: replica-cover-scroll 2s ease-in-out infinite;
}

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

@keyframes replica-hero-drift {
  from { transform: scale(1.08); }
  to { transform: scale(1.015); }
}

@media (min-width: 721px) {
  .hero {
    min-height: 950px;
  }

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

  .hero__rail {
    width: 14%;
  }

  .hero__photo,
  .hero__shade {
    left: 6%;
  }

  .hero__illustration {
    width: 64%;
  }
}

@media (max-width: 700px) {
  /* The cover is a full-bleed section, but the paper containers (row / tn-show-page)
     clip it to the paper width, which left the white side margins seen in WeChat.
     Let the cover bleed to the real screen edges. */
  .tn-reader-paper .tn-article-body.display-system-page-margins,
  .tn-reader-paper .tn-cube-box.paper.html-for-preview .tn-show-page {
    overflow: visible;
  }

  .tn-reader-paper .tn-cube-box.paper.html-for-preview .hero {
    width: calc(100% + 32px) !important;
    max-width: none !important;
    margin-left: -16px;
  }

  .hero__rail {
    width: 7.5%;
  }

  .hero__photo,
  .hero__shade {
    left: 7.5%;
  }

  .hero__rail-mark {
    left: 120%;
  }

  .hero__photo img {
    left: -8%;
  }

  .hero__copy {
    top: 4.1rem;
    left: 17%;
    width: 61%;
  }

  .hero__eyebrow {
    gap: .5rem;
    margin-bottom: .65rem;
    font-size: .44rem;
    letter-spacing: .3em;
  }

  .hero__eyebrow::before {
    width: 1rem;
  }

  .hero__copy h1 {
    font-size: 1.78rem;
  }

  .hero__copy h1 span {
    font-size: .54em;
    letter-spacing: .18em;
  }

  .hero__date {
    margin-top: .72rem;
    font-size: .92rem;
    letter-spacing: .1em;
  }

  .hero__names {
    gap: .4rem;
    margin-top: .45rem;
    font-size: .58rem;
    letter-spacing: .13em;
  }

  .hero__illustration {
    width: 72%;
  }
}
