/* ═══════════════════════════════════════════════════════════
   审核手册 Wiki — Material Design 排版体系 v2.0
   字体：Inter (Headline) + Roboto (Body) + JetBrains Mono (Code)
   排版：Material Design Type Scale × 5 角色
   配色：蓝紫色系 · 柒鑫集团品牌色
   ═══════════════════════════════════════════════════════════ */

/* ── 0. Google Fonts 异步加载 ──
   display=swap → 系统字体先渲染，字体加载完成后无缝替换（FOUT）── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Roboto:wght@400;500&display=swap');

/* ── 1. 全局缩放 ── */
html {
  font-size: 112.5%;
}

/* ── 2. 字体家族 ──
   Headline/Title → Inter（几何无衬线，类 Google Sans）
   Body          → Roboto（中性理性）
   Code/Label    → JetBrains Mono（等宽对齐）
   中文兜底      → PingFang SC / Microsoft YaHei
   ─────────────────────────────────── */
body,
.md-nav,
.md-tabs,
.md-header,
.md-search,
.md-footer {
  font-family: 'Inter', 'Google Sans', -apple-system, BlinkMacSystemFont,
               'PingFang SC', 'SF Pro Display', 'Microsoft YaHei',
               'Noto Sans SC', sans-serif;
}

/* 正文区域：Roboto 优先 */
.md-typeset {
  font-family: 'Roboto', 'Inter', 'PingFang SC', 'SF Pro Text',
               'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;        /* MD Body 1.5 + 中文适应 */
  letter-spacing: 0;       /* MD 规范：正文字间距趋近 0 */
}

/* 代码 / 数据 */
code,
pre,
.md-typeset code,
.md-typeset pre > code {
  font-family: 'JetBrains Mono', 'Roboto Mono', 'SF Mono', 'Consolas',
               'Cascadia Code', 'Fira Code', monospace;
}

/* ── 3. Material Design Type Scale ──
   MD 五角色 → Markdown 映射：
     H1 → Headline Large   (1.65rem, 600, -0.01em)
     H2 → Title Large      (1.3rem,  500,  0)
     H3 → Title Medium     (1.1rem,  500,  0.005em)
     H4 → Title Small      (1rem,   500,  0.01em)
     H5 → Title Small-     (0.85rem, 500, 0.015em)
   ──────────────────────────────────── */

/* ── Headline Large ── */
.md-typeset h1 {
  font-family: 'Inter', 'Google Sans', -apple-system, 'PingFang SC',
               'SF Pro Display', sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 1.2em 0 0.5em;
  color: #1a237e;
}

/* ── Title Large（原 H2）─ */
.md-typeset h2 {
  font-family: 'Inter', 'Google Sans', -apple-system, 'PingFang SC',
               'SF Pro Display', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;        /* MD 规范：Medium */
  letter-spacing: 0;
  line-height: 1.35;
  margin: 1.5em 0 0.4em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid #e0e0e0;
  color: #283593;
}

/* ── Title Medium（原 H3） ─ */
.md-typeset h3 {
  font-family: 'Inter', 'Google Sans', -apple-system, 'PingFang SC',
               'SF Pro Display', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.4;
  margin: 1.2em 0 0.3em;
  color: #3949ab;
}

/* ── Title Small（原 H4） ─ */
.md-typeset h4 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
  margin: 1em 0 0.25em;
  color: #5c6bc0;
}

/* ── Title Small-（原 H5） ─ */
.md-typeset h5 {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.5;
  color: #666;
  text-transform: none;
}

/* ── 4. 正文段落 ── */
.md-typeset p {
  margin: 0.55em 0;
}

/* ── 5. 列表 ── */
.md-typeset ul,
.md-typeset ol {
  margin: 0.3em 0;
  padding-left: 1.5em;
}

.md-typeset li {
  margin: 0.15em 0;
  line-height: 1.6;
}

/* ── 6. 表格（Label 风格）──
   表头：Label Medium (0.75rem, 500, 0.02em) */
