/* 首页摄影杂志：独立于其他页面，动效仅作为渐进增强。 */
.home-page {
  --home-ink: #34473c;
  --home-green: #405f4c;
  --home-pink: #ab7782;
  --home-muted: #7c8277;
  --page-progress: 0;
}

.home-page .site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--home-pink);
  transform: scaleX(var(--page-progress));
  transform-origin: left;
  pointer-events: none;
}

.home-page .journal-hero {
  position: relative;
  padding-top: 32px;
  background: radial-gradient(ellipse at 82% 32%, #e9eade70, transparent 55%);
}

.home-page .hero-grid {
  grid-template-columns: .98fr 1.02fr;
  gap: clamp(32px, 5vw, 72px);
  min-height: 620px;
}

.home-page .journal-opening {
  padding: 5px 0 25px;
}

.hero-edition {
  display: flex;
  gap: 18px;
  align-items: center;
  font: 10px/1.8 Arial, sans-serif;
  letter-spacing: 2.8px;
  margin-bottom: 35px;
  color: #969487;
}

.hero-edition > span {
  border-left: 1px solid #d4d2c5;
  padding-left: 18px;
  font-size: 10px;
  letter-spacing: 1px;
}

.home-page .journal-label {
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.home-page h1 {
  font-size: clamp(38px, 4.7vw, 66px);
  line-height: 1.55;
  letter-spacing: 1px;
}

.home-page h1 em {
  color: #a87982;
}

.home-page h1 em::after {
  bottom: -7px;
  height: 9px;
  border-top-width: 1px;
  opacity: .65;
}

.home-page .journal-lead {
  margin-top: 31px;
  font-size: 13px;
  line-height: 2.15;
}

.home-page .journal-button {
  border-radius: 2px;
  padding: 16px 25px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.home-page .journal-button > span {
  transition: transform .3s ease;
}

.home-page .journal-button:hover > span {
  transform: translate(3px, -3px);
}

.home-page .hero-signature {
  margin-top: 37px;
}

.home-page .signature-heart {
  font-size: 30px;
}

.home-page .hero-gallery {
  height: 620px;
  isolation: isolate;
}

.gallery-word {
  position: absolute;
  top: -8px;
  left: 0;
  color: #e0e1d5;
  font: italic 63px/1 Georgia, serif;
  letter-spacing: -3px;
  white-space: nowrap;
  z-index: -1;
}

.home-page .hero-gallery .hero-postcard {
  top: 34px;
  left: auto;
  right: 0;
  width: 88%;
  padding: 9px 9px 0;
  transform: rotate(2deg);
  border-color: #e2ded3;
  box-shadow: 0 20px 45px #42513e0d;
}

.hero-scenes {
  position: relative;
  height: clamp(370px, 34vw, 450px);
  overflow: hidden;
  background: #dddccb;
}

.home-page .hero-postcard .hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity .8s ease, transform 7s ease-out;
}

.home-page .hero-postcard .hero-scene.is-active {
  opacity: 1;
  transform: scale(1);
}

.home-page .hero-postcard .scene-caption {
  justify-content: space-between;
  gap: 15px;
  height: 72px;
  padding: 0 13px;
  text-align: left;
  letter-spacing: 1px;
}

.scene-caption strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--home-ink);
}

.scene-caption small {
  display: block;
  font: 8px/1.5 Arial, sans-serif;
  margin-top: 7px;
  letter-spacing: 1.8px;
  color: #909381;
}

.home-page .scene-caption .scene-count {
  font: 10px Georgia, serif;
  color: #929782;
  white-space: nowrap;
}

.home-page .hero-gallery .snapshot-city {
  width: 32%;
  top: auto;
  left: -4%;
  right: auto;
  bottom: 142px;
  padding: 7px 7px 0;
  transform: rotate(-8deg);
  z-index: 1;
}

.home-page .snapshot-city img {
  aspect-ratio: 1;
}

.home-page .hero-gallery .together-stamp {
  width: 75px;
  height: 75px;
  left: -5%;
  right: auto;
  top: 66px;
  border-color: #bcaaa0;
  outline-color: #d8ccc0;
  color: #aa8c81;
  background: #fbf8f2db;
  transform: rotate(-16deg);
}

.home-page .hero-gallery .together-stamp span {
  font-size: 6px;
}

.home-page .hero-gallery .scrapbook-handwriting {
  bottom: 0;
  right: auto;
  left: 33%;
  font-size: 13px;
  transform: none;
}

