.pin {
  position: absolute;
  opacity: 0;
  user-select: none;
}
.handle {
  color: #657786;
  font-size: 14px;
}
.date {
  color: #657786;
  font-size: 14px;
  margin-bottom: 10px;
}
.note-content {
  margin-bottom: 12px;
  line-height: 1.4;
  font-size: 15px;
}
.images-container {
  border-radius: 16px;
  overflow: hidden;
  margin-top: 12px;
}
/* 图片布局样式 */
.images-grid {
  display: grid;
  grid-gap: 2px;
  height: 100%;
}
/* 单张图片容器 */
.single-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  /* 添加点击指针 */
}
/* 横向图片样式 */
.landscape {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
/* 纵向图片样式 */
.portrait {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
/* 长图样式 */
.long-portrait {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
}
/* 长图指示器 */
.long-image-indicator {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
  pointer-events: none;
  /* 防止阻止点击事件 */
}
.landscape {
  width: 100%;
  height: auto;
}
.portrait {
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
/* 两张图片 */
.two-images {
  grid-template-columns: 1fr 1fr;
}
/* 三张图片 */
.three-images {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.three-images .image-wrapper:first-child {
  grid-row: span 2;
}
/* 四张及以上图片 */
.four-images {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.image-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-wrapper img {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.image-wrapper:hover img {
  transform: scale(1.03);
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  pointer-events: none;
}
/* 懒加载样式 */
/*
.lazy-img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-img.loaded {
    opacity: 1;
}

.lazy-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #f5f5f5 25%, #e8e8e8 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: placeholderShimmer 1.5s linear infinite;
}

@keyframes placeholderShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
*/
/* 确保lazysizes图片正确显示 */
.lazyload,
.lazyloading {
  opacity: 0;
  transition: opacity 400ms;
}
.lazyloaded {
  opacity: 1;
}
/* 图片容器的背景色 */
.image-wrapper {
  background-color: var(--bg-main);
  /* 使用主题变量 */
}
.single-image-container {
  background-color: var(--bg-main);
  /* 使用主题变量 */
}
/* 图片预览模态框 */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 8px;
}
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}
.caption {
  color: white;
  text-align: center;
  margin-top: 15px;
  font-size: 18px;
  padding: 10px;
  background: #000000;
  border-radius: 8px;
  display: inline-block;
}
/* 桌面端 */
@media (min-width: 1550px) {
  .images-grid {
    max-height: 600px;
  }
}
/* 含侧边栏动态 */
@media (min-width: 1240px) and (max-width: 1549px) {
  .images-grid {
    max-height: 500px;
  }
}
/* 不含侧边栏动态 */
@media (min-width: 800px) and (max-width: 1239px) {
  .images-grid {
    max-height: 400px;
  }
}
/* 移动端 */
@media (max-width: 799px) {
  .images-grid {
    max-height: 300px;
  }
}
.pixel {
  image-rendering: pixelated;
}
