/* 站点补充样式：Toast 提示（还原原站 sonner 交互） */
.toast-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 260px;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #ffffff;
  color: #1a1a2e;
  font-size: 14px;
  line-height: 1.5;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.12),
    0 8px 10px -6px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.toast-show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-left: 4px solid #0066ff;
}

.toast-error {
  border-left: 4px solid #ef4444;
}

/* ==========================================================================
   顶部导航：二级下拉菜单
   ========================================================================== */

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.is-active {
  color: #0066ff;
}

.nav-caret {
  width: 10px;
  height: 10px;
  transition: transform 0.25s ease;
}

.nav-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 14px;
  transform: translate(-50%, 8px);
  min-width: 320px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  box-shadow:
    0 18px 40px -12px rgba(15, 23, 42, 0.18),
    0 6px 14px -8px rgba(15, 23, 42, 0.1);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 60;
}

/* 悬停热区，避免鼠标移动到菜单途中丢失焦点 */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-all {
  display: block;
  padding: 8px 12px;
  margin-bottom: 4px;
  font-size: 13px;
  color: #6b7280;
  border-radius: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.nav-dropdown-all:hover,
.nav-dropdown-all.is-active {
  color: #0066ff;
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  transition: background 0.18s ease;
}

.nav-dropdown-item:hover {
  background: #f5f8ff;
}

.nav-dropdown-item.is-active {
  background: rgba(0, 102, 255, 0.08);
}

.nav-dropdown-item .ic {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 102, 255, 0.1);
  color: #0066ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-dropdown-item .ic svg {
  width: 15px;
  height: 15px;
}

.nav-dropdown-item .tx {
  display: block;
  min-width: 0;
}

.nav-dropdown-item .tx strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.5;
}

.nav-dropdown-item.is-active .tx strong,
.nav-dropdown-item:hover .tx strong {
  color: #0066ff;
}

.nav-dropdown-item .tx em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.6;
  color: #9ca3af;
  margin-top: 2px;
}

/* 移动端折叠子菜单 */
.m-sub-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.m-sub-trigger.is-active {
  background: rgba(0, 102, 255, 0.1);
  color: #0066ff;
}

.m-sub-list {
  display: none;
  padding: 4px 0 4px 12px;
  margin-left: 10px;
  border-left: 2px solid #eef2f7;
}

.m-sub.is-open .m-sub-list {
  display: block;
}

.m-sub.is-open .nav-caret {
  transform: rotate(180deg);
}

/* ==========================================================================
   技术文档：列表页
   ========================================================================== */

.doc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.doc-card {
  display: block;
  position: relative;
  padding: 28px;
  background: #fff;
  border: 1px solid #eceff4;
  border-radius: 16px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.doc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 255, 0.35);
  box-shadow: 0 20px 40px -18px rgba(0, 102, 255, 0.35);
}

.doc-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 102, 255, 0.1);
  color: #0066ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.doc-card-icon svg {
  width: 22px;
  height: 22px;
}

.doc-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.doc-card:hover .doc-card-title {
  color: #0066ff;
}

.doc-card-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: #6b7280;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doc-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f3f7;
  font-size: 12.5px;
  color: #9ca3af;
}

.doc-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: #0066ff;
}

.doc-card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.doc-card:hover .doc-card-cta svg {
  transform: translateX(4px);
}

.doc-empty {
  padding: 60px 20px;
  text-align: center;
  color: #9ca3af;
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
}

/* ==========================================================================
   资料下载：列表页
   ========================================================================== */

/* 资料下载：分类标签 */
.dl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.dl-tab {
  padding: 9px 20px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dl-tab:hover {
  border-color: rgba(0, 102, 255, 0.4);
  color: #0066ff;
}

.dl-tab.active {
  background: #0066ff;
  border-color: #0066ff;
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(0, 102, 255, 0.7);
}

/* 资料下载：分组列表 */
.dl-group {
  margin-bottom: 44px;
}

.dl-group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 2px solid #eef1f5;
}

