/* 单源化（DEV-33547 / t290008）：这三颗 woff2 与 document-content.css 的 'Stratos'
   是同一组文件。相对路径让它们从本 CSS 的两个所在 URL 各下载一遍；站点绝对路径
   全站单源，与页面主题共享同一次下载（bridge 注入器的 asset_prefix 重写负责
   file:// 直开构建产物的场景）。 */
@font-face {
  font-family: "Quectel Official Stratos";
  src: url("/static/sphinx_quectel_theme/static/fonts/stratos-regular.49779b.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Quectel Official Stratos";
  src: url("/static/sphinx_quectel_theme/static/fonts/stratos-medium.5e0918.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Quectel Official Stratos";
  src: url("/static/sphinx_quectel_theme/static/fonts/stratos-bold.b5e753.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* The official common.min.css declares stratos-regular/medium/bold against
   www.quectel.com.cn, whose font files are served without CORS headers. The
   browser fetches every face of a family as soon as the family is used, so
   those declarations fail on docs.quectel.com and log a blocked-font error.
   Re-declaring the official selectors that use those families against the
   bundled Stratos files renders identical glyphs from our own origin and keeps
   the cross-origin request from being made at all. Keep in sync with the
   stratos-* rules in the official common.min.css. */
[data-official-site-shell-root="body"] {
  font-family: "Quectel Official Stratos", "Source Han Sans", Arial, sans-serif !important;
}

[data-official-site-shell-root="body"] :is(h1, h2, h3, h4, h5, h6) {
  font-family: "Quectel Official Stratos", "Source Han Sans", Arial, sans-serif !important;
}

[data-official-site-shell-root="body"] :is(strong, .fw-550, .fw-600, .fw-900, .fw-bold) {
  font-family: "Quectel Official Stratos", "Source Han Sans", Arial, sans-serif !important;
}

[data-official-site-shell-root="head"] {
  position: relative;
  z-index: 20;
}

html:has([data-official-site-shell-root="body"]) {
  --official-context-category-height: 76px;
  scrollbar-gutter: auto;
}

:root {
  --official-document-title-height: 60px;
  --official-document-title-font-size: 16px;
  --official-document-title-font-weight: 400;
  --official-document-title-line-height: 24px;
  --official-document-title-background: #ffffff;
  --official-document-title-border: 0;
  --official-document-title-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  --official-document-nav-toc-color: #333333;
  --official-document-nav-outline-color: #555;
  --official-document-nav-active-color: #ed000c;
  --official-document-nav-toc-active-background: #f7f7f7;
  --official-document-nav-toc-hover-background: #f3f5f5;
  --official-document-nav-outline-active-background: #ffffff;
  --official-document-nav-outline-hover-background: #fff5f5;
}

[data-official-site-shell-root="body"] {
  --official-context-category-height: 76px;
  position: relative;
  z-index: 10;
}

[data-official-site-shell-root="header"],
[data-official-site-shell-root="footer"] {
  position: relative;
  width: 100%;
  overflow-x: clip;
}

[data-official-site-shell-root="header"],
[data-official-site-shell-root="header"] *,
[data-official-site-shell-root="footer"],
[data-official-site-shell-root="footer"] * {
  font-family:
    "Quectel Official Stratos", "Source Han Sans", Arial, sans-serif !important;
}

[data-official-site-shell-root="header"] {
  flex-shrink: 0;
  left: 0;
  right: 0;
  z-index: 2000;
}

[data-official-site-shell-root="header"] .dropdown-menu.dropdown-menu-lang > div > a {
  display: block;
  width: 100%;
}

[data-official-site-shell-root="header"].d-flex.flex-column {
  --official-site-header-height: 110px;
  height: var(--official-site-header-height);
  min-height: var(--official-site-header-height);
}

[data-official-site-shell-root="header"].bg-white.header {
  height: auto;
  min-height: 110.59375px;
}

[data-official-site-shell-root="footer"] {
  left: 0;
  right: 0;
  z-index: 200;
}

body.qdoc-footer-reveal-ready [data-official-site-shell-root="footer"] {
  position: fixed !important;
  top: var(--official-site-header-height, 110px) !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  z-index: 1900;
  box-sizing: border-box;
  width: 100% !important;
  height: calc(100vh - var(--official-site-header-height, 110px));
  max-height: calc(100vh - var(--official-site-header-height, 110px));
  overflow-x: clip;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(var(--official-footer-reveal-offset, 100vh));
  will-change: transform;
}

body.qdoc-footer-reveal-ready [data-official-site-shell-root="footer"]::-webkit-scrollbar {
  display: none;
}

body.qdoc-footer-reveal-active [data-official-site-shell-root="footer"] {
  visibility: visible;
  pointer-events: auto;
}

[data-official-document-main="true"] {
  color: #1a1a1a;
  font-family: "Quectel Official Stratos", "Source Han Sans", Arial, sans-serif;
}

/* The footer follows the document content up instead of sliding over it: at any
   reveal distance the content bottom edge and the footer top edge coincide. */
body.qdoc-footer-reveal-active [data-official-document-main="true"] > .quectel-content-header,
body.qdoc-footer-reveal-active [data-official-document-main="true"] > .quectel-main > .quectel-content,
body.qdoc-footer-reveal-active [data-official-document-main="true"] > .quectel-main > .document-satisfaction-survey {
  transform: translateY(var(--official-footer-content-offset, 0px));
}

[data-official-document-main="true"]
  .quectel-content
  :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
  font-family: inherit;
  letter-spacing: 0;
}

[data-official-document-main="true"] .quectel-content .table-wrapper {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  contain: layout paint;
}

[data-official-document-region="true"] .quectel-toc ul ul,
[data-official-document-region="true"] .on-this-page-list ul {
  /* 缩进必须落在 a 的文字内边距上，而不是 ul 的 margin 或 padding：
       - margin 会把整个子级块（含 li 的灰底与分隔线）往里推，左侧出现缺口；
       - padding 会把 li 一起往里推，分隔线仍短 12px（实测 li 从 12px 起）。
     这里把 ul 清零，改由下面按层级给 a 加 padding-left，li 盒子始终满宽。 */
  margin: 0 !important;
  padding: 0 !important;
}

[data-official-document-region="true"] > .quectel-contents .quectel-toc ul ul a {
  padding-left: 36px;
}

[data-official-document-region="true"] > .quectel-contents .quectel-toc ul ul ul a {
  padding-left: 48px;
}

/* 本页导航（右侧 outline）的层级缩进。

   左侧 toctree 有上面两条按层级递增的 padding-left，右侧当初只清零了 ul 的 margin/
   padding（见 `.on-this-page-list ul` 那段注释），却漏了按层级给 a 加缩进。结果一、二、
   三级标题全都落在同一个 24px 起点、同一个 13px/400 字号上——实测某页 h2=7 项、h3=10 项、
   h4=3 项，12 个可见项的计算样式完全一致，读起来就是一长串平铺的文字，看不出「哪个
   小标题属于哪个大标题」。

   数字与左侧一致（二级 36px、三级 48px），这样两侧的层级在同一列宽下视觉对齐。 */
[data-official-document-region="true"] > .quectel-contents .on-this-page-list ul .on-this-page-link {
  padding-left: 36px;
}

[data-official-document-region="true"] > .quectel-contents .on-this-page-list ul ul .on-this-page-link {
  padding-left: 48px;
}

[data-official-document-region="true"] > .quectel-contents .on-this-page-list > li > .on-this-page-link {
  color: #1a1a1a;
  font-size: 16px;
}

/* 走查 2026-11 序号25：本页导航需与文档列表保持一致——
   一级 #1a1a1a / 16px，二级 #333333 / 14px。
   原来右侧给的是 12.5px / 12px，比左侧小一档。 */
[data-official-document-region="true"] > .quectel-contents .on-this-page-list ul .on-this-page-link {
  font-size: 14px;
  color: var(--official-document-nav-toc-color);
}

[data-official-document-region="true"] > .quectel-contents .on-this-page-list ul ul .on-this-page-link {
  font-size: 14px;
  color: var(--official-document-nav-toc-color);
}

[data-official-document-region="true"] .quectel-toc > ul {
  /* 顶部 8px 原本在 ul 上，会让第一个选中块的灰底到不了顶部。挪到首/末项的
     内边距上（下面的 first/last-child 规则），选中块就能贴着标题条下沿开始。 */
  padding-block: 0 !important;
}

[data-official-document-region="true"] .quectel-toc > ul > li:first-child > a {
  padding-top: 18px;
}

[data-official-document-region="true"] .quectel-toc > ul > li:last-child > a {
  padding-bottom: 18px;
}

[data-official-site-shell-content="true"] {
  --official-site-shell-header-offset: 0px;
  --official-context-category-height: 76px;
  --header-height: 70px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  padding-top: var(--official-site-shell-header-offset);
}

body[data-official-site-shell-root="body"]:has([data-official-document-center-home="true"]) {
  overflow: hidden !important;
}

body[data-official-site-shell-root="body"]:has([data-official-document-center-home="true"])
  > [data-official-site-shell-content="true"] {
  flex: 1 1 auto;
  min-height: 0;
  height: calc(100vh - var(--official-site-header-height, 110px));
  overflow-x: hidden;
  overflow-y: auto;
}

body.qdoc-global-search-page[data-official-site-shell-root="body"]:has(
    [data-official-document-center-home="true"]
  ) {
    overflow: visible !important;
}

/* 搜索页的顶栏同文档页一样吸顶：产品分类栏贴在官方 header 的**可见**下缘
   （header 随滚动上移让位，visible-height 从 110 降到 0，分类栏跟着升到视口顶端）。
   原先这里是 `position: static`（分类栏随页面滚走），而搜索条是 sticky —— 滚动后
   只剩输入框浮在上面，与「分类栏 + 搜索条」一起置顶不一致。
   搜索条自身的 top 要多让出一条分类栏高度，见 document-content.css 的
   `body:has(.official-context-categories) .qdoc-search-band`。 */
body.qdoc-global-search-page .official-context-categories {
  position: sticky !important;
  top: var(--official-site-header-visible-height, 110px) !important;
}

body.qdoc-global-search-page > [data-official-site-shell-root="header"] {
  position: fixed !important;
  /* 与文档页一致：随滚动上移让位，滚动量为 0 时贴在顶端。偏移/高度由
     official-footer-reveal.js 写入 :root 变量（搜索页也走同一套同步逻辑）。 */
  top: var(--official-site-header-scroll-offset, 0px) !important;
  left: 0;
  right: 0;
  z-index: 2000;
}

body.qdoc-global-search-page > [data-official-document-center-page="true"] {
  padding-top: var(--official-site-header-height, 110px);
}

@media (max-width: 768px) {
  [data-official-site-shell-root="header"].d-flex.flex-column {
    --official-site-header-height: 90px;
  }
}

[data-official-site-shell-content="true"] .quectel-header {
  position: sticky;
  top: 0;
  width: 100%;
}

[data-official-site-shell-content="true"] .quectel-search-dropdown {
  top: var(--header-height);
}

.official-product-model-selector {
  --official-product-model-width: 240px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  position: relative;
  min-width: 0;
}

.official-product-model-label {
  color: #212323;
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
  white-space: nowrap;
}

/* 设计稿 Frame 1321316455：240x44、padding 8px 14px、gap 103px、
   bg&divider/背景深色 = #EAECEC、圆角 3px。space-between 已实现标签靠左、箭头靠右，
   因而不需要真的写 gap: 103px（那会让窄容器溢出）。 */
.official-product-model-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: var(--official-product-model-width);
  height: 44px;
  padding: 8px 14px;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: #eaecec;
  color: #888;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0;
  cursor: pointer;
}

.official-product-model-trigger:disabled {
  color: #6b6c6d;
  cursor: default;
}

.official-product-model-trigger-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.official-product-model-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  transform: rotate(45deg) translateY(-2px);
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.official-product-model-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1300;
  width: var(--official-product-model-width);
  max-width: min(320px, calc(100vw - 32px));
  max-height: min(360px, calc(100vh - 120px));
  overflow-y: auto;
  border: 1px solid #e2e5e5;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.official-product-model-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.official-product-model-option:hover,
.official-product-model-option:focus-visible {
  outline: none;
  background: #f4f6f6;
}

/* 当前选中项只靠红色文字区分，右侧不再画勾选符。
   设计稿要求选中态为纯文字变红；同时画符号会让同一项既变色又多一个标记，视觉上重复。 */
.official-product-model-option.is-current {
  color: #ed000c;
}

@media (min-width: 769px) {
  /* 文档正文页的滚动策略只由下面 `body.qdoc-document-scroll-ready ...` 那条规则决定，这里
     不能再按语言给 body 加高度锁：

     这里曾有一条以 `data-document-project-ref` 的 en 前缀为条件的规则（height: 100vh +
     overflow: hidden !important），特异性 0,4,1，压过了下面那条 0,3,1 的
     `overflow: visible !important`。结果是英文页 body 变成 overflow: hidden 的滚动容器，而
     `position: sticky` 的吸附参照从 html 换成了不滚动的 body：

     - 首屏正文标题条不再贴着站点头部下沿，而是多下移一个 body 的 padding-top（实测 top
       从 187 变成 298，正好压在 H1 上）；
     - 往下滚动时它完全跟不住（滚到 600 后停在 -302，被滚出视口）。

     英文页「多一层滚动条」的问题由 window 单滚动 + sticky 这套策略本身解决，不需要锁 body。

     排除全局搜索页的理由仍成立：它的 body 同样带 center-page 标记，若在此锁成不可滚动会把
     搜索结果整体裁掉。 */
  body:not(.qdoc-global-search-page)[data-official-site-shell-root="body"]:has(
    [data-official-document-center-page="true"]
  ) {
    overflow: hidden !important;
  }

  [data-official-document-region="true"] {
    --contents-width: 280px;
    --on-this-page-width: 300px;
    display: grid !important;
    grid-template-columns: var(--contents-width) minmax(0, 1fr) 0 !important;
    grid-template-rows: auto auto;
    align-items: start;
    width: 100%;
    min-height: 0;
  }

  [data-official-document-region="true"] > .quectel-contents .quectel-toc-title,
  [data-official-document-main="true"] > .quectel-content-header,
  [data-official-document-region="true"] > .on-this-page .on-this-page-nav {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: var(--official-document-title-height) !important;
    min-height: var(--official-document-title-height) !important;
    margin: 0;
    border-bottom: var(--official-document-title-border) !important;
    box-shadow: var(--official-document-title-shadow) !important;
    background: var(--official-document-title-background) !important;
    font-size: var(--official-document-title-font-size) !important;
    font-weight: var(--official-document-title-font-weight) !important;
    line-height: var(--official-document-title-line-height) !important;
  }

  /* 设计稿标题条左右内边距为 40px。 */
  [data-official-document-region="true"] > .quectel-contents .quectel-toc-title,
  [data-official-document-region="true"] > .quectel-contents.has-page-outline .on-this-page-nav,
  [data-official-document-region="true"] > .on-this-page .on-this-page-nav {
    padding: 0 40px;
  }

  /* 设计稿内容区头部：40px 处是 24px 折叠按钮，标题自 80px 起。 */
  [data-official-document-main="true"] > .quectel-content-header {
    padding: 0 40px;
  }

  [data-official-document-main="true"] > .quectel-content-header .contents-toggle {
    left: 40px !important;
  }

  /* 设计稿正文列铺满内容区、左右各 40px，与三条标题条的内边距对齐。
     此前正文被 1215px 居中限宽，两侧空白远大于设计稿且与头部条不齐。 */
  [data-official-document-main="true"] .quectel-main > .quectel-content {
    width: calc(100% - var(--contents-width));
    max-width: none;
    margin: 0;
    margin-left: var(--contents-width);
    padding: 0 40px;
  }

  body.contents-collapsed
    [data-official-document-main="true"]
    > .quectel-main {
    width: 100%;
    margin-left: 0;
  }

  body.contents-collapsed
    [data-official-document-main="true"]
    .quectel-main
    > .quectel-content {
    width: 100%;
    margin-left: 0;
  }

  [data-official-document-region="true"] > .quectel-contents .quectel-toc-title {
    border-right: 0 !important;
  }

  [data-official-document-region="true"] > .on-this-page .on-this-page-title {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
  }

  body.contents-collapsed [data-official-document-region="true"] {
    grid-template-columns: 0 minmax(0, 1fr) 0 !important;
  }

  body.on-this-page-collapsed [data-official-document-region="true"] {
    grid-template-columns: var(--contents-width) minmax(0, 1fr) 0 !important;
  }

  html.qdoc-on-this-page-initially-collapsed
    [data-official-document-region="true"] {
    grid-template-columns: var(--contents-width) minmax(0, 1fr) 0 !important;
  }

  html.qdoc-on-this-page-initially-collapsed
    [data-official-document-region="true"]
    > .on-this-page {
    width: 0 !important;
    min-width: 0 !important;
  }

  body.contents-collapsed.on-this-page-collapsed
    [data-official-document-region="true"] {
    grid-template-columns: 0 minmax(0, 1fr) 0 !important;
  }

  [data-official-document-region="true"] > [data-official-document-main="true"] {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    /* 撑满整行，否则右侧 sticky 标题条只能在自身内容高度内吸顶。

       实测（componentlib 页，目录 773px / 正文 498px）：region 的 `align-items: start` 让这一列
       保持内容高 553px，而第一行是 828px（被左侧目录撑开）。行高 828 > 列高 553，于是滚过
       553px 后右侧标题条就滑走了，左侧标签条还钉在 y=76 —— 所有者看到的「上下滚动不一致」。
       拉伸到整行后两列同高，两条标题条用同一个 top 一起吸住，多出来的高度就是正文的空白。 */
    align-self: stretch;
    border-left: 1px solid #e9ecec;
    border-right: 1px solid #ccc;
  }

  [data-official-site-shell-root="body"]
    [data-official-document-main="true"]
    > .quectel-content-header {
    position: sticky;
    top: calc(var(--header-height) + var(--official-context-category-height)) !important;
    left: auto;
    right: auto;
    width: 100%;
  }

  [data-official-site-shell-root="body"]
    [data-official-document-region="true"]
    > .quectel-contents {
    position: sticky;
    top: calc(var(--header-height) + var(--official-context-category-height)) !important;
    flex-shrink: 0;
    grid-column: 1;
    grid-row: 1;
    width: var(--contents-width);
    height: calc(100vh - var(--header-height) - var(--official-context-category-height)) !important;
    max-height: calc(100vh - var(--header-height) - var(--official-context-category-height)) !important;
    overflow-y: auto !important;
    border-right: 0 !important;
  }

  [data-official-site-shell-root="body"]
    [data-official-document-region="true"]
    > .on-this-page {
    position: sticky;
    top: calc(var(--header-height) + var(--official-context-category-height)) !important;
    flex-shrink: 0;
    grid-column: 3;
    grid-row: 1;
    width: var(--on-this-page-width);
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    border-left: 0 !important;
    transform: translateX(calc(-1 * var(--official-document-outline-scrollbar-width, 0px)));
  }

  [data-official-document-region="true"]
    > .quectel-contents
    .quectel-contents-scrollable,
  [data-official-document-region="true"] > .quectel-contents .quectel-toc {
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: hidden !important;
  }

  [data-official-document-region="true"]
    > .quectel-contents
    > .quectel-toc
    > ul {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
  }

  /* 兜底布局（`/documents/` 这类没有文档中心标记的页面）的侧栏树是本页唯一常驻的内部
     滚动器：页面级滚动条必然存在（正文 + 满意度调查 + 页脚都在流内，实测 footerTop≈1191），
     两条并排即用户报告的「侧栏两个滚动条」。树照常可滚，只隐藏它的外观——与文档页
     `.quectel-contents.has-page-outline > .quectel-toc`（:982 / :1536）既有做法一致。
     作用域说明：文档页的侧栏父节点是 `[data-official-document-region="true"]`，
     不匹配 `.quectel-layout >`，因此不受本规则影响；≤768 的抽屉不在本 media 内。 */
  body[data-official-site-shell-root="body"] .quectel-layout > .quectel-contents > .quectel-toc {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body[data-official-site-shell-root="body"] .quectel-layout > .quectel-contents > .quectel-toc::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  [data-official-document-region="true"] > .on-this-page .on-this-page-content {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }

  [data-official-document-main="true"] > .quectel-main {
    width: calc(100% + var(--contents-width) + 2px);
    height: calc(100vh - var(--official-document-outline-top, 279px));
    max-height: calc(100vh - var(--official-document-outline-top, 279px));
    min-width: 0;
    min-height: 0;
    margin: 0 0 0 calc(0px - var(--contents-width) - 1px);
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  [data-official-document-region="true"]
    > [data-official-site-shell-root="footer"] {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  [data-official-document-region="true"] > .on-this-page.collapsed {
    width: 0 !important;
    min-width: 0;
  }

  body.contents-collapsed
    [data-official-document-region="true"]
    > .quectel-contents {
    width: 0 !important;
    min-width: 0 !important;
  }

  /* 左栏宽度拖动条（所有者 2026-11-09：左侧导航需要支持拖拉调整宽度）。
   *
   * 这条规则原先写的是 `display: none !important`（`8b5391b27`），把拖拽整个关掉了：
   * 官方外壳里左栏是 grid 的轨道（`grid-template-columns: var(--contents-width) ...`），
   * 栏宽必须由区域自己的变量决定，不允许 `quectel-theme.js` 再给 `.quectel-main` 写内联
   * `margin-left`（那会让整列再位移一次）—— 所以当时索性把拖动条藏了。
   *
   * 现在的分工是：JS 只写区域上的 `--contents-width`，CSS 全部从这一个变量推导，
   * 于是拖动条可以放开。
   *
   * 纵向范围必须跟着「站点头部已收起多少」走：拖动条 `position: fixed` 挂在 `<body>` 上，
   * 而左栏是 `position: sticky`，实测 scrollY=0 时栏顶在 186（头部 110 + 分类栏 76），
   * 滚过首屏后头部收起、栏顶变成 76。用 `--official-site-header-visible-height`（110 -> 0）
   * 才能让两者始终对齐，写死 110 会在滚动后多出一段空白。 */
  [data-official-site-shell-root="body"] > .quectel-contents-resize-handle {
    display: block !important;
    top: calc(var(--official-site-header-visible-height, 110px) + var(--official-context-category-height, 76px)) !important;
    height: calc(
      100vh - var(--official-site-header-visible-height, 110px) - var(--official-context-category-height, 76px)
    ) !important;
  }

  /* 折叠后没有可拖的边界。 */
  body.contents-collapsed[data-official-site-shell-root="body"] > .quectel-contents-resize-handle {
    display: none !important;
  }
}

[data-official-document-center-page="true"] img,
[data-official-document-center-page="true"] video,
[data-official-document-center-page="true"] iframe,
[data-official-document-center-page="true"] table {
  max-width: 100%;
}

/* The shell's own stylesheet is a WordPress site theme, and several of its rules name BARE
   elements - `li, p { font-size: 1.125rem }` (18px), `ol li, ul li { margin: 0.75rem 0 0.75rem
   1.25rem }`, `p + :not(p):not(.cta) { margin-top: 1.5rem }`. A type selector cannot know where
   the shell ends, so those rules land on the document body too: the delivered content column
   printed every `<p>` and `<li>` at 18px while the definition lists beside them stayed at the
   theme's 15px. Owner's report (2026-10-27) on the Revision History table of
   Quectel_EC200U&EG800G&EG91xU&EG915G_Series_RF_FTM_Application_Note_V1.4: 「字体大小不一致，
   有大有小，需要保持一样大小」 - row 1.2 is a definition list (15px) and every row around it is a
   paragraph (18px) - and 「1.3的description的格式不对，缩进不对」 - the `<ul>` already carries the
   theme's 18px inset, and the shell's `margin-left` pushed every item another 20px right of the
   text column its own paragraph starts in.

   Only the declarations that measurably leaked are restored; the shell keeps everything else
   (its own heading scale, `.has-*-font-size` utilities, spacing). Scoped to the document content
   column so the shell's own header, footer and navigation keep their WordPress styling, and
   stated on `p`/`li` only, so a Word-run inline `margin-left` on an item still wins.

   Measured with the shell sheet disabled as the control (a page built without it): `<p>` 18px ->
   15px and line-height 29.7px -> 24.75px, `<li>` 18px -> 15px with margin-left 20px -> 0 and
   margin-top 12px -> 0, the table cell's own `<p>` 18px -> 15px, and `<ul>` margin-top 24px ->
   15px (the browser's own 1em, which is what the control page prints). */
[data-official-document-main="true"] .quectel-content p,
[data-official-document-main="true"] .quectel-content li {
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
}

[data-official-document-main="true"] .quectel-content ol li,
[data-official-document-main="true"] .quectel-content ul li {
  margin-left: 0;
  margin-top: 0;
}

[data-official-document-main="true"] .quectel-content ul {
  margin-top: 1em;
}
/* End official document shell bridge overrides. */
[data-official-document-main="true"] .quectel-content a.reference {
  color: #0019aa;
  font-size: 16px;
}

body:not(.qdoc-global-search-page) [data-official-document-main="true"] .quectel-content h1 {
  color: #1a1a1a;
  font-size: 40px;
}

body:not(.qdoc-global-search-page) [data-official-document-main="true"] .quectel-content h2 {
  font-size: 30px;
}

/* Document navigation alignment with the official reference layout. */
@media (min-width: 769px) {
  [data-official-site-shell-root="body"] {
    --contents-width: 260px;
    --on-this-page-width: 220px;
  }
}

[data-official-document-region="true"] > .quectel-contents {
  /* Panel background stays white so the area below the last entry does not show
     as an empty grey block when the table of contents is shorter than the viewport. */
  background: #fff;
  border-right: 1px solid #e5e5e5 !important;
}

[data-official-document-main="true"] > .quectel-content-header,
[data-official-document-region="true"] > .quectel-contents .quectel-toc-title,
[data-official-document-region="true"] > .on-this-page .on-this-page-nav {
  color: #1a1a1a !important;
}

[data-official-document-region="true"] > .quectel-contents .quectel-toc {
  background: #fff;
}

[data-official-document-region="true"] > .quectel-contents .quectel-toc a,
[data-official-document-region="true"] > .quectel-contents .on-this-page-link {
  border-radius: 0;
  /* 分隔线画在 a（一行）上。缩进已经在 a 的 padding-left，盒子仍是满宽 280px，
     所以线条横贯整行。画在 li 上不行：有子级时 li 的盒子包含整棵子树，
     border 只会落在子树最底部，一级菜单那一行下面反而没有线。 */
  border-bottom: 1px solid #f0f3f3;
  color: var(--official-document-nav-toc-color);
  padding-block: 10px;
}

/* 整棵树最深一层的最后一项不画线，避免面板底部多一条细线。

   `:not(:only-child)` 是关键：只有一个一级节点时它既是 first 又是 last，
   无限定会把唯一的一级菜单那颗线也去掉（实测 toctree-l01 变成 0px）。 */
[data-official-document-region="true"] > .quectel-contents .quectel-toc > ul > li:last-child:not(:only-child) > a,
[data-official-document-region="true"] > .quectel-contents .on-this-page-list > li:last-child:not(:only-child) > a {
  border-bottom: 0;
}

[data-official-document-region="true"] > .quectel-contents .quectel-toc a {
  color: var(--official-document-nav-toc-color);
  font-size: 14px;
}

[data-official-document-region="true"] > .quectel-contents .quectel-toc > ul > li > a {
  color: #1a1a1a;
  font-size: 16px;
}

[data-official-document-region="true"] > .quectel-contents .quectel-toc a:hover,
[data-official-document-region="true"] > .quectel-contents .quectel-toc a.current,
[data-official-document-region="true"] > .quectel-contents .on-this-page-link:hover,
[data-official-document-region="true"] > .quectel-contents .on-this-page-link.active {
  /* The theme forces a white background on the active entry; the panel itself is
     white now, so the active/hover state uses the light grey tint instead. */
  background: var(--official-document-nav-toc-active-background) !important;
  color: var(--official-document-nav-active-color) !important;
}

[data-official-document-region="true"] > .quectel-contents .quectel-toc a:hover,
[data-official-document-region="true"] > .quectel-contents .on-this-page-link:hover {
  background: var(--official-document-nav-toc-hover-background) !important;
}

[data-official-document-region="true"] > .on-this-page {
  background: #fff;
  border-left: 1px solid #e5e5e5;
}

[data-official-document-region="true"] > .on-this-page .on-this-page-content {
  padding-inline: 24px;
}

[data-official-document-region="true"] > .on-this-page .on-this-page-link {
  color: #666;
}

[data-official-document-region="true"] > .on-this-page .on-this-page-link.active {
  color: var(--official-document-nav-active-color);
}

/* Keep the page outline out of the document flow and reveal it on scroll. */
@media (min-width: 769px) {
  .quectel-layout {
    grid-template-columns: var(--contents-width) minmax(0, 1fr) 0 !important;
  }

  .quectel-layout > .quectel-main {
    grid-column: 2 / -1 !important;
  }
}

[data-official-document-region="true"] > .on-this-page {
  display: flex !important;
  position: fixed !important;
  top: calc(var(--official-context-category-height, 60px) + 56px) !important;
  right: 0 !important;
  z-index: 1400;
  width: min(var(--on-this-page-width, 280px), 86vw) !important;
  height: auto !important;
  max-height: calc(100vh - var(--official-context-category-height, 60px) - 72px) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #fff;
  box-shadow: -4px 8px 24px rgba(0, 0, 0, 0.14);
  transform: translateX(calc(100% - 44px - var(--official-document-outline-scrollbar-width, 0px) - 1px));
  transition: opacity 120ms ease, visibility 120ms ease, transform 180ms ease;
}

[data-official-document-region="true"] > .on-this-page.is-floating-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(calc(-1 * (var(--official-document-outline-scrollbar-width, 0px) + 1px)));
}

[data-official-document-region="true"] > .on-this-page:hover,
[data-official-document-region="true"] > .on-this-page:focus-within {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(calc(-1 * (var(--official-document-outline-scrollbar-width, 0px) + 1px)));
}

[data-official-document-region="true"] > .on-this-page .on-this-page-nav {
  display: none !important;
}

.quectel-layout .quectel-content-download {
  display: none !important;
}

[data-official-document-region="true"] > .on-this-page .on-this-page-content {
  max-height: inherit !important;
  overflow-y: auto !important;
  padding: 12px 16px 16px;
}

/* 走查 2026-11 序号25：右侧浮层大纲同样对齐文档列表字号（一级 #1a1a1a/16px、
   其余 #333333/14px），与页面内嵌本页导航保持一致。 */
[data-official-document-region="true"] > .on-this-page .on-this-page-link {
  min-height: 34px;
  padding: 8px 10px;
  border-left: 3px solid transparent;
  border-radius: 0;
  color: var(--official-document-nav-toc-color);
  font-size: 14px;
  line-height: 1.35;
}

[data-official-document-region="true"] > .on-this-page .on-this-page-list > li > .on-this-page-link {
  color: #1a1a1a;
  font-size: 16px;
}

[data-official-document-region="true"] > .on-this-page .on-this-page-link:hover,
[data-official-document-region="true"] > .on-this-page .on-this-page-link.active {
  border-left-color: var(--official-document-nav-active-color);
  color: var(--official-document-nav-active-color) !important;
}

[data-official-document-region="true"] > .on-this-page .on-this-page-link:hover {
  background: var(--official-document-nav-outline-hover-background);
}

[data-official-document-region="true"] > .on-this-page .on-this-page-link.active {
  background: var(--official-document-nav-outline-active-background);
}

[data-official-document-region="true"] > .on-this-page.collapsed {
  width: min(var(--on-this-page-width, 280px), 86vw) !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: hidden;
  pointer-events: auto;
  background: #fff;
  border-left: 1px solid #e5e5e5;
}

[data-official-document-region="true"] > .on-this-page.collapsed .on-this-page-content {
  display: block !important;
  opacity: 1;
}

@media (max-width: 768px) {
  [data-official-document-region="true"] > .on-this-page {
    top: calc(var(--official-context-category-height, 60px) + 48px) !important;
  }
}

/* Keep the desktop page outline as an overlay above the document body. */
@media (min-width: 1201px) {
  [data-official-document-region="true"] {
    grid-template-columns: var(--contents-width) minmax(0, 1fr) 0 !important;
  }

  [data-official-document-region="true"] > .on-this-page:not(.collapsed) {
    display: flex !important;
    position: fixed !important;
    top: var(--official-document-outline-top, calc(var(--official-context-category-height) + var(--official-document-title-height))) !important;
    right: 0 !important;
    width: var(--on-this-page-width) !important;
    /* Stop at the document body bottom, which the footer reveal raises as well. */
    max-height: calc(100vh - var(--official-document-outline-top, calc(var(--official-context-category-height) + var(--official-document-title-height))) + var(--official-footer-content-offset, 0px)) !important;
    overflow: hidden !important;
    border-left: 0 !important;
    background: #fff !important;
    box-shadow: -4px 8px 24px rgba(0, 0, 0, 0.14) !important;
  }

  [data-official-document-region="true"] > .on-this-page:not(.collapsed) .on-this-page-content {
    overflow-y: auto !important;
  }

  [data-official-document-region="true"] > .on-this-page.is-floating-visible,
  [data-official-document-region="true"] > .on-this-page:hover,
  [data-official-document-region="true"] > .on-this-page:focus-within {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(calc(-1 * (var(--official-document-outline-scrollbar-width, 0px) + 1px))) !important;
  }
}

[data-official-document-region="true"] > .on-this-page[hidden],
.on-this-page[hidden] {
  display: none !important;
}

.quectel-contents.has-page-outline {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  /* The panel is its own column: it stays put while the article scrolls (position: sticky)
     and its list scrolls internally when it does not fit. `overflow: hidden` here only clips
     the rounded/absolute children - the scrolling happens on `.quectel-toc` below, whose
     scrollbar is hidden so the panel still reads as a plain column. */
  overflow: hidden !important;
}

.quectel-contents.has-page-outline > .quectel-toc {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  height: auto !important;
  min-height: 0;
  /* The panel is a column with a fixed tab bar on top; the list takes what is left and scrolls
     inside it. `max-height: 100%` here made the list start at the panel's top edge, i.e. UNDER
     the sticky tab bar - measured: tabs at y=152 and the tree at y=136, so the bar was painted
     in the middle of the list. The panel's own height already bounds this element. */
  max-height: none !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  /* No visible scrollbar: the panel keeps the clean column look the owners asked for, while
     the wheel/trackpad still scrolls a long 文档列表. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quectel-contents.has-page-outline > .quectel-toc::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.quectel-contents.has-page-outline > .quectel-toc > ul {
  flex: 0 0 auto !important;
  min-height: 0;
  overflow: visible !important;
  overscroll-behavior: auto;
}

.quectel-contents.has-page-outline > .quectel-contents-scrollable {
  display: none !important;
}

.quectel-contents.has-page-outline > .on-this-page {
  display: flex !important;
  position: absolute !important;
  box-sizing: border-box;
  padding-top: var(--official-document-title-height, 60px);
  inset: 0;
  z-index: 30;
  flex-direction: column;
  width: 100% !important;
  min-height: 0;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  background: #fff;
  transform: none !important;
  transition: opacity 120ms ease, visibility 120ms ease !important;
  border: 0 !important;
  box-shadow: none !important;
}

.quectel-contents.has-page-outline > .on-this-page.is-floating-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.quectel-contents.has-page-outline:has(> .on-this-page.is-floating-visible:not([hidden])) > .quectel-toc {
  visibility: hidden;
}

.quectel-contents.has-page-outline > .on-this-page[hidden] {
  display: none !important;
}

.quectel-contents.has-page-outline .on-this-page-nav {
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  flex: 0 0 var(--official-document-title-height, 60px);
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-sm);
  background: #eaecec;
  border-bottom: 1px solid #e5e5e5;
}

.quectel-contents.has-page-outline .on-this-page-title {
  margin: 0 !important;
  font: inherit !important;
  color: inherit;
}

.quectel-contents.has-page-outline > .document-navigation-tabs {
  display: flex;
  position: relative;
  z-index: 31;
  box-sizing: border-box;
  flex: 0 0 var(--official-document-title-height, 60px);
  height: var(--official-document-title-height, 60px);
  align-items: center;
  /* Tab 间距 16px：设计稿写 6px，但那里没有 ">" 分隔符。保留 ">" 之后 6px 刚好被
     箭头（约 6.6px 宽）占满，两侧都贴字，读起来像粘连。16px 让箭头左右各留约 5px
     空白，视觉上才是「A > B」而不是「A>B」。 */
  gap: 16px;
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-family: "Quectel Official Stratos", "Source Han Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
}

.document-navigation-tabs > .document-navigation-tab {
  appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  /* 设计稿："目录" 与 "本页导航" 同为 #666666（text/次要文本），选中态只靠红色下划线
     区分，不把文字改成红色。 */
  color: #666666;
  font: inherit;
  letter-spacing: 0;
  cursor: pointer;
}

/* 选中下划线用伪元素画在按钮底边，而不是 `border-bottom`。

   `border-bottom: 3px` 会把按钮的内容盒整体上提 3px，实测文字中心 211 vs 右侧标题中心
   213.5，两条标题条的文字基线差 2.5px。伪元素不参与盒模型，文字就能和右侧标题垂直居中。
   设计稿 Tab：border-bottom: 2px solid #ED000C。 */
.document-navigation-tabs > .document-navigation-tab::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.document-navigation-tabs > .document-navigation-tab[aria-selected="true"]::after {
  background: #ed000c;
}

/* Tab 之间用 ">" 分隔（业主明确要求保留原有的 ">"，而不是设计稿的竖线）。

   `left` 取间距中线：容器 `gap: 16px`，所以 -8px 让箭头正好落在两个 Tab 的正中，
   左右各留约 5px 空白。这个值必须跟着 `gap` 走——之前 gap 从 20 改到 6 时
   `left: -10px` 没跟着变，箭头直接压在前一个 Tab 的文字上。 */
.document-navigation-tab + .document-navigation-tab::before {
  content: '>';
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translate(-50%, -50%);
  color: #bec4c4;
  font-size: 12px;
  line-height: 1;
}

.document-navigation-tabs > .document-navigation-tab[aria-selected="true"] {
  color: #666666;
}

.document-navigation-tabs > .document-navigation-tab:focus-visible {
  outline: 2px solid #ed000c;
  outline-offset: -4px;
}

.document-navigation-tabs > .document-navigation-tab[hidden] {
  display: none !important;
}

.document-navigation-tabs > .document-navigation-tab:disabled {
  color: #7c8585;
  cursor: default;
}

[data-official-document-region="true"] > .quectel-contents.has-page-outline .quectel-toc-title,
[data-official-document-region="true"] > .quectel-contents.has-page-outline .on-this-page-nav {
  display: none !important;
}

.quectel-contents.has-page-outline .on-this-page-content {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
  /* Same as the Contents list: scrolls internally, scrollbar hidden. */
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--spacing-sm) 0 var(--spacing-md);
}

.quectel-contents.has-page-outline .on-this-page-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

@media (max-width: 768px) {
  .quectel-contents.has-page-outline .on-this-page-nav {
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-xs);
  }

  .quectel-contents.has-page-outline .on-this-page-content {
    padding: var(--spacing-xs) var(--spacing-md) var(--spacing-sm);
  }
}

@media (min-width: 769px) {
  /* The panel is a sticky column, not a full-height box that travels with the page.
   *
   * This used to be the opposite: `align-self: stretch` + `overflow: visible` made the panel
   * exactly as tall as the document, so it scrolled away with the article - measured on the
   * built page, scrolling 600px moved it from y=186 to y=-414 and the navigation was gone
   * after the first screen. The requirement is now: the tree stays put, the article scrolls,
   * and a long 文档列表 scrolls inside the panel (with the scrollbar hidden, so the column
   * still has no visible second bar). */
  .quectel-contents.has-page-outline {
    position: sticky !important;
    top: calc(var(--official-site-header-visible-height, 110px) + var(--official-context-category-height, 60px)) !important;
    height: calc(100vh - var(--official-site-header-visible-height, 110px) - var(--official-context-category-height, 60px)) !important;
    max-height: calc(100vh - var(--official-site-header-visible-height, 110px) - var(--official-context-category-height, 60px)) !important;
    align-self: start;
    z-index: 20;
  }

  /* 标签条是面板的**固定头部**，不是吸顶条。

     这段注释原本的理由已经失效：它说「左侧标签条此前是 position: relative，滚过首屏后左边
     停在 y=76、右边已经滑走」，所以把标签条也做成 sticky 来对齐右侧的 content-header。
     但面板本身现在已经是 `position: sticky`（见上面 `.quectel-contents.has-page-outline`），
     整块面板都不滚，标签条自然始终与右侧对齐；再给标签条 sticky 只会让它脱离 flex 流、
     与下面的树重叠（实测 tabs y=152、tree y=136，标题条被画进列表中间）。

     所以这里显式回到 static：flex 列里它占第一行（flex: 0 0 60px），树占剩下的行。 */
  body.qdoc-document-scroll-ready
    [data-official-document-region="true"]
    > .quectel-contents.has-page-outline
    > .document-navigation-tabs {
    position: static !important;
    top: auto !important;
  }
}

html:has(body.qdoc-document-scroll-ready) {
  height: auto !important;
  overflow-y: auto !important;
}

[data-official-document-region="true"] > .quectel-contents .quectel-toc-title {
  height: var(--official-document-title-height, 60px) !important;
  min-height: var(--official-document-title-height, 60px) !important;
  flex: 0 0 var(--official-document-title-height, 60px);
}

[data-official-document-region="true"] > .quectel-contents .quectel-toc-title,
[data-official-document-region="true"] > .quectel-contents.has-page-outline .on-this-page-nav,
[data-official-document-main="true"] > .quectel-content-header {
  box-sizing: border-box;
  height: var(--official-document-title-height, 60px) !important;
  min-height: var(--official-document-title-height, 60px) !important;
  border-bottom: 0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
  background: #ffffff !important;
  font-family: "Quectel Official Stratos", "Source Han Sans", Arial, sans-serif !important;
  color: #1a1a1a !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
}

[data-official-document-region="true"] > .quectel-contents .quectel-toc-title,
[data-official-document-region="true"] > .quectel-contents.has-page-outline .on-this-page-nav {
  padding-inline: var(--spacing-lg) !important;
  justify-content: flex-start;
  text-align: left;
}

[data-official-document-region="true"] > .quectel-contents.has-page-outline > .quectel-toc > ul {
  padding-inline: 0 !important;
}

[data-official-document-region="true"] > .quectel-contents.has-page-outline .on-this-page-list {
  padding-inline: 0 !important;
}

body[data-official-site-shell-root="body"] [data-official-document-main="true"] > .quectel-content-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
}

[data-official-document-main="true"] > .quectel-content-header > :is(
  .contents-toggle, .quectel-content-search, .quectel-share-feedback, .quectel-content-download
) {
  position: static !important;
  transform: none !important;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0 !important;
}

body[data-official-site-shell-root="body"] [data-official-document-main="true"] > .quectel-content-header .quectel-content-header-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Quectel Official Stratos", "Source Han Sans", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  letter-spacing: 0;
  color: #1a1a1a !important;
}