.md-typeset table:not([class]) {
  font-size: 0.8rem;
  border-collapse: collapse;
  border: none;
}

.md-typeset table:not([class]) th {
  font-family: 'Inter', 'Google Sans', -apple-system, 'PingFang SC',
               'SF Pro Display', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  background: #e8eaf6;
  color: #283593;
  padding: 0.5rem 0.6rem;
  border: none;
  border-bottom: 2px solid #c5cae9;
}

.md-typeset table:not([class]) td {
  padding: 0.4rem 0.6rem;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

.md-typeset table:not([class]) tr:nth-child(even) {
  background: #f5f5f5;
}

.md-typeset table:not([class]) tr:hover {
  background: #e3f2fd;
}

/* ── 7. 代码块 ── */
.md-typeset code {
  font-size: 0.8rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  padding: 0.1em 0.3em;
}

.md-typeset pre > code {
  font-size: 0.8rem;
  line-height: 1.5;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

/* ── 8. 引用块 ── */
.md-typeset blockquote {
  color: #555;
  border-left: 3px solid #9fa8da;
  padding: 0.2em 1em;
  margin: 0.6em 0;
  background: #f8f9ff;
  font-size: 0.85rem;
}

/* ── 9. 内容区宽度 ── */
.md-grid {
  max-width: 70rem;
}
.md-content__inner {
  padding-left: 1.2rem !important;
  padding-right: 1.2rem !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

/* ── 11. 导航栏 ── */
.md-nav__title {
  font-size: 0.8rem;
  font-weight: 600;
}

.md-nav__link {
  font-size: 0.8rem;
  line-height: 1.6;
}

.md-nav--secondary .md-nav__item {
  padding-left: 0.3rem;
}

/* ── 12. 顶部导航 ── */
.md-tabs__link {
  font-size: 0.8rem;
  font-weight: 500;
}

/* ── 13. 搜索框 ── */
.md-search__input {
  font-size: 0.85rem;
}

/* ── 14. 悬停过渡 ── */
.md-typeset a,
.md-typeset table:not([class]) tr,
.md-nav__link,
.md-tabs__link {
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* ── 15. 回到顶部 ── */
.md-top {
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════════════════
   首页卡片 — Liquid Glass 风格（Material Expressive）
   渐变容器 + 毛玻璃叠加 + 悬停指示条 + 光晕动画
   ═══════════════════════════════════════════════════════════ */

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.home-card {
  position: relative;
  border: 1px solid rgba(26, 35, 126, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  /* subtle full-card gradient base */
  background-image: linear-gradient(135deg, rgba(26,35,126,0.015), rgba(92,107,192,0.03));
}

/* ── 悬停: 上浮 + 光晕 + 左侧指示条 ── */
.home-card:hover {
  box-shadow: 0 8px 28px rgba(26, 35, 126, 0.12);
  transform: translateY(-4px);
  border-color: rgba(26, 35, 126, 0.18);
}

/* ── 左侧渐变指示条（悬停滑入） ── */
.home-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #1a237e, #5c6bc0, #b39ddb);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top center;
  transition: opacity 0.30s ease, transform 0.30s ease;
  z-index: 2;
}

.home-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

/* ── 光晕动画（悬停时） ── */
.home-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(92, 107, 192, 0.06) 0%,
    rgba(179, 157, 219, 0.03) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.50s ease;
  pointer-events: none;
  z-index: 0;
}

.home-card:hover::after {
  opacity: 1;
}

/* ── 卡片头部 ── */
.home-card-header {
  position: relative;
  z-index: 1;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.home-card-header h3 {
  font-family: 'Inter', 'Google Sans', -apple-system, 'PingFang SC', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  letter-spacing: 0.01em;
}

.home-card-icon {
  font-size: 1.4rem;
  line-height: 1;
}

/* ── 卡片主体 ── */
.home-card-body {
  position: relative;
  z-index: 1;
  padding: 1rem 1.2rem 1.2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

.home-card-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.home-card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.stat-label {
  font-size: 0.7rem;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  font-family: 'Inter', sans-serif;
}

.stat-badge {
  font-size: 0.7rem;
  padding: 0.15em 0.6em;
  border-radius: 10px;
  font-weight: 500;
}

.stat-badge.done {
  background: #e8f5e9;
  color: #2e7d32;
}

.stat-badge.pending {
  background: #fff3e0;
  color: #e65100;
}

.home-card-desc {
  font-size: 0.8rem;
  color: #666;
  margin: 0.5rem 0 0.8rem;
  line-height: 1.4;
}

.home-card-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #3949ab;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-card-link:hover {
  color: #1a237e;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   表格微交互 — 悬停渐变指示条（Gemini 启发）
   "Sharp leading edge diffusing at tail"
   注：不可用 tr::before 实现（会导致表格列宽错位）
   ✅ 改用 td:first-child background-image
   ═══════════════════════════════════════════════════════════ */

.md-typeset tbody tr {
  transition: background 0.20s ease;
}

.md-typeset tbody tr:hover {
  background: #eef0ff !important;
}

.md-typeset tbody tr:hover td:first-child {
  background-image: linear-gradient(180deg, #1a237e 0%, #5c6bc0 50%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 3px 100%;
  background-position: left center;
}

/* ═══════════════════════════════════════════════════════════
   标题锚点涟漪动画
   ═══════════════════════════════════════════════════════════ */

.md-typeset .headerlink {
  position: relative;
  transition: color 0.2s ease;
}

/* 点击涟漪 */
.md-typeset .headerlink:active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(26, 35, 126, 0.15);
  transform: translate(-50%, -50%);
  animation: ripple-expand 0.45s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-expand {
  0%   { width: 0; height: 0; opacity: 0.6; }
  100% { width: 40px; height: 40px; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   TOC 侧栏 — 当前高亮渐变指示条
   ═══════════════════════════════════════════════════════════ */

.md-nav__link--active {
  position: relative;
}

/* 左侧渐变竖线 */
.md-sidebar--secondary .md-nav__link--active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 2px;
  width: 3px;
  height: calc(100% - 4px);
  background: linear-gradient(180deg, #1a237e, #5c6bc0);
  border-radius: 0 2px 2px 0;
  transition: height 0.3s ease;
}

/* ── 二级标题缩进小圆点（进度指示） ── */
.md-sidebar--secondary .md-nav__item .md-nav__link {
  position: relative;
  padding-left: 0.4rem;
}

.md-sidebar--secondary .md-nav__item--nested .md-nav__link {
  padding-left: 0;
}

/* 已读/未读圆点 — 通过链接访问状态 */
.md-sidebar--secondary .md-nav__link:not(.md-nav__link--active) {
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.md-sidebar--secondary .md-nav__link:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   自定义页脚 — Porsche Design 风格
   匹配 LLM_Wiki_界面定版_v2.md 定版设计
   ═══════════════════════════════════════════════════════════ */

.footer-custom {
  width: 100%;
  padding: 0.75rem 0 0.4rem;
  text-align: center;
}

/* ── 搭建工具栈 ── */
.footer-tools {
  margin-bottom: 0.6rem;
}

.footer-tools-label {
  font-family: 'Inter', 'Google Sans', -apple-system, 'PingFang SC', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 0.3rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem 1rem;
  margin: 0.5rem 0 0;
}

.tool-item {
  text-align: center;
  padding: 0.4rem 0.3rem;
  border-radius: 8px;
  transition: background 0.15s;
}

.tool-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tool-name {
  font-family: 'Inter', 'Google Sans', -apple-system, 'PingFang SC', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

.tool-desc {
  font-family: 'Roboto', -apple-system, 'PingFang SC', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.15rem;
  line-height: 1.3;
}

/* ── 分隔线 ── */
.footer-divider {
  width: 3rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 auto 0.5rem;
}

/* ── 底栏：Qian Shaobo Design + 版权 ── */
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.footer-brand {
  font-family: 'Inter', 'Google Sans', -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
}

.footer-brand strong {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: inherit;
}

.footer-copyright {
  font-family: 'Inter', 'Google Sans', -apple-system, 'PingFang SC', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
}

/* ── 页脚深色区域 ── */
.md-footer-meta {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%) !important;
}

.md-footer-meta__inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   Wiki Q&A Widget — NotebookLM 风格
   ═══════════════════════════════════════════════════════════ */

/* ── 浮动按钮 ── */
#qa-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.06);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  color: #4285f4;
}

#qa-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 20px rgba(66,133,244,0.25);
  color: #1a73e8;
}

#qa-fab.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* ── 面板 ── */
#qa-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: calc(100vw - 0rem);
  bottom: 0;
  z-index: 9998;
  background: #fff;
  box-shadow: -8px 0 40px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: right 0.30s cubic-bezier(0.22, 1, 0.36, 1);
  border-left: none;
  border-radius: 0;
}

#qa-panel.open {
  right: 0;
}

/* ── 头部 ── */
#qa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.2rem 0.6rem 1.2rem;
  border-bottom: none;
  flex-shrink: 0;
}

#qa-title {
  font-family: 'Google Sans', 'Inter', -apple-system, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #202124;
  letter-spacing: -0.01em;
}

#qa-header-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

#qa-clear {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 0.3rem;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
  opacity: 0.5;
}

#qa-clear:hover {
  background: #f1f3f4;
  color: #5f6368;
  opacity: 1;
}

#qa-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 0.3rem 0.45rem;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}

#qa-close:hover {
  background: #f1f3f4;
  color: #5f6368;
}

/* ── 消息区 ── */
#qa-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scroll-behavior: smooth;
}

