/* APP 推荐下载广告条 */
.app-ad-bar {
  background: var(--bg-section, #1c2128);
  border-bottom: 1px solid var(--border, #30363d);
  padding: 12px 0;
  position: sticky;
  top: 73px;
  z-index: 900;
}

#applist {
  text-align: center;
}

#applist .applist-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-light, #2ecc71);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 16px;
  background: transparent;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}

#ads img {
  width: 64px;
  height: 64px;
  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, #30363d);
  background: #fff;
}

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

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(26, 127, 75, 0.35);
  border-color: var(--primary-light, #2ecc71);
}

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

#ads .ad-skeleton {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg-card, #161b22);
  border: 1px solid var(--border, #30363d);
  animation: ad-pulse 1.2s ease-in-out infinite;
}

@keyframes ad-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@media (max-width: 768px) {
  .app-ad-bar {
    top: 65px;
    padding: 10px 0;
  }

  #ads > div {
    width: 72px;
  }

  #ads img,
  #ads .ad-skeleton {
    width: 58px;
    height: 58px;
  }
}
