/* =========================================================
  帮助中心 - 样式表
   专业、清晰、克制的设计语言
   ========================================================= */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    scrollbar-color: #7F7F7F;
}

*::-webkit-scrollbar-thumb {
    background-color: #ddd;
    /*    background-color: blueviolet;*/
    /*    background: rgb(187, 187, 187) ;*/
    /*    background: #E4E4E4;*/
    border: 1px solid #ddd;
    min-height: 4px;
    border-radius: 7px;
    opacity: 0.8;
}
:root {
  /* 色板 */
  --c-bg: #f7f8fa;
  --c-surface: #ffffff;
  --c-sidebar-bg: #fbfbfd;
  --c-border: #e6e8eb;
  --c-border-soft: #eef0f2;

  --c-text: #1f2329;
  --c-text-2: #4e5969;
  --c-text-3: #86909c;
  --c-text-muted: #a9aeb8;

  --c-primary: #165dff;
  --c-primary-soft: #f3eefe;
  --c-primary-hover: #0e42d2;

  --c-code-bg: #282c34;
  --c-code-text: #abb2bf;

  /* 尺寸 */
  --topbar-h: 60px;
  --sidebar-w: 280px;
  --toc-w: 220px;
  --radius: 8px;
  --radius-sm: 6px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--c-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===================== 顶部栏 ===================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 0 20px;
  max-width: 1560px;
  margin: 0 auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover {
  background: var(--c-bg);
  color: var(--c-text);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}
.brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--c-primary), #4080ff);
  color: #fff;
  font-weight: 700;
}

/* 搜索框 */
.search {
  position: relative;
  flex: 1;
  max-width: 520px;
  margin-left: auto;
}
.search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-3);
  pointer-events: none;
}
#searchInput {
  width: 100%;
  height: 40px;
  padding: 0 70px 0 38px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  /* background: var(--c-bg); */
  font-size: 14px;
  color: var(--c-text);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
#searchInput:focus {
  outline: none;
  background: var(--c-surface);
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.search__hint {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 6px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  background: var(--c-surface);
  color: var(--c-text-3);
  font-size: 11px;
  font-family: var(--font-mono);
  pointer-events: none;
}

.search__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 60vh;
  overflow-y: auto;
  z-index: 60;
}
.search__results li {
  list-style: none;
}
.search__result {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--c-text);
}
.search__result:hover,
.search__result.is-active {
  background: var(--c-primary-soft);
}
.search__result__title {
  font-weight: 600;
  font-size: 14px;
}
.search__result__snippet {
  margin-top: 2px;
  font-size: 12px;
  color: var(--c-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search__result__cat {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--c-border-soft);
  color: var(--c-text-2);
  font-size: 11px;
}
.search__empty {
  padding: 16px;
  text-align: center;
  color: var(--c-text-3);
  font-size: 13px;
}
mark {
  background: #fff3a0;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ===================== 布局（3 列：侧边栏 | 正文 | 本页目录） ===================== */
.layout {
  display: flex;
  align-items: flex-start;
  max-width: 1560px;
  margin: 0 auto;
}

/* 左侧导航树 */
.sidebar {
  position: sticky;
  top: var(--topbar-h);
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  max-height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  /* background: var(--c-sidebar-bg); */
  /* border-right: 1px solid var(--c-border); */
  padding: 18px 10px 40px;
}
.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: 4px;
}

.nav__loading,
.article__loading {
  color: var(--c-text-3);
  padding: 12px;
}

/* — 分类节点（带箭头、可折叠） — */
.nav__group {
  margin-bottom: 4px;
}
.nav__group__head {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  user-select: none;
  transition: background 0.12s;
}
.nav__group__head:hover {
  background: var(--c-border-soft);
}
.nav__group__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  color: var(--c-text-3);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.nav__group.is-collapsed .nav__group__caret {
  transform: rotate(-90deg);
}
.nav__group__title {
  margin: 0;
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text-2);
  letter-spacing: 0.02em;
}
.nav__group__count {
  font-size: 11px;
  color: var(--c-text-muted);
  margin-left: 6px;
}

.nav__list {
  list-style: none;
  margin: 2px 0 8px 0;
  padding: 0;
  overflow: hidden;
  transition: max-height 0.22s ease, opacity 0.18s ease;
  max-height: 1000px;
  opacity: 1;
}
.nav__group.is-collapsed .nav__list {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.nav__item {
  list-style: none;
}
.nav__link {
  display: flex;
  align-items: center;
  padding: 6px 10px 6px 30px;
  margin-left: 0;
  border-radius: var(--radius-sm);
  color: var(--c-text-2);
  font-size: 15px;
  cursor: pointer;
  position: relative;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
  margin-top: 2px;
}
/* 文档层级的小指示线（体现包含关系） */
.nav__link::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--c-border-soft);
}
.nav__item:last-child > .nav__link::before {
  bottom: 50%;
}
/* 文档小方块（树形叶子） */
.nav__link::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-border);
  transition: background 0.12s;
}
.nav__link:hover::after {
  background: var(--c-text-3);
}
.nav__link:hover {
  background: var(--c-border-soft);
  color: var(--c-text);
  text-decoration: none;
}
.nav__link.is-active {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-weight: 600;
}
.nav__link.is-active::after {
  background: var(--c-primary);
}

/* ===================== 中间 + 右侧：正文与本页目录 ===================== */
.content-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch; /* 让 .toc-aside 拉伸到与正文同高，sticky 才有滚动空间 */
  gap: 0;
}