@media (max-width: 1024px) {
  body[data-official-site-shell-root="body"] [data-official-document-main="true"] > .quectel-content-header {
    gap: 8px;
    padding: 0 16px;
  }

  .official-product-model-selector {
    --official-product-model-width: 104px;
  }

  .official-product-model-label {
    display: none;
  }
}

body[data-official-site-shell-root="body"] .official-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 190px;
  z-index: 1800;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 4px 40px rgba(20, 17, 31, 0.1);
  cursor: pointer;
  transition: color 120ms ease, box-shadow 120ms ease;
}

body[data-official-site-shell-root="body"] .official-back-to-top[hidden] {
  display: none !important;
}

.official-back-to-top > span {
  font-family: "Source Han Sans", sans-serif;
  font-size: 26px;
  line-height: 1;
}

body[data-official-site-shell-root="body"] .official-back-to-top:hover {
  color: #ed000c;
  box-shadow: 0 4px 40px rgba(20, 17, 31, 0.16);
}

.official-back-to-top:focus-visible {
  outline: 2px solid #ed000c;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  body[data-official-site-shell-root="body"] .official-back-to-top {
    right: 16px;
    bottom: 24px;
  }
}

[data-official-document-region="true"] > .document-satisfaction-survey {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  max-width: 100%;
  margin: 0;
  z-index: 200;
}

