/* ============================================================
   报价单软件使用说明 · 文档站点样式
   参考 TradeDoc 手册样式：经典蓝色 + 素雅黑白灰
   ============================================================ */

:root {
  --brand: #ff7851;
  --brand-dark: #f26a3d;
  --primary: #e85d36;
  --primary-light: #e85d36;
  --primary-bg: #fff3ee;
  --primary-text: #ffffff;

  --bg: #f7f8fa;
  --bg-elev: #ffffff;
  --bg-soft: #f1f3f5;
  --bg-code: #f6f8fa;

  --text: #1f2328;
  --text-soft: #57606a;
  --text-muted: #8b949e;

  --border: #e5e7eb;
  --border-strong: #d0d7de;

  --link: #c04a24;
  --link-hover: #a83a1a;

  --green: #1a7f37;
  --green-bg: #eaf7ee;
  --amber: #9a6700;
  --amber-bg: #fff8e1;
  --red: #cf222e;
  --red-bg: #fff1f0;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,.06);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.14);

  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 56px;
  --sidebar-w: 280px;

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

/* ================== 重置 ================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }
button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}
kbd {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 3px;
  line-height: 1.4;
  white-space: nowrap;
}

/* ================== 顶部栏 ================== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.menu-btn {
  display: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
}
.menu-btn:hover { background: var(--bg-soft); }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  display: block;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(255,120,81,.32);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.brand-sub { font-size: 11px; color: var(--text-muted); letter-spacing: .8px; }

.search-box {
  flex: 1;
  max-width: 380px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 20px;
  color: var(--text-muted);
  transition: background .2s, border-color .2s, color .2s;
}
.search-box:focus-within {
  background: var(--bg-elev);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(255,120,81,.14);
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }

/* ================== 布局 ================== */
.layout {
  display: flex;
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* ================== 侧边栏 ================== */
.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 24px 12px;
  z-index: 50;
  transition: transform .3s;
}
.sidebar-nav { padding: 0 4px; }

.nav-section { margin-bottom: 20px; }
.nav-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 0 12px 8px;
  margin: 0;
  cursor: default;
  user-select: none;
}

.nav-list,
.nav-sub {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-item,
.nav-sub-item { position: relative; }

/* 折叠按钮 */
.nav-toggle {
  position: absolute;
  right: 12px;
  top: 6px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  transition: transform .2s, background .15s;
  cursor: pointer;
  border-radius: 4px;
  z-index: 1;
  user-select: none;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-item:not(.collapsed) > .nav-toggle,
.nav-sub-item:not(.collapsed) > .nav-toggle { transform: rotate(90deg); }
.nav-item.collapsed > .nav-toggle,
.nav-sub-item.collapsed > .nav-toggle { transform: rotate(0deg); }
.nav-item.collapsed > .nav-sub,
.nav-sub-item.collapsed > .nav-sub { display: none; }

/* 页面链接 */
.nav-item > a,
.nav-sub-item > a {
  display: block;
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all .15s;
}
.nav-page-link {
  padding: 7px 12px;
  font-size: 14px;
  color: var(--text-soft);
}
.nav-page-link:hover,
.nav-child-link:hover {
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
}
.nav-page-link.active,
.nav-child-link.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 500;
  border-left-color: var(--primary);
}
.nav-page-link.active-parent,
.nav-child-link.active-parent {
  color: var(--text);
  font-weight: 500;
}

/* 子级页面 */
.nav-sub-item > a {
  padding: 4px 12px 4px 28px;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
}
.nav-sub-item-3 > a { padding-left: 44px; }
.nav-sub-item > a.active {
  margin-left: -4px;
  padding-left: 24px;
  border-left: 2px solid var(--primary);
}
.nav-sub-item-3 > a.active { padding-left: 40px; }

/* 带子级的链接给折叠按钮留出空间 */
.nav-item.has-sub > a { padding-right: 36px; }
.nav-sub-item.has-sub > a { padding-right: 32px; }
.nav-sub-item > .nav-toggle {
  right: 8px;
  top: 1px;
  width: 18px;
  height: 18px;
  font-size: 15px;
}

/* ================== 内容区 ================== */
.content {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  padding: 30px 48px 60px;
  max-width: 1060px;
}
.article {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 48px 44px;
  box-shadow: var(--shadow-sm);
}
.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.breadcrumb .crumb-sep { color: var(--border-strong); }
.breadcrumb .current { color: var(--text-soft); font-weight: 500; }

/* 页面标题 */
.page-header {
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  margin: 0 0 10px;
  padding: 0;
  border: none;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.2px;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.page-meta .meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* ================== Markdown 排版 ================== */
.markdown-body { font-size: 15px; }
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  color: var(--text);
  line-height: 1.4;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.markdown-body h1 { font-size: 26px; margin: 34px 0 16px; }
.markdown-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 38px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.markdown-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 30px 0 12px;
}
.markdown-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 10px;
}
.markdown-body h5 { font-size: 15px; margin: 20px 0 8px; }
.markdown-body h6 { font-size: 14px; margin: 18px 0 8px; color: var(--text-soft); }
.markdown-body > *:first-child { margin-top: 18px; }
.markdown-body p { margin: 12px 0; color: var(--text); }
.markdown-body ul,
.markdown-body ol { margin: 12px 0; padding-left: 24px; }
.markdown-body li { margin: 6px 0; }
.markdown-body li > p { margin: 6px 0; }
.markdown-body strong { font-weight: 600; color: var(--text); }
.markdown-body em { font-style: italic; }
.markdown-body hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 30px 0;
}
.markdown-body blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
}
.markdown-body blockquote p { margin: 4px 0; }
.markdown-body code {
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-code);
  color: var(--text);
  border-radius: 3px;
}
.markdown-body pre {
  margin: 18px 0;
  padding: 16px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  line-height: 1.55;
}
.markdown-body pre code {
  padding: 0;
  background: transparent;
  font-size: 13px;
  white-space: pre;
}