.dl-group-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.dl-group-count {
  font-size: 12.5px;
  color: #fff;
  background: #cbd5e1;
  border-radius: 999px;
  padding: 1px 9px;
}

.dl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dl-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 10px;
  border-bottom: 1px solid #f1f3f7;
  transition: background 0.18s ease;
}

.dl-item:hover {
  background: #f8fafc;
}

.dl-item-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 102, 255, 0.1);
  color: #0066ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-item-icon svg {
  width: 22px;
  height: 22px;
}

.dl-item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.dl-item-name {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.dl-item-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dl-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12.5px;
  color: #9ca3af;
}

.dl-item-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 10px;
  background: #0066ff;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.dl-item-btn svg {
  width: 15px;
  height: 15px;
}

.dl-item-btn:hover {
  background: #0052cc;
  box-shadow: 0 12px 24px -12px rgba(0, 102, 255, 0.6);
}

@media (max-width: 640px) {
  .dl-item {
    flex-wrap: wrap;
  }
  .dl-item-btn {
    width: 100%;
    justify-content: center;
  }
}

.dl-empty {
  padding: 60px 20px;
  text-align: center;
  color: #9ca3af;
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
}

/* ==========================================================================
   技术文档：详情页
   ========================================================================== */

.doc-head {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #eef1f5;
  padding: 40px 0 32px;
}

.doc-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 14px;
}

.doc-crumb a:hover {
  color: #0066ff;
}

.doc-crumb em {
  font-style: normal;
  color: #4b5563;
}

.doc-title {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

.doc-subtitle {
  margin-top: 12px;
  max-width: 780px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #6b7280;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 18px;
  font-size: 13px;
  color: #9ca3af;
}

.doc-meta span,
.doc-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.doc-meta svg {
  width: 13px;
  height: 13px;
}

.doc-dl {
  color: #0066ff;
}

.doc-dl:hover {
  text-decoration: underline;
}

.doc-main {
  padding: 36px 0 72px;
  background: #fff;
}

.doc-layout {
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

/* --- 侧边目录 --- */

.doc-side-inner {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  padding: 18px 6px 18px 0;
  border-right: 1px solid #f0f2f6;
}

.doc-side-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #9ca3af;
  padding: 0 12px 12px;
}

.doc-toc-search {
  position: relative;
  margin: 0 12px 12px 0;
}

.doc-toc-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: #b6bdc8;
}

.doc-toc-search input {
  width: 100%;
  padding: 8px 10px 8px 30px;
  font-size: 13px;
  color: #374151;
  background: #f7f8fa;
  border: 1px solid #edeff3;
  border-radius: 8px;
  outline: none;
}

.doc-toc-search input:focus {
  background: #fff;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.doc-toc {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}

.doc-toc::-webkit-scrollbar {
  width: 5px;
}

.doc-toc::-webkit-scrollbar-thumb {
  background: #dfe3ea;
  border-radius: 4px;
}

.doc-toc a {
  display: block;
  padding: 7px 12px;
  margin-bottom: 1px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #6b7280;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.doc-toc a:hover {
  color: #0066ff;
  background: #f6f9ff;
}

.doc-toc a.lv2 {
  font-weight: 600;
  color: #4b5563;
}

.doc-toc a.lv3 {
  padding-left: 26px;
  font-size: 13px;
}

.doc-toc a.lv4 {
  padding-left: 40px;
  font-size: 12.5px;
}

.doc-toc a.active {
  color: #0066ff;
  background: rgba(0, 102, 255, 0.07);
  border-left-color: #0066ff;
  font-weight: 600;
}

.doc-toc-empty {
  padding: 14px 12px;
  font-size: 13px;
  color: #b6bdc8;
}

/* --- 阅读进度条 --- */

.doc-progress {
  position: sticky;
  top: 0;
  height: 3px;
  background: #f1f3f7;
  border-radius: 3px;
  overflow: hidden;
  z-index: 20;
  margin-bottom: 20px;
}

.doc-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0066ff, #4d94ff);
  transition: width 0.1s linear;
}

