/* 基础样式 */
.feature-gallery {
  font-family: Arial, sans-serif;
  padding: 20px;
}

.feature-gallery .container {
  max-width: 1343px;
  margin: 30px auto 0 auto;
  padding: 0 30px;
}

.feature-gallery .gallery-container {
  width: 100%;
  margin: 0 auto;
}

.feature-gallery .gallery {
  display: flex;
  flex-wrap: wrap; /* 允许换行，向下排列 */
  gap: 20px;
}

/* 默认桌面端一行3个 */
.feature-gallery .gallery-item {
  width: calc(33.333% - 20px); /* 3列布局并留出间距 */
  box-sizing: border-box;
  background: #f8f9fa;
}

.feature-gallery .image-container {
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-gallery .image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-gallery .item-title {
  font-weight: bold;
  text-align: center;
  font-size: 1.1em;
  padding: 5px 0;
}

.feature-gallery .gallery-item:hover img {
  transform: scale(1.05);
}

.feature-gallery .item-action {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5px 0;
}

.feature-gallery .view-detail-btn {
  display: inline-block;
  padding: 4px 10px;
  background-color: #48cbda;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.1em;
  text-align: center;
  transition: background-color 0.3s ease;
}

.feature-gallery .view-detail-btn:hover {
  background-color: #095861;
}

.tour-tags span {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 3px;
  margin: 0 4px;
  padding: 0 4PX;
  font-size: 0.6em;
}

/* 手机端一行显示2个 */
@media (max-width: 767px) {
  .feature-gallery .container {
    padding: 0 15px;
  }

  .feature-gallery .gallery-item {
    width: calc(50% - 10px); /* 2列 */
  }

  .feature-gallery .item-title {
    padding: 5px 0;
    font-size: 0.6em;
  }

  .feature-gallery .view-detail-btn {
    padding: 4px 10px;
    font-size: 0.6em;
  }
  .tour-tags span {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 3px;
    font-size: 0.6em;
  }
}

