/* 96IDC Theme | Author: 96IDC | QQ: 2386214936 | Site: www.96idc.cn */
/* ==========================================================================
   knowledgebaseview 页面样式（帮助文章详情 · 蓝白科技风）
   ========================================================================== */

/* 本页用 .idc-pagehead 作统一页头条，隐藏基础皮肤遗留的同款页头条，避免标题重复 */
.main-content .page-title-wrapper {
  display: none !important;
}

/* —— 文章头 —— */
.kbv-head {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--idc-border-light);
}

.kbv-cate {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  color: var(--idc-primary);
  background: var(--idc-primary-soft);
  border-radius: 100px;
}

.kbv-title {
  margin: 12px 0 8px;
  color: var(--idc-text-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  word-break: break-word;
}

.kbv-meta {
  margin-bottom: 0 !important;
  font-size: 12px;
}

/* —— 正文 —— */
.kbv-lead {
  padding: 12px 14px;
  margin-bottom: 18px !important;
  color: var(--idc-text-secondary);
  font-size: 13px;
  line-height: 22px;
  background: var(--idc-input-bg);
  border-left: 3px solid var(--idc-accent);
  border-radius: 0 var(--idc-radius) var(--idc-radius) 0;
}

.newscontent {
  color: var(--idc-text-secondary);
  font-size: 13px;
  line-height: 24px;
  word-break: break-word;
}

.newscontent p {
  display: block !important;
  margin: 0 0 12px;
  white-space: normal;
}

.newscontent ul,
.newscontent ol {
  padding-left: 20px;
  margin: 0 0 12px;
}

.newscontent img {
  max-width: 100%;
  height: auto;
  border-radius: var(--idc-radius);
}

.newscontent table {
  width: 100%;
}

.newscontent pre {
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-all;
}

.newscontent a {
  color: var(--idc-primary);
}

/* —— 标签 —— */
.kbv-labels {
  padding-top: 16px;
  margin-top: 20px;
  border-top: 1px solid var(--idc-border-light);
}

.kbv-labels h5 {
  color: var(--idc-text-heading);
  font-size: 14px;
  font-weight: 600;
}

.kbv-labels li {
  color: var(--idc-text-secondary);
  font-size: 13px;
}

/* —— 上一篇 / 下一篇 —— */
.kbv-nav {
  padding-top: 16px;
  margin-top: 20px !important;
  border-top: 1px solid var(--idc-border-light);
}

.kbv-nav__btn {
  max-width: 47%;
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* —— 侧栏 —— */
.kbv-info .idc-stat-row {
  padding: 12px 0;
}

.kbv-info .idc-stat-row__value {
  max-width: 62%;
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.kbv-back {
  margin-top: 4px;
}

.kbv-side-tip {
  margin-top: 16px;
  color: var(--idc-text-muted);
  background: var(--idc-input-bg);
  border-color: var(--idc-border);
}

/* —— 响应式 —— */
@media (max-width: 991.98px) {
  .kbv-nav {
    flex-direction: column;
    gap: 10px;
  }

  .kbv-nav__btn {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 767.98px) {
  .kbv-title {
    font-size: 17px;
    line-height: 26px;
  }

  .newscontent {
    font-size: 13px;
    line-height: 23px;
  }
}

/* —— 窄屏页头条：标题与面包屑改为两行（.idc-pagehead 默认单行，<576px 会裁切面包屑） —— */
@media (max-width: 575.98px) {
  .idc-pagehead {
    flex-wrap: wrap;
    padding: 12px 14px 12px 18px;
  }

  .idc-pagehead__left {
    width: 100%;
  }

  .idc-pagehead__title {
    font-size: 18px;
    line-height: 22px;
  }

  .idc-pagehead__crumb {
    width: 100%;
    flex-wrap: wrap;
    margin-top: 4px;
  }
}
