/* 五十自在首页的邮友圈入口 */
.stamp-entry {
  margin: 24px 0;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid #b5cbc0;
  border-radius: 12px;
  background: #eef4f1;
}
.stamp-entry h2 { border: 0; margin: 0; padding: 0; }
.stamp-entry p { margin: .38em 0 .85em; }
.stamp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .44em .88em;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}
.stamp-action:hover { color: #fff; background: var(--green-dark); }
.stamp-action-secondary { background: transparent; color: var(--green-dark); }
.stamp-action-secondary:hover { background: #eef4f1; color: var(--green-dark); }
.stamp-actions { display: flex; flex-wrap: wrap; gap: .5em; }
.stamp-actions .stamp-action { text-align: center; }
.stamp-entry :focus-visible, .philately :focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.philately .site-header :focus-visible, .philately .site-nav :focus-visible { outline-color: #fff; }
.philately .font-switch button { min-height: 44px; }
.philately .font-switch button[aria-pressed="true"] { color: var(--ink); }
.philately .site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.philately .site-nav [aria-current] { text-decoration: underline; text-underline-offset: .3em; }
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: .4em .8em;
  background: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.collection { max-width: 1030px; }
.exhibit-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  align-items: center;
  gap: clamp(18px, 5vw, 64px);
  padding: clamp(20px, 5vw, 54px);
  border: 1px solid #b5cbc0;
  border-radius: 14px;
  background: #eef4f1;
}
.section-label { margin: 0 0 .45em; color: var(--green-dark); font-weight: 700; }
.exhibit-intro h1 { margin: 0; font-size: 2em; line-height: 1.24; color: var(--green-dark); }
.exhibit-intro p:not(.section-label) { max-width: 25em; margin: .72em 0 1em; }
.featured-stamp { display: grid; gap: .5em; text-align: center; font-weight: 700; min-width: 0; }
.stamp-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-width: 0;
  border-radius: 8px;
  background: #ebe4d7;
}
.featured-stamp .stamp-image { aspect-ratio: 1; background: #e4e9df; }
.stamp-image img {
  position: absolute;
  inset: 10%;
  display: block;
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.stamp-image.missing { align-content: center; color: var(--muted); text-align: center; }
#catalogue { scroll-margin-top: 12px; }
.stamp-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: .65em;
  margin-top: .7em;
}
.stamp-filters label { display: grid; gap: .24em; font-weight: 700; }
.stamp-filters select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: .34em 1.6em .34em .54em;
  appearance: none;
  border: 1px solid #758d82;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position: right 17px center, right 11px center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.catalogue-count { color: var(--muted); margin: .85em 0 .5em; }
.stamp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.stamp-grid li { margin: 0; min-width: 0; }
.stamp-card {
  display: block;
  height: 100%;
  padding: .55em;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.stamp-card:hover { border-color: var(--green); color: var(--green-dark); }
.stamp-card:hover .stamp-name { text-decoration-thickness: 2px; }
.stamp-name, .stamp-meta, .stamp-reason { display: block; padding-inline: .2em; }
.stamp-name { margin-top: .4em; font-size: 1.1em; font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
.stamp-meta, .stamp-reason { color: var(--muted); font-size: .88em; line-height: 1.5; }
.stamp-reason { margin: .36em 0; color: var(--green-dark); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .6em; }
.stamp-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  gap: clamp(18px, 4vw, 45px);
  align-items: start;
}
.stamp-profile .stamp-image { aspect-ratio: 1; }
.stamp-profile h1 { color: var(--green-dark); }
.stamp-facts { margin: .75em 0; }
.stamp-facts div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .65em; }
.stamp-facts dt { font-weight: 700; }
.stamp-facts dd { margin: 0; }
.stamp-sources { display: flex; flex-wrap: wrap; gap: .2em 1em; font-size: .88em; }
.stamp-notice { padding: .7em .85em; border-radius: 8px; background: #eef4f1; }
@media (max-width: 800px) {
  .stamp-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stamp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .exhibit-intro, .stamp-profile, .stamp-grid { grid-template-columns: minmax(0, 1fr); }
  .featured-stamp { width: min(100%, 240px); justify-self: start; }
  .wide-break { display: none; }
}
@media (max-width: 390px) {
  .stamp-filters { grid-template-columns: minmax(0, 1fr); }
}

