/* Generated by converter. Edit sources, not dist. */
/* GatePath 软件下载页专用样式 */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  z-index: 40;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

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

.platform-chips button {
  font-size: 12px;
  padding: 6px 10px;
}

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

.software-recommendations {
  margin: 0 0 16px;
}

.software-reco-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.software-reco-head h2 {
  margin: 0;
  font-size: 16px;
}

.software-reco-head a {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.software-reco-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.software-reco-card {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.software-reco-card:hover,
.software-reco-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent), var(--line) 45%);
  background: var(--soft);
  box-shadow: 0 2px 8px color-mix(in srgb, #000, transparent 93%);
  outline: none;
}

.software-reco-label {
  width: fit-content;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--accent), var(--line) 55%);
  border-radius: 6px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
}

.software-reco-card strong {
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.software-reco-card span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.platform-section { margin-bottom: 28px; }

.platform-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.platform-head h2 {
  margin: 0;
  font-size: 20px;
}

.platform-head .count {
  color: var(--muted);
  font-size: 13px;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
  display: grid;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  scroll-margin-top: 88px;
}

.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-primary-url]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card.card-flash {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 72%);
}

.card.card-deprecated {
  opacity: 0.72;
  border-style: dashed;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.card-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-logo-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.card-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  object-fit: cover;
  display: block;
}

.card-logo-fallback {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 700;
  line-height: 44px;
  text-align: center;
}

.card-logo-wrap.logo-fallback .card-logo { display: none; }
.card-logo-wrap.logo-fallback .card-logo-fallback { display: block; }

.card-head h3 .search-hit {
  background: color-mix(in srgb, var(--accent), transparent 78%);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

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

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

.tag.rec-high { color: var(--ok); }
.tag.rec-deprecated { color: var(--danger); }
.tag.paid { color: var(--warn); }
.tag.os { color: var(--accent-strong); }

.notes {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

a.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.action-link[target="_blank"]::after {
  content: "↗";
  font-size: 10px;
  opacity: 0.65;
}

a.action-link:hover {
  border-color: color-mix(in srgb, var(--accent), var(--line) 50%);
  background: var(--soft);
}

a.action-link.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

a.action-link.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

a.action-link.primary::after {
  color: inherit;
}

a.action-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a.action-link.secondary {
  color: var(--muted);
  background: transparent;
}

a.action-link.secondary:hover,
a.action-link.secondary:focus-visible {
  color: var(--text);
  background: var(--soft);
}

button.action-copy {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  min-height: auto;
}

button.action-copy:hover,
button.action-copy:focus-visible {
  border-color: color-mix(in srgb, var(--accent), var(--line) 50%);
  color: var(--text);
  background: var(--soft);
}

.action-muted {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
  font-size: 12px;
}

.software-deprecated-fold {
  margin-top: 12px;
}

.software-deprecated-fold summary .count {
  font-weight: 400;
  color: var(--muted);
}

.stat.stat-warn strong { color: var(--warn); }

main.software-solo-platform .platform-section { margin-bottom: 20px; }

.software-meta {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.softwareLoading {
  color: var(--muted);
  font-size: 14px;
}

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

.softwareLoading: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: software-spin 0.7s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .softwareLoading:not([hidden])::before { animation: none; }
  .card { transition: none; }
  a.action-link { transition: none; }
  .software-reco-card { transition: none; }
  .card.card-flash { box-shadow: none; }
}

@media (max-width: 720px) {
  .software-reco-head { align-items: center; }
  .software-reco-grid { grid-template-columns: 1fr; }
  .software-reco-card { min-height: auto; }
  .grid-inner { grid-template-columns: 1fr; }
  .card { scroll-margin-top: 72px; }
  .platform-chips button { flex: 1 1 calc(33% - 6px); }
}
