/* 自定义样式 - 图片居中显示 */
.mod-pic {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.mod-pic img {
  margin: 0 auto;
  display: block;
}

/* 针对特定插件的样式覆盖 */
.plugin_6633507571256072 .mod-pic {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.plugin_6633507571256072 .mod-pic img {
  margin: 0 auto;
  display: block;
}

/* 9宫格图片列表样式 */
.plugin_1622752751053048 .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.plugin_1622752751053048 .col-lg-4 {
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.plugin_1622752751053048 .mod-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.plugin_1622752751053048 .mod-pic {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plugin_1622752751053048 .mod-pic img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.plugin_1622752751053048 .mod-title {
  margin-top: 8px;
  text-align: center;
  width: 100%;
}

/* 产品中心图片自适应样式 */
.plugin_3071706520918934 .mod-pic {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 80%; /* 400:320 = 5:4 比例，即高度是宽度的80% */
  overflow: hidden;
}

.plugin_3071706520918934 .mod-pic img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 改为cover确保图片填充整个区域 */
}

/* 调整悬停效果以覆盖整个图片 */
.plugin_3071706520918934 .mod-pic:before, 
.plugin_3071706520918934 .mod-pic:after {
  content: "";
  position: absolute;
  height: 100%;
  width: 50%;
  background-color: rgba(0,0,0,.3);
  transition: all 0.5s ease-in-out;
  z-index: 1; /* 确保在图片上层 */
  opacity: 0; /* 默认不可见 */
}

.plugin_3071706520918934 .mod-pic:before {
  right: -100%;
  top: 0;
}

.plugin_3071706520918934 .mod-pic:after {
  left: -100%;
  top: 0;
}

.plugin_3071706520918934 .mod-item:hover .mod-pic:before {
  right: 0;
  opacity: 1;
}

.plugin_3071706520918934 .mod-item:hover .mod-pic:after {
  left: 0;
  opacity: 1;
}

.plugin_3071706520918934 .mod-item {
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.plugin_3071706520918934 .mod-title {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plugin_3071706520918934 .mod-read {
  margin-top: 5px;
  display: block;
  text-align: center;
}

/* 当屏幕宽度较小时调整间距 */
@media screen and (max-width: 767px) {
  .plugin_3071706520918934 .mod-pic {
    padding-bottom: 75%; /* 在小屏幕上稍微调整比例 */
  }
} 