/* 一隅山色：按原图比例排列，无底板。第一行 4:3 + 3:4，第二行 1:1 + 4:3，每行照片等高。 */
body#top .details .detail-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 28px 18px !important;
  align-items: start !important;
}

body#top .details .detail-card {
  margin: 0 !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body#top .details .detail-card img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  background: transparent !important;
}

body#top .details .detail-card:nth-child(1) { width: calc((100% - 18px) * .64) !important; }
body#top .details .detail-card:nth-child(2) { width: calc((100% - 18px) * .36) !important; }
body#top .details .detail-card:nth-child(3) { width: calc((100% - 18px) * 3 / 7) !important; }
body#top .details .detail-card:nth-child(4) { width: calc((100% - 18px) * 4 / 7) !important; }

body#top .details .detail-card figcaption {
  padding: 12px 2px 0 !important;
}

@media (max-width: 760px) {
  body#top .details .detail-grid {
    display: block !important;
  }

  body#top .details .detail-card:nth-child(n) {
    width: 100% !important;
    margin-bottom: 28px !important;
  }
}
