/* 首页邮票画廊：布局、邮票卡片、底部信息 */
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  overscroll-behavior: none;
}
.gallery-home {
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
}
.gallery-home .hero {
  height: 100%;
  min-height: 540px;
}
.gallery-home .hero-heading {
  inset: 12% 2% 7%;
  justify-content: space-between;
}
.gallery-home .hero-heading strong {
  font-size: clamp(80px, 14vw, 210px);
  max-width: 100%;
  white-space: nowrap;
}
.gallery-home .hero-heading strong.zh {
  font-size: clamp(63px, 11vw, 158px);
  letter-spacing: -0.09em;
}
.gallery-home .hero-controls {
  bottom: 28px;
}
.gallery-home .scroll-cue {
  display: none;
}
.gallery-home .hero-open {
  background: transparent;
  color: var(--cream);
}
.gallery-home .hero-open:hover {
  background: var(--cream);
  color: var(--ink);
}
.gallery-home .gallery-instruction {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 29px;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.gallery-home .site-header {
  position: absolute;
  background: transparent;
  color: var(--cream);
  border: 0;
  backdrop-filter: none;
}
.gallery-home .site-header .header-link {
  display: none;
}
.gallery-home .site-header .brand {
  margin-right: auto;
}
.gallery-home .hero-hint {
  display: none;
}
.gallery-home .stamp-card {
  width: min(27vw, 340px);
}
.gallery-home .stamp-title {
  text-shadow:
    0 2px 4px #273830bb,
    0 0 14px #27383077;
}
.gallery-home .stamp-art::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 27%;
  background: linear-gradient(transparent, #172a2455);
  pointer-events: none;
}
.gallery-home .stamp-title {
  z-index: 3;
}
.gallery-home .stamp-inscription {
  z-index: 3;
}
.gallery-home .gallery-nav-links {
  position: absolute;
  z-index: 5;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  font-size: 11px;
  white-space: nowrap;
}
.gallery-home .gallery-nav-links a:hover {
  text-decoration: underline;
}
.gallery-home .hero-stage {
  touch-action: none;
}
.gallery-home .hero-stage.dragging {
  touch-action: none;
}
.gallery-home .site-menu {
  top: 72px;
}
@media (max-width: 650px) {
  .gallery-home .hero-heading {
    inset: 17% 1% 19%;
  }
  .gallery-home .hero-heading strong,
  .gallery-home .hero-heading strong.zh {
    font-size: clamp(55px, 15vw, 94px);
  }
  .gallery-home .stamp-card {
    width: min(62vw, 275px);
  }
  .gallery-home .hero-controls {
    bottom: 65px;
  }
  .gallery-home .gallery-instruction {
    bottom: 22px;
  }
  .gallery-home .gallery-nav-links {
    top: 74px;
    font-size: 10px;
    gap: 20px;
  }
  .gallery-home .site-header {
    min-height: 61px;
  }
  .gallery-home .site-menu {
    top: 62px;
  }
  .gallery-home .hero-index strong {
    font-size: 30px;
  }
}
.gallery-home .hero-heading strong.zh {
  font-size: clamp(60px, 9vw, 138px);
  letter-spacing: -0.075em;
}
.gallery-home .stamp-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../assets/textures/paper.webp") center/cover;
  mix-blend-mode: multiply;
  opacity: 0.5;
  filter: grayscale(1) contrast(1.8);
  pointer-events: none;
  z-index: 5;
}
.gallery-home .stamp-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../assets/textures/paper.webp") center/cover;
  mix-blend-mode: multiply;
  opacity: 0.34;
  filter: grayscale(1) contrast(1.6);
  pointer-events: none;
  z-index: 4;
}
.gallery-home .stamp-art::after {
  height: 26%;
  background: #2738304d;
  clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}
.gallery-home .hero {
  background-image: url("../../assets/textures/paper.webp");
  background-blend-mode: multiply;
  background-size: cover;
}
.intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: #638fc0;
  color: var(--cream);
  cursor: pointer;
  animation: intro-to-stamp 1s 1.55s cubic-bezier(0.45, 0, 0.2, 1) both;
}
.intro-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../assets/textures/paper.webp") center/cover;
  mix-blend-mode: multiply;
  opacity: 0.47;
  filter: grayscale(1) contrast(1.7);
  pointer-events: none;
  z-index: 3;
}
.intro-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translateY(-4%);
  animation: intro-copy-out 0.35s 1.35s forwards;
}
.intro-meta {
  display: flex;
  justify-content: space-between;
  width: min(600px, 70vw);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.intro-copy strong {
  font:
    900 clamp(66px, 12vw, 160px) / 0.9 "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  letter-spacing: -0.07em;
  margin: 20px 0;
}
.en .intro-copy strong {
  font-family: Cenzo, Impact, sans-serif;
  letter-spacing: -0.035em;
}
.intro-copy small {
  font-size: 13px;
  letter-spacing: 0.44em;
  padding-left: 0.44em;
}
@keyframes intro-copy-out {
  to {
    opacity: 0;
    transform: translateY(-8%);
  }
}
@keyframes intro-to-stamp {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  85% {
    transform: scale(0.34);
    opacity: 1;
  }
  100% {
    transform: scale(0.34);
    opacity: 0;
  }
}
@media (max-width: 650px) {
  .gallery-home .hero-heading strong.zh {
    font-size: clamp(40px, 12.5vw, 76px);
  }
  .intro-meta {
    width: 75vw;
    font-size: 11px;
  }
  .intro-copy strong {
    font-size: clamp(54px, 13vw, 88px);
  }
  .intro-copy small {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .intro-overlay {
    display: none;
  }
}
.gallery-home .stamp-art::after {
  display: none;
}
.gallery-home,
.gallery-home .hero {
  overflow: clip;
}
.gallery-home .stamp-art-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
