/*
 * @kanway-css-index
 * 文件: css/shared/hub-pages.css
 * 引用: service-resource-center.html, 产品分类枢纽页, 案例子页, core-alert.html, media-news-center.html
 */

.hub-page {
  padding: 0 0 72px;
  clear: both;
}

.hub-intro {
  margin: 40px 0 32px;
  max-width: 820px;
}

.hub-intro__lead {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.85;
  color: #495057;
}

.hub-intro__links {
  margin: 0;
  font-size: 14px;
}

.hub-intro__links a {
  font-weight: 600;
  color: #1d5198;
}

/* English SEO intro blocks (homepage + core product pages) */
.page-seo-intro {
  padding: 32px 0 24px;
  background: #fff;
  /* 版心 1450 内收 10px/侧，与正文列对齐（补偿视觉偏宽） */
  --page-seo-strip-inset: max(
    var(--kh-shell-pad-x),
    calc(50vw - var(--kh-shell-max) / 2 + 10px)
  );
}

.page-seo-intro .container {
  text-align: center;
  padding-bottom: 36px;
  border-bottom: none;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--kh-shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--kh-shell-pad-x);
  padding-right: var(--kh-shell-pad-x);
}

.page-seo-intro::after {
  content: '';
  display: block;
  box-sizing: border-box;
  margin-left: var(--page-seo-strip-inset);
  margin-right: var(--page-seo-strip-inset);
  border-bottom: 1px solid #e8ecf2;
}

.page-seo-intro--home {
  padding-top: 36px;
  padding-bottom: 28px;
}

.page-seo-intro--home .container {
  padding-bottom: 40px;
}

.page-seo-intro__title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
}

.page-seo-intro p {
  margin: 0 auto 12px;
  max-width: none;
  font-size: 15px;
  line-height: 1.75;
  color: #495057;
}

.page-seo-intro p:last-child {
  margin-bottom: 0;
}

.page-seo-intro a {
  font-weight: 600;
  color: #1d5198;
}

.hub-section-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  padding-left: 14px;
  border-left: 4px solid #1d5198;
}

.hub-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hub-card:hover {
  border-color: #1d5198;
  box-shadow: 0 8px 24px rgba(29, 81, 152, 0.1);
  transform: translateY(-2px);
  color: inherit;
}

.hub-card .bx {
  font-size: 36px;
  color: #1d5198;
  margin-bottom: 12px;
}

.hub-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.hub-card p {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.65;
  color: #6c757d;
}

.hub-card__more {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1d5198;
}

.hub-feature-block {
  margin-bottom: 48px;
}

.hub-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hub-feature-item {
  padding: 20px 18px;
  background: #f8f9fb;
  border: 1px solid #e1e5ea;
  border-radius: 12px;
}

.hub-feature-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.hub-feature-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #6c757d;
}

.hub-cta {
  padding: 32px 24px;
  text-align: center;
  background: linear-gradient(135deg, #1d5198 0%, #2a6bb5 100%);
  border-radius: 12px;
  color: #fff;
}

.hub-cta h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.hub-cta p {
  margin: 0 0 18px;
  font-size: 15px;
  opacity: 0.92;
}

.hub-cta a {
  display: inline-block;
  margin: 0 6px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.hub-cta .hub-cta-btn--light {
  background: #fff;
  color: #1d5198;
}

.hub-cta .hub-cta-btn--outline {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

@media (max-width: 991px) {
  .hub-cards {
    grid-template-columns: 1fr;
  }

  .hub-feature-grid {
    grid-template-columns: 1fr;
  }
}