.gallery-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.gallery-controls[hidden] {
  display: none;
}

.gallery-controls button {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #d8dccc;
  background: #fbf8f2;
  border-radius: 50%;
  color: var(--home-green);
  font: 14px Georgia, serif;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.gallery-controls button:hover {
  background: #e9eddf;
  border-color: #9ca68d;
}

.home-page .diary-summary {
  margin-top: 22px;
  border-top-style: solid;
  padding-block: 28px;
}

.home-page .summary-item strong {
  font-size: 38px;
  font-weight: 400;
}

.home-ribbon {
  overflow: hidden;
  margin-top: 28px;
  border-bottom: 1px solid #e8e4d9;
  padding: 17px 0;
  color: #9a9e8c;
}

.ribbon-track {
  display: flex;
  width: max-content;
}

.ribbon-track > span {
  display: flex;
  align-items: center;
  gap: 35px;
  flex-shrink: 0;
  padding-right: 35px;
  white-space: nowrap;
  font: 11px/1.5 Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 2.3px;
}

.ribbon-track i {
  color: #b99197;
  font: 18px Georgia, serif;
}

.home-ribbon.is-moving .ribbon-track {
  animation: ribbon-drift 40s linear infinite;
}

.home-ribbon.is-offscreen .ribbon-track {
  animation-play-state: paused;
}

@keyframes ribbon-drift {
  to { transform: translateX(var(--ribbon-shift, -50%)); }
}

.home-page .home-block {
  padding-block: 90px;
}

.home-page .journal-heading {
  margin-bottom: 42px;
}

.home-page .home-kicker {
  color: #9f8981;
  font-size: 9px;
  letter-spacing: 2.5px;
}

.home-page .chapter-grid {
  gap: 24px;
}

.home-page .chapter-card {
  border-radius: 2px;
  background: #fffdf8;
  box-shadow: none;
}

.home-page .chapter-image {
  height: 240px;
}

.home-page .chapter-image img {
  transition: transform .9s cubic-bezier(.2, .65, .25, 1);
}

.home-page .chapter-card:hover img {
  transform: scale(1.07);
}

.home-page .chapter-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 35px #42513e0b;
}

.home-page .chapter-number {
  border-radius: 0;
  background: #fffdf6e8;
  font-size: 8px;
  padding: 6px 9px;
}

.home-page .chapter-copy {
  padding: 24px 18px 20px;
}

.home-page .chapter-symbol {
  font-size: 22px;
  right: 18px;
}

.home-page .home-moments {
  background: #edf0e6;
}

.home-page .moment-grid {
  gap: 30px;
}

.home-page .moment-card {
  transform: rotate(-1deg);
  box-shadow: 0 12px 27px #42513e0c;
  padding: 9px 9px 0;
}

.home-page .moment-card:nth-child(2) {
  margin-top: 44px;
  transform: rotate(1.5deg);
}

.home-page .moment-card:nth-child(3) {
  transform: rotate(-.7deg);
}

.home-page .moment-card .moment-photo {
  height: 330px;
}

.home-page .moment-caption strong {
  font-size: 14px;
}

.home-page .promise-card {
  border-radius: 2px;
  transition: transform .3s ease, border-color .3s ease;
}

.home-page .promise-card:hover {
  transform: translateY(-4px);
  border-color: #aebca3;
}

.home-page .next-adventure {
  border-radius: 3px;
  background: #eee4df;
  padding: 60px;
}

.home-page .next-illustration {
  width: 80%;
  margin-inline: auto;
}

.home-page .next-illustration img {
  aspect-ratio: .9;
}

.home-page .daily-note {
  padding-block: 35px;
  border-block-style: solid;
}

.home-page .home-back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 21;
  width: 42px;
  height: 42px;
  border: 1px solid #c9d0be;
  border-radius: 50%;
  background: #fbf8f2f2;
  color: var(--home-green);
  font: 20px Georgia, serif;
  box-shadow: 0 5px 15px #42513e0d;
  cursor: pointer;
}

.home-back-top[hidden] {
  display: none;
}

.home-reveal {
  transition: opacity .75s ease, translate .75s cubic-bezier(.2, .65, .25, 1);
}

.home-reveal.is-waiting {
  opacity: 0;
  translate: 0 24px;
}

.home-page .home-arrival {
  animation: home-arrive .85s both cubic-bezier(.2, .65, .25, 1);
  animation-delay: var(--arrival-delay, 0ms);
}