.qa-msg {
  max-width: 90%;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
  font-family: 'Google Sans', 'Inter', -apple-system, sans-serif;
  letter-spacing: 0.005em;
}

.qa-msg.user {
  align-self: flex-end;
  background: #e8f0fe;
  color: #1a73e8;
  border-bottom-right-radius: 4px;
  margin-left: 2rem;
}

.qa-msg.bot {
  align-self: flex-start;
  background: #fff;
  color: #202124;
  border-bottom-left-radius: 4px;
  margin-right: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

/* ── 加载动画（Gemini 三点脉冲）── */
.qa-dot-pulse {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.4rem 0;
}

.qa-dot-pulse span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4285f4;
  animation: qa-pulse 1.4s infinite ease-in-out;
}

.qa-dot-pulse span:nth-child(2) {
  animation-delay: 0.2s;
  background: #ea4335;
}

.qa-dot-pulse span:nth-child(3) {
  animation-delay: 0.4s;
  background: #fbbc04;
}

@keyframes qa-pulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.7); }
  40% { opacity: 1; transform: scale(1.1); }
}

/* ── 来源链接（行内跳转）── */
.qa-source-link {
  display: inline;
  color: #1a73e8;
  text-decoration: none;
  font-size: 0.8em;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
}

.qa-source-link:hover {
  color: #1557b0;
  text-decoration: underline;
}

