:root {
  --theme-color: #1463d6;
  --accent: #08a5a5;
  --accent-soft: #e7f8f7;
  --bg: #f3f6fa;
  --surface: #fff;
  --surface-raised: #fff;
  --sidebar: #f8fafc;
  --active: #e8f1ff;
  --ink: #17243a;
  --heading: #10213a;
  --muted: #65758b;
  --line: #dfe7f1;
  --code: #f1f5f9;
  --shadow: 0 12px 36px rgba(22, 47, 84, .10);
  --shadow-soft: 0 4px 16px rgba(22, 47, 84, .08);
  --sidebar-width: 320px;
  --banner-height: 96px;
}

html[data-theme="dark"] {
  --theme-color: #69a7ff;
  --accent: #47d2ca;
  --accent-soft: #123e43;
  --bg: #0d1522;
  --surface: #121d2c;
  --surface-raised: #172437;
  --sidebar: #101a28;
  --active: #17345a;
  --ink: #d8e3f1;
  --heading: #f2f7ff;
  --muted: #9aacc2;
  --line: #27384d;
  --code: #0d1725;
  --shadow: 0 14px 40px rgba(0, 0, 0, .28);
  --shadow-soft: 0 5px 18px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s, color .2s;
}
a { text-underline-offset: 3px; }
button, input { font: inherit; }
::selection { background: rgba(20, 99, 214, .18); }

/* 侧边栏常驻显示；边界拖动条用于调整宽度。 */
.sidebar-toggle { display: none !important; }
.qjcam-sidebar-resizer {
  bottom: 0;
  cursor: col-resize;
  left: calc(var(--sidebar-width) - 4px);
  outline: 0;
  position: fixed;
  top: 0;
  touch-action: none;
  width: 8px;
  z-index: 70;
}
.qjcam-sidebar-resizer::after {
  background: var(--line);
  bottom: 0;
  content: "";
  left: 3px;
  position: absolute;
  top: 0;
  transition: background-color .18s, box-shadow .18s;
  width: 2px;
}
.qjcam-sidebar-resizer:hover::after,
.qjcam-sidebar-resizer:focus-visible::after,
html.qjcam-resizing .qjcam-sidebar-resizer::after {
  background: var(--theme-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-color) 16%, transparent);
}
html.qjcam-resizing,
html.qjcam-resizing * { cursor: col-resize !important; user-select: none !important; }
html.qjcam-resizing .content,
html.qjcam-resizing .qjcam-banner { transition: none !important; }

/* 阅读进度 */
.qjcam-progress {
  background: linear-gradient(90deg, var(--theme-color), var(--accent));
  height: 3px;
  left: 0;
  position: fixed;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .08s linear;
  width: 100%;
  z-index: 1001;
}

/* 品牌与侧栏 */
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  left: 0;
  position: fixed;
  transform: none !important;
  width: var(--sidebar-width);
}
.sidebar > h1.app-name {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 24px;
  text-align: left;
}
.app-name-link {
  align-items: center;
  color: var(--heading) !important;
  display: flex;
  gap: 12px;
  text-decoration: none !important;
}
.brand-symbol {
  border: 1px solid rgba(31, 43, 116, .14);
  border-radius: 13px;
  box-shadow: 0 7px 18px rgba(31, 43, 116, .18);
  display: block;
  flex: 0 0 48px;
  height: 48px;
  object-fit: cover;
  width: 48px;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 20px; letter-spacing: .04em; }
.brand-copy small { color: var(--muted); font-size: 11px; margin-top: 5px; }

.sidebar .search { border-bottom: 1px solid var(--line); margin: 0; padding: 18px 18px 16px; position: relative; }
.sidebar .search input {
  background: var(--surface);
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  color: var(--ink);
  height: 42px;
  padding: 0 14px 0 38px;
  transition: border-color .2s, box-shadow .2s;
}
.sidebar .search::before {
  color: var(--muted);
  content: "⌕";
  font-size: 23px;
  left: 31px;
  pointer-events: none;
  position: absolute;
  top: 25px;
  z-index: 1;
}
.sidebar .search input:focus {
  border-color: var(--theme-color) !important;
  box-shadow: 0 0 0 3px rgba(20, 99, 214, .12);
}
.sidebar .search .matching-post { border-bottom: 1px solid var(--line); padding: 12px 2px; }
.sidebar .search .matching-post p { color: var(--muted); font-size: 12px; }
.sidebar .search .results-panel {
  margin-top: 12px;
  max-height: calc(100vh - 174px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 7px;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}
.sidebar .search .results-panel::-webkit-scrollbar { width: 8px; }
.sidebar .search .results-panel::-webkit-scrollbar-track { background: transparent; }
.sidebar .search .results-panel::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--muted) 42%, transparent);
  border: 2px solid var(--sidebar);
  border-radius: 10px;
}
.qjcam-history-header {
  align-items: center;
  color: var(--heading);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  padding: 6px 8px 8px;
}
.qjcam-history-clear {
  background: transparent;
  border: 0;
  color: var(--theme-color);
  cursor: pointer;
  font-size: 12px;
  padding: 3px 5px;
}
.qjcam-history-empty { color: var(--muted); font-size: 13px; margin: 8px; padding: 10px 2px; text-align: center; }
.qjcam-history-list { display: grid; gap: 2px; }
.qjcam-history-row {
  align-items: center;
  border-radius: 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
}
.qjcam-history-row:hover { background: var(--active); }
.qjcam-history-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 18px minmax(0, 1fr);
  padding: 8px;
  text-align: left;
  width: 100%;
}
.qjcam-history-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qjcam-history-row:hover .qjcam-history-item { color: var(--theme-color); }
.qjcam-history-delete {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 30px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
  width: 30px;
}
.qjcam-history-delete:hover { background: #feecec; color: #c33f4a; }
.qjcam-history-delete:focus-visible { outline: 2px solid var(--theme-color); outline-offset: 1px; }
html[data-theme="dark"] .qjcam-history-delete:hover { background: #48232a; color: #ff9aa5; }

.sidebar-nav { padding: 18px 10px 40px 16px; }
.sidebar-nav ul { margin: 0; padding: 0; }
.sidebar-nav > ul { padding-left: 0; }
.sidebar-nav li > ul {
  border-left: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  margin-left: 17px;
  padding-left: 17px;
}
.sidebar-nav li { margin: 2px 0; position: relative; }
.sidebar-nav li a {
  border-left: 3px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  display: block;
  line-height: 1.45;
  margin-right: 8px;
  overflow: hidden;
  padding: 8px 31px 8px 11px;
  text-decoration: none;
  text-overflow: ellipsis;
  transition: background-color .16s, color .16s, border-color .16s;
  white-space: nowrap;
}
.sidebar-nav > ul > li > a { color: var(--heading); font-size: 15px; font-weight: 650; padding-bottom: 10px; padding-top: 10px; }
.sidebar-nav li a:hover { background: rgba(20, 99, 214, .07); color: var(--theme-color); }
.sidebar-nav li.active > a {
  background: var(--active);
  border-left-color: var(--theme-color);
  color: var(--theme-color);
  font-weight: 650;
}
.sidebar li.has-children > .qjcam-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  height: 27px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 7px;
  width: 27px;
  z-index: 2;
}
.sidebar li.has-children > .qjcam-toggle:hover { background: rgba(20, 99, 214, .10); color: var(--theme-color); }
.sidebar li.has-children > .qjcam-toggle::before { content: "›"; font-size: 20px; transform: rotate(90deg); transition: transform .18s; }
.sidebar li.is-collapsed > .qjcam-toggle::before { transform: rotate(0); }
.sidebar li.is-collapsed > ul { display: none; }
.sidebar-nav::-webkit-scrollbar { width: 7px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--line); border: 2px solid var(--sidebar); border-radius: 10px; }

