/* 工具容器布局：一行三个 */
.baidu-tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

/* 卡片容器 */
.baidu-card {
  background-color: #fff;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 5px;
}


/* 模块标题 */
.baidu-card-title {
  font-size: 20px;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 4px solid #ff6d00;
  font-weight: bold;
  color: #333;
}

/* 每个工具卡片：占 1/3 */
.baidu-tool-card {
  width: calc(33.333% - 13.33px); /* 三列结构，减去 gap 分摊 */
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f9f9f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.baidu-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* 工具截图容器：强制 16:9 */
.baidu-tool-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* 工具图片：填满容器 */
.baidu-tool-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 工具标题：黑色遮罩 + 居中白字 */
.baidu-tool-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  padding: 8px 0;
  font-size: 15px;
}

/* 响应式支持：小屏幕改为单列 */
@media (max-width: 768px) {
  .baidu-tool-card {
    width: 100%;
  }
}
