/* 邮票画廊的首屏（首页和全部内容页共用） */
.hero {
  position: relative;
  height: 100svh;
  min-height: 630px;
  background: var(--hero-bg);
  color: var(--cream);
  transition: background 0.6s;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../assets/textures/shadows.webp") center/cover;
  mix-blend-mode: multiply;
  opacity: 0.1;
  pointer-events: none;
}
.hero-path {
  position: absolute;
  left: -7vw;
  top: 32%;
  width: 47vw;
  height: 35vh;
  fill: none;
  stroke: var(--hero-path);
  stroke-width: 10;
  stroke-dasharray: 14 12;
  opacity: 0.9;
  transition: stroke 0.6s;
}
.hero-heading {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 15%;
  bottom: 20%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: var(--hero-fg);
  pointer-events: none;
  transition: color 0.6s;
}
.hero-heading strong {
  font:
    900 clamp(78px, 14vw, 214px) / 0.78 Cenzo,
    "Microsoft YaHei",
    sans-serif;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero-heading strong.zh {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(68px, 12vw, 174px);
  font-weight: 900;
  letter-spacing: -0.1em;
}
.hero-stage {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: pan-y;
}
.hero-stage.dragging {
  cursor: grabbing;
  touch-action: none;
}
.stamp-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stamp-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(27vw, 328px);
  aspect-ratio: 496/661;
  display: block;
  pointer-events: auto;
  filter: drop-shadow(20px 18px 6px #161e183d);
  will-change: transform;
  transition:
    transform 0.62s cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 0.35s;
}
.stamp-card.hidden {
  pointer-events: none;
}
.stamp-card:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 10px;
}
.stamp-paper {
  position: absolute;
  inset: 0;
  background: var(--cream);
  padding: 14px;
}
.stamp-teeth {
  position: absolute;
  pointer-events: none;
  background: radial-gradient(circle, var(--cream) 7px, transparent 7.5px) center/18px 18px;
}
.stamp-teeth.top,
.stamp-teeth.bottom {
  height: 18px;
  left: 0;
  right: 0;
}
.stamp-teeth.top {
  top: -9px;
}
.stamp-teeth.bottom {
  bottom: -9px;
}
.stamp-teeth.left,
.stamp-teeth.right {
  width: 18px;
  top: 0;
  bottom: 0;
}
.stamp-teeth.left {
  left: -9px;
}
.stamp-teeth.right {
  right: -9px;
}
.stamp-art {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--card-bg);
}
.shape {
  position: absolute;
  display: block;
}
.shape.arc {
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--card-sun);
  top: -25%;
  left: 35%;
}
.shape.block {
  width: 85%;
  height: 48%;
  bottom: -8%;
  left: -18%;
  background: var(--card-block);
  transform: rotate(-27deg);
}
.shape.orbit {
  width: 68%;
  aspect-ratio: 1;
  border: 21px solid var(--cream);
  border-radius: 50%;
  top: 19%;
  left: 10%;
  opacity: 0.68;
}
.shape.person {
  height: 68%;
  width: 34%;
  bottom: -4%;
  left: 48%;
  background: var(--card-person);
  border-radius: 46% 46% 10% 10% / 26% 26% 2% 2%;
  transform: rotate(14deg);
}
.shape.person::before {
  content: "";
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  left: 20%;
  top: -18%;
  border-radius: 50%;
  background: var(--card-person);
}
.shape.person::after {
  content: "";
  position: absolute;
  width: 110%;
  height: 15%;
  left: -72%;
  top: 39%;
  border-radius: 50px;
  background: var(--card-person);
  transform: rotate(-35deg);
}
.stamp-card:nth-child(even) .shape.person {
  left: 18%;
  transform: rotate(-12deg);
}
.stamp-card:nth-child(3n) .shape.arc {
  left: -45%;
  top: -15%;
}
.stamp-card:nth-child(3n) .shape.block {
  left: 40%;
  transform: rotate(25deg);
}
.stamp-inscription {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  top: 9px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--cream);
  font:
    900 20px/1 Cenzo,
    sans-serif;
}
.stamp-inscription b {
  border: 1.5px solid currentColor;
  padding: 2px 5px;
  font-size: 24px;
}
.stamp-title {
  position: absolute;
  z-index: 2;
  left: 11px;
  right: 10px;
  bottom: 12px;
  color: var(--cream);
  font:
    900 clamp(20px, 2.2vw, 30px) / 1.06 "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  text-shadow: 0 1px 3px #0002;
  overflow-wrap: anywhere;
}
.en .stamp-title {
  font-family: Cenzo, Impact, sans-serif;
  font-size: clamp(24px, 2.7vw, 37px);
}
.hero-controls {
  position: absolute;
  left: clamp(20px, 3.2vw, 52px);
  right: clamp(20px, 3.2vw, 52px);
  bottom: 72px;
  z-index: 5;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}
.hero-controls > * {
  pointer-events: auto;
}
.hero-index,
.hero-hint {
  font-size: 10px;
  letter-spacing: 0.1em;
}
.hero-index strong {
  display: block;
  font:
    900 36px/1 Cenzo,
    sans-serif;
  letter-spacing: 0;
}
.hero-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-nav button {
  border: 1.5px solid currentColor;
  color: inherit;
  background: transparent;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}
.hero-nav button:hover {
  background: var(--cream);
  color: var(--hero-bg);
}
.hero-open {
  padding: 11px 17px;
  border: 1.5px solid currentColor;
  border-radius: 50px;
  background: var(--cream);
  color: var(--ink);
  font-size: 11px;
}
.hero-open:hover {
  background: var(--yellow);
}
.hero-hint {
  text-align: right;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 27px;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 10px;
  white-space: nowrap;
}
