/* 携保知识 H5 样式 —— 依据 2026-11 蓝湖设计稿还原 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body.knowledge-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 750px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  color: #2a313d;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.knowledge-shell {
  flex: 1 0 auto;
}
body.knowledge-page *,
body.knowledge-page *::before,
body.knowledge-page *::after {
  box-sizing: border-box;
}
.knowledge-page a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.knowledge-page img {
  border: 0;
  vertical-align: middle;
}
.knowledge-page button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
body.knowledge-drawer-open {
  overflow: hidden;
}

/* 站点头部 */
.knowledge-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 15px;
  background: #fff;
}
.knowledge-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}
.knowledge-brand-logo {
  display: block;
  width: 84px;
  height: auto;
}
.knowledge-ipo {
  flex: 0 1 auto;
  min-width: 0;
  height: 20px;
  margin-left: 10px;
  padding: 0 6px;
  overflow: hidden;
  border: 1px solid #337bfc;
  color: #337bfc;
  font-size: 10px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.knowledge-header-tools {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.knowledge-user-entry {
  width: 19px;
  height: 20px;
  margin-right: 18px;
  background: url('//res.xiebao18.com/travelxbh5/images/index/user-icon.png') center / 100% 100% no-repeat;
  opacity: 0.85;
}
.knowledge-menu-entry {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}
.knowledge-menu-entry span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #22272e;
}

/* 详情页独立吸顶头部 */
.knowledge-detail-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 15px;
  background: #fff;
  border-bottom: 1px solid #f2f3f5;
}
.knowledge-detail-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.knowledge-detail-back svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #1b1f27;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.knowledge-detail-heading {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: #1b1f27;
  white-space: nowrap;
}