@keyframes home-arrive {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 1050px) {
  .home-page .hero-grid {
    gap: 30px;
    min-height: 570px;
  }

  .home-page .hero-gallery {
    height: 570px;
  }

  .hero-scenes {
    height: 370px;
  }

  .hero-edition {
    gap: 12px;
    font-size: 8px;
    letter-spacing: 1.8px;
  }

  .hero-edition > span {
    padding-left: 12px;
    font-size: 9px;
  }

  .home-page h1 {
    font-size: clamp(35px, 4.7vw, 48px);
  }

  .home-page .diary-summary {
    gap: 15px;
  }

  .home-page .summary-item {
    gap: 10px;
    padding-left: 15px;
  }

  .home-page .summary-item strong {
    font-size: 30px;
  }

  .home-page .summary-item span {
    font-size: 10px;
  }

  .home-page .chapter-image {
    height: 245px;
  }

  .home-page .moment-grid {
    gap: 20px;
  }

  .home-page .moment-card .moment-photo {
    height: 255px;
  }

  .home-page .moment-caption strong {
    font-size: 11px;
  }

  .home-page .next-adventure {
    padding: 38px;
  }
}

@media (max-width: 760px) {
  .home-page .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 15px;
  }

  .hero-edition {
    margin-bottom: 25px;
  }

  .home-page h1 {
    font-size: clamp(35px, 7vw, 50px);
  }

  .home-page .hero-gallery {
    width: min(490px, 100%);
    height: 615px;
    margin: 0 auto;
    aspect-ratio: auto;
  }

  .hero-scenes {
    height: 420px;
  }

  .home-page .diary-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .home-page .summary-intro {
    grid-column: 1 / -1;
    margin-bottom: 12px;
  }

  .home-page .summary-intro p br {
    display: none;
  }

  .home-page .summary-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 12px;
    gap: 6px;
  }

  .home-page .summary-item small {
    font-size: 9px;
  }

  .home-page .home-block {
    padding-block: 60px;
  }

  .home-page .journal-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .home-page .next-adventure {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-page .next-illustration {
    width: min(280px, 80%);
  }
}

@media (max-width: 540px) {
  .home-page .journal-hero {
    padding-top: 24px;
  }

  .home-page .journal-opening {
    padding-bottom: 0;
  }

  .home-page .journal-lead {
    font-size: 12px;
    margin-top: 24px;
  }

  .home-page .journal-actions {
    gap: 17px;
  }

  .home-page .journal-button {
    padding: 13px 18px;
    font-size: 11px;
  }

  .home-page .hero-signature {
    margin-top: 26px;
  }

  .home-page .hero-gallery {
    height: 490px;
  }

  .home-page .hero-gallery .hero-postcard {
    width: 86%;
    top: 30px;
    padding: 7px 7px 0;
  }

  .hero-scenes {
    height: 305px;
  }

  .gallery-word {
    font-size: 45px;
    top: 0;
  }

  .home-page .hero-postcard .scene-caption {
    height: 58px;
    padding-inline: 7px;
  }

  .scene-caption strong {
    font-size: 11px;
  }

  .scene-caption small {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .home-page .hero-gallery .snapshot-city {
    left: -1%;
    bottom: 165px;
    padding: 5px 5px 0;
  }

  .home-page .hero-gallery .together-stamp {
    width: 61px;
    height: 61px;
    top: 65px;
    left: -2%;
  }

  .home-page .hero-gallery .together-stamp span {
    font-size: 5px;
  }

  .home-page .hero-gallery .scrapbook-handwriting {
    left: 0;
    bottom: 3px;
    font-size: 12px;
  }

  .home-page .chapter-image {
    height: 165px;
  }

  .home-page .chapter-grid {
    gap: 15px;
  }

  .home-page .chapter-copy {
    padding: 17px 13px;
  }

  .home-page .chapter-symbol {
    display: none;
  }

  .home-page .chapter-copy h3 {
    font-size: 18px;
  }

  .home-page .moment-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    width: min(360px, 100%);
  }

  .home-page .moment-card:nth-child(2) {
    margin-top: 0;
  }

  .home-page .moment-card .moment-photo {
    height: 315px;
  }

  .home-page .moment-caption strong {
    font-size: 14px;
  }

  .home-page .next-adventure {
    padding: 32px 24px;
  }

  .home-page .home-back-top {
    width: 37px;
    height: 37px;
    bottom: 17px;
    right: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .home-reveal.is-waiting {
    opacity: 1;
    translate: none;
  }
}
