.post-content {
  user-select: none;
  -webkit-user-select: none;
}
.my-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}
.icon-csdn {
  background-image: url('/img/csdn.png');
}
/* 四宫格容器 - 支持大小调节 */
.gallery-grid {
  --item-size: 300px; /* 可调节项大小 */
  --gap-size: 10px;   /* 可调节间距 */
  
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-size);
  margin: 20px 0;
}

/* 四宫格项目 */
.gallery-item {
  text-align: center;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

/* 四宫格媒体 */
.gallery-media {
  width: 100%;
  height: var(--item-size);
  object-fit: cover;
  display: block;
}

/* 四宫格说明文字 */
.gallery-caption {
  padding: 10px;
  font-size: 0.9em;
  color: #666;
  background: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-media {
    height: 250px;
  }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
  .gallery-caption {
    background: #2d3748;
    color: #cbd5e0;
  }
}
/* 视频在四宫格中的样式优化 */
.gallery-item video.gallery-media {
  /* background: #000; */
  outline: none;
}

/* 确保视频在不同设备上正确显示 */
@media (max-width: 768px) {
  .gallery-item video.gallery-media {
    height: 250px;
  }
}