/* 侧边导航 */
.knowledge-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.knowledge-drawer.is-open {
  opacity: 1;
  visibility: visible;
}
body.knowledge-page .knowledge-drawer-close {
  position: absolute;
  top: 50%;
  right: calc(min(53.4%, 400px) + 8px);
  z-index: 1001;
  width: 30px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 4px 0 0 4px;
  background: #ffffff;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.06);
  color: #999999;
  font-size: 22px;
  line-height: 50px;
  text-align: center;
  transform: translateY(-50%);
  cursor: pointer;
}
.knowledge-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 53.4%;
  min-width: 200px;
  max-width: 400px;
  padding: 0 0 24px;
  background: #fff;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.knowledge-drawer.is-open .knowledge-drawer-panel {
  transform: translateX(0);
}
.knowledge-drawer-user {
  margin: 32px 0 25px;
  text-align: center;
}
.knowledge-drawer-avatar {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  border-radius: 50%;
}
.knowledge-drawer-name {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: #222222;
}
.knowledge-drawer-nav {
  display: flex;
  flex-direction: column;
  width: 55%;
  margin: 0 auto;
}
.knowledge-drawer-nav a {
  display: flex;
  align-items: center;
  height: 55px;
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 20px;
  color: #4a4a4a;
  outline: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.knowledge-drawer-nav a:last-of-type {
  margin-bottom: 0;
}
.knowledge-drawer-nav a:focus,
.knowledge-drawer-nav a:active {
  outline: none;
  background: transparent;
}
.knowledge-drawer-nav a.is-active {
  color: #337bfc;
}
.knowledge-drawer-book {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 14px;
  object-fit: contain;
}
.knowledge-drawer-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 14px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.knowledge-icon-home {
  background-image: url('//res.xiebao18.com/travelxbh5/images/index/home-icon.png');
}
.knowledge-icon-user {
  background-image: url('//res.xiebao18.com/travelxbh5/images/index/user-side-icon.png');
}
.knowledge-icon-club {
  background-image: url('//res.xiebao18.com/travelxbh5/images/index/club-icon.png');
}
.knowledge-icon-branch {
  background-image: url('//res.xiebao18.com/travelxbh5/images/index/branch-icon.png');
}
.knowledge-icon-report {
  background-image: url('//res.xiebao18.com/travelxbh5/images/index/report-icon.png');
}
.knowledge-icon-service {
  background-image: url('//res.xiebao18.com/travelxbh5/images/index/service-icon.png');
}
.knowledge-drawer-gap {
  display: block;
  height: 1px;
  margin: 15px 12px;
  background: #d8d8d8;
}
.knowledge-drawer-contact {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding: 26px 0 0 23%;
  color: #9aa1ab;
  font-size: 11px;
  line-height: 18px;
}
.knowledge-drawer-phone-list p {
  margin: 0;
}
.knowledge-drawer-contact span {
  margin-left: 2px;
}
.knowledge-drawer-phone-icon {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-right: 9px;
  background: url('//res.xiebao18.com/travelxbh5/images/index/phone-icon.png') center / 100% 100% no-repeat;
}

/* 头图 */
.knowledge-hero {
  position: relative;
  height: 150px;
  overflow: hidden;
  background-color: #e4f4ff;
  background-image: url('hero-h5.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}
.knowledge-hero-inner {
  padding: 26px 15px 0;
}
.knowledge-hero h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #13224d;
}
.knowledge-hero p {
  margin: 10px 0 0;
  max-width: 198px;
  font-size: 13px;
  line-height: 20px;
  color: #4a5a70;
}

/* 分类 */
.knowledge-tabs {
  background: #fff;
  border-bottom: 1px solid #f2f3f5;
}
.knowledge-tabs--empty {
  border-bottom: 0;
}
.knowledge-categories {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 15px;
  gap: 26px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.knowledge-categories::-webkit-scrollbar {
  display: none;
}
.knowledge-categories a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 15px;
  line-height: 20px;
  color: #5b6472;
  white-space: nowrap;
}
.knowledge-categories a.active {
  color: #0d6eff;
  font-weight: 600;
}
.knowledge-categories a.active::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: #0d6eff;
}

/* 列表 */
.knowledge-list {
  padding: 0 15px 24px;
}
.knowledge-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f2f5;
}
.knowledge-card-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}
.knowledge-card h3 {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 16px;
  line-height: 23px;
  font-weight: 500;
  color: #2a313d;
}
.knowledge-card-meta {
  display: flex;
  align-items: center;
  margin: auto 0 0;
  padding-top: 10px;
  font-size: 12px;
  line-height: 17px;
  color: #a5aebb;
}
.knowledge-meta-sep {
  margin: 0 6px;
  color: #c7ccd3;
}
.knowledge-card-media {
  position: relative;
  flex: 0 0 88px;
  align-self: flex-end;
  display: block;
  width: 88px;
  height: 66px;
  overflow: hidden;
  background: #eef3fb;
}
.knowledge-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.knowledge-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
}
.knowledge-play::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 11px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}
.knowledge-empty {
  padding: 60px 0;
  color: #9aa1ab;
  font-size: 14px;
  text-align: center;
}

/* 分页 */
.knowledge-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 26px 0 8px;
}
.knowledge-pagination a {
  min-width: 20px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6b7480;
}
.knowledge-pagination a.active {
  color: #0d6eff;
  font-weight: 600;
}
.knowledge-pagination .knowledge-page-arrow {
  font-size: 20px;
  color: #9aa1ab;
}

