[data-official-document-center-page="true"] {
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
}

.official-document-center-context {
  --official-context-category-height: 76px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
  background: #fff;
  color: #1a1a1a;
  font-family: 'Quectel Official Stratos', 'Source Han Sans', Arial, sans-serif;
}

.official-context-container {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding-inline: 24px;
}

.official-context-hero {
  position: relative;
  height: 460px;
  overflow: hidden;
  color: #fff;
}

.official-context-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.official-context-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.official-context-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
}

.official-context-hero-copy h1 {
  margin: 0 0 32px;
  color: #fff;
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 500;
  line-height: 1.15;
}

.official-context-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

.official-context-breadcrumb {
  margin: 0;
  padding: 0;
  color: #666666;
  font-size: 14px;
  line-height: 22px;
}

/* 面包屑位于正文容器顶部（对齐官网详情页设计稿），随正文一起滚动。
   底部同样留 24px：原先只有 margin-block-start，凡是首块正文自身没有上边距的页面
   （图纸页 ``.pdf-sheet``、封面标题被隐藏的转换页）就出现面包屑贴着正文的情况
   （实测 breadcrumb 底边 288px = 正文顶边 288px，间距 0）。
   有上边距的普通页面不受影响：兄弟外边距会合并，取 max(24px, 首块上边距)。 */
[data-official-document-main="true"] > .quectel-main > .quectel-content > .official-context-breadcrumb {
  margin-block: 24px;
}

[data-official-document-center-home="true"] .official-context-breadcrumb {
  display: none;
}

.official-context-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 22px;
}

.official-context-breadcrumb li {
  margin-left: 0;
  margin-block: 0;
  padding: 0;
  font-size: 14px;
  line-height: 22px;
}

.official-context-breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: #666666;
  font-size: 12px;
  line-height: 22px;
}

.official-context-breadcrumb .official-context-breadcrumb-link {
  color: #666666;
  text-decoration: none;
}

.official-context-breadcrumb a.official-context-breadcrumb-link[href] {
  color: #1a1a1a;
}

/* 走查 2026-11 序号21：Quectel 导航规则里可点击项只是文字变黑，hover 不加下划线。
   面包屑在正文区（`.quectel-content`）内，会被主题 `.quectel-content a:hover` 的
   `text-decoration: underline` 命中，这里显式压掉（并在 :hover/:focus 上重申）。 */
.official-context-breadcrumb a.official-context-breadcrumb-link[href]:hover,
.official-context-breadcrumb a.official-context-breadcrumb-link[href]:focus,
.official-context-breadcrumb a.official-context-breadcrumb-link[href]:focus-visible {
  text-decoration: none;
}

.official-context-breadcrumb .official-context-breadcrumb-link[aria-disabled='true'],
.official-context-breadcrumb .official-context-breadcrumb-link[aria-current='page'] {
  color: #666666;
}

.official-context-tabs {
  display: flex;
  align-items: stretch;
  gap: 40px;
  min-height: 54px;
  overflow-x: auto;
  scrollbar-width: none;
}

.official-context-tabs::-webkit-scrollbar {
  display: none;
}

.official-context-tab {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: #1a1a1a;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
}

.official-context-tab.is-active {
  color: #ed000c;
}

.official-context-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #ed000c;
  content: '';
}

.official-context-categories {
  position: sticky;
  top: var(--header-height, 110px);
  z-index: 1200;
  flex-shrink: 0;
  box-sizing: border-box;
  height: var(--official-context-category-height, 76px);
  border: 0;
  /* 设计稿 Frame 产品分类：1920x76、bg&divider/背景深色 = #EAECEC。 */
  background: #eaecec;
  font-family: 'Quectel Official Stratos', 'Source Han Sans', Arial, sans-serif;
}

[data-official-document-center-home="true"] .official-context-categories {
  display: none;
}

.official-context-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), 1280px);
  height: 100%;
  padding: 0;
  gap: 40px;
}

