.ad1, .ad2 {
  position: relative;
  display: inline-block;
  width: 100%;
  border-radius: 12px; /* 增加圆角弧度 */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad1 img, .ad2 img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px; /* 图片也添加圆角，与容器保持一致 */
  transition: transform 0.3s ease;
}


/* 鼠标悬停效果 */
.ad1:hover, .ad2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 14px; /* 悬停时圆角稍微增大 */
}

.ad1:hover img, .ad2:hover img {
  transform: scale(1.02);
  border-radius: 12px; /* 图片圆角跟随变化 */
}

.ad1:hover::after, .ad2:hover::after {
  opacity: 1;
  transform: scale(1.05);
  background: #ff3333;
  border-radius: 8px; /* 角标圆角跟随变化 */
}

/* 响应式圆角调整 */
@media (max-width: 768px) {
  .ad1, .ad2 {
    border-radius: 8px; /* 移动端圆角稍小 */
  }
  
  .ad1 img, .ad2 img {
    border-radius: 6px;
  }
}