/* 文档中心（帮助中心）自有样式：列表 / 搜索 / 详情
   挂在 /help.html、/helpsearch.html、/helpdetail.html 三个页面上 */

/* ---------- 列表 ---------- */
.news-list.k8h-list {
  display: block !important;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: none !important;
}

.k8h-cat {
  display: block;
  margin: 20px 0 12px;
  padding-left: 12px;
  border-left: 4px solid #165dff;
  font-size: 17px;
  font-weight: 700;
  color: #10131a;
  line-height: 1.2;
}

.k8h-cat:first-child {
  margin-top: 4px;
}

.k8h-item {
  display: block;
  list-style: none;
  margin: 0;
}

.k8h-item > a,
.k8h-item > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: #10131a;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.k8h-item > a:hover {
  border-color: #165dff;
  box-shadow: 0 6px 18px rgba(22, 93, 255, 0.1);
  transform: translateY(-1px);
}

.k8h-item-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.k8h-type {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.6;
  color: #165dff;
  background: rgba(22, 93, 255, 0.08);
  padding: 1px 8px;
  border-radius: 4px;
}

.k8h-arrow {
  flex: 0 0 auto;
  color: #b9c0d0;
  font-size: 16px;
}

.k8h-empty {
  color: #8692b0;
  font-size: 14px;
  padding: 6px 0;
}

/* ---------- 详情 / 搜索：主体 ---------- */
.k8h-main {
  padding: 40px 0 48px;
}

.k8h-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.k8h-left {
  flex: 1 1 auto;
  min-width: 0;
}

.k8h-right {
  flex: 0 0 300px;
  width: 300px;
}

.k8h-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  margin-bottom: 16px;
}

.k8h-right .k8h-card {
  padding: 20px;
}

.k8h-crumb {
  font-size: 13px;
  color: #8692b0;
  margin-bottom: 16px;
}

.k8h-crumb a {
  color: #165dff;
  text-decoration: none;
}

.k8h-crumb span {
  margin: 0 6px;
}

.k8h-title {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.45;
  font-weight: 700;
  color: #10131a;
}

.k8h-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #8692b0;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef0f4;
  margin-bottom: 22px;
}

.k8h-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(22, 93, 255, 0.1);
  color: #165dff;
}

.k8h-content {
  font-size: 15px;
  line-height: 2;
  color: #374151;
  word-break: break-word;
}

.k8h-content p {
  margin: 0 0 16px;
}

.k8h-content ul,
.k8h-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.k8h-content li {
  margin-bottom: 8px;
}

.k8h-content h1,
.k8h-content h2,
.k8h-content h3 {
  margin: 24px 0 12px;
  color: #10131a;
}

.k8h-content img {
  max-width: 100%;
  height: auto;
}

.k8h-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.k8h-content td,
.k8h-content th {
  border: 1px solid #eef0f4;
  padding: 8px 12px;
}

.k8h-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #eef0f4;
}

.k8h-back {
  color: #165dff;
  font-size: 14px;
  text-decoration: none;
}

.k8h-nav {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.k8h-nav-link {
  color: #6b7280;
  text-decoration: none;
}

.k8h-nav-link:hover {
  color: #165dff;
}

.k8h-side-title {
  font-size: 15px;
  font-weight: 600;
  color: #10131a;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f4;
}

.k8h-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.k8h-links a {
  color: #4b5565;
  text-decoration: none;
}

.k8h-links a:hover {
  color: #165dff;
}

/* 侧栏热门文档（沿用主题类名，补齐样式） */
.newsPage_left_hot_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.newsPage_left_hot_list_item {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.newsPage_left_hot_list_item a {
  display: block;
  color: #4b5565;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.newsPage_left_hot_list_item a:hover {
  color: #165dff;
}

/* ---------- 搜索框 ---------- */
.k8h-searchbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.k8h-searchbar input {
  flex: 1 1 auto;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #e3e7ef;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.k8h-searchbar input:focus {
  border-color: #165dff;
}

.k8h-searchbar button {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 26px;
  border: 0;
  border-radius: 6px;
  background: #165dff;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 900px) {
  /* 移动端：分类选项卡改成横向可滑动，避免被主题裁掉 */
  .newsPage_left_list {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .newsPage_left_list ul {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .newsPage_left_list_item {
    flex: 0 0 auto !important;
    white-space: nowrap;
  }

  .k8h-wrap {
    flex-direction: column;
    padding: 0 16px;
  }

  .k8h-right {
    flex: 1 1 auto;
    width: 100%;
  }

  .k8h-card {
    padding: 20px;
  }

  .k8h-title {
    font-size: 20px;
  }
}
