/* 查看服务 — 分类入口页（参考产品中心预览：标题 + 水平胶囊分类 + 四列卡片） */
.service-hub-page > .card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 8px 0 32px !important;
}

.service-hub {
  max-width: 1200px;
  margin: 0 auto;
}

.service-hub-head {
  text-align: left;
  margin: 12px 0 32px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.service-hub-eyebrow {
  display: none;
}

.service-hub-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.8vw, 32px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  line-height: 1.3;
}

.service-hub-sub {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
}

.service-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .service-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .service-hub-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.service-hub-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 28px;
  min-height: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s ease;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(18, 45, 90, 0.08);
}

html[data-theme="light"] .service-hub-card {
  background: #fff;
  box-shadow: 0 3px 14px rgba(18, 45, 90, 0.08);
}

.service-hub-card::before {
  display: none;
}

.service-hub-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 22px rgba(18, 45, 90, 0.14);
  background-color: var(--bg-secondary);
}

html[data-theme="light"] .service-hub-card:hover {
  background: #fff;
}

.service-hub-card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: #fff;
  background: var(--accent-primary, #0F52BA);
  border: none;
  box-shadow: 0 2px 8px rgba(15, 82, 186, 0.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

html[data-theme="light"] .service-hub-card-tag {
  color: #fff;
  background: #0F52BA;
  box-shadow: 0 2px 8px rgba(15, 82, 186, 0.22);
}

/* 兼容旧 .service-hub-card-head 结构，扁平化到卡片列布局 */
.service-hub-card-head {
  display: contents;
}

.service-hub-card-head-inner {
  display: contents;
}

.service-hub-card-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  background: rgba(88, 166, 255, 0.14);
  color: var(--accent-primary);
  border: none;
  margin-bottom: 4px;
}

html[data-theme="light"] .service-hub-card-icon {
  background: #e1ecff;
  color: #194b9e;
}

.service-hub-card[data-supply-channel="smm"] .service-hub-card-icon {
  background: rgba(88, 166, 255, 0.14);
  color: var(--accent-primary);
}

.service-hub-card[data-supply-channel="yiciyuan_mall"] .service-hub-card-icon {
  background: rgba(63, 185, 80, 0.14);
  color: var(--accent-success);
}

html[data-theme="light"] .service-hub-card[data-supply-channel="yiciyuan_mall"] .service-hub-card-icon {
  background: rgba(26, 127, 55, 0.12);
}

.service-hub-card[data-supply-channel="custom"] .service-hub-card-icon,
.service-hub-card[data-custom-goods-page="1"] .service-hub-card-icon {
  background: rgba(210, 153, 34, 0.14);
  color: var(--accent-warning);
}

html[data-theme="light"] .service-hub-card[data-supply-channel="custom"] .service-hub-card-icon,
html[data-theme="light"] .service-hub-card[data-custom-goods-page="1"] .service-hub-card-icon {
  background: rgba(154, 103, 0, 0.12);
}

.service-hub-card h2 {
  margin: 16px 0 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.service-hub-intro {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 0;
}

.service-hub-panel {
  flex: 1;
  margin-top: 10px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.service-hub-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.service-hub-panel li {
  position: relative;
  margin-bottom: 4px;
  padding-left: 12px;
}

.service-hub-panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0.55;
}

.service-hub-panel li:last-child {
  margin-bottom: 0;
}

.service-hub-panel-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-line;
}

.service-hub-fit-scope {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
}

html[data-theme="light"] .service-hub-fit-scope {
  color: #94a3b8;
}

.service-hub-card-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  gap: 10px;
}

.service-hub-card-meta,
.service-hub-card-price {
  margin-right: auto;
  font-size: 16px;
  font-weight: 700;
  color: #d9480f;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-hub-card-cta {
  margin-top: 0;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--accent-primary, #194b9e);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

html[data-theme="light"] .service-hub-card-cta {
  background: #194b9e;
  color: #fff;
}

.service-hub-card:hover .service-hub-card-cta {
  opacity: 1;
  transform: none;
  background: color-mix(in srgb, var(--accent-primary, #194b9e) 88%, #000);
}

html[data-theme="light"] .service-hub-card:hover .service-hub-card-cta {
  background: #153e84;
}

.service-hub-card-cta::after {
  display: none;
}

/* —— 分类：水平胶囊标签 —— */
.service-hub-categories {
  margin-top: 0;
  margin-bottom: 8px;
}

.service-hub-cat-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
}

.service-hub-cat-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  position: static;
  max-height: none;
  overflow: visible;
}

.service-hub-cat-tab {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9px 22px;
  border-radius: 999px;
  border: 2px solid var(--accent-primary, #194b9e);
  background: var(--bg-secondary);
  color: var(--accent-primary, #194b9e);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

html[data-theme="light"] .service-hub-cat-tab {
  background: #fff;
  color: #194b9e;
  border-color: #194b9e;
}

.service-hub-cat-tab:hover {
  color: var(--accent-primary, #194b9e);
  background: rgba(88, 166, 255, 0.1);
  border-color: var(--accent-primary, #194b9e);
}

html[data-theme="light"] .service-hub-cat-tab:hover:not(.active) {
  background: #e8f0fe;
  color: #194b9e;
}

.service-hub-cat-tab.active {
  color: #fff;
  font-weight: 600;
  background: var(--accent-primary, #194b9e);
  border-color: var(--accent-primary, #194b9e);
}

html[data-theme="light"] .service-hub-cat-tab.active {
  color: #fff;
  background: #194b9e;
  border-color: #194b9e;
}

.service-hub-cat-tab:disabled {
  display: none !important;
}

.service-hub-cat-panels {
  min-width: 0;
}

.service-hub-category {
  display: none;
}

.service-hub-category.active {
  display: block;
}

.service-hub-category-desc {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.service-hub-category-grid {
  margin-top: 0;
}

.service-hub-platform-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .service-hub-platform-grid {
    grid-template-columns: 1fr;
  }
}

/* 商品页入口 — 独立紧凑区（商品较多时） */
.service-hub-cg-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.service-hub-cg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.service-hub-cg-heading {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.service-hub-cg-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

.service-hub-cg-search {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 320px;
  margin-left: auto;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.service-hub-cg-search:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.15);
}

.service-hub-cg-no-match {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  border: 1px dashed var(--border-color);
  background: var(--bg-tertiary);
}

.service-hub-cg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  align-items: stretch;
}

@media (max-width: 480px) {
  .service-hub-cg-grid {
    grid-template-columns: 1fr;
  }
}

.service-hub-card--compact {
  min-height: 0;
  padding: 20px;
}

.service-hub-card--compact .service-hub-panel {
  display: none;
}

.service-hub-card--hidden {
  display: none !important;
}