/* 基础重置样式（保留原有颜色相关） */
.swiper-container-a{
 padding-top: 10px !important;
 padding-bottom: 10px !important;
}
.posts-item.posts-item-ignore {
  padding: 0 !important;    
  margin: 0 !important;     
  background: none !important; 
  overflow: visible !important; 
  transition: none !important; 
  box-shadow: none !important; 
  border-radius: 0 !important; 
}

/* 父容器：弹性网格，自动适配列数（核心对齐逻辑） */
/* 1. 父容器强制单行（配合 swiper-wrapper）- 优化间距和滚动 */
.video-row-force,
.swiper-wrapper.video-row-force {
  display: flex !important; 
  grid-template-columns: none !important; 
  flex-wrap: nowrap !important; 
  overflow-x: auto !important; 
  overflow-y: hidden !important;
  gap: 16px !important; /* 恢复原有16px间距 */
  padding: 0 8px 8px 8px !important; /* 优化内边距，保留滚动条空间 */
  -ms-overflow-style: none !important; 
  scrollbar-width: thin !important; 
  scroll-padding-left: 8px !important; /* 滚动对齐优化 */
}

/* 滚动条样式（保留原有） */
.video-row-force::-webkit-scrollbar,
.swiper-wrapper.video-row-force::-webkit-scrollbar {
  height: 4px;
}
.video-row-force::-webkit-scrollbar-thumb,
.swiper-wrapper.video-row-force::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

/* 2. posts 标签在单行布局下的样式 - 核心优化宽度+保留间隙 */
.swiper-wrapper posts.single-video-card {
  flex: 0 0 auto !important; 
  width: clamp(120px, 18vw, 200px) !important; /* 保留原有自适应宽度 */
  margin: 6px !important; /* 取消margin，仅用gap控制间隙 */
  box-sizing: border-box !important;
}

/* 单个卡片专用：posts 标签 - 优化宽度计算，保留间隙 */
posts.single-video-card {
  display: inline-flex;
  width: calc(25% - 12px) !important; /* 4列布局，16px总间隙（12px计算值） */
  margin: 6px !important; /* 取消margin，避免和gap叠加 */
  box-sizing: border-box;
  transition: all 0.2s ease;
}

/* 单个视频卡片核心样式 - 保留所有原有颜色/交互 */
posts.single-video-card .video-card {
  display: block;
  width: 100%;
  height: 100%; 
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 卡片hover：保留原有样式 */
posts.single-video-card .video-card:hover {
  transform: none; 
}

/* 封面图容器 - 保留原有 */
posts.single-video-card .video-card__thumb {
  position: relative;
  width: 100%;
  padding-top: 135.7%; 
  overflow: hidden;
  border-radius: var(--main-radius);
}

/* 封面遮罩层（保留原有颜色） */
posts.single-video-card .video-card__thumb::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0); 
  transition: background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1; 
  border-radius: var(--main-radius);
}

/* 封面图样式 - 保留原有 */
posts.single-video-card .video-card__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .5s ease-in-out;
  opacity: 1; 
  border-radius: var(--main-radius);
}

/* 鼠标移入效果（保留原有颜色） */
posts.single-video-card .video-card:hover .video-card__thumb::after {
  background-color: rgba(0, 0, 0, 0.3); 
}
posts.single-video-card .video-card:hover .video-card__thumb img {
  transform: scale(1.20); 
}

/* 角标位置（保留原有） */
posts.single-video-card .video-card__badge-left {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}
posts.single-video-card .video-card__badge-right {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

/* 视频时长角标：保留原有颜色/样式 */
posts.single-video-card .video-card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  color: #fff;
  background: rgb(0 0 0 / 50%); 
  z-index: 2;
}

/* 播放按钮：保留原有颜色/交互 */
posts.single-video-card .video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: var(--focus-color); 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 2;
}

posts.single-video-card .video-card:hover .video-card__play {
  opacity: 1;
  animation: playBtnPulse 2s infinite ease-in-out;
}

