/* 页面末尾的人工标注实证集：原件与标注图可切换。 */
#annotation-gallery-root {
  color: #173b3e;
  background: #eee7d8;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.annotation-gallery {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 9vw, 136px) max(6vw, 24px);
  background:
    radial-gradient(circle at 7% 6%, rgba(172, 57, 45, 0.1), transparent 28%),
    linear-gradient(180deg, #f3eddf 0%, #e9e0cf 100%);
}

.annotation-gallery::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(84, 67, 44, 0.14);
  content: "";
  pointer-events: none;
}

.annotation-gallery > * {
  position: relative;
  z-index: 1;
}

.annotation-gallery__header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: end;
  max-width: 1480px;
  margin: 0 auto 46px;
}

.annotation-gallery__eyebrow {
  margin: 0 0 18px;
  color: #a43d31;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.annotation-gallery h2 {
  margin: 0;
  font-family: STSong, SimSun, serif;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.annotation-gallery__intro {
  margin: 0;
  color: #6e675d;
  font-size: 14px;
  line-height: 1.95;
}

.annotation-gallery__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1480px;
  margin: 0 auto 28px;
  overflow: hidden;
  border: 1px solid rgba(84, 67, 44, 0.14);
  border-radius: 4px;
  background: rgba(84, 67, 44, 0.14);
}

.annotation-gallery__stats div {
  padding: 20px;
  background: rgba(249, 245, 236, 0.88);
}

.annotation-gallery__stats strong {
  display: block;
  margin-bottom: 5px;
  color: #143f43;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.annotation-gallery__stats span {
  color: #7b7367;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.annotation-gallery__method {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1480px;
  margin: 0 auto 42px;
  border-top: 1px solid rgba(84, 67, 44, 0.2);
  border-bottom: 1px solid rgba(84, 67, 44, 0.2);
}

.annotation-gallery__method article {
  padding: 22px 18px 24px 0;
}

.annotation-gallery__method article + article {
  padding-left: 18px;
  border-left: 1px solid rgba(84, 67, 44, 0.14);
}

.annotation-gallery__method b {
  display: block;
  margin-bottom: 7px;
  color: #a43d31;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.annotation-gallery__method strong {
  display: block;
  margin-bottom: 8px;
  font-family: STSong, SimSun, serif;
  font-size: 19px;
  font-weight: 400;
}

.annotation-gallery__method p {
  margin: 0;
  color: #777065;
  font-size: 11px;
  line-height: 1.7;
}

.annotation-gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  max-width: 1480px;
  margin: 0 auto;
}

.annotation-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(84, 67, 44, 0.17);
  border-radius: 5px;
  background: rgba(250, 247, 239, 0.9);
  box-shadow: 0 18px 45px rgba(58, 45, 29, 0.08);
}

.annotation-card__image {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #d9cfbc;
}

.annotation-card__image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  max-height: 620px;
  object-fit: contain;
  vertical-align: middle;
  transition: opacity 140ms ease;
}

.annotation-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  border-radius: 2px;
  background: rgba(10, 42, 45, 0.9);
  color: #f5ead3;
  font-size: 9px;
  letter-spacing: 0.11em;
}

.annotation-card__body {
  display: flex;
  min-height: 230px;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.annotation-card__id {
  margin: 0 0 8px;
  color: #a43d31;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.annotation-card h3 {
  margin: 0 0 10px;
  font-family: STSong, SimSun, serif;
  font-size: 23px;
  font-weight: 400;
}

.annotation-card__fields {
  margin: 0 0 16px;
  color: #756e63;
  font-size: 11px;
  line-height: 1.75;
}

.annotation-card__note {
  margin: auto 0 16px;
  color: #8a8174;
  font-size: 10px;
  line-height: 1.65;
}

.annotation-card__controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.annotation-card button {
  min-height: 38px;
  border: 1px solid rgba(23, 59, 62, 0.27);
  border-radius: 3px;
  background: transparent;
  color: #173b3e;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}

.annotation-card button[aria-pressed="true"] {
  border-color: #173b3e;
  background: #173b3e;
  color: #f5ead3;
}

.annotation-card button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.annotation-gallery__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
  max-width: 1480px;
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(84, 67, 44, 0.2);
}

.annotation-gallery__footer p {
  max-width: 850px;
  margin: 0;
  color: #746d62;
  font-size: 11px;
  line-height: 1.75;
}

.annotation-gallery__footer a {
  padding: 11px 14px;
  border: 1px solid rgba(23, 59, 62, 0.28);
  border-radius: 3px;
  color: #173b3e;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .annotation-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .annotation-gallery__header {
    grid-template-columns: 1fr;
  }

  .annotation-gallery__method {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .annotation-gallery__method article:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(84, 67, 44, 0.14);
  }

  .annotation-gallery__method article:nth-child(4) {
    border-top: 1px solid rgba(84, 67, 44, 0.14);
  }

  .annotation-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .annotation-gallery {
    padding-right: 20px;
    padding-left: 20px;
  }

  .annotation-gallery__stats,
  .annotation-gallery__grid {
    grid-template-columns: 1fr;
  }

  .annotation-gallery__method {
    grid-template-columns: 1fr;
  }

  .annotation-gallery__method article,
  .annotation-gallery__method article + article,
  .annotation-gallery__method article:nth-child(3) {
    padding-right: 0;
    padding-left: 0;
    border-top: 1px solid rgba(84, 67, 44, 0.14);
    border-left: 0;
  }

  .annotation-card__image,
  .annotation-card__image img {
    min-height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .annotation-card__image img {
    transition: none;
  }
}

@media (forced-colors: active) {
  .annotation-card,
  .annotation-card button,
  .annotation-gallery__footer a {
    border: 1px solid CanvasText;
  }
}
