/* 携保知识网页面样式 —— 依据 2026-11 蓝湖设计稿还原（设计稿：1920 宽 / 容器 1200） */
.knowledge-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 114px);
  background: #f5f7fd;
  color: #1a1d24;
}
body.knowledge-page {
  margin: 0;
  background: #f5f7fd;
}
.knowledge-page,
.knowledge-page *,
.knowledge-page *::before,
.knowledge-page *::after {
  box-sizing: border-box;
}
.knowledge-shell {
  flex: 1 0 auto;
  padding: 0;
  color: #1a1d24;
  font-size: 16px;
  line-height: 1.5;
}
.knowledge-page ._xb_footer_wrap {
  margin-top: auto;
}
.knowledge-shell a {
  color: inherit;
  text-decoration: none;
}
.knowledge-shell img {
  border: 0;
}
.knowledge-container {
  width: 1200px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
}
.knowledge-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 知识页紧贴站点头尾，去掉站点页脚默认的 100px 间距 */
.knowledge-page ~ ._xb_footer_wrap,
.knowledge-page + ._xb_footer_wrap {
  margin-top: 0;
}

/* 头图：图片走 static/img 静态资源，由模板按 resDomain 注入 */
.knowledge-hero {
  height: 320px;
  background-color: #6f8aa3;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.knowledge-hero .knowledge-container {
  padding-top: 96px;
}
.knowledge-hero h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}
.knowledge-hero p {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.92);
}

/* 分类导航 */
.knowledge-tabs {
  background: #fff;
}
.knowledge-tabs .knowledge-container {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 12px;
}
.knowledge-categories {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.knowledge-categories::-webkit-scrollbar {
  display: none;
}
.knowledge-tab-arrow {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: #4b5462;
  font-size: 26px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
}
.knowledge-tab-arrow:disabled {
  color: #c9d0da;
  cursor: default;
}
.knowledge-categories a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 16px;
  color: #4b5462;
  white-space: nowrap;
}
.knowledge-categories a:hover {
  color: #1f74fd;
}
.knowledge-categories a.active {
  color: #1f74fd;
  font-weight: 600;
}
.knowledge-categories a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: #1f74fd;
}

/* 列表区 */
.knowledge-list {
  /* 底部留白与分页下方的留白保持同一节奏（40），否则有分页和无分页两种状态下
     卡片到页脚的距离会不一致。 */
  padding: 50px 0 40px;
}
.knowledge-list--no-pager {
  padding-bottom: 64px;
}
.knowledge-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}
.knowledge-section-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  color: #111418;
}
.knowledge-total {
  margin: 0;
  font-size: 14px;
  color: #9ca4ae;
}
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.knowledge-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(31, 116, 253, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.knowledge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(31, 116, 253, 0.12);
}
.knowledge-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #eef3fb;
  overflow: hidden;
}
.knowledge-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.knowledge-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 18px 24px 20px;
}
.knowledge-card h3 {
  margin: 0;
  height: auto;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: #111418;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.knowledge-card h3 a {
  color: inherit;
}
.knowledge-card p {
  margin: 8px 0 0;
  height: auto;
  font-size: 14px;
  line-height: 22px;
  color: #9ca4ae;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.knowledge-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
}
.knowledge-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #1a1d24;
  transition: transform 0.25s ease, color 0.25s ease;
}
.knowledge-card:hover .knowledge-card-arrow {
  transform: translate(3px, -3px) scale(1.25);
  color: #1f74fd;
}
.knowledge-card-meta {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  color: #9ea6b0;
}
.knowledge-meta-sep {
  font-style: normal;
  margin: 0 6px;
  color: #c9d0da;
  line-height: 1;
}
.knowledge-card-meta .knowledge-meta-sep {
  margin: 0 3px;
}
.knowledge-side-meta .knowledge-meta-sep {
  margin: 0 4px;
}

/* 分页 */
.knowledge-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  /* 上下留白都交给 .knowledge-list 的底部内边距（40px），分页自身不再额外加 padding，
     这样「有分页」和「无分页」两种状态下卡片到页脚的距离一致。 */
  margin: 40px 0 0;
}
.knowledge-pagination a {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  color: #5b6472;
  background: #fff;
}
.knowledge-pagination a:hover {
  color: #1f74fd;
}
.knowledge-pagination a.active {
  background: #1f74fd;
  color: #fff;
}
.knowledge-pagination .knowledge-page-arrow {
  background: #fff;
  font-size: 16px;
}
.knowledge-empty {
  grid-column: 1 / -1;
  padding: 80px 20px;
  color: #8a94a2;
  text-align: center;
  background: transparent;
  border-radius: 0;
}