/* 播放按钮呼吸动画（保留原有） */
@keyframes playBtnPulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* FA视频三角形图标样式（保留原有） */
posts.single-video-card .video-card__play i {
  color: #fff;
  font-size: 16px;
  margin-left: 4px;
}

/* 视频标题 - 保留原有 */
posts.single-video-card .video-card__title {
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}







/* ========== 视频卡片骨架屏 - 1:1还原卡片尺寸+间距 ========== */
/* 骨架容器：继承卡片的间距/宽度，保留gap/margin */
.video-card-placeholder {
  height: auto 
  width: calc(25% - 12px) 
}
.posts-item.posts-item-ignore-placeholder {   
  margin: 0 !important;     
  background: none !important; 
  overflow: visible !important; 
  transition: none !important; 
  box-shadow: none !important; 
  border-radius: 0 !important; 
}
/* 1. 封面占位符：还原卡片封面的间距+比例 */
.video-placeholder__thumb {
  width: 100% !important;
  height: 0 !important;
  padding-top: 135.7% !important; /* 匹配卡片封面比例 */
  background: #f2f2f2 !important;
  border-radius: var(--main-radius) !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  /* 封面和标题的间距：匹配卡片的padding-top:8px */
  margin-bottom: 8px !important;
}

/* 2. 标题占位符：还原卡片标题的间距+尺寸 */
.video-placeholder__title {
  width: calc(100% - 20px) !important; /* 卡片左右内边距10px */
  height: 21px !important; /* 14px*1.5行高 */
  max-width: 85% !important;
  background: #f2f2f2 !important;
  margin: 0 10px 6px 10px !important; /* 上下6px，左右10px */
  border-radius: 4px !important;
  display: block !important;
  line-height: 1 !important;
  font-size: 0 !important;
}

/* 3. 子标题占位符：还原间距 */
.video-placeholder__subtit {
  width: calc(100% - 20px) !important;
  max-width: 70% !important;
  height: 14px !important;
  background: #f5f5f5 !important;
  margin: 0 10px 6px 10px !important; /* 和标题保持一致的上下间距 */
  border-radius: 4px !important;
  line-height: 1 !important;
  font-size: 0 !important;
}

/* 4. 描述占位符：清除mt10干扰，还原卡片实际间距 */
.video-placeholder__desc {
  width: calc(100% - 20px) !important;
  max-width: 60% !important;
  height: 14px !important;
  background: #f5f5f5 !important;
  margin: 0 10px 10px 10px !important; /* 底部10px，匹配卡片描述间距 */
  border-radius: 4px !important;
  line-height: 1 !important;
  font-size: 0 !important;
  /* 彻底清除mt10默认样式 */
  margin-top: 0 !important;
}

/* 5. 元数据容器：还原卡片元数据的间距 */
.video-placeholder__meta-wrap {
  padding: 0 10px 8px 10px !important; /* 底部8px，左右10px */
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 10px !important; /* 匹配ml10的间距 */
}

/* 6. 元数据占位符：还原卡片角标的间距+尺寸 */
.video-placeholder__meta1 {
  width: 40px !important;
  height: 16px !important;
  background: #f5f5f5 !important;
  margin: 0 !important; /* 由容器gap控制间距，清除默认margin */
  border-radius: 3px !important;
  display: block !important;
  font-size: 0 !important;
}

.video-placeholder__meta2 {
  width: 50px !important;
  height: 16px !important;
  background: #f5f5f5 !important;
  margin: 0 !important; /* 清除ml10和默认margin，由容器gap控制 */
  border-radius: 3px !important;
  display: block !important;
  font-size: 0 !important;
}






















