/* 增值服务资源清单 — ServiceProvidersView.vue */

.sp-page {
  background: #f9fafb;
}

.sp-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.sp-hero {
  color: #fff;
  padding: 48px 0;
  background: linear-gradient(171deg, #003973f0 0%, #00245d 55%, #003872fa 100%);
}

.sp-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.sp-back:hover {
  color: #fff;
  text-decoration: none;
}

.sp-hero h1 {
  margin: 0 0 12px;
  font-size: 2.25rem;
  font-weight: 700;
}

.sp-hero p {
  margin: 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
}

.sp-hero__count {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 16px;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
}

.sp-filter {
  position: sticky;
  top: 56px;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
}

.sp-filter__row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.sp-filter__label {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.sp-filter__tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding-bottom: 4px;
}

.sp-filter__btn {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-family: inherit;
  color: #374151;
  background: #f3f4f6;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  display: inline-block;
}

.sp-filter__btn:hover {
  background: #e5e7eb;
}

.sp-filter__btn.is-active {
  color: #fff;
  background: #2563eb;
}

.sp-main {
  padding: 32px 0 48px;
}

.sp-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 1024px) {
  .sp-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sp-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.sp-card.is-filter-hidden {
  display: none !important;
}

.sp-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  cursor: pointer;
}

.sp-card__head:hover {
  background: #f9fafb;
}

.sp-card__main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.sp-card__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #dbeafe;
  border-radius: 50%;
  overflow: hidden;
}

.sp-card__ico img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sp-card__ico2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #ccc;
}

.sp-card__ico2 img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.sp-card__info h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

.sp-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sp-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
}

.sp-tag--blue {
  color: #2563eb;
  background: #eff6ff;
}

.sp-tag--gray {
  color: #4b5563;
  background: #f3f4f6;
}

.sp-tag:empty {
  display: none;
}

.sp-card__toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  font-size: 12px;
  line-height: 28px;
  text-align: center;
  color: #6b7280;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.sp-card__toggle:hover {
  background: #f3f4f6;
}

.sp-card.is-open .sp-card__toggle {
  transform: rotate(180deg);
}

.sp-card__detail {
  padding: 0 16px 16px;
  border-top: 1px solid #e5e7eb;
}

.sp-card__detail.is-collapsed {
  display: none;
}

.sp-detail-row {
  margin-top: 12px;
}

.sp-detail-label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  color: #6b7280;
}

.sp-detail-text {
  margin: 0;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
  white-space: pre-line;
}

.sp-empty {
  margin: 24px 0 0;
  padding: 32px;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
}

.sp-empty.is-filter-hidden {
  display: none;
}
