/* Generated by converter. Edit sources, not dist. */
/* GatePath 图标库专用样式 */

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
}

.section-tabs button {
  font-size: 13px;
  padding: 7px 12px;
}

.section-tabs button.active {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--accent-strong);
  font-weight: 600;
}

.notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px dashed color-mix(in srgb, var(--warn), var(--line) 40%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--warn), transparent 92%);
  color: var(--muted);
  font-size: 13px;
}

.notice[hidden] { display: none; }

.section-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}

.source-sidebar {
  display: grid;
  gap: 6px;
  align-content: start;
  position: sticky;
  top: 128px;
  max-height: calc(100vh - 144px);
  overflow-y: auto;
}

.source-sidebar button,
.source-pack {
  text-align: left;
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.source-sidebar button.active,
.source-pack.active {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.source-sidebar button span,
.source-pack span {
  color: var(--muted);
  font-size: 11px;
}

.source-sidebar button {
  overflow: hidden;
  text-overflow: ellipsis;
}

.grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
  display: grid;
  gap: 8px;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent), var(--line) 55%);
  box-shadow: 0 2px 8px color-mix(in srgb, #000, transparent 92%);
}

.card[data-id]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}



.card.card-vendor-review {
  border-style: dashed;
  background: color-mix(in srgb, var(--panel) 92%, var(--warn) 8%);
}

.preview {
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 8px;
  overflow: hidden;
}

.preview img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

.preview img.icon-broken,
.preview img[data-broken] {
  opacity: 0.15;
  filter: grayscale(1);
}

.card h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  word-break: break-word;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg);
}

.tag.warn { color: var(--warn); }

.meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.actions button {
  font-size: 12px;
  padding: 4px 8px;
}

.actions .copy-btn {
  flex: 1 1 112px;
}

.actions .copy-btn.primary {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.copyStatus,
.iconLoading {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 8px;
}

.iconLoading[hidden] { display: none !important; }

.iconLoading:not([hidden])::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  vertical-align: -2px;
  animation: icon-spin 0.7s linear infinite;
}

@keyframes icon-spin {
  to { transform: rotate(360deg); }
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.load-more-wrap[hidden] { display: none; }

.qx-subscribe-bar {
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent), var(--line) 55%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent), transparent 94%);
}

.qx-subscribe-btn {
  flex: 0 0 auto;
  font-weight: 600;
  border-color: var(--accent);
  background: var(--soft);
  color: var(--accent-strong);
}

.qx-subscribe-btn:disabled {
  border-color: var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: not-allowed;
}

.qx-subscribe-hint {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.export-toolbar {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.advanced-filters summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}

.card {
  contain: layout style paint;
}

.grid-inner {
  contain: layout;
}

@media print {
  .hub-site-nav,
  .toolbar,
  .export-toolbar,
  .load-more-wrap,
  .section-tabs,
  .source-sidebar,
  .notice,
  .filter-chips {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; }
  .qx-subscribe-bar {
    align-items: stretch;
  }
  .qx-subscribe-btn {
    width: 100%;
  }
  .source-sidebar {
    position: static;
    max-height: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .source-sidebar button { min-width: 160px; flex: 0 0 auto; }
  .grid-inner { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .iconLoading:not([hidden])::before {
    animation: none;
  }

  .card,
  .preview img {
    transition: none;
  }
}