/* 详情 */
.knowledge-detail {
  padding: 0 0 40px;
}
.knowledge-breadcrumb {
  display: none;
}
.knowledge-detail-grid {
  display: block;
}
.knowledge-article {
  padding: 18px 15px 0;
  background: #fff;
}
.knowledge-article-title {
  margin: 0;
  font-size: 22px;
  line-height: 31px;
  font-weight: 600;
  color: #1b1f27;
}
.knowledge-article-meta {
  display: flex;
  align-items: center;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 17px;
  color: #a5aebb;
}
.knowledge-article-divider {
  margin: 16px 0 0;
  border: 0;
  border-top: 1px solid #f0f2f5;
}
.knowledge-body {
  margin-top: 18px;
  font-size: 16px;
  line-height: 30px;
  color: #39404a;
  overflow-wrap: anywhere;
}
.knowledge-body p {
  margin: 0 0 18px;
}
.knowledge-body img {
  max-width: 100%;
  height: auto;
}
.knowledge-body h2 {
  margin: 26px 0 12px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: #1b1f27;
}
.knowledge-body h3 {
  margin: 22px 0 10px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #1b1f27;
}
.knowledge-body table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  line-height: 22px;
}
.knowledge-body td,
.knowledge-body th {
  padding: 8px 6px;
  border: 1px solid #dce4ed;
  word-break: break-word;
}
.knowledge-body figure {
  margin: 20px 0;
}
.knowledge-body figcaption {
  font-size: 13px;
  text-align: center;
  color: #84909e;
}
.knowledge-video {
  display: block;
  width: 100%;
  max-height: 420px;
  margin-top: 16px;
  background: #111;
  object-fit: contain;
}
.knowledge-video-error {
  margin-top: 12px;
  font-size: 13px;
  color: #e35555;
}
.knowledge-side {
  margin-top: 26px;
  padding: 20px 15px 0;
  border-top: 8px solid #f6f7f9;
}
.knowledge-side--empty {
  margin-top: 24px;
  padding: 0;
  border-top: 1px solid #f0f2f5;
}
.knowledge-recommendations h2 {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: #1b1f27;
}
.knowledge-side-desc {
  margin: 6px 0 0;
  font-size: 11px;
  color: #9aa1ab;
}
.knowledge-recommendations ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.knowledge-recommendations li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f2f5;
}
.knowledge-side-thumb {
  flex: 0 0 108px;
  display: block;
  width: 108px;
  height: 72px;
  overflow: hidden;
  background: #eef3fb;
}
.knowledge-side-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.knowledge-side-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 72px;
}
.knowledge-side-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
  line-height: 21px;
  color: #2a313d;
}
.knowledge-side-meta {
  display: flex;
  align-items: center;
  font-size: 11px;
  line-height: 16px;
  color: #a5aebb;
}

/* 公共底部 */
.knowledge-footer {
  margin-bottom: 20px;
  padding: 0 15px;
  background: #fff;
}
.knowledge-footer-wrap {
  margin-top: auto;
}
.knowledge-footer-gap {
  height: 10px;
  background: #f5f5f5;
}
.knowledge-footer h2 {
  margin: 25px 0 20px;
  font-size: 18px;
  line-height: 18px;
  font-weight: 400;
  color: #444444;
}
.knowledge-footer ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.knowledge-footer li {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.knowledge-footer li img {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 8px;
}
.knowledge-footer li h3 {
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: #444444;
}
.knowledge-footer li p {
  margin: 0 0 20px;
  font-size: 11px;
  line-height: 11px;
  color: #999999;
}
.knowledge-footer .intr {
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #e4e4e4;
  font-size: 11px;
  line-height: 18px;
  color: #444444;
}
.knowledge-footer .copyright {
  margin: 20px 0 0;
  font-size: 11px;
  line-height: 16px;
  color: #999999;
  text-align: center;
}
.knowledge-footer .copyright a {
  color: #999999;
}
.knowledge-footer.not-login {
  margin-bottom: 90px;
}
.knowledge-login {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  max-width: 345px;
  height: 44px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.08);
  z-index: 99;
}
.knowledge-login p {
  float: left;
  margin: 0;
  padding-left: 15px;
  font-size: 13px;
  line-height: 44px;
  color: #444444;
}
.knowledge-login a {
  float: right;
  width: 75px;
  height: 28px;
  margin: 8px 15px 0 0;
  border: 1px solid #337bfc;
  border-radius: 2px;
  font-size: 13px;
  line-height: 26px;
  text-align: center;
  color: #337bfc;
}

/* 错误页 */
.knowledge-error {
  padding: 90px 30px;
  text-align: center;
}
.knowledge-error h1 {
  margin: 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: #1b1f27;
}
.knowledge-error p {
  margin: 16px 0 0;
  font-size: 14px;
}
.knowledge-error a {
  color: #0d6eff;
}