.content {
  flex: 1;
  min-width: 0;
  position: relative;
  padding: 32px 40px 80px;
}

/* 右侧：本页目录（TOC） */
.toc-aside {
  flex: 0 0 var(--toc-w);
  width: var(--toc-w);
  position: relative;
  padding: 36px 14px 80px 0;
}
.toc-panel {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  max-height: calc(100vh - var(--topbar-h) - 40px);
  overflow-y: auto;
    font-size: 14px;
  padding: 14px 14px 14px 12px;
  /* border-left: 2px solid var(--c-border-soft); */
}
.toc-panel::-webkit-scrollbar {
  width: 6px;
}
.toc-panel::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: 3px;
}
.toc-panel__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-list li {
  list-style: none;
}
.toc-list a {
  display: block;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  color: var(--c-text-3);
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  transition: color 0.12s, background 0.12s;
  text-decoration: none;
}
.toc-list a::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.12s;
}
.toc-list a:hover {
  color: var(--c-text-2);
  background: var(--c-border-soft);
}
.toc-list a.is-active {
  color: var(--c-primary);
  font-weight: 600;
}
.toc-list a.is-active::before {
  background: var(--c-primary);
}
.toc-list a.level-3 {
  padding-left: 24px;
  font-size: 12.5px;
}

.article {
  /* background: var(--c-surface); */
  /* border: 1px solid var(--c-border); */
  /* border-radius: var(--radius); */
  /* box-shadow: var(--shadow-sm); */
  padding: 40px 52px;
  /*max-width: 960px;*/
  margin: 0;
}

/* 文章内 Markdown 样式 */
.article h1 {
  font-size: 30px;
  line-height: 1.3;
  margin: 0 0 8px;
  font-weight: 700;
}
.article h2 {
  font-size: 22px;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border-soft);
  font-weight: 650;
}
.article h3 {
  font-size: 18px;
  margin: 28px 0 10px;
  font-weight: 600;
}
.article h4 {
  font-size: 15px;
  margin: 22px 0 8px;
  font-weight: 600;
}
.article p {
  margin: 0 0 16px;
  color: var(--c-text);
}
.article ul,
.article ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.article li {
  margin-bottom: 6px;
}
.article blockquote {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-left: 4px solid var(--c-primary);
  background: var(--c-primary-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-text-2);
}
.article blockquote p {
  margin: 0;
}

.article a {
  color: var(--c-primary);
  /*text-decoration: underline;*/
  text-underline-offset: 2px;
}
.article a:hover {
  color: var(--c-primary-hover);
}

/* 表格 */
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px var(--c-border);
}
.article th,
.article td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--c-border-soft);
}
.article th {
  background: var(--c-bg);
  font-weight: 600;
  color: var(--c-text);
}
.article tr:last-child td {
  border-bottom: none;
}
.article tr:hover td {
  background: var(--c-sidebar-bg);
}

/* 行内代码 */
.article code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--c-border-soft);
  color: #c7254e;
}
/* 代码块 */
.article pre {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: var(--c-code-bg);
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.6;
}
.article pre code {
  display: block;
  padding: 0;
  background: transparent;
  color: var(--c-code-text);
  font-size: 13.5px;
  white-space: pre;
}

.article hr {
  border: none;
  border-top: 1px solid var(--c-border-soft);
  margin: 32px 0;
}

.article img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

/* 上一篇 / 下一篇 */
.doc-pager {
  display: flex;
  gap: 16px;
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--c-border-soft);
}
.doc-pager > span {
  flex: 1;
}
.doc-pager__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  text-decoration: none;
}
.doc-pager__link:hover {
  border-color: var(--c-primary);
  box-shadow: 0 2px 10px rgba(22, 93, 255, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
}
.doc-pager__link--next {
  text-align: right;
  align-items: flex-end;
}
.doc-pager__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-3);
  letter-spacing: 0.04em;
}
.doc-pager__link:hover .doc-pager__label {
  color: var(--c-primary);
}
.doc-pager__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
}
.doc-pager__link:hover .doc-pager__title {
  color: var(--c-primary);
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text-2);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.back-to-top:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* 移动端遮罩 */
.sidebar__overlay {
  display: none;
}

/* ===================== 响应式 ===================== */
@media (max-width: 1280px) {
  :root {
    --toc-w: 200px;
  }
  .content {
    padding: 28px 32px 80px;
  }
  .article {
    padding: 32px 36px;
  }
}
@media (max-width: 1100px) {
  /* 中等屏幕以下隐藏右侧本页目录 */
  .toc-aside {
    display: none;
  }
}
@media (max-width: 1024px) {
  .content {
    padding: 24px 28px 80px;
  }
  .article {
    padding: 28px 32px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .sidebar__overlay.is-visible {
    display: block;
    position: fixed;
    inset: var(--topbar-h) 0 0 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 39;
  }
  .search__hint {
    display: none;
  }
  .content {
    padding: 20px 16px 80px;
  }
  .article {
    padding: 22px 18px;
  }
  .brand__name {
    display: none;
  }
  .doc-pager {
    flex-direction: column;
    gap: 10px;
  }
  .doc-pager__link--next {
    text-align: left;
    align-items: flex-start;
  }
}
 .imgt{
  padding: 40px 56px; border-radius: 8px; background: linear-gradient(277deg, rgb(98, 67, 184) 0%, rgb(189, 125, 177) 100%);
 /*padding: 40px 56px; border-radius: 8px; background: linear-gradient(277deg, #165DFF  0%, #36BFFA 100%);*/

} .imgc{
 border-width: 0px; border-radius: 4px;
}