/* 顶部广告位 - 利于点击 */
.ads-wrap {
  background: linear-gradient(180deg, #fff9e8 0%, #ffffff 100%);
  border-bottom: 1px solid #f0e2b8;
  padding: 0.65rem 0 0.35rem;
}

.ads-wrap .ads-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #a67c00;
  margin: 0 0 0.35rem;
  letter-spacing: 0.06em;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  background: transparent;
  margin: 0;
  padding: 0 0.5rem 0.5rem;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ads img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid #fff;
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
  -webkit-tap-highlight-color: transparent;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads figcaption,
#ads .caption {
  height: 18px;
  margin-top: 0.3rem;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

@media (max-width: 560px) {
  #ads > div {
    width: 70px;
  }

  #ads img {
    width: 62px;
    height: 62px;
  }
}
