/* App 分类的方形卡片只改内部排版；外层卡片仍复用 React 资源卡片的主题背景、边框和悬停动效。 */
.wpnav-section:has(.wpnav-resource-card--app-square) .wpnav-section-grid {
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 14px;
}
.wpnav-resource-card--app-square {
  position: relative;
  display: block;
  min-height: 130px;
  overflow: hidden;
}
.wpnav-resource-card--app-square .wpnav-resource-card-link {
  height: 100%;
  padding: 16px 10px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.wpnav-resource-card--app-square .wpnav-resource-icon { width: 44px; height: 44px; }
.wpnav-resource-card--app-square .wpnav-resource-body { width: 100%; flex: none; align-items: center; gap: 3px; }
.wpnav-resource-card--app-square .wpnav-resource-title-row { width: 100%; }
.wpnav-resource-card--app-square .wpnav-resource-title { display: block; overflow: hidden; text-overflow: ellipsis; }
.wpnav-resource-card--app-square .wpnav-resource-platforms {
  position: static;
  z-index: 1;
  justify-content: center;
  min-height: 15px;
  margin-top: -3px;
}
.wpnav-resource-card--app-square .wpnav-resource-platform-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--wpnav-text-faint);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wpnav-resource-card--app-square .wpnav-resource-detail-btn { display: none; }
.wpnav-resource-card--app-square .wpnav-resource-corner-badge { top: 6px; right: 6px; }
@media (max-width: 640px) {
  .wpnav-section:has(.wpnav-resource-card--app-square) .wpnav-section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wpnav-resource-card--app-square { min-height: 124px; }
}