/* 详情页 */
.knowledge-detail {
  padding: 20px 0 80px;
}
.knowledge-detail-grid {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.knowledge-article {
  flex: 1 1 auto;
  min-width: 0;
  width: 844px;
  background: #fff;
  border-radius: 0;
  padding: 32px 40px 48px;
}
.knowledge-breadcrumb {
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #7d8896;
  margin-bottom: 22px;
}
.knowledge-breadcrumb span {
  color: #b9c0c9;
}
.knowledge-breadcrumb a {
  color: #7d8896;
}
.knowledge-breadcrumb a:hover {
  color: #1f74fd;
}
.knowledge-breadcrumb em {
  font-style: normal;
  color: #b0b7c1;
  max-width: 320px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.knowledge-article-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  color: #111418;
}
.knowledge-article-meta {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 22px 0 0;
  font-size: 12px;
  color: #9ea6b0;
}
.knowledge-meta-sep {
  font-style: normal;
  margin: 0 10px;
  color: #c9d0da;
}
.knowledge-article-divider {
  margin: 26px 0 0;
  border: 0;
  border-top: 1px solid #eef1f7;
}
.knowledge-body {
  margin-top: 28px;
  font-size: 16px;
  line-height: 24px;
  color: #3d4653;
  overflow-wrap: anywhere;
}
.knowledge-body p {
  margin: 0 0 24px;
}
.knowledge-body img {
  max-width: 100%;
  height: auto;
}
.knowledge-body h2 {
  margin: 32px 0 16px;
  font-size: 22px;
  line-height: 32px;
  font-weight: 600;
  color: #111418;
}
.knowledge-body h3 {
  margin: 24px 0 12px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: #111418;
}
.knowledge-body table {
  width: 100%;
  border-collapse: collapse;
  overflow: auto;
  margin: 20px 0;
}
.knowledge-body td,
.knowledge-body th {
  border: 1px solid #dce4ed;
  padding: 10px;
}
.knowledge-body figure {
  margin: 24px 0;
}
.knowledge-body figcaption {
  font-size: 14px;
  text-align: center;
  color: #84909e;
}
.knowledge-video {
  display: block;
  width: 100%;
  margin-top: 26px;
  aspect-ratio: 16 / 9;
  max-height: 600px;
  border-radius: 8px;
  background: #111;
  object-fit: contain;
}
.knowledge-video-error {
  margin-top: 12px;
  color: #e35555;
  font-size: 14px;
}
.knowledge-side {
  flex: 0 0 340px;
  width: 340px;
}
.knowledge-recommendations {
  background: #fff;
  border-radius: 0;
  padding: 24px 20px;
}
.knowledge-recommendations h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: #111418;
}
.knowledge-side-desc {
  margin: 8px 0 0;
  font-size: 11px;
  color: #9ca4ae;
}
.knowledge-recommendations ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 6px 0 0;
  border-top: 1px solid #eef1f7;
}
.knowledge-recommendations li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}
.knowledge-side-thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 66px;
  border-radius: 0;
  overflow: hidden;
  background: #eef3fb;
}
.knowledge-side-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.knowledge-side-info {
  min-width: 0;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.knowledge-side-title {
  font-size: 13px;
  line-height: 18px;
  color: #1a1d24;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.knowledge-side-title:hover {
  color: #1f74fd;
}
.knowledge-side-meta {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 11px;
  color: #9ea6b0;
}

/* 移动端头部 */
.knowledge-mobile-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 15px;
  background: #fff;
  font-size: 17px;
  font-weight: 600;
  color: #111418;
}
.knowledge-mobile-header a {
  color: inherit;
  text-decoration: none;
}
.knowledge-mobile-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.knowledge-mobile-back::before {
  content: '';
  width: 9px;
  height: 9px;
  border-left: 2px solid #111418;
  border-bottom: 2px solid #111418;
  transform: rotate(45deg);
  margin-right: 4px;
}
.knowledge-mobile-footer {
  padding: 24px 15px 32px;
  text-align: center;
  color: #9ea6b0;
  font-size: 12px;
}