[data-official-document-region="true"] > [data-official-site-shell-root="footer"] {
  grid-row: 3;
}

body.qdoc-document-scroll-ready[data-official-site-shell-root="body"]:has([data-official-document-region="true"]) {
  display: block;
  height: auto !important;
  min-height: 100vh;
  padding-top: var(--official-site-header-height, 110px) !important;
  overflow: visible !important;
}

body.qdoc-document-scroll-ready > [data-official-site-shell-root="header"] {
  position: fixed !important;
  top: var(--official-site-header-scroll-offset, 0px) !important;
  transition: none !important;
}

body.qdoc-document-scroll-ready > [data-official-site-shell-content="true"] {
  height: auto !important;
  overflow: visible !important;
}

body.qdoc-document-scroll-ready [data-official-document-center-page="true"] {
  padding-top: var(--official-context-category-height, 60px);
}

body.qdoc-document-scroll-ready .official-context-categories {
  position: fixed;
  top: var(--official-site-header-visible-height, 110px);
  left: 0;
  right: 0;
}

body.qdoc-document-scroll-ready [data-official-document-main="true"] > .quectel-main {
  height: auto !important;
  max-height: none !important;
  margin: 0;
  overflow-x: clip !important;
  overflow-y: visible !important;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
}

body.qdoc-document-scroll-ready [data-official-document-main="true"] > .quectel-content-header {
  position: sticky !important;
  top: calc(var(--official-site-header-visible-height, 110px) + var(--official-context-category-height, 60px)) !important;
}