.official-context-category-items {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.official-context-category-items::-webkit-scrollbar {
  display: none;
}

.official-context-categories[data-category-layout-ready='false'] .official-context-category-items {
  visibility: hidden;
}

.official-context-categories[data-category-layout-ready='false'] .official-context-category-more {
  visibility: hidden;
}

.official-context-category {
  position: relative;
  display: inline-flex;
  box-sizing: border-box;
  height: 100%;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  /* 浅底 #EAECEC 上白字不可读，正文色 #333333（text/正文文本）。 */
  color: #333333;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.official-context-category[href]:hover,
.official-context-category.is-current {
  color: #1a1a1a;
}

.official-context-category.is-current {
  min-width: 80px;
  font-weight: 500;
}

.official-context-category.is-current::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #ed000c;
  content: '';
}

.official-context-category[aria-disabled='true'] {
  color: #333333;
  cursor: default;
}

.official-context-category[hidden],
.official-context-category-more[hidden],
.official-context-category-more-menu[hidden],
.official-context-category-more-option[hidden] {
  display: none !important;
}

.official-context-category-more {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
}

.official-context-home-tab {
  flex: 0 0 auto;
}

.official-context-category-more-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333333;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  cursor: pointer;
}

.official-context-category-more-trigger::after {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin: -4px 4px 0;
  transform: rotate(45deg);
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: '';
}

/* NOTE: this file used to hide the tree's collapse arrows outright:
   `.quectel-toc .toc-toggle { display: none !important; }` (added 2026-09-16 with the
   category-bar redesign). It was answering a category-bar concern, but no `.quectel-toc`
   exists inside the category bar - measured on the built site, all 17 `.toc-toggle`
   elements live in the left contents tree and none inside the bar. The only effect was to
   hide every expand arrow, so a reader could not expand a section at all: clicking the
   item navigated, because the 16 px arrow that owns the toggle was display:none.
   `document-content.css` sizes the arrow; nothing here needs to hide it. */

.official-context-category-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1300;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 32px));
  padding-block: 6px;
  border: 1px solid #e2e5e5;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.official-context-category-more-option {
  display: block;
  padding: 10px 14px;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

/* 没有落地页的分类是禁用态 <span>（见 render_document_center_context），浏览器对
   无 href 的元素给的是 `cursor: auto`，压在文字上就成 I 形文本光标 —— 读者看到
   一条「像链接的灰字 + 文本光标」，点了却什么都不发生（报于 2026-11-11：「点击
   不跳转并且鼠标变成光标了」）。
   `cursor: default` 让它读作「这里不可点」，与主分类栏
   `.official-context-category[aria-disabled='true']` 的处理保持一致。 */
.official-context-category-more-option[aria-disabled='true'] {
  color: #333333;
  cursor: default;
}

.official-context-category-more-option:hover,
.official-context-category-more-option:focus-visible,
.official-context-category-more-option.is-current {
  outline: none;
  background: #f4f6f6;
  color: #ed000c;
}

.official-home-products {
  background: #f4f6f6;
}

[data-official-document-center-home="true"] .official-context-hero {
  height: 368px;
}

[data-official-document-center-home="true"] .official-context-hero-overlay {
  background: rgba(0, 0, 0, 0.5);
}

[data-official-document-center-home="true"] .official-context-hero-copy {
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
  text-align: center;
}

[data-official-document-center-home="true"] .official-context-hero-copy h1 {
  margin-bottom: 20px;
  font-size: 32px;
  line-height: 1.25;
}

.official-home-search {
  position: relative;
  width: min(100%, 750px);
  color: #1a1a1a;
  text-align: left;
}

.official-home-search-form {
  display: flex;
  align-items: center;
  height: 44px;
  border-radius: 2px;
  background: #fff;
}

.official-home-search-form input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: none;
  background: transparent;
  color: #1a1a1a;
  font: inherit;
  font-size: 14px;
}

.official-home-search-form input::placeholder {
  color: #8d8d8f;
}