/* 表格 */
.table-wrap {
  width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}
.markdown-body table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}
.markdown-body thead { background: var(--primary-bg); }
.markdown-body th,
.markdown-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.markdown-body th:last-child,
.markdown-body td:last-child { border-right: none; }
.markdown-body tbody tr:last-child td { border-bottom: none; }
.markdown-body th { font-weight: 600; color: var(--text); white-space: nowrap; }
.markdown-body td { color: var(--text-soft); }

/* 图片 */
.doc-figure {
  width: var(--fig-w, 100%);
  max-width: 100%;
  margin: 20px auto;
}
.doc-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: box-shadow .2s, transform .2s;
}
.doc-figure img:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.markdown-body p > img {
  display: block;
  max-width: 100%;
  margin: 18px auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.doc-inline-icon {
  display: inline-block !important;
  width: auto !important;
  height: 1.25em;
  margin: 0 2px !important;
  padding: 0;
  border: none !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  vertical-align: -0.25em;
  cursor: default !important;
  background: transparent;
}

/* 居中提示 */
.doc-note {
  margin: 16px 0;
  text-align: center;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

/* 双栏图片 */
.doc-columns {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 18px 0;
}
.doc-column {
  flex: 1 1 0;
  min-width: 0;
}
.doc-column .doc-figure {
  width: 100%;
  margin: 6px 0;
}
.doc-column .doc-figure img { box-shadow: none; }

/* 提示块 */
.callout {
  position: relative;
  margin: 20px 0;
  padding: 14px 18px 14px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: var(--primary-bg);
}
.callout-label {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
}
.callout-title { font-size: 15px; font-weight: 600; color: var(--text); }
.callout-body { color: var(--text-soft); font-size: 14px; }
.callout-body strong { color: var(--text); }
.callout-info { border-left-color: var(--primary); background: var(--primary-bg); }
.callout-info .callout-label { color: var(--primary); }
.callout-danger { border-left-color: var(--red); background: var(--red-bg); }
.callout-danger .callout-label { color: var(--red); }
.callout-warning { border-left-color: var(--amber); background: var(--amber-bg); }
.callout-warning .callout-label { color: var(--amber); }
.callout-success { border-left-color: var(--green); background: var(--green-bg); }
.callout-success .callout-label { color: var(--green); }

/* 章节卡片 */
.chapter-intro {
  margin: 18px 0 12px;
  font-size: 14px;
  color: var(--text-soft);
}
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 10px;
}
.chapter-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.chapter-card:hover {
  color: var(--text);
  text-decoration: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.chapter-card-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.chapter-card-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.chapter-card-arrow {
  flex: none;
  color: var(--text-muted);
  font-size: 15px;
  transition: transform .18s, color .18s;
}
.chapter-card:hover .chapter-card-arrow {
  color: var(--primary);
  transform: translateX(3px);
}
.chapter-links {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-strong);
}
.chapter-links-title {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* 上一篇 / 下一篇 */
.pager {
  display: flex;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.pager-link {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.pager-link:hover {
  text-decoration: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.pager-link.next { text-align: right; }
.pager-link.placeholder { border-color: transparent; background: transparent; pointer-events: none; }
.pager-label { font-size: 11px; color: var(--text-muted); }
.pager-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 页脚 */
.site-footer {
  margin-top: 26px;
  padding: 10px 4px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}
.site-footer p { margin: 2px 0; }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--primary); }
.site-footer strong { color: var(--text-soft); }
.footer-muted { font-size: 11px; }

/* ================== 搜索结果 ================== */
.search-results {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: 18px;
  width: 440px;
  max-height: 70vh;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  z-index: 200;
  display: none;
}
.search-results.show { display: block; animation: searchIn .14s ease-out; }
@keyframes searchIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-result {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover,
.search-result.active { background: var(--bg-soft); }
.search-result-trail {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .3px;
  margin-bottom: 3px;
}
.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.search-result-snippet {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.55;
}
.search-result-snippet mark {
  background: #fff3a0;
  color: #5a4a00;
  padding: 0 2px;
  border-radius: 2px;
}
.search-empty {
  padding: 34px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.search-hint {
  padding: 10px 16px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

/* ================== 图片放大 ================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(12, 18, 28, .88);
  cursor: zoom-out;
  animation: fadeIn .16s ease-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  cursor: zoom-out;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.26); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ================== 移动端遮罩 ================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ================== 响应式 ================== */
@media (max-width: 1100px) {
  .content { padding: 24px 28px 60px; }
  .article { padding: 32px 32px 40px; }
}

@media (max-width: 768px) {
  .menu-btn { display: inline-flex; }
  .brand-name { font-size: 14px; }
  .search-box { max-width: 300px; }

  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .content {
    margin-left: 0;
    padding: 18px 16px 52px;
    max-width: 100%;
  }
  .article { padding: 28px 24px 34px; }
}

@media (max-width: 640px) {
  .topbar { padding: 0 12px; gap: 8px; }
  .brand-name { display: none; }
  .brand-sub { display: none; }
  .brand-logo { width: 32px; height: 32px; }
  .search-box { max-width: none; padding: 6px 10px; }
  .search-box kbd { display: none; }
  .search-box input { font-size: 13px; }

  .content { padding: 12px 10px 44px; }
  .article { padding: 22px 16px 28px; border-radius: var(--radius-sm); }

  .page-header h1 { font-size: 24px; }
  .page-meta { font-size: 11.5px; gap: 8px; }
  .breadcrumb { font-size: 11.5px; }

  .markdown-body { font-size: 14.5px; }
  .markdown-body h1 { font-size: 22px; }
  .markdown-body h2 { font-size: 19px; margin-top: 30px; }
  .markdown-body h3 { font-size: 16.5px; margin-top: 24px; }
  .markdown-body h4 { font-size: 15px; }
  .markdown-body ul, .markdown-body ol { padding-left: 20px; }

  .doc-figure { width: 100% !important; }
  .doc-columns { flex-direction: column; gap: 8px; }
  .doc-column { width: 100%; }

  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-card { padding: 12px 13px; }

  .pager { flex-direction: column; gap: 8px; }
  .pager-link.next { text-align: left; }
  .pager-link.placeholder { display: none; }

  .search-results {
    top: calc(var(--header-h) + 6px);
    right: 8px;
    left: 8px;
    width: auto;
    max-height: 65vh;
  }
  .lightbox { padding: 14px; }
}

@media (max-width: 400px) {
  .article { padding: 18px 13px 24px; }
  .page-header h1 { font-size: 22px; }
}

/* ================== 滚动条 ================== */
.sidebar::-webkit-scrollbar,
.search-results::-webkit-scrollbar,
.markdown-body pre::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.sidebar::-webkit-scrollbar-thumb,
.search-results::-webkit-scrollbar-thumb,
.markdown-body pre::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ================== 锚点高亮 ================== */
@keyframes docFlash {
  0%   { background-color: rgba(255, 213, 0, .45); }
  100% { background-color: transparent; }
}
.flash {
  animation: docFlash 2s ease-out 1;
  border-radius: 4px;
}

/* ================== 打印 ================== */
@media print {
  .topbar, .sidebar, .overlay, .search-results, .lightbox,
  .pager, .site-footer { display: none !important; }
  body { background: #fff; }
  .layout { padding-top: 0; }
  .content { margin: 0; padding: 0; max-width: none; }
  .article { border: none; box-shadow: none; padding: 0; }
  .doc-figure img { box-shadow: none; }
}