/* 顶部品牌横幅 */
.qjcam-banner {
  align-items: center;
  background:
    radial-gradient(circle at 35% -80%, rgba(255, 255, 255, .38), transparent 46%),
    linear-gradient(100deg, #55a3e9 0%, #2771bd 48%, #175898 100%);
  box-shadow: 0 5px 20px rgba(18, 67, 117, .16);
  display: flex;
  height: var(--banner-height);
  left: var(--sidebar-width);
  padding: 0 36px;
  position: fixed;
  right: 0;
  top: 0;
  transition: left .25s ease;
  z-index: 10;
}
.qjcam-banner::after {
  background: linear-gradient(90deg, #33c96f, #3dd8a7, transparent 92%);
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}
.qjcam-banner-brand {
  align-items: center;
  color: #fff;
  display: inline-flex;
  gap: 16px;
  text-decoration: none;
}
.qjcam-banner-brand img {
  background: #858585;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  box-shadow: 0 7px 20px rgba(7, 42, 78, .20);
  display: block;
  height: 58px;
  object-fit: contain;
  width: auto;
}
.qjcam-banner-brand span {
  border-left: 1px solid rgba(255, 255, 255, .42);
  color: rgba(255, 255, 255, .92);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: .08em;
  padding-left: 16px;
  text-shadow: 0 1px 2px rgba(0, 35, 70, .16);
}

/* 顶部导航 */
nav.app-nav {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  display: flex;
  font-size: 14px;
  gap: 4px;
  margin: 24px 24px 0 0;
  padding: 6px;
  position: fixed;
  z-index: 20;
}
nav.app-nav > ul { align-items: center; display: flex; margin: 0; }
nav.app-nav li { margin: 0; }
nav.app-nav a { border-radius: 8px; color: var(--muted); display: block; padding: 8px 11px; text-decoration: none; }
nav.app-nav a:hover, nav.app-nav li.active > a { background: var(--active); color: var(--theme-color); }
nav.app-nav li ul {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
}
.qjcam-theme-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  margin-left: 3px;
  padding: 0;
  width: 38px;
}
.qjcam-theme-toggle:hover { color: var(--theme-color); }
.qjcam-theme-toggle span { font-size: 18px; }

/* 页面位置导航：沿用主题配色，可随正文宽度自动换行。 */
.markdown-section .qjcam-page-navigation {
  align-items: center;
  background: var(--sidebar);
  border: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  gap: 10px 16px;
  line-height: 1.6;
  margin: 0 calc(-1 * var(--article-padding)) 30px;
  padding: 12px;
  text-indent: 0;
}
.markdown-section .qjcam-breadcrumbs {
  align-items: center;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px 0;
  list-style: none;
  margin: 0;
  min-width: 0;
  padding: 0;
}
.markdown-section .qjcam-breadcrumbs li { display: flex; align-items: baseline; margin: 0; min-width: 0; }
.markdown-section .qjcam-breadcrumbs li + li::before { color: var(--muted); content: '›'; padding: 0 10px; }
.markdown-section .qjcam-breadcrumbs a { border: 0; text-decoration: none; }
.markdown-section .qjcam-breadcrumbs a:hover { text-decoration: underline; }
.qjcam-breadcrumbs [aria-current="page"] { color: var(--heading); font-weight: 600; overflow-wrap: anywhere; }
.qjcam-page-navigation a:focus-visible { outline: 2px solid var(--theme-color); outline-offset: 3px; border-radius: 3px; }

/* 正文 */
.content { left: var(--sidebar-width); padding-bottom: 58px; padding-top: var(--banner-height); }
body > .qjcam-copyright {
  background: var(--surface);
  border-top: 0px solid var(--line);
  bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 16px;
  pointer-events: none;
  position: fixed;
  left: 0;
  right: 0;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  z-index: 80;
}
body:not(.qjcam-home) > .qjcam-copyright {
  padding-left: calc(var(--sidebar-width) + 16px);
  padding-right: calc(var(--toc-width) + 16px);
}
body:not(.qjcam-home) > .qjcam-copyright::before {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: -1px;
  width: var(--sidebar-width);
}
.markdown-section {
  --article-padding: 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-family: "Times New Roman", SimSun, "宋体", serif;
  line-height: 1.75;
  margin: 0 auto 60px;
  max-width: 1120px;
  min-height: calc(100vh - 182px);
  padding: 0 var(--article-padding) 84px;
}
.markdown-section > :first-child { margin-top: 0 !important; }
.markdown-section h1, .markdown-section h2, .markdown-section h3,
.markdown-section h4, .markdown-section h5, .markdown-section h6 {
  color: var(--heading);
  font-weight: 800;
  line-height: 1.35;
  scroll-margin-top: 90px;
}
.markdown-section h1 {
  border-bottom: 0;
  font-size: 1.9rem;
  letter-spacing: -.025em;
  margin: 0 0 1.7rem;
  padding: 0 0 1rem;
  position: relative;
}
.markdown-section h1::after {
  background: linear-gradient(90deg, var(--theme-color), var(--accent));
  border-radius: 3px;
  bottom: 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  width: 58px;
}
.markdown-section h2 { border-bottom: 1px solid var(--line); font-size: 1.35rem; margin-top: 2.8rem; padding-bottom: .65rem; }
.markdown-section h3 { font-size: 1.1rem; margin-top: 2.1rem; }
.markdown-section h4 { font-size: 1rem; }
.markdown-section p { line-height: 1.75; margin: 1rem 0; text-indent: 2em; }
.markdown-section a { color: var(--theme-color); font-weight: 550; }
.markdown-section ul, .markdown-section ol { line-height: 1.75; padding-left: 1.7rem; }
.markdown-section li { margin: .38rem 0; }
.markdown-section li::marker { color: var(--theme-color); }
.markdown-section hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.markdown-section strong { color: var(--heading); }
.markdown-section code {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #c03a5b;
  font-family: "Times New Roman", SimSun, "宋体", serif;
  padding: .16em .42em;
}
html[data-theme="dark"] .markdown-section code { color: #ff91ac; }
.markdown-section pre { background: #101b2b; border: 1px solid #20334d; border-radius: 12px; padding: 18px 20px; }
.markdown-section pre code { background: transparent; border: 0; color: #dce8f7; padding: 0; }
.markdown-section.qjcam-text-import-page pre { background: #f5f7fa; border-color: #dfe7f1; color: #17243a; }
.markdown-section.qjcam-text-import-page pre code { color: #17243a; }

/* 提示组件 */
.markdown-section blockquote {
  background: #edf5ff;
  border: 1px solid #cfe2fb;
  border-left: 4px solid var(--theme-color);
  border-radius: 10px;
  color: var(--ink);
  margin: 1.5rem 0;
  padding: 14px 18px;
}
.markdown-section blockquote p { margin: .35rem 0; }
.markdown-section blockquote.qjcam-note { background: var(--accent-soft); border-color: var(--accent); }
.markdown-section blockquote.qjcam-warning { background: #fff7e8; border-color: #e89b17; }
.markdown-section blockquote.qjcam-danger { background: #fff0f1; border-color: #d94452; }
html[data-theme="dark"] .markdown-section blockquote { background: #172b45; border-color: #294b72; }
html[data-theme="dark"] .markdown-section blockquote.qjcam-warning { background: #382b16; border-color: #624820; }
html[data-theme="dark"] .markdown-section blockquote.qjcam-danger { background: #3b1e25; border-color: #66303b; }

/* 表格 */
.table-scroll { border: 1px solid var(--line); border-radius: 12px; margin: 1.6rem 0; overflow: auto; }
.markdown-section table { border-collapse: separate; border-spacing: 0; display: table; margin: 0; min-width: 640px; width: 100%; }
.markdown-section th { background: var(--active); color: var(--heading); font-weight: 700; text-align: left; }
.markdown-section td, .markdown-section th { border: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 11px 14px; }
.markdown-section tr:last-child td { border-bottom: 0; }
.markdown-section td:last-child, .markdown-section th:last-child { border-right: 0; }
.markdown-section tbody tr:nth-child(2n) { background: color-mix(in srgb, var(--sidebar) 65%, transparent); }
.markdown-section tbody tr:hover { background: color-mix(in srgb, var(--active) 70%, transparent); }
.markdown-section table td img:not(.emoji) {
  margin: 0 auto;
  max-height: 46px;
  max-width: 52px;
}
.markdown-section table td img.qj-img-table:not(.emoji),
.markdown-section table td img.qjcam-table-image:not(.emoji) {
  margin: 12px auto 0;
  max-height: none;
  max-width: 100%;
}
.markdown-section table td.qjcam-row-group {
  background: color-mix(in srgb, var(--active) 58%, var(--surface));
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
}

/* 图片和放大预览 */
.markdown-section img:not(.emoji) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: zoom-in;
  display: block;
  margin: 1.6rem auto;
  max-width: 100%;
  padding: 0;
}
.markdown-section img:not(.emoji):hover { box-shadow: none; transform: none; }
.markdown-section img.qj-img-left,
.markdown-section img.qjcam-image-left {
  display: block;
  margin-left: 0;
  margin-right: auto;
}
.markdown-section img.qj-img-right {
  display: block;
  margin-left: auto;
  margin-right: 0;
}
.markdown-section img.qj-img-center,
.markdown-section img.qjcam-block-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.markdown-section img.qj-img-inline {
  display: inline-block;
  float: none;
  margin: 0 .25em;
  max-height: none;
  max-width: 100%;
  vertical-align: middle;
}
.markdown-section p.qjcam-icon-paragraph {
  display: flow-root;
  min-height: 78px;
  text-indent: 0;
}
.markdown-section img.qjcam-inline-icon {
  float: left;
  height: auto;
  margin: .1em 16px .5em 0;
  max-height: 76px;
  max-width: 76px;
  padding: 0;
  width: auto;
}
.markdown-section img.qj-icon-software,
.markdown-section img.qjcam-click-icon {
  border-radius: 0;
  box-shadow: none;
  display: inline-block;
  float: none;
  margin: 0 .2em;
  max-height: none;
  max-width: 100%;
  padding: 0;
  vertical-align: -.28em;
}
.markdown-section img.qj-icon-software:not([width]),
.markdown-section img.qjcam-click-icon:not([width]) {
  height: 1.35em;
  width: 1.35em;
}
.markdown-section img.qj-icon-software:hover,
.markdown-section img.qjcam-click-icon:hover { box-shadow: none; transform: none; }
.qjcam-lightbox {
  align-items: center;
  background: rgba(5, 12, 22, .88);
  cursor: zoom-out;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 32px;
  position: fixed;
  transition: opacity .18s;
  visibility: hidden;
  z-index: 2000;
}
.qjcam-lightbox.is-open { opacity: 1; visibility: visible; }
.qjcam-lightbox img { background: #fff; border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,.45); max-height: calc(100vh - 64px); max-width: calc(100vw - 64px); object-fit: contain; }
.qjcam-lightbox-close { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; cursor: pointer; font-size: 24px; height: 42px; position: absolute; right: 22px; top: 20px; width: 42px; }

/* 分页和返回顶部 */
.markdown-section .docsify-pagination-container {
  border: 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 32px 0 0;
  padding: 18px 0 0;
  overflow: visible;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}
.markdown-section .docsify-pagination-container:empty { display: none; }
.markdown-section .docsify-pagination-container .pagination-item { border: 0; margin-top: 0; max-width: calc(50% - 6px); min-width: 0; padding: 0; }
.markdown-section .docsify-pagination-container .pagination-item--next { margin-left: auto; text-align: right; }
.markdown-section .docsify-pagination-container .pagination-item a {
  border-radius: 6px;
  color: var(--heading);
  display: inline-block;
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
  padding: 8px 2px;
  text-decoration: none;
}
.markdown-section .docsify-pagination-container .pagination-item a:hover { text-decoration: underline; }
.markdown-section .docsify-pagination-container .pagination-item a:focus-visible { outline: 2px solid var(--theme-color); outline-offset: 3px; }
.markdown-section .docsify-pagination-container .pagination-item-label,
.markdown-section .docsify-pagination-container .pagination-item-title { color: inherit; display: inline; font-size: inherit; font-weight: inherit; opacity: 1; }
.markdown-section .docsify-pagination-container .pagination-item-title::before { content: '：'; }
.markdown-section .docsify-pagination-container .pagination-item-subtitle { display: none; }
.qjcam-backtop {
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  bottom: 24px;
  box-shadow: var(--shadow-soft);
  color: var(--theme-color);
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 44px;
  justify-content: center;
  opacity: 0;
  position: fixed;
  right: 26px;
  transform: translateY(10px);
  transition: opacity .18s, transform .18s, background-color .18s;
  visibility: hidden;
  width: 44px;
  z-index: 30;
}
.qjcam-backtop.is-visible { opacity: 1; transform: translateY(0); visibility: visible; }
.qjcam-backtop:hover { background: var(--theme-color); color: #fff; }

@media (max-width: 1180px) {
  .markdown-section { --article-padding: 48px; margin-left: 28px; margin-right: 28px; padding: 0 var(--article-padding) 76px; }
}
@media (max-width: 768px) {
  :root { --sidebar-width: 300px; --banner-height: 74px; }
  body { font-size: 15px; }
  .sidebar { left: 0; transform: none !important; width: var(--sidebar-width); }
  .qjcam-banner { height: var(--banner-height); left: var(--sidebar-width); padding: 0 24px; }
  .qjcam-banner-brand img { height: 44px; }
  .qjcam-banner-brand span { display: none; }
  .content { left: var(--sidebar-width); max-width: none; padding-bottom: 54px; padding-top: var(--banner-height); position: absolute; transform: none !important; }
  .markdown-section { --article-padding: 22px; border-left: 0; border-radius: 0; border-right: 0; margin: 0; min-height: calc(100vh - 64px); padding: 0 var(--article-padding) 64px; }
  .markdown-section h1 { font-size: 1.7rem; }
  .markdown-section h2 { font-size: 1.25rem; }
  nav.app-nav { border-radius: 10px; margin: 16px 12px 0 0; max-width: calc(100vw - 226px); }
  nav.app-nav > ul > li:not(:first-child) { display: none; }
  .qjcam-backtop { bottom: 16px; right: 16px; }
  .qjcam-lightbox { padding: 14px; }
  .qjcam-lightbox img { max-height: calc(100vh - 28px); max-width: calc(100vw - 28px); }
}
@media print {
  .docsify-pagination-container { display: none !important; }
  .qjcam-page-navigation { display: none !important; }
  .sidebar, .app-nav, .sidebar-toggle, .qjcam-sidebar-resizer, .qjcam-banner, .qjcam-progress, .qjcam-backtop { display: none !important; }
  .content { left: 0; padding: 0; position: static; }
  .markdown-section { border: 0; box-shadow: none; margin: 0; max-width: none; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Filename-bound Markdown theme. No required headings, text or sibling sequence. */
.markdown-section.qjcam-intro-page > h1 { font-size: 2rem; margin: 26px 0 16px; }
.markdown-section.qjcam-intro-page > h2 { font-size: 1.2rem; margin: 30px 0 14px; border: 0; padding: 0; }
.markdown-section.qjcam-intro-page > p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin: 16px 0; }
.markdown-section.qjcam-intro-page > p > a:only-child { display: inline-flex; padding: 12px 20px; border-radius: 8px; background: #2f63d8; color: white; text-decoration: none; }
.markdown-section.qjcam-intro-page > ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; counter-reset: intro-step; padding: 28px 24px; margin: 20px 0 30px; border: 1px solid color-mix(in srgb, var(--line) 80%, #2f63d8); border-radius: 12px; background: color-mix(in srgb, var(--surface) 94%, #2f63d8); }
.markdown-section.qjcam-intro-page > ol > li { position: relative; counter-increment: intro-step; padding: 0 14px 0 48px; margin: 0; min-width: 0; color: var(--muted); font-size: .875rem; line-height: 1.65; overflow-wrap: anywhere; }
.markdown-section.qjcam-intro-page > ol > li::before { content: counter(intro-step, decimal-leading-zero); position: absolute; left: 0; top: 4px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: #2f63d8; font-size: .875rem; font-weight: 700; }
.markdown-section.qjcam-intro-page > ol > li:not(:last-child)::after { content: '→'; position: absolute; right: -16px; top: 10px; color: var(--muted); }
.markdown-section.qjcam-intro-page > ol > li > a { display: block; color: var(--heading); font-size: 1rem; font-weight: 650; text-decoration: none; margin-bottom: 4px; }
.markdown-section.qjcam-intro-page > ol > li > a:hover { color: var(--theme-color); text-decoration: underline; }
.qjcam-intro-page a:focus-visible { outline: 3px solid var(--theme-color); outline-offset: 4px; }
@media (max-width: 1200px) { .markdown-section.qjcam-intro-page > ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .markdown-section.qjcam-intro-page > ol { grid-template-columns: 1fr; } .markdown-section.qjcam-intro-page > ol > li::after { display: none; } }

/* License overview: theme selected by Markdown filename. */
.markdown-section.qjcam-license-page > h1 { font-size: 2rem; margin: 26px 0 16px; }
.markdown-section.qjcam-license-page > p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin: 0 0 28px; }
.markdown-section.qjcam-license-page > ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 28px 0 40px; }
.markdown-section.qjcam-license-page > ul > li { position: relative; margin: 0; min-width: 0; padding: 30px 24px; border: 1px solid var(--line); border-top: 3px solid #2f63d8; border-radius: 12px; background: linear-gradient(150deg, color-mix(in srgb, var(--surface) 94%, #2f63d8), var(--surface)); transition: border-color .18s, box-shadow .18s; }
.markdown-section.qjcam-license-page > ul > li:hover { border-color: #2f63d8; box-shadow: 0 8px 22px rgba(25, 45, 75, .08); }
.markdown-section.qjcam-license-page > ul > li > p { font-size: .9375rem; line-height: 1.85; color: var(--muted); margin: 18px 0 0; }
.markdown-section.qjcam-license-page > ul > li > p:first-child { margin-top: 0; }
.markdown-section.qjcam-license-page > ul > li a { color: var(--heading); font-size: 1.125rem; font-weight: 650; text-decoration: none; line-height: 1.5; display: block; padding-right: 24px; }
.markdown-section.qjcam-license-page > ul > li a::after { content: '↗'; position: absolute; right: 22px; top: 30px; color: var(--theme-color); }
.markdown-section.qjcam-license-page > ul > li a::before { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.markdown-section.qjcam-license-page > ul > li a:focus-visible { outline: none; }
.markdown-section.qjcam-license-page > ul > li:focus-within { outline: 3px solid var(--theme-color); outline-offset: 4px; }
@media (max-width: 1200px) { .markdown-section.qjcam-license-page > ul { grid-template-columns: 1fr; } }

/* Legacy introduction components. */
.intro-home { padding-bottom: 12px; }
.qjcam-document-video { display: block; width: 100%; max-height: 70vh; aspect-ratio: 16 / 9; object-fit: contain; background: #101722; border: 1px solid var(--line); border-radius: 12px; }
.markdown-section .intro-video h2 { margin-bottom: 16px; }
.intro-video video { display: block; width: 100%; max-height: 70vh; aspect-ratio: 16 / 9; object-fit: contain; background: #101722; border: 1px solid var(--line); border-radius: 12px; }
.intro-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 26px 0 30px; }
.markdown-section .intro-heading h1 { margin: 0 0 12px; font-size: 2rem; line-height: 1.3; }
.markdown-section .intro-home p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin: 0; }
.markdown-section .intro-primary { flex-shrink: 0; display: inline-flex; align-items: center; gap: 24px; border-radius: 8px; background: #2f63d8; color: white; padding: 12px 20px; text-decoration: none; font-size: 1rem; }
.intro-start { background: color-mix(in srgb, var(--surface) 94%, #2f63d8); border: 1px solid color-mix(in srgb, var(--line) 80%, #2f63d8); border-radius: 12px; padding: 24px; margin-bottom: 30px; }
.markdown-section .intro-home h2 { font-size: 1.2rem; margin: 0 0 8px; padding: 0; border: 0; line-height: 1.5; }
.markdown-section .intro-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 24px 0 0; gap: 14px; }
.intro-steps li { margin: 0; padding: 0; min-width: 0; }
.markdown-section .intro-steps a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); height: 100%; }
.intro-number { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; background: var(--surface); color: #2f63d8; border: 1px solid var(--line); border-radius: 50%; font-size: .875rem; font-weight: 700; }
.intro-steps strong { display: block; font-size: 1rem; color: var(--heading); }
.intro-steps small { display: block; margin-top: 4px; font-size: .875rem; color: var(--muted); font-weight: 400; }
.intro-step-arrow { margin-left: auto; color: var(--muted); }
.intro-steps li:last-child .intro-step-arrow { display: none; }
.intro-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.intro-section-heading > span { font-size: .875rem; color: var(--muted); }
.intro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.markdown-section .intro-card { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; text-decoration: none; transition: background .18s, border-color .18s; }
.intro-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 46px; border-radius: 8px; background: color-mix(in srgb, var(--surface) 90%, #2f63d8); color: var(--theme-color); font-size: 1.125rem; font-weight: 650; }
.intro-card-copy { flex: 1; }
.intro-card-copy strong { display: block; font-size: 1.0625rem; color: var(--heading); line-height: 1.5; }
.intro-card-copy > span { display: block; margin-top: 6px; font-size: .9375rem; font-weight: 400; line-height: 1.7; color: var(--muted); }
.intro-card-arrow { align-self: flex-start; color: var(--muted); font-size: 1.125rem; }
.markdown-section .intro-card:hover { border-color: #2f63d8; background: color-mix(in srgb, var(--surface) 97%, #2f63d8); }
.intro-home a:focus-visible { outline: 3px solid var(--theme-color); outline-offset: 4px; }
.intro-steps a:hover strong, .intro-help a:hover { color: var(--theme-color); text-decoration: underline; }
.intro-help { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; margin-top: 28px; border-top: 1px solid var(--line); }
.intro-help strong { color: var(--heading); font-size: 1rem; }
.markdown-section .intro-help p { font-size: .9375rem; margin-top: 6px; }
.intro-help-links { display: flex; gap: 20px; flex-shrink: 0; flex-wrap: wrap; }
.markdown-section .intro-help-links a { font-size: .9375rem; text-decoration: none; }
@media (max-width: 1200px) {
  .markdown-section .intro-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .intro-help { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (max-width: 600px) {
  .intro-heading { align-items: flex-start; flex-direction: column; }
  .intro-section-heading { align-items: flex-start; flex-direction: column; gap: 0; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-start { padding: 20px; }
  .markdown-section .intro-steps { grid-template-columns: 1fr; }
  .markdown-section .intro-card { padding: 18px; }
}

/* 2026 Web help layout: category home, focused section tree and article outline. */
:root {
  --sidebar-width: 300px;
  --banner-main-height: 74px;
  --module-nav-height: 52px;
  --banner-height: calc(var(--banner-main-height) + var(--module-nav-height));
  --toc-width: 250px;
}

html, body, .content { background: var(--surface); }
nav.app-nav { display: none; }

.qjcam-banner {
  align-items: center;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(25, 45, 75, .06);
  column-gap: 24px;
  display: grid;
  grid-template-columns: max-content minmax(24px, 1fr) minmax(260px, 500px) max-content max-content max-content;
  grid-template-rows: var(--banner-main-height) var(--module-nav-height);
  height: var(--banner-height);
  left: 0;
  padding: 0 34px;
  z-index: 100;
}
.qjcam-banner::after { display: none; }
.qjcam-banner-brand { color: var(--heading); gap: 12px; grid-column: 1; grid-row: 1; min-width: max-content; }
.qjcam-banner-brand img {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 38px;
  max-width: 112px;
}
.qjcam-banner-brand strong { font-size: 21px; letter-spacing: 0; }
.qjcam-banner-brand span {
  border-left: 1px solid var(--line);
  color: var(--heading);
  font-size: 17px;
  letter-spacing: 0;
  padding-left: 12px;
  text-shadow: none;
}
.qjcam-module-nav {
  align-items: center;
  align-self: stretch;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 4px;
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0 -34px;
  min-width: 150px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 7px 34px;
  scrollbar-width: none;
  white-space: nowrap;
}
.qjcam-module-nav::-webkit-scrollbar { display: none; }
.qjcam-module-link {
  border-radius: 8px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 12px;
  text-decoration: none;
  transition: background-color .16s, color .16s, box-shadow .16s;
}
.qjcam-module-link:hover {
  background: color-mix(in srgb, var(--active) 76%, transparent);
  color: var(--theme-color);
}
.qjcam-module-link.is-active {
  background: var(--active);
  box-shadow: inset 0 -2px 0 var(--theme-color);
  color: var(--theme-color);
}
.qjcam-module-link:focus-visible { outline: 2px solid var(--theme-color); outline-offset: 1px; }
.qjcam-global-search-wrap {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin-left: 0;
  max-width: 500px;
  position: relative;
  width: min(36vw, 500px);
}
.qjcam-global-search {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f2;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(36, 58, 92, .06);
  color: var(--muted);
  display: flex;
  height: 44px;
  padding: 0 54px 0 22px;
  width: 100%;
}
html[data-theme="dark"] .qjcam-global-search { background: var(--surface-raised); border-color: var(--line); }
.qjcam-global-search:focus-within {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-color) 12%, transparent);
}
.qjcam-global-search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  flex: 1;
  height: 100%;
  min-width: 0;
  outline: 0;
  padding: 0;
}
.qjcam-global-search input::placeholder { color: var(--muted); }
.qjcam-search-submit {
  background: var(--theme-color);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  height: 36px;
  padding: 0;
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color .18s, box-shadow .18s, transform .18s;
  width: 36px;
  z-index: 2;
}
.qjcam-search-submit:hover {
  background: #285fd7;
  box-shadow: 0 7px 16px rgba(57, 114, 246, .24);
  transform: translateY(calc(-50% - 1px));
}
.qjcam-search-submit:focus-visible { outline: 3px solid color-mix(in srgb, var(--theme-color) 25%, transparent); outline-offset: 2px; }
.qjcam-search-submit span::before {
  border: 3px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 11px;
  left: 9px;
  position: absolute;
  top: 7px;
  width: 11px;
}
.qjcam-search-submit span::after {
  background: currentColor;
  border-radius: 2px;
  content: "";
  height: 3px;
  left: 20px;
  position: absolute;
  top: 20px;
  transform: rotate(45deg);
  transform-origin: left center;
  width: 8px;
}
.qjcam-global-search-results {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  left: 0;
  max-height: min(62vh, 560px);
  overflow: auto;
  padding: 8px 16px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 130;
}
.qjcam-global-search-results.is-history { padding: 8px; }
body.qjcam-search-open .qjcam-global-search-results:not(:empty) { display: block; }
.qjcam-global-search-results .matching-post { border-bottom: 1px solid var(--line); padding: 12px 2px; }
.qjcam-global-search-results .matching-post:last-child { border-bottom: 0; }
.qjcam-global-search-results .matching-post a { color: var(--heading); display: block; text-decoration: none; }
.qjcam-global-search-results .matching-post a:hover h2 { color: var(--theme-color); }
.qjcam-global-search-results .qjcam-search-path {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qjcam-global-search-results .matching-post h2 {
  color: var(--heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}
.qjcam-global-search-results .matching-post p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.qjcam-search-status { color: var(--muted); font-size: 13px; margin: 8px 2px; }
.qjcam-global-search-results mark {
  background: transparent;
  color: #3972f6;
  font-weight: inherit;
  padding: 0;
}
html[data-theme="dark"] .qjcam-global-search-results mark { color: #70a1ff; }
.qjcam-whats-new {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.qjcam-whats-new { grid-column: 4; grid-row: 1; }
.qjcam-lang-switch { grid-column: 5; grid-row: 1; }
.qjcam-mobile-menu { grid-column: 6; grid-row: 1; }
.qjcam-whats-new:hover { color: var(--theme-color); }
.qjcam-mobile-menu {
  background: transparent;
  border: 0;
  color: var(--heading);
  cursor: pointer;
  display: none;
  font-size: 22px;
  height: 42px;
  width: 42px;
}

.sidebar {
  bottom: 0;
  height: auto;
  top: var(--banner-height);
  z-index: 80;
}
.sidebar > h1.app-name { display: none; }
.sidebar-nav > ul > li.qjcam-outside-section { display: none; }
.qjcam-current-section > a {
  color: var(--heading) !important;
  font-size: 16px !important;
}
.qjcam-sidebar-resizer { top: var(--banner-height); z-index: 85; }

.content {
  left: var(--sidebar-width);
  padding-bottom: 0;
  padding-top: var(--banner-height);
  right: var(--toc-width);
}
.markdown-section {
  --article-padding: 54px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  margin: 0 auto;
  max-width: 980px;
  min-height: calc(100vh - var(--banner-height));
  padding: 32px var(--article-padding) 100px;
}
.markdown-section p { text-indent: 2em; }
.markdown-section h1 { font-size: 2.15rem; letter-spacing: 0; margin-bottom: .45rem; }
.markdown-section h1::after { display: none; }
.markdown-section h2 { border-bottom: 0; font-size: 1.45rem; }
body:not(.qjcam-home) .markdown-section {
  font-size: 16px;
  line-height: 2;
}
body:not(.qjcam-home) .markdown-section p,
body:not(.qjcam-home) .markdown-section ul,
body:not(.qjcam-home) .markdown-section ol,
body:not(.qjcam-home) .markdown-section dl,
body:not(.qjcam-home) .markdown-section blockquote,
body:not(.qjcam-home) .markdown-section td,
body:not(.qjcam-home) .markdown-section th {
  font-size: 16px;
  line-height: 2;
}

/* Keep the interface chapters aligned with the original CHM layout. */
body:not(.qjcam-home) .markdown-section p {
  margin-bottom: 0;
  margin-top: 0;
  text-indent: 2em;
}
body:not(.qjcam-home) .markdown-section li > p,
body:not(.qjcam-home) .markdown-section td > p,
body:not(.qjcam-home) .markdown-section th > p,
body:not(.qjcam-home) .markdown-section p.qjcam-icon-paragraph,
body:not(.qjcam-home) .markdown-section p:has(> img.qjcam-block-image:only-child) {
  text-indent: 0;
}
body:not(.qjcam-home) .markdown-section ul,
body:not(.qjcam-home) .markdown-section ol {
  margin-bottom: 0;
  margin-top: 0;
  padding-left: 2em;
}
body:not(.qjcam-home) .markdown-section h1,
body:not(.qjcam-home) .markdown-section h2,
body:not(.qjcam-home) .markdown-section h3,
body:not(.qjcam-home) .markdown-section h4,
body:not(.qjcam-home) .markdown-section h5,
body:not(.qjcam-home) .markdown-section h6 {
  font-size: 20px;
  line-height: 1.5;
}
.markdown-section .qjcam-page-navigation {
  background: transparent;
  border: 0;
  margin: 0 0 34px;
  padding: 0;
}
.qjcam-article-toc {
  background: var(--surface);
  border-left: 1px solid var(--line);
  bottom: 0;
  color: var(--ink);
  overflow: auto;
  padding: 46px 28px 80px;
  position: fixed;
  right: 0;
  top: var(--banner-height);
  width: var(--toc-width);
  z-index: 20;
}
.qjcam-article-toc > strong { display: block; font-size: 18px; margin-bottom: 22px; }
.qjcam-article-toc nav { border-left: 2px solid var(--line); display: grid; gap: 2px; }
.qjcam-article-toc a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding: 8px 0 8px 18px;
  text-decoration: none;
}
.qjcam-article-toc a:hover { color: var(--theme-color); }
.qjcam-article-toc a.is-subsection { font-size: 13px; padding-left: 30px; }

body.qjcam-home .sidebar,
body.qjcam-home .qjcam-sidebar-resizer,
body.qjcam-home .qjcam-article-toc { display: none; }
body.qjcam-home { --module-nav-height: 0px; }
body.qjcam-home .qjcam-banner {
  grid-template-rows: var(--banner-main-height) 0;
  height: var(--banner-main-height);
}
body.qjcam-home .qjcam-module-nav { display: none; }
body.qjcam-home .content {
  left: 0;
  right: 0;
}
body.qjcam-home .markdown-section {
  max-width: 1540px;
  padding: 0 clamp(24px, 7vw, 120px) 80px;
}
.manual-home > h1 { font-size: clamp(2.25rem, 3.6vw, 3.6rem); margin: 0; text-align: center; }
.manual-home-lead { color: var(--muted); margin: 10px 0 40px !important; text-align: center; }
.manual-card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.markdown-section .manual-card {
  --card-accent: #3972f6;
  --card-soft: #eaf0ff;
  background: linear-gradient(145deg, #eef6ff 0%, #f8fbff 52%, #ffffff 100%);
  border: 1px solid #e1edfb;
  border-radius: 14px;
  color: var(--heading);
  display: flex;
  flex-direction: column;
  min-height: 194px;
  padding: 34px 30px 28px;
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.markdown-section .manual-card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 34%, var(--line));
  box-shadow: 0 12px 26px rgba(25, 45, 75, .10);
  transform: translateY(-2px);
}
.manual-card-icon {
  align-items: center;
  background: var(--card-soft);
  border-radius: 8px;
  color: var(--card-accent);
  display: flex;
  font-size: 24px;
  font-weight: 700;
  height: 46px;
  justify-content: center;
  margin-bottom: 24px;
  width: 46px;
}
.markdown-section .manual-card-icon img {
  display: block;
  height: 28px;
  width: 28px;
  margin: 0;
}
.manual-card strong { color: var(--heading); font-size: 20px; line-height: 1.3; }
.manual-card > span:last-child { color: var(--muted); font-size: 15px; font-weight: 400; line-height: 1.6; margin-top: 10px; }
.manual-card-cyan { --card-accent: #0e9eb5 !important; --card-soft: #dff6f8 !important; }
.manual-card-violet { --card-accent: #7651d8 !important; --card-soft: #eee8ff !important; }
.manual-card-green { --card-accent: #188b61 !important; --card-soft: #e0f4eb !important; }
.manual-card-orange { --card-accent: #d76b26 !important; --card-soft: #fff0e5 !important; }
.manual-card-indigo { --card-accent: #4e5bc5 !important; --card-soft: #e9ebff !important; }
.manual-card-yellow { --card-accent: #aa7a00 !important; --card-soft: #fff4c9 !important; }
.manual-card-teal { --card-accent: #16867f !important; --card-soft: #dff5f1 !important; }
.manual-card-pink { --card-accent: #c14e7a !important; --card-soft: #fbe5ee !important; }
.manual-card-red { --card-accent: #bd4b4b !important; --card-soft: #fbe7e7 !important; }
.manual-card-slate { --card-accent: #586579 !important; --card-soft: #e9edf2 !important; }
.manual-card-lime { --card-accent: #5d8123 !important; --card-soft: #edf5dc !important; }

@media (max-width: 1400px) {
  body:not(.qjcam-home) > .qjcam-copyright { padding-right: 72px; }
  .content { right: 0; }
  .qjcam-article-toc { display: none; }
  .manual-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  body:not(.qjcam-home) > .qjcam-copyright { padding-left: 16px; padding-right: 16px; }
  body > .qjcam-copyright::before { display: none; }
  :root {
    --sidebar-width: min(340px, 86vw);
    --module-nav-height: 0px;
  }
  .qjcam-banner { padding: 0 18px; }
  .qjcam-banner-brand strong { display: none; }
  .qjcam-module-nav { display: none; }
  .qjcam-global-search-wrap { margin-left: auto; width: min(48vw, 420px); }
  .qjcam-whats-new { display: none; }
  .qjcam-mobile-menu { display: block; flex: 0 0 42px; }
  .qjcam-sidebar-resizer { display: none; }
  .sidebar { transform: translateX(-100%) !important; transition: transform .2s ease; }
  body.qjcam-sidebar-open .sidebar { box-shadow: var(--shadow); transform: translateX(0) !important; }
  .content { left: 0; position: absolute; right: 0; }
  .markdown-section { --article-padding: 30px; margin: 0; max-width: none; padding-top: 30px; }
  .manual-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .qjcam-banner { gap: 10px; padding: 0 12px; }
  .qjcam-banner-brand img { height: 32px; max-width: 88px; }
  .qjcam-banner-brand span { font-size: 15px; padding-left: 9px; }
  .qjcam-global-search-wrap { flex: 1; min-width: 0; width: auto; }
  .qjcam-global-search input::placeholder { color: transparent; }
  body.qjcam-home .markdown-section { padding: 36px 18px 64px; }
  .manual-home > h1 { font-size: 2.25rem; }
  .manual-home-lead { margin-bottom: 28px !important; }
  .manual-card-grid { grid-template-columns: 1fr; }
  .markdown-section .manual-card { min-height: 154px; padding: 24px; }
  .manual-card-icon { margin-bottom: 18px; }
}

html[data-theme="dark"] .markdown-section .manual-card {
  background: color-mix(in srgb, var(--surface-raised) 92%, var(--card-accent));
}

html[data-theme="dark"] .markdown-section .manual-card-icon {
  background: color-mix(in srgb, var(--surface-raised) 72%, var(--card-accent));
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