.official-home-search-form button {
  display: grid;
  flex: 0 0 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.official-home-search-form button img {
  width: 18px;
  height: 18px;
}

.official-home-search-popular {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 2;
  display: none;
  padding: 12px 14px 16px;
  border-top: 1px solid #e2e5e5;
  border-radius: 0 0 2px 2px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  font-size: 13px;
}

.official-home-search:hover .official-home-search-popular,
.official-home-search:focus-within .official-home-search-popular {
  display: block;
}

.official-home-search-popular > span {
  display: block;
  margin-bottom: 8px;
  color: #8d8d8f;
}

.official-home-search-popular > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.official-home-search-suggestion {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 2px;
  background: #f4f6f6;
  color: #333;
  font-size: 12px;
  text-decoration: none;
}

.official-home-search-suggestion:hover,
.official-home-search-suggestion:focus-visible {
  color: #ed000c;
}

.official-home-statistics {
  width: min(100%, 1488px);
  max-width: 1488px;
  padding-block: 72px 76px;
}

.official-home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.official-home-category {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 262px;
  padding: 32px;
  border: 0;
  /* 走查 2026-11 序号19：卡片圆角 2px → 4px（与设计稿对齐）。
     卡片本身以白底 + box-shadow 区分，不加描边（测试锁 border-width: 0）。 */
  border-radius: 4px;
  background: #fff;
  color: inherit;
  transition: box-shadow 0.2s ease;
}

/*
 * The card is one clickable target (owner decision 2026-10-28). A stretched overlay is used
 * instead of wrapping the card in <a> so the description's <details> keeps its own click to
 * expand: the overlay sits at z-index 0 and the summary/control are raised above it.
 */
.official-home-category-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}

.official-home-category-link:focus-visible {
  outline: 2px solid #ed000c;
  outline-offset: 2px;
}

.official-home-category:hover {
  /* 走查 2026-11 序号19：hover 时不加投影，保持平面卡片。
     保留一条透明阴影声明，避免过渡在进入/离开时出现跳变。 */
  box-shadow: none;
}

.official-home-category h2,
.official-home-category-description summary,
.official-home-category-more {
  position: relative;
  z-index: 1;
}

/* The title points at the same target as the overlay; the overlay is what receives the click. */
.official-home-category h2 {
  pointer-events: none;
}

.official-home-category h2 {
  margin: 0;
  color: #1a1a1a;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.official-home-category-description {
  flex: 1 0 auto;
  margin-top: 16px;
}

