/* ---------- 云市场应用列表 /apps.html：ShopXO 式顶部多选筛选 ---------- */
.apps-hero { padding: 32px var(--wrap-x) 24px; }
.apps-hero .ds-hero-in { max-width: 720px; }
.apps-hero .crumb { margin-bottom: 16px; }
.apps-hero .ds-search { margin-top: 20px; width: 560px; }
.apps-main { padding: 8px 0 96px; background: var(--fill-1); }
.apps-wrap {
  width: 1200px;
  max-width: calc(100% - 2 * var(--pad-x));
  margin: 0 auto;
}

.apps-panel {
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--sh-1);
}
.apps-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--sub);
}
.apps-panel-head b { font-weight: 600; color: var(--title); }
.apps-panel-head button {
  min-width: 40px;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.apps-panel-head button:hover { color: var(--brand-500); }
.apps-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 56px;
  align-items: start;
  gap: 4px 12px;
  padding: 10px 20px;
  border-top: 1px solid var(--line-soft);
}
.apps-row:first-of-type { border-top: 0; }
.apps-row-label {
  padding-top: 8px;
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
  white-space: nowrap;
}
.apps-row-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 4px;
  max-height: 40px;
  overflow: hidden;
}
.apps-row.is-open .apps-row-opts { max-height: none; }
.apps-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-xs);
  background: none;
  font-size: 14px;
  line-height: 22px;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-1), background var(--dur-1);
}
.apps-opt:hover { color: var(--brand-500); background: var(--fill-1); }
.apps-opt.is-on { color: var(--brand-500); font-weight: 600; background: var(--brand-50); }
.apps-opt--brand .logo-tile {
  --lt: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.apps-more {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}
.apps-more:hover { color: var(--brand-500); }
.apps-more.is-off { visibility: hidden; pointer-events: none; }

.apps-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 16px 0;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: var(--sh-1);
}
.apps-sort { display: flex; flex-wrap: wrap; gap: 4px; }
.apps-sort button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-xs);
  background: none;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.apps-sort button:hover { color: var(--brand-500); }
.apps-sort button.is-on { color: var(--brand-500); font-weight: 600; }
.apps-bar-n { font-size: 14px; color: var(--sub); }
.apps-bar-n b { font-weight: 600; color: var(--title); }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}
.apps-empty {
  margin-top: 48px;
  padding: 48px 24px;
  border-radius: var(--r-lg);
  background: var(--white);
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--sh-1);
}
.apps-empty a,
.apps-empty button { color: var(--brand-500); }
.apps-empty button {
  min-width: 40px;
  min-height: 40px;
  border: 0;
  background: none;
  font-size: inherit;
  cursor: pointer;
}

@media (max-width: 1199px) {
  .apps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .apps-hero { padding: 24px var(--pad-x) 16px; }
  .apps-row { grid-template-columns: 56px minmax(0, 1fr); }
  .apps-more { display: none; }
  .apps-row-opts { max-height: none; }
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .apps-grid { grid-template-columns: minmax(0, 1fr); }
  .apps-panel-head,
  .apps-row { padding-left: 14px; padding-right: 14px; }
}