@media (min-width: 769px) {
  body.qdoc-document-scroll-ready [data-official-document-main="true"] > .quectel-main {
    width: 100%;
  }

  body.qdoc-document-scroll-ready [data-official-document-main="true"] .quectel-main > .quectel-content {
    width: 100%;
    margin-left: 0;
  }

  /* The contents tree is its own scrolling column, not part of the page scroll.
   *
   * These rules used to do the opposite: `position: relative` + `height: auto` +
   * `overflow: visible` made the sidebar exactly as tall as its content and let it travel
   * with the document - measured on the built page, scrolling 600px moved the tree from
   * y=186 to y=-414, so reading past the first screen lost the navigation entirely. The
   * requirement is the usual one: the tree stays put and scrolls on its own, and only the
   * article moves.
   *
   * `max-height` (not `height`) so a short tree is not stretched down the viewport, and
   * the sticky top keeps it clear of the fixed site header plus the fixed category bar. */
  body.qdoc-document-scroll-ready [data-official-document-region="true"] > .quectel-contents {
    position: sticky !important;
    top: calc(var(--official-site-header-visible-height, 110px) + var(--official-context-category-height, 60px)) !important;
    align-self: start;
    height: auto !important;
    max-height: calc(100vh - var(--official-site-header-visible-height, 110px) - var(--official-context-category-height, 60px)) !important;
    overflow: hidden !important;
  }

  body.qdoc-document-scroll-ready .quectel-contents > .quectel-toc {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    /* The panel is already height-bounded; `max-height: calc(100vh ...)` here double-counted
       the tab bar and pushed the list under it. */
    max-height: none !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    /* Same as the >=769px rule: the list scrolls, the bar is not drawn. Without this the
       scrollbar reappears on wide screens, which is exactly the second bar the owners
       rejected - the panel must look like a plain column. */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body.qdoc-document-scroll-ready .quectel-contents > .quectel-toc::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  body.qdoc-document-scroll-ready .quectel-contents .quectel-toc-title {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  body.qdoc-document-scroll-ready .quectel-contents > .quectel-toc > ul,
  body.qdoc-document-scroll-ready .quectel-contents .quectel-contents-scrollable {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (min-width: 1201px) {
  body.qdoc-document-scroll-ready [data-official-document-region="true"] {
    position: relative;
  }

  body.qdoc-document-scroll-ready [data-official-document-region="true"]::before {
    content: '';
    position: absolute;
    grid-column: 2;
    grid-row: 1 / 3;
    inset: 0 auto 0 0;
    z-index: 1;
    border-left: 1px solid #e9ecec;
    pointer-events: none;
  }

  body.qdoc-document-scroll-ready [data-official-document-region="true"] > [data-official-document-main="true"] {
    border-left-color: transparent;
  }

  body.qdoc-document-scroll-ready.contents-collapsed [data-official-document-region="true"]::before {
    display: none;
  }
}

@media (min-width: 769px) {
  /* Same decision as the block above, restated here because this selector is more specific
     (`[data-official-document-region="true"] >`) and would otherwise win: the panel is a
     sticky column with an internal scroller, NOT a page-height panel.
   *
   * It previously said `align-self: stretch` with a note that the owners wanted "目录长了就补
   * 正文空白，不出现滚动条". That goal is kept - the scrollbar is hidden - without the cost of
   * the panel scrolling out of view with the article. */
  body.qdoc-document-scroll-ready [data-official-document-region="true"] > .quectel-contents.has-page-outline {
    position: sticky !important;
    top: calc(var(--official-site-header-visible-height, 110px) + var(--official-context-category-height, 60px)) !important;
    height: calc(100vh - var(--official-site-header-visible-height, 110px) - var(--official-context-category-height, 60px)) !important;
    max-height: calc(100vh - var(--official-site-header-visible-height, 110px) - var(--official-context-category-height, 60px)) !important;
    align-self: start;
    overflow: hidden !important;
  }

  body.qdoc-document-scroll-ready .quectel-contents.has-page-outline > .quectel-toc {
    height: auto !important;
    /* NOT `max-height: 100%`: that lets the list start at the panel's top edge and paint under
       the sticky tab bar (measured: tabs y=152, tree y=136). The panel's flex column already
       bounds the remaining height. */
    max-height: none !important;
    overflow-y: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body.qdoc-document-scroll-ready .quectel-contents.has-page-outline > .quectel-toc::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  body.qdoc-document-scroll-ready .quectel-contents.has-page-outline .quectel-toc-title {
    position: sticky !important;
    top: 0;
  }

  body.qdoc-document-scroll-ready .quectel-contents.has-page-outline > .quectel-toc > ul {
    /* The panel scrolls, not the list. */
    overflow: visible !important;
  }
}

@media (max-width: 768px) {
  body[data-official-site-shell-root="body"] [data-official-document-main="true"] > .quectel-content-header {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) repeat(3, 24px);
    grid-template-rows: 48px 32px;
    gap: 8px;
    height: 112px !important;
    min-height: 112px !important;
    padding: 12px 16px;
  }

  body[data-official-site-shell-root="body"] [data-official-document-main="true"] > .quectel-content-header .quectel-content-header-title {
    display: -webkit-box;
    grid-column: 2 / -1;
    grid-row: 1;
    max-height: 48px;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  [data-official-document-main="true"] > .quectel-content-header > .contents-toggle {
    grid-column: 1;
    grid-row: 1;
  }

  [data-official-document-main="true"] > .quectel-content-header > .official-product-model-selector {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-self: start;
  }

  [data-official-document-main="true"] > .quectel-content-header .official-product-model-trigger {
    height: 32px;
    padding: 4px 12px;
  }

  [data-official-document-main="true"] > .quectel-content-header > .quectel-content-search {
    grid-column: 3;
    grid-row: 2;
  }

  [data-official-document-main="true"] > .quectel-content-header > .quectel-share-feedback {
    grid-column: 4;
    grid-row: 2;
  }

  [data-official-document-main="true"] > .quectel-content-header > .quectel-content-download {
    grid-column: 5;
    grid-row: 2;
  }
}

/* A standalone Sphinx render has the document toolbar and TOC DOM but no document-center
   shell markers. Give those existing elements the same title/navigation tokens as a baked page;
   marker-bearing preview and web pages continue to use the rules above. */
@media (min-width: 769px) {
  body:not([data-official-site-shell-root="body"]) {
    --contents-width: 280px;
    --on-this-page-width: 300px;
    font-family: "Quectel Official Stratos", "Source Han Sans", Arial, sans-serif;
    color: #1a1a1a;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-content-header {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: fixed;
    top: var(--header-height);
    left: var(--contents-width);
    right: 0;
    height: var(--official-document-title-height) !important;
    min-height: var(--official-document-title-height) !important;
    padding: 0 40px !important;
    border-bottom: var(--official-document-title-border) !important;
    box-shadow: var(--official-document-title-shadow) !important;
    background: var(--official-document-title-background) !important;
    color: #1a1a1a !important;
    font-family: inherit !important;
    font-size: var(--official-document-title-font-size) !important;
    font-weight: var(--official-document-title-font-weight) !important;
    line-height: var(--official-document-title-line-height) !important;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-content-header .contents-toggle {
    position: static !important;
    left: auto !important;
    transform: none !important;
    flex: 0 0 24px;
    margin: 0 16px 0 0 !important;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-content-header-title {
    flex: 1 1 auto;
    min-width: 0;
    color: #1a1a1a !important;
    font: inherit !important;
    letter-spacing: 0;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-content-header .quectel-content-search,
  body:not([data-official-site-shell-root="body"]) .quectel-content-header .quectel-share-feedback,
  body:not([data-official-site-shell-root="body"]) .quectel-content-header .quectel-content-download {
    position: static !important;
    flex: 0 0 24px;
    margin: 0 0 0 16px !important;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-contents {
    background: #ffffff;
    border-right: 1px solid #e5e5e5;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-toc a {
    color: var(--official-document-nav-toc-color);
    font-size: 14px;
    padding-block: 10px;
    border-bottom: 1px solid #f0f3f3;
    border-radius: 0;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-toc > ul > li:last-child:not(:only-child) > a,
  body:not([data-official-site-shell-root="body"]) .quectel-contents .on-this-page-list > li:last-child:not(:only-child) > a {
    border-bottom: 0;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-toc > ul > li > a {
    color: #1a1a1a;
    font-size: 16px;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-toc a.current {
    background: var(--official-document-nav-toc-active-background) !important;
    color: var(--official-document-nav-active-color) !important;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-toc a:hover {
    background: var(--official-document-nav-toc-hover-background) !important;
    color: var(--official-document-nav-active-color) !important;
  }

  body:not([data-official-site-shell-root="body"]) .on-this-page {
    background: #ffffff;
    border-left: 1px solid #e5e5e5;
  }

  body:not([data-official-site-shell-root="body"]) .on-this-page-nav {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: var(--official-document-title-height) !important;
    min-height: var(--official-document-title-height) !important;
    margin: 0;
    padding: 0 40px;
    border: 0 !important;
    box-shadow: var(--official-document-title-shadow) !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    font: 400 16px/24px "Quectel Official Stratos", "Source Han Sans", Arial, sans-serif !important;
  }

  body:not([data-official-site-shell-root="body"]) .on-this-page-title {
    margin: 0 !important;
    color: inherit !important;
    font: inherit !important;
  }

  body:not([data-official-site-shell-root="body"]) .on-this-page-link {
    min-height: 34px;
    padding: 8px 10px;
    border-left: 3px solid transparent;
    border-radius: 0;
    color: var(--official-document-nav-outline-color);
    font-family: "Quectel Official Stratos", "Source Han Sans", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.35;
  }

  body:not([data-official-site-shell-root="body"]) .on-this-page-link:hover {
    background: var(--official-document-nav-outline-hover-background) !important;
    color: var(--official-document-nav-active-color) !important;
  }

  body:not([data-official-site-shell-root="body"]) .on-this-page-link.active {
    background: var(--official-document-nav-outline-active-background) !important;
    color: var(--official-document-nav-active-color) !important;
  }
}

@media (max-width: 768px) {
  body:not([data-official-site-shell-root="body"]) .quectel-content-header {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) repeat(3, 24px);
    grid-template-rows: 48px 32px;
    gap: 8px;
    height: 112px !important;
    min-height: 112px !important;
    padding: 12px 16px !important;
    box-sizing: border-box;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-content-header-title {
    display: -webkit-box;
    grid-column: 2 / -1;
    grid-row: 1;
    min-width: 0;
    max-height: 48px;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-family: "Quectel Official Stratos", "Source Han Sans", Arial, sans-serif !important;
    font-size: var(--official-document-title-font-size) !important;
    font-weight: var(--official-document-title-font-weight) !important;
    line-height: var(--official-document-title-line-height) !important;
    letter-spacing: 0;
    color: #1a1a1a !important;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-content-header > .contents-toggle {
    position: static !important;
    grid-column: 1;
    grid-row: 1;
    width: 24px;
    height: 24px;
    margin: 0 !important;
    transform: none !important;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-content-header > .official-product-model-selector {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-self: start;
    --official-product-model-width: 104px;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-content-header .official-product-model-trigger {
    height: 32px;
    padding: 4px 12px;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-content-header > .quectel-content-search {
    grid-column: 3;
    grid-row: 2;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-content-header > .quectel-share-feedback {
    grid-column: 4;
    grid-row: 2;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-content-header > .quectel-content-download {
    grid-column: 5;
    grid-row: 2;
  }

  body:not([data-official-site-shell-root="body"]) .quectel-content-header > .quectel-content-search,
  body:not([data-official-site-shell-root="body"]) .quectel-content-header > .quectel-share-feedback,
  body:not([data-official-site-shell-root="body"]) .quectel-content-header > .quectel-content-download {
    position: static !important;
    width: 24px;
    height: 24px;
    margin: 0 !important;
    transform: none !important;
  }
}