.official-home-category-description summary {
  display: -webkit-box;
  overflow: hidden;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.official-home-category-description summary::-webkit-details-marker {
  display: none;
}

.official-home-category-description summary::marker {
  content: '';
}

.official-home-category-description[open] summary {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.official-home-category-description-full {
  margin: 16px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.official-home-category-description summary:focus-visible {
  outline: 2px solid #ed000c;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .official-home-category:hover .official-home-category-description summary {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .official-home-category:hover .official-home-category-description::details-content {
    content-visibility: visible;
  }
}

.official-home-category-more {
  display: inline-flex;
  width: 102px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  /* 走查 2026-11 序号19：描边色 #d7d7d7 → #1a1a1a，圆角 2px → 4px。
     hover 时仍跟随卡片变红（见下一条），描边/文字仍是 #ed000c。 */
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  /* A <span> since 2026-10-28: the whole card is the link (``.official-home-category-link``),
     so this is the button's look, not a second target. It must not swallow the card's click. */
  pointer-events: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.official-home-category:hover .official-home-category-more {
  border-color: #ed000c;
  color: #ed000c;
}

@media (max-width: 960px) {
  .official-home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .official-context-container {
    padding-inline: 16px;
  }

  .official-context-hero {
    height: 300px;
  }

  .official-context-hero-copy h1 {
    margin-bottom: 20px;
    font-size: 36px;
  }

  .official-context-hero-copy p {
    font-size: 16px;
  }

  .official-context-tabs {
    gap: 28px;
  }

  .official-context-category-row {
    gap: 16px;
    padding-block: 0;
  }

  .official-context-category-items {
    justify-content: flex-start;
    gap: 16px;
  }

  .official-home-statistics {
    padding-block: 32px 48px;
  }
}

@media (max-width: 560px) {
  .official-home-category-grid {
    grid-template-columns: 1fr;
  }

  .official-home-category {
    min-height: 230px;
    padding: 28px 24px;
  }
}

@media (max-width: 400px) {
  [data-official-document-center-home="true"] .official-context-hero {
    height: 360px;
  }
}

/* ================================================================================
   分享反馈弹窗（对齐官网设计稿「弹窗-分享反馈」）
   仅作用于官网外壳（site shell）下的页面，避免影响其他主题页面。
   弹窗高度由 doc-feedback.js::adjustModalLayout() 以行内样式控制，
   此处统一放行自适应高度，仅用 --doc-feedback-available-height 约束上限。
   ================================================================================ */

body[data-official-site-shell-root="body"] .doc-feedback-modal {
  height: auto !important;
  max-height: var(--doc-feedback-available-height, 100vh) !important;
  padding: 20px;
  gap: 24px;
  border-radius: 4px;
  background: #fff;
  color: #333333;
  box-shadow: 0 4px 20px rgba(20, 17, 31, 0.08);
}

/* 标题栏：无分隔线、无内边距 */
body[data-official-site-shell-root="body"] .doc-feedback-header {
  padding: 0;
  background: transparent;
  border-bottom: none;
}

body[data-official-site-shell-root="body"] .doc-feedback-header h3 {
  color: #1a1a1a;
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
}

body[data-official-site-shell-root="body"] .doc-feedback-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #1a1a1a;
  font-size: 32px;
  line-height: 32px;
}

body[data-official-site-shell-root="body"] .doc-feedback-close:hover {
  /* 走查 2026-11 序号23：关闭图标 hover 不需要变红，保持黑色。 */
  color: #1a1a1a;
}

/* 内容区：表单行间距 16px

   走查 2026-11 序号22：「内容区上下间距太挤」。根因是这里只声明了 gap，
   但 .doc-feedback-content 仍是基础样式的普通块级容器（display:block），
   gap 在非 flex/grid 容器上不生效，字段块之间实际间距为 0（只靠 label 的
   margin-bottom 8px 贴着输入框）。补上纵向 flex 才能让 16px 真正落地。 */
body[data-official-site-shell-root="body"] .doc-feedback-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  scrollbar-gutter: auto;
}

body[data-official-site-shell-root="body"] .doc-feedback-content > div {
  margin-top: 0;
  margin-bottom: 0;
}

body[data-official-site-shell-root="body"] .doc-feedback-content label {
  margin-bottom: 8px;
  color: #333;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: normal;
}

/* 必填项星号 */
body[data-official-site-shell-root="body"] .doc-feedback-required {
  margin-left: 2px;
  color: #ed000c;
}

/* 输入控件：灰底、无描边、4px 圆角、48px 高 */
body[data-official-site-shell-root="body"] .doc-feedback-content select,
body[data-official-site-shell-root="body"] .doc-feedback-content input[type="email"] {
  height: 48px;
  padding: 0 40px 0 16px;
  border: none;
  border-radius: 4px;
  background-color: #f0f3f3;
  color: #333333;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: normal;
}

body[data-official-site-shell-root="body"] .doc-feedback-content input[type="email"] {
  padding-right: 16px;
}

body[data-official-site-shell-root="body"] .doc-feedback-content textarea::placeholder,
body[data-official-site-shell-root="body"] .doc-feedback-content input[type="email"]::placeholder {
  font-size: inherit;
}

body[data-official-site-shell-root="body"] .doc-feedback-content select {
  background-position: right 16px center;
  background-size: 16px;
}

/* 未选择任何类型时，占位文案为浅灰色 */
body[data-official-site-shell-root="body"] .doc-feedback-content select:invalid {
  color: #8d8d8f;
}

body[data-official-site-shell-root="body"] .doc-feedback-content select option {
  color: #333333;
}

body[data-official-site-shell-root="body"] .doc-feedback-content select:focus,
body[data-official-site-shell-root="body"] .doc-feedback-content textarea:focus,
body[data-official-site-shell-root="body"] .doc-feedback-content input[type="email"]:focus {
  border-color: transparent;
  background-color: #f0f3f3;
  box-shadow: inset 0 0 0 1px #ed000c;
}

/* 多行文本域 */
body[data-official-site-shell-root="body"] .doc-feedback-content textarea {
  min-height: 134px;
  padding: 10px 6px 30px 16px;
  border: none;
  border-radius: 4px;
  background: #f0f3f3;
  color: #333333;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: normal;
}

/* 字符计数：输入框右下角 */
body[data-official-site-shell-root="body"] .doc-feedback-content .problem-description,
body[data-official-site-shell-root="body"] .doc-feedback-content .improvement-suggestion {
  position: relative;
}

body[data-official-site-shell-root="body"] .doc-feedback-content .char-count {
  position: absolute;
  right: 22px;
  bottom: 8px;
  margin: 0;
  color: #bfbfbf;
  font-size: 12px;
  line-height: 20px;
}

body[data-official-site-shell-root="body"] .doc-feedback-content .char-count span {
  color: inherit;
  font-weight: 400;
}

/* 勾选框行 */
body[data-official-site-shell-root="body"] .doc-feedback-content .receive-notification {
  margin-top: 0;
  margin-bottom: 0;
}

body[data-official-site-shell-root="body"] .doc-feedback-content .receive-notification input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0 6px 0 0;
  accent-color: #ed000c;
}