/* ==========================================================================
   Markdown 正文排版
   ========================================================================== */

/* --- 正文阅读区：独立垂直滚动（与左侧目录对齐） --- */
.doc-article {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d8dde6 transparent;
}

.doc-article::-webkit-scrollbar {
  width: 9px;
}

.doc-article::-webkit-scrollbar-track {
  background: transparent;
}

.doc-article::-webkit-scrollbar-thumb {
  background: #d8dde6;
  border-radius: 6px;
  border: 2px solid #fff;
}

.doc-article::-webkit-scrollbar-thumb:hover {
  background: #c2c9d4;
}

.doc-body {
  font-size: 15.5px;
  line-height: 1.85;
  color: #374151;
  word-wrap: break-word;
}

.doc-anchor,
.doc-body h2,
.doc-body h3,
.doc-body h4,
.doc-body h5 {
  scroll-margin-top: 104px;
}

.doc-anchor {
  display: block;
  height: 0;
  overflow: hidden;
}

.doc-body h2 {
  position: relative;
  margin: 46px 0 18px;
  padding-bottom: 12px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  border-bottom: 1px solid #eef1f5;
}

.doc-body h2:first-child {
  margin-top: 0;
}

.doc-body h3 {
  margin: 34px 0 14px;
  padding-left: 12px;
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #1f2937;
  border-left: 3px solid #0066ff;
}

.doc-body h4 {
  margin: 26px 0 12px;
  font-size: 16.5px;
  font-weight: 700;
  color: #1f2937;
}

.doc-body h5,
.doc-body h6 {
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #374151;
}

.doc-body .h-link {
  margin-left: 8px;
  font-size: 0.72em;
  font-weight: 400;
  color: #d3d8e0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.doc-body h2:hover .h-link,
.doc-body h3:hover .h-link,
.doc-body h4:hover .h-link {
  opacity: 1;
}

.doc-body .h-link:hover {
  color: #0066ff;
}

.doc-body p {
  margin: 14px 0;
}

.doc-body a {
  color: #0066ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 102, 255, 0.25);
}

.doc-body a:hover {
  border-bottom-color: #0066ff;
}

.doc-body a.h-link,
.doc-body a.doc-anchor {
  border-bottom: 0;
}

.doc-body strong {
  font-weight: 700;
  color: #111827;
}

.doc-body ul,
.doc-body ol {
  margin: 14px 0;
  padding-left: 24px;
  list-style: revert;
}

.doc-body ul {
  list-style: disc;
}

.doc-body ol {
  list-style: decimal;
}

.doc-body li {
  margin: 7px 0;
  padding-left: 4px;
}

.doc-body li::marker {
  color: #9db6de;
}

.doc-body ul ul,
.doc-body ol ol,
.doc-body ul ol,
.doc-body ol ul {
  margin: 6px 0;
}

.doc-body blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: #f6f9ff;
  border-left: 3px solid #0066ff;
  border-radius: 0 8px 8px 0;
  color: #4b5563;
}

.doc-body blockquote p {
  margin: 6px 0;
}

.doc-body blockquote p:first-child {
  margin-top: 0;
}

.doc-body blockquote p:last-child {
  margin-bottom: 0;
}

.doc-body hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid #eef1f5;
}

.doc-body code {
  padding: 2px 6px;
  font-size: 0.88em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  color: #b3324a;
  background: #f6f7f9;
  border: 1px solid #edeff3;
  border-radius: 5px;
  word-break: break-word;
}

.doc-body pre {
  position: relative;
  margin: 20px 0;
  padding: 18px 20px;
  overflow-x: auto;
  background: #1e2430;
  border-radius: 10px;
  line-height: 1.7;
}

