/* 顶部广告推荐栏 */
.ads-bar {
  background: var(--bg-section, #111118);
  border-bottom: 1px solid var(--border, #2a2a38);
  padding: 10px 0 6px;
  position: sticky;
  top: 69px;
  z-index: 900;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 4px;
  background: transparent;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 12px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}

#ads img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid rgba(255, 45, 85, 0.25);
  background: #1a1a24;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 14px;
  padding: 2px;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 20px rgba(255, 45, 85, 0.35);
  border-color: rgba(255, 45, 85, 0.6);
}

#ads figcaption,
#ads .caption {
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  color: var(--text-secondary, #a0a0b0);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

#ads a:hover + .caption,
#ads a:focus + .caption {
  color: var(--primary, #ff2d55);
}

@media (max-width: 768px) {
  .ads-bar {
    top: 61px;
  }

  #ads > div {
    width: 68px;
  }

  #ads img {
    width: 52px;
    height: 52px;
  }
}
