/* APP 推荐广告栏 */
.ads-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 14px 0 10px;
  text-align: center;
}

.ads-bar .applist-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 4px;
  background: transparent;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid var(--border);
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  line-height: 0;
}

#ads a:hover img {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 22px rgba(230, 57, 70, 0.25);
  border-color: var(--accent);
}

#ads figcaption,
#ads .caption {
  margin-top: 5px;
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .ads-bar {
    padding: 12px 0 10px;
  }
}

@media (max-width: 480px) {
  .ads-bar {
    padding: 10px 0 8px;
  }

  .ads-bar .applist-title {
    font-size: 0.88rem;
    margin-bottom: 8px;
  }

  #ads > div {
    width: 72px;
  }

  #ads img {
    width: 60px;
    height: 60px;
  }
}