body[data-official-site-shell-root="body"] .doc-feedback-content .receive-notification .checkbox-label span {
  color: #333;
  font-size: 16px;
  line-height: 24px;
}

/* 选中内容 / 页面信息块 */
body[data-official-site-shell-root="body"] .doc-feedback-content .selected-content .selected-text-display,
body[data-official-site-shell-root="body"] .doc-feedback-content .page-info .page-url-display {
  border: none;
  border-radius: 4px;
  background: #f0f3f3;
  color: #333333;
  font-size: 16px;
  line-height: 24px;
}

/* 页脚：设计稿仅保留主操作按钮 */
body[data-official-site-shell-root="body"] .doc-feedback-footer {
  padding: 0;
  background: transparent;
  border-top: none;
}

body[data-official-site-shell-root="body"] .doc-feedback-footer .btn-submit {
  padding: 8px 19px;
  border: none;
  border-radius: 4px;
  background: #ed000c;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

body[data-official-site-shell-root="body"] .doc-feedback-footer .btn-submit:hover:not(:disabled) {
  background: #c9000a;
  box-shadow: 0 8px 18px rgba(237, 0, 12, 0.18);
  transform: none;
}

body[data-official-site-shell-root="body"] .doc-feedback-footer .btn-submit:focus-visible {
  box-shadow: 0 0 0 3px rgba(237, 0, 12, 0.18);
}

/* 提交成功视图 */
body[data-official-site-shell-root="body"] .doc-feedback-success-view {
  padding: 0;
}

body[data-official-site-shell-root="body"] .doc-feedback-modal .btn-submit-success-close {
  padding: 8px 19px;
  border-radius: 4px;
  background: #ed000c;
  font-size: 16px;
  line-height: 24px;
}

body[data-official-site-shell-root="body"] .doc-feedback-modal .btn-submit-success-close:hover {
  background: #c9000a;
}

body[data-official-site-shell-root="body"] .doc-feedback-modal .btn-submit-success-close:focus-visible {
  box-shadow: 0 0 0 3px rgba(237, 0, 12, 0.18);
}

/* 加载指示器使用品牌红 */
body[data-official-site-shell-root="body"] .loading-spinner {
  color: #ed000c;
}