/* ── 源高亮动画 ── */
.qa-highlight {
  background: #e8f0fe !important;
  transition: background 0.3s ease;
  border-radius: 4px;
  padding: 0 2px;
}

.qa-highlight-fade {
  background: transparent !important;
  transition: background 1s ease;
}

/* ── 输入区 ── */
#qa-input-area {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem 1.2rem;
  border-top: none;
  flex-shrink: 0;
}

#qa-input {
  flex: 1;
  border: 1px solid #dadce0;
  border-radius: 24px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-family: 'Google Sans', 'Inter', -apple-system, sans-serif;
  resize: none;
  outline: none;
  line-height: 1.4;
  color: #202124;
  background: #f8f9fa;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

#qa-input:focus {
  background: #fff;
  border-color: #4285f4;
  box-shadow: 0 0 0 2px rgba(66,133,244,0.15);
}

#qa-input::placeholder {
  color: #9aa0a6;
}

#qa-send {
  background: #4285f4;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 1px 3px rgba(66,133,244,0.3);
}

#qa-send:hover {
  background: #1a73e8;
  transform: scale(1.05);
}

#qa-send:active {
  transform: scale(0.95);
}

/* ═══════════════════════════════════════════════════════════
   阅读辅助工具：段落编号 + 进度条 + 行聚焦
   ═══════════════════════════════════════════════════════════ */

