/* APP推荐广告栏 */
.ads-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

#applist {
  text-align: center;
}

#applist .applist-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 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(0, 0, 0, 0.4);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid var(--border);
  background: var(--bg-card);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  padding: 2px;
}

#ads a:hover img {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.35);
  border-color: var(--accent);
}

#ads figcaption,
#ads .caption {
  margin-top: 6px;
  height: auto;
  min-height: 15px;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

#ads a:hover + .caption,
#ads a:hover ~ .caption {
  color: var(--accent);
}

@media (max-width: 768px) {
  .ads-bar {
    padding: 10px 0;
  }

  #ads > div {
    width: 72px;
  }

  #ads img {
    width: 64px;
    height: 64px;
  }
}