/* 移动端 */
@media (max-width: 1023px) {
  body.knowledge-page--h5 {
    background: #fff;
  }
  body.knowledge-page--h5 .knowledge-container {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 15px;
  }
  body.knowledge-page--h5 .knowledge-hero {
    height: auto;
    padding: 24px 0 22px;
    background: #d8edff;
  }
  body.knowledge-page--h5 .knowledge-hero h1 {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #111418;
  }
  body.knowledge-page--h5 .knowledge-hero p {
    position: static;
    width: auto;
    height: auto;
    margin: 8px 0 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    font-size: 12px;
    line-height: 19px;
    color: #4a5568;
  }
  body.knowledge-page--h5 .knowledge-tabs {
    border-bottom: 1px solid #f0f3f8;
  }
  body.knowledge-page--h5 .knowledge-tabs .knowledge-container {
    height: 42px;
    padding: 0 15px;
  }
  body.knowledge-page--h5 .knowledge-categories {
    gap: 20px;
  }
  body.knowledge-page--h5 .knowledge-categories a {
    font-size: 14px;
  }
  body.knowledge-page--h5 .knowledge-categories a.active::after {
    height: 2px;
  }
  body.knowledge-page--h5 .knowledge-list {
    /* 同 PC：底部留白只由列表承担，有分页时不再叠加分页的 margin-bottom。 */
    padding: 0 0 40px;
  }
  body.knowledge-page--h5 .knowledge-section-head {
    display: none;
  }
  body.knowledge-page--h5 .knowledge-grid {
    display: block;
  }
  body.knowledge-page--h5 .knowledge-card {
    display: block;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #f0f3f8;
    padding: 20px 0;
  }
  body.knowledge-page--h5 .knowledge-card:hover {
    transform: none;
    box-shadow: none;
  }
  .knowledge-card-media,
  body.knowledge-page--h5 .knowledge-card p {
    display: none;
  }
  body.knowledge-page--h5 .knowledge-card-body {
    padding: 0;
  }
  body.knowledge-page--h5 .knowledge-card h3 {
    height: auto;
    font-size: 15px;
    line-height: 22px;
    font-weight: 500;
  }
  body.knowledge-page--h5 .knowledge-card-foot {
    margin-top: 10px;
    padding-top: 0;
  }
  body.knowledge-page--h5 .knowledge-pagination {
    /* 同 PC：底部留白只由 .knowledge-list 承担（40px），避免有分页时叠加出双倍留白。 */
    margin: 24px 0 0;
  }
  body.knowledge-page--h5 .knowledge-detail {
    padding: 0 0 24px;
  }
  body.knowledge-page--h5 .knowledge-detail-grid {
    display: block;
  }
  body.knowledge-page--h5 .knowledge-article {
    width: auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
  body.knowledge-page--h5 .knowledge-breadcrumb {
    display: none;
  }
  body.knowledge-page--h5 .knowledge-article {
    padding-top: 16px;
  }
  body.knowledge-page--h5 .knowledge-article-eyebrow {
    display: block;
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
    color: #1a68fc;
    text-transform: uppercase;
  }
  body.knowledge-page--h5 .knowledge-article-eyebrow i {
    font-style: normal;
    margin: 0 6px;
    color: inherit;
  }
  body.knowledge-page--h5 .knowledge-article-title {
    margin-top: 0;
    font-size: 22px;
    line-height: 30px;
  }
  body.knowledge-page--h5 .knowledge-article-meta {
    margin-top: 12px;
  }
  body.knowledge-page--h5 .knowledge-body {
    margin-top: 22px;
    font-size: 16px;
    line-height: 32px;
  }
  body.knowledge-page--h5 .knowledge-body p {
    margin: 0 0 0;
  }
  body.knowledge-page--h5 .knowledge-body h2 {
    font-size: 18px;
    line-height: 26px;
  }
  body.knowledge-page--h5 .knowledge-side {
    width: auto;
    margin-top: 28px;
  }
  body.knowledge-page--h5 .knowledge-recommendations {
    padding: 20px 0 0;
    border-top: 1px solid #f0f3f8;
    border-radius: 0;
  }
  body.knowledge-page--h5 .knowledge-recommendations h2 {
    font-size: 18px;
  }
  body.knowledge-page--h5 .knowledge-recommendations ul {
    margin-top: 12px;
  }
  body.knowledge-page--h5 .knowledge-recommendations li {
    padding: 14px 0;
    border-bottom: 1px solid #f0f3f8;
  }
  body.knowledge-page--h5 .knowledge-side-info {
    min-height: 72px;
  }
  body.knowledge-page--h5 .knowledge-side-thumb {
    flex: 0 0 108px;
    width: 108px;
    height: 72px;
  }
  body.knowledge-page--h5 .knowledge-side-title {
    font-size: 14px;
    line-height: 21px;
  }
}

