/* 软件列表 / 详情 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sw-hero {
  padding: 36px 0 28px;
  background:
    radial-gradient(900px 320px at 12% -10%, rgba(27, 111, 232, 0.16), transparent 60%),
    linear-gradient(180deg, #eef4fb 0%, #f7f9fc 55%, #fff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.sw-hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: end;
}

.sw-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1b6fe8;
  text-transform: uppercase;
}

.sw-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  color: #0b3a8c;
  line-height: 1.15;
}

.sw-lead {
  margin: 0 0 14px;
  color: #4a5d73;
  font-size: 15px;
  line-height: 1.65;
  max-width: 46em;
}

.sw-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.sw-features li {
  padding: 6px 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #c9d8ee;
  color: #0b3a8c;
  font-size: 13px;
  font-weight: 700;
}

.sw-disclaimer {
  margin: 0;
  font-size: 13px;
  color: #6b7c8f;
  line-height: 1.5;
}

.sw-search {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(11, 58, 140, 0.06);
}

.sw-search input {
  flex: 1;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.sw-section {
  padding: 28px 0 56px;
}

.sw-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px;
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
}

.sw-cats a {
  padding: 8px 14px;
  border-radius: 8px;
  color: #334;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.sw-cats a:hover { background: #f0f5fb; }
.sw-cats a.active {
  background: #1b6fe8;
  color: #fff;
}

.sw-result-hint {
  margin: 0 0 18px;
  color: #6b7c8f;
  font-size: 14px;
}

.sw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sw-grid-related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sw-card {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(11, 58, 140, 0.1);
}

.sw-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #eef3fa;
  overflow: hidden;
}

.sw-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
  background: #0b3a8c;
}

.sw-card:hover .sw-card-media img {
  transform: scale(1.04);
}

.sw-card-cat {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(11, 58, 140, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.sw-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sw-card-tag {
  margin: 0;
  font-size: 12px;
  color: #1b6fe8;
  font-weight: 600;
}

.sw-card-body h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.sw-card-body h2 a {
  color: #0b3a8c;
  text-decoration: none;
}

.sw-card-sum {
  margin: 0;
  color: #5a6b7d;
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}

.sw-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.sw-price {
  color: #c2410c;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sw-price span {
  font-size: 12px;
  font-weight: 600;
  color: #9a6b4a;
  margin-left: 2px;
}

.sw-price-ask {
  font-size: 14px;
  color: #6b7c8f;
  font-weight: 700;
}

.sw-plat {
  font-size: 12px;
  color: #5a6b7d;
  background: #f0f5fb;
  padding: 3px 8px;
  border-radius: 4px;
}

.sw-more {
  margin-left: auto;
  color: #1b6fe8;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.sw-pager { margin-top: 28px; }

.sw-empty {
  text-align: center;
  padding: 40px 24px;
}

.sw-empty-tip {
  color: #6b7c8f;
  font-size: 14px;
}

.sw-custom-banner {
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid #c9d8ee;
  background: linear-gradient(120deg, #f5f9ff, #eef4fb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sw-custom-banner h3 {
  margin: 0 0 6px;
  color: #0b3a8c;
  font-size: 18px;
}

.sw-custom-banner p {
  margin: 0;
  color: #4a5d73;
  font-size: 14px;
  line-height: 1.55;
  max-width: 48em;
}

/* 详情 */
.sw-detail-banner {
  padding: 18px 0 0;
  background: #f7f9fc;
}

.sw-detail {
  padding: 20px 0 56px;
}

.sw-detail-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  margin-bottom: 24px;
  align-items: start;
}

.sw-detail-gallery {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  padding: 12px;
}

.sw-gallery-main {
  border-radius: 10px;
  overflow: hidden;
  background: #eef3fa;
  aspect-ratio: 16 / 11;
}

.sw-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sw-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.sw-thumb {
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #eef3fa;
}

.sw-thumb.active { border-color: #1b6fe8; }
.sw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sw-gallery-empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 800;
  color: #1b6fe8;
  background: #eef3fa;
  border-radius: 10px;
}

.sw-detail-info {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  padding: 22px 24px;
}

.sw-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1a56c4;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 8px;
}

.sw-detail-tag {
  margin: 0 0 6px;
  color: #1b6fe8;
  font-weight: 600;
  font-size: 14px;
}

.sw-detail-info h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  color: #0b3a8c;
  line-height: 1.2;
}

.sw-detail-sum {
  margin: 0 0 16px;
  color: #4a5d73;
  line-height: 1.65;
}

.sw-detail-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sw-detail-price {
  color: #c2410c;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.sw-detail-price span {
  font-size: 14px;
  font-weight: 600;
  color: #9a6b4a;
  margin-left: 4px;
}

.sw-meta {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.sw-meta li {
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.sw-meta span { color: #6b7c8f; min-width: 4em; }
.sw-meta em { font-style: normal; color: #234; font-weight: 600; }

.sw-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sw-caps span {
  padding: 5px 10px;
  border-radius: 6px;
  background: #f0f5fb;
  border: 1px solid #d0dceb;
  color: #0b3a8c;
  font-size: 12px;
  font-weight: 700;
}

.sw-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.sw-help {
  margin: 0;
  font-size: 13px;
  color: #6b7c8f;
  line-height: 1.5;
}

.sw-block {
  margin-top: 18px;
}

.sw-block h2 {
  margin: 0 0 14px;
  font-size: 20px;
  color: #0b3a8c;
}

.sw-related {
  margin-top: 32px;
}

.sw-related h2 {
  margin: 0 0 16px;
  font-size: 22px;
  color: #0b3a8c;
}

@media (max-width: 960px) {
  .sw-hero-inner,
  .sw-detail-top {
    grid-template-columns: 1fr;
  }
  .sw-grid,
  .sw-grid-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sw-grid,
  .sw-grid-related {
    grid-template-columns: 1fr;
  }
  .sw-meta {
    grid-template-columns: 1fr;
  }
  .sw-hero {
    padding: 24px 0 20px;
  }
}