/* 响应式微调 - 核心优化宽度+保留间隙 */
@media (max-width: 1200px) {
  .video-row-force posts.single-video-card {
    width: calc(33.333% - 16px)!important
    margin: 8px !important
  }
  posts.single-video-card {
    width: calc(33.333% - 16px)!important
    margin: 8px !important
  }
    .video-placeholder__thumb {
    margin-bottom: 6px !important;
  }
  .video-placeholder__title {
    height: 19px !important;
    margin: 0 8px 4px 8px !important;
  }
  .video-placeholder__subtit,
  .video-placeholder__desc {
    margin: 0 8px 6px 8px !important;
  }
  .video-placeholder__meta-wrap {
    padding: 0 8px 6px 8px !important;
    gap: 8px !important;
  }
  .video-placeholder__meta1,
  .video-placeholder__meta2 {
    height: 14px !important;
  }
}
@media (max-width: 768px) {
  .video-row-force posts.single-video-card {
    width: calc(50% - 10px) !important; /* 3列：保留16px总间隙 */
  }
  posts.single-video-card {
    width: calc(50% - 10px) !important;
        
    margin: 5px !important;
  }
  
  
    .video-placeholder__thumb {
    padding-top: 135.7% !important;
    margin-bottom: 5px !important;
  }
  .video-placeholder__title {
    height: 17px !important;
    margin: 0 8px 3px 8px !important;
    max-width: 80% !important;
  }
  .video-placeholder__subtit,
  .video-placeholder__desc {
    height: 12px !important;
    margin: 0 8px 4px 8px !important;
  }
  .video-placeholder__meta-wrap {
    padding: 0 8px 5px 8px !important;
    gap: 8px !important;
  }
  .video-placeholder__meta1 {
    width: 35px !important;
    height: 12px !important;
  }
  .video-placeholder__meta2 {
    width: 45px !important;
    height: 12px !important;
  }
  
  
  
}
@media (max-width: 480px) {
  .video-row-force posts.single-video-card {
    width: calc(50% - 10px) !important; /* 2列：16px总间隙，计算值8px */
    flex: 0 0 auto !important;
  }
  posts.single-video-card {
    width: calc(50% - 10px) !important; /* 2列布局，保留8px间隙 */
  }
  /* 手机端保留gap间距 */
  .video-row-force,
  .swiper-wrapper.video-row-force {
    gap: 16px !important; /* 手机端也保留16px间隙 */
    padding: 0 4px 8px 4px !important;
  }
}
/* 超小屏适配 - 保留间隙 */
@media (max-width: 360px) {
  .video-row-force posts.single-video-card {
    width: calc(50% - 10px) !important; /* 2列：保留8px间隙 */
  }
  posts.single-video-card {
    width: calc(50% - 10px) !important;
  }
}





























/* 平板（768px以下） */
@media (max-width: 768px) {
  .video-placeholder__thumb {
    padding-top: 135.7% !important;
    margin-bottom: 5px !important;
  }
  .video-placeholder__title {
    height: 17px !important;
    margin: 0 8px 3px 8px !important;
    max-width: 80% !important;
  }
  .video-placeholder__subtit,
  .video-placeholder__desc {
    height: 12px !important;
    margin: 0 8px 4px 8px !important;
  }
  .video-placeholder__meta-wrap {
    padding: 0 8px 5px 8px !important;
    gap: 8px !important;
  }
  .video-placeholder__meta1 {
    width: 35px !important;
    height: 12px !important;
  }
  .video-placeholder__meta2 {
    width: 45px !important;
    height: 12px !important;
  }
}

/* 手机（480px以下） */
@media (max-width: 480px) {
  .video-placeholder__thumb {
    margin-bottom: 4px !important;
  }
  .video-placeholder__title {
    height: 15px !important;
    margin: 0 6px 2px 6px !important;
    max-width: 75% !important;
  }
  .video-placeholder__subtit,
  .video-placeholder__desc {
    height: 11px !important;
    margin: 0 6px 3px 6px !important;
  }
  .video-placeholder__meta-wrap {
    padding: 0 6px 4px 6px !important;
    gap: 6px !important;
  }
  .video-placeholder__meta1 {
    width: 30px !important;
    height: 11px !important;
  }
  .video-placeholder__meta2 {
    width: 40px !important;
    height: 11px !important;
  }
}

/* 超小屏（360px以下） */
@media (max-width: 360px) {
  .video-placeholder__title {
    max-width: 70% !important;
  }
}













