/* APP推荐广告栏 */
.ads-bar {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: relative;
  z-index: 10;
}

#applist {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.applist-title {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  background: transparent;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}

#ads img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(255, 51, 102, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid rgba(255, 51, 102, 0.25);
  background: var(--bg-card);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  cursor: pointer;
}

#ads a:hover img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 24px rgba(255, 51, 102, 0.35);
  border-color: var(--primary);
}

#ads figcaption,
#ads .caption {
  height: 16px;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
  line-height: 16px;
}

#ads a:hover + .caption,
#ads a:hover ~ .caption {
  color: var(--accent);
}

@media (max-width: 768px) {
  .ads-bar { padding: 12px 0; }
  #ads { gap: 12px; }
  #ads > div { width: 70px; }
  #ads img { width: 62px; height: 62px; }
}