.doc-body pre code {
  padding: 0;
  font-size: 13.5px;
  color: #e6edf3;
  background: none;
  border: 0;
  white-space: pre;
}

.doc-body pre::-webkit-scrollbar {
  height: 8px;
}

.doc-body pre::-webkit-scrollbar-thumb {
  background: #3b4453;
  border-radius: 4px;
}

.code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font-size: 12px;
  color: #aeb8c7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.doc-body pre:hover .code-copy {
  opacity: 1;
}

.code-copy:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.doc-table {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid #eceff4;
  border-radius: 10px;
}

.doc-table::-webkit-scrollbar {
  height: 8px;
}

.doc-table::-webkit-scrollbar-thumb {
  background: #dfe3ea;
  border-radius: 4px;
}

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.doc-body thead {
  background: #f7f9fc;
}

.doc-body th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
  border-bottom: 1px solid #e9edf3;
}

.doc-body td {
  padding: 11px 14px;
  color: #4b5563;
  border-bottom: 1px solid #f1f4f8;
  vertical-align: top;
}

.doc-body tbody tr:last-child td {
  border-bottom: 0;
}

.doc-body tbody tr:hover {
  background: #fafbfd;
}

.doc-body td code,
.doc-body th code {
  white-space: nowrap;
}

.doc-body img {
  max-width: 100%;
  margin: 18px 0;
  border-radius: 10px;
}

.doc-body mark,
.doc-body .doc-hit {
  background: #fff3bf;
  border-radius: 3px;
  padding: 0 2px;
}

/* --- 上/下一篇、返回 --- */

.doc-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid #eef1f5;
}

.doc-pager .pg {
  display: block;
  padding: 16px 20px;
  border: 1px solid #eceff4;
  border-radius: 12px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.doc-pager .pg:hover {
  border-color: rgba(0, 102, 255, 0.4);
  background: #f8faff;
}

.doc-pager .pg.next {
  text-align: right;
}

.doc-pager em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.doc-pager strong {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

.doc-pager .pg:hover strong {
  color: #0066ff;
}

.doc-back {
  margin-top: 26px;
}

.doc-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: #6b7280;
}

.doc-back a:hover {
  color: #0066ff;
}

.doc-back svg.rot {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

/* --- 浮动按钮 --- */

.doc-top,
.doc-toc-fab {
  position: fixed;
  right: 24px;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #4b5563;
  border: 1px solid #e8ebf0;
  border-radius: 50%;
  box-shadow: 0 8px 22px -8px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  z-index: 45;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.doc-top {
  bottom: 96px;
  font-size: 18px;
  line-height: 1;
}

.doc-toc-fab {
  bottom: 24px;
}

.doc-top:hover,
.doc-toc-fab:hover {
  color: #0066ff;
  transform: translateY(-2px);
}

.doc-top.show {
  display: flex;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1100px) {
  .doc-layout {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 880px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-side {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(15, 23, 42, 0.4);
    display: none;
  }

  .doc-side.open {
    display: block;
  }

  .doc-side-inner {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(86vw, 340px);
    max-height: none;
    padding: 22px 12px 22px 16px;
    background: #fff;
    border-right: 0;
    box-shadow: -10px 0 30px -12px rgba(15, 23, 42, 0.3);
  }

  .doc-toc-fab {
    display: flex;
  }

  .doc-title {
    font-size: 27px;
  }

  .doc-body {
    font-size: 15px;
  }

  .doc-body h2 {
    font-size: 22px;
  }

  .doc-body h3 {
    font-size: 18px;
  }

  .doc-pager {
    grid-template-columns: 1fr;
  }

  .doc-progress {
    top: 80px;
  }

  .doc-article {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* 品牌标题：纯色（与 Logo 同色系品牌蓝）、加大字号，兼容所有浏览器 */
.brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #0066ff;
}