/* ── 段落编号 ── */
.heading-num {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 0.72em;
  font-weight: 500;
  color: #7986cb;
  opacity: 0.65;
  margin-right: 0.15em;
  user-select: none;
}

/* ── 阅读进度条 ── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a237e, #5c6bc0, #b39ddb, #7986cb, #1a237e);
  background-size: 200% 100%;
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   方向二：导航时效性徽标
   蓝点脉冲（有新内容）+ 琥珀光晕（待确认）
   ═══════════════════════════════════════════════════════════ */

/* ── 共用徽标底座 ── */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3px;
  margin-left: 6px;
  vertical-align: middle;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ── "有新内容" 蓝牌 ── */
.nav-badge--update {
  color: #fff;
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #42a5f5 100%);
  box-shadow: 0 1px 3px rgba(21, 101, 192, 0.35);
}

/* 脉冲动画：刚加载时呼吸两次 */
@keyframes badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.6); }
  50%  { box-shadow: 0 0 0 6px rgba(21, 101, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0); }
}

.nav-badge--update.badge-animate {
  animation: badge-pulse 1.2s ease 2;
}

/* 悬停时微放大 + 光晕 */
.nav-badge--update:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.5);
}

/* ── "待确认" 琥珀牌 ── */
.nav-badge--pending {
  color: #7c5800;
  background: linear-gradient(135deg, #ffb300 0%, #ffca28 50%, #ffe082 100%);
  box-shadow: 0 1px 3px rgba(255, 179, 0, 0.4);
}

/* 琥珀光晕呼吸 */
@keyframes badge-glow {
  0%   { box-shadow: 0 0 2px rgba(255, 179, 0, 0.3); }
  50%  { box-shadow: 0 0 8px rgba(255, 179, 0, 0.6); }
  100% { box-shadow: 0 0 2px rgba(255, 179, 0, 0.3); }
}

.nav-badge--pending.badge-animate {
  animation: badge-glow 2s ease infinite;
}

/* ── 父级导航项上的简约指示条 ── */
.nav-parent-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  flex-shrink: 0;
}

.nav-parent-indicator--update {
  background: #42a5f5;
  box-shadow: 0 0 4px rgba(66, 165, 245, 0.6);
}

.nav-parent-indicator--pending {
  background: #ffb300;
  box-shadow: 0 0 4px rgba(255, 179, 0, 0.6);
}

/* ── 导航项行内定位适配 ── */
.md-nav__link {
  display: inline-flex !important;
  align-items: center !important;
}

/* 确保徽标不破坏导航布局 */
.md-nav__item .nav-badge {
  order: 99;
}

/* 深色侧栏下适配 */
[data-md-color-scheme="slate"] .nav-badge--update {
  box-shadow: 0 1px 4px rgba(66, 165, 245, 0.5);
}

[data-md-color-scheme="slate"] .nav-badge--pending {
  box-shadow: 0 1px 4px rgba(255, 179, 0, 0.5);
}

/* ── 左侧栏：隐藏当前页的子标题列表 ── */
.md-nav--primary a[href^="#"] {
  display: none !important;
}

/* ── 左侧栏：隐藏页面标题指示器（与页面链接重复）── */
.md-nav--primary label[for="__toc"] {
  display: none !important;
}

/* ── 隐藏旧的段落编号（兜底清除）── */
.heading-num {
  display: none !important;
}
