  /* 笔记 · 暖色纸感（与 AI 写作工作区品牌一致） */
  html.web-page-notes,
  html:has(.note-page) {
    --note-accent: #b45309;
    --web-ui-accent: var(--note-accent);
    --web-scroll-thumb: rgba(120, 113, 108, 0.36);
    --web-scroll-thumb-hover: rgba(180, 83, 9, 0.44);
    --web-scroll-thumb-active: rgba(146, 64, 14, 0.56);
  }
  html.web-page-notes,
  html.web-page-notes body,
  html:has(.note-page),
  html:has(.note-page) body {
    background: #f5f0e8 !important;
    background-color: #f5f0e8 !important;
    background-image: none !important;
  }
  html.web-theme-dark.web-page-notes,
  html.web-theme-dark:has(.note-page) {
    --note-accent: #fbbf24;
    --web-ui-accent: var(--note-accent);
    --web-scroll-thumb: rgba(168, 162, 158, 0.34);
    --web-scroll-thumb-hover: rgba(251, 191, 36, 0.44);
    --web-scroll-thumb-active: rgba(251, 191, 36, 0.6);
  }
  html.web-theme-dark.web-page-notes,
  html.web-theme-dark.web-page-notes body,
  html.web-theme-dark:has(.note-page),
  html.web-theme-dark:has(.note-page) body {
    background: #1a1814 !important;
    background-color: #1a1814 !important;
    background-image: none !important;
  }

  @supports (color: color-mix(in srgb, white, black)) {
    html.web-page-notes,
    html:has(.note-page) {
      --web-scroll-thumb: color-mix(in srgb, var(--note-accent) 32%, transparent);
      --web-scroll-thumb-hover: color-mix(in srgb, var(--note-accent) 48%, transparent);
      --web-scroll-thumb-active: color-mix(in srgb, var(--note-accent) 66%, transparent);
    }
    html.web-theme-dark.web-page-notes,
    html.web-theme-dark:has(.note-page) {
      --web-scroll-thumb: color-mix(in srgb, var(--note-accent) 30%, transparent);
      --web-scroll-thumb-hover: color-mix(in srgb, var(--note-accent) 46%, transparent);
      --web-scroll-thumb-active: color-mix(in srgb, var(--note-accent) 62%, transparent);
    }
  }

  html.web-page-notes .web-footer,
  html:has(.note-page) .web-footer {
    border-color: rgba(120, 113, 108, 0.18);
    background: rgba(255, 254, 249, 0.72);
    color: #78716c;
  }
  html.web-theme-dark.web-page-notes .web-footer,
  html.web-theme-dark:has(.note-page) .web-footer {
    border-color: rgba(168, 162, 158, 0.2);
    background: rgba(42, 39, 34, 0.55);
    color: #a8a29e;
  }

  .note-page {
    --note-canvas-bg: #f5f0e8;
    --note-paper-bg: #fffef9;
    --note-accent: #b45309;
    --note-accent-soft: rgba(180, 83, 9, 0.12);
    --note-border: rgba(120, 113, 108, 0.18);
    --note-text-body: #292524;
    --note-text-muted: #78716c;
    --note-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", Georgia, "Times New Roman", serif;
    --note-gutter-x: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    --note-shell-pad-x: 20px;
    --note-shell-pad-y: 18px;
    --note-section-gap: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px var(--note-gutter-x) 36px;
    box-sizing: border-box;
    background: var(--note-canvas-bg);
  }
  html.web-theme-dark .note-page {
    --note-canvas-bg: #1a1814;
    --note-paper-bg: #2a2722;
    --note-accent: #fbbf24;
    --note-accent-soft: rgba(251, 191, 36, 0.14);
    --note-border: rgba(168, 162, 158, 0.2);
    --note-text-body: #e7e5e4;
    --note-text-muted: #a8a29e;
  }

  /* ── 页头 / 内容区统一外框宽度 ── */
  .note-hero,
  .note-toolbar,
  .note-sheet,
  .note-read-stage,
  .note-read-paper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }

  /* ── 页头 ── */
  .note-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: var(--note-section-gap);
    padding: var(--note-shell-pad-y) var(--note-shell-pad-x);
    border-radius: 18px;
    border: 1px solid var(--note-border);
    background: var(--note-paper-bg);
    box-shadow: 0 4px 24px rgba(28, 25, 23, 0.06);
  }
  html.web-theme-dark .note-hero {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  }
  .note-hero-text {
    min-width: 0;
    flex: 1 1 240px;
  }
  .note-page-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--web-text);
  }
  .note-page-sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--note-text-muted);
  }
  .note-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .note-create-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 8px 22px rgba(180, 83, 9, 0.28);
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
  }
  .note-create-btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(180, 83, 9, 0.34);
    color: #fff;
  }
  .note-create-btn:active {
    transform: translateY(0);
  }

  .note-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--note-border);
    background: rgba(255, 254, 249, 0.85);
    color: var(--note-text-body);
    box-shadow: 0 2px 10px rgba(28, 25, 23, 0.05);
    transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease, box-shadow 0.14s ease;
  }
  html.web-theme-dark .note-btn {
    background: rgba(42, 39, 34, 0.72);
  }
  .note-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(28, 25, 23, 0.08);
  }
  .note-btn--ghost:hover {
    border-color: rgba(120, 113, 108, 0.32);
    background: rgba(120, 113, 108, 0.08);
  }
  .note-btn--primary {
    border-color: rgba(180, 83, 9, 0.28);
    color: var(--note-accent);
    background: var(--note-accent-soft);
  }
  .note-btn--primary:hover {
    border-color: rgba(180, 83, 9, 0.42);
    background: rgba(180, 83, 9, 0.16);
    color: var(--note-accent);
  }
  html.web-theme-dark .note-btn--primary:hover {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.36);
    color: var(--note-accent);
  }
  .note-btn--danger {
    border-color: rgba(220, 38, 38, 0.22);
    color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
  }
  .note-btn--danger:hover {
    border-color: rgba(220, 38, 38, 0.38);
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
  }
  html.web-theme-dark .note-btn--danger {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(248, 113, 113, 0.1);
  }
  html.web-theme-dark .note-btn--danger:hover {
    color: #fecaca;
    background: rgba(248, 113, 113, 0.16);
  }

  /* ── 搜索栏（与 hero 同宽卡片） ── */
  .note-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: var(--note-section-gap);
    padding: 12px var(--note-shell-pad-x);
    border-radius: 18px;
    border: 1px solid var(--note-border);
    background: var(--note-paper-bg);
    box-shadow: 0 4px 24px rgba(28, 25, 23, 0.06);
  }
  html.web-theme-dark .note-toolbar {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  }
  .note-search {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .note-search .mdi {
    color: var(--note-accent);
    font-size: 18px;
    opacity: 0.88;
  }
  .note-search__input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
  }
  .note-search__input::placeholder {
    color: var(--note-text-muted);
    font-weight: 600;
  }
  .note-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--note-text-muted);
    white-space: nowrap;
  }

  /* ── 列表纸页 ── */
  .note-sheet {
    border-radius: 18px;
    border: 1px solid var(--note-border);
    background: var(--note-paper-bg);
    box-shadow: 0 4px 24px rgba(28, 25, 23, 0.06);
    overflow: hidden;
    position: relative;
  }
  html.web-theme-dark .note-sheet {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  }
  .note-sheet__inner {
    position: relative;
  }

  .note-li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    margin: 0;
    color: inherit;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease, box-shadow 0.14s ease;
  }
  .note-li + .note-li {
    border-top: 1px dashed rgba(120, 113, 108, 0.14);
    border-radius: 0;
    margin-top: 0;
  }
  .note-li:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }
  .note-li:last-child {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }
  .note-li:hover {
    background: rgba(180, 83, 9, 0.06);
    border-color: rgba(180, 83, 9, 0.12);
    transform: translateX(2px);
  }
  html.web-theme-dark .note-li:hover {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.14);
  }
  .note-li__ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(180, 83, 9, 0.18);
    background: rgba(180, 83, 9, 0.08);
    color: var(--note-accent);
  }
  html.web-theme-dark .note-li__ico {
    border-color: rgba(251, 191, 36, 0.22);
    background: rgba(251, 191, 36, 0.1);
  }
  .note-li__ico .mdi {
    font-size: 21px;
    line-height: 1;
  }
  .note-li__main {
    flex: 1 1 auto;
    min-width: 0;
  }
  .note-li__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--web-text);
  }
  .note-li__badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    flex: 0 0 auto;
    border: 1px solid rgba(120, 113, 108, 0.18);
    background: rgba(120, 113, 108, 0.08);
    color: var(--note-text-muted);
  }
  .note-li__badge--pending {
    border-color: rgba(180, 83, 9, 0.24);
    background: rgba(180, 83, 9, 0.1);
    color: var(--note-accent);
  }
  .note-li__badge--fail {
    border-color: rgba(220, 38, 38, 0.22);
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
  }
  html.web-theme-dark .note-li__badge--fail {
    color: #fca5a5;
  }
  .note-li__meta {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--note-text-muted);
  }
  .note-li__go {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid var(--note-border);
    background: rgba(255, 254, 249, 0.72);
    color: var(--note-text-muted);
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
  }
  html.web-theme-dark .note-li__go {
    background: rgba(42, 39, 34, 0.55);
  }
  .note-li:hover .note-li__go {
    border-color: rgba(180, 83, 9, 0.28);
    background: rgba(180, 83, 9, 0.1);
    color: var(--note-accent);
  }

  .note-empty {
    position: relative;
    padding: 48px 20px;
    text-align: center;
    color: var(--note-text-muted);
  }
  .note-empty__ico {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    border: 1px dashed var(--note-border);
    background: rgba(180, 83, 9, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--note-accent);
  }
  .note-empty__ico .mdi {
    font-size: 26px;
  }
  .note-empty__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--web-text);
    margin-bottom: 4px;
  }

  /* ── 分页（与发现页逻辑一致，暖色纸感样式） ── */
  .note-pager {
    padding: 14px 0 10px;
    margin-top: 4px;
    border-top: 1px dashed rgba(120, 113, 108, 0.14);
  }
  html.web-theme-dark .note-pager {
    border-top-color: rgba(168, 162, 158, 0.16);
  }
  .note-pager .web-pager {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .note-pager .web-pager .pagination {
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
  }
  .note-pager .web-pager .page-item {
    margin: 0 !important;
  }
  .note-pager .web-pager .page-link {
    border-radius: 999px !important;
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.01em;
    border: 1px solid var(--note-border) !important;
    background: rgba(255, 254, 249, 0.88);
    color: var(--note-text-body) !important;
    box-shadow: 0 4px 14px rgba(28, 25, 23, 0.06);
    transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
  }
  html.web-theme-dark .note-pager .web-pager .page-link {
    background: rgba(42, 39, 34, 0.72);
    color: var(--note-text-body) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  }
  .note-pager .web-pager .page-link:hover {
    transform: translateY(-1px);
    border-color: rgba(180, 83, 9, 0.32) !important;
    color: var(--note-accent) !important;
    background: rgba(180, 83, 9, 0.08);
    box-shadow: 0 8px 22px rgba(180, 83, 9, 0.16);
  }
  html.web-theme-dark .note-pager .web-pager .page-link:hover {
    border-color: rgba(251, 191, 36, 0.34) !important;
    background: rgba(251, 191, 36, 0.1);
    color: var(--note-accent) !important;
    box-shadow: 0 8px 22px rgba(251, 191, 36, 0.14);
  }
  .note-pager .web-pager .page-link:active {
    transform: translateY(0);
  }
  .note-pager .web-pager .page-item.disabled .page-link {
    opacity: 0.5;
    box-shadow: none;
    transform: none;
    cursor: default;
    background: rgba(120, 113, 108, 0.06);
    color: var(--note-text-muted) !important;
  }
  .note-pager .web-pager .page-item.active .page-link {
    border-color: rgba(180, 83, 9, 0.42) !important;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(180, 83, 9, 0.32);
    transform: none;
  }
  html.web-theme-dark .note-pager .web-pager .page-item.active .page-link {
    border-color: rgba(251, 191, 36, 0.48) !important;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 22px rgba(251, 191, 36, 0.22);
  }
  .note-pager .web-pager .page-link:focus {
    outline: none;
  }
  .note-pager .web-pager .page-link:focus-visible {
    outline: 2px solid rgba(180, 83, 9, 0.45);
    outline-offset: 2px;
  }
  html.web-theme-dark .note-pager .web-pager .page-link:focus-visible {
    outline-color: rgba(251, 191, 36, 0.5);
  }

  /* ── 详情阅读区（与顶部 hero 同宽、同内边距） ── */
  .note-read-stage {
    display: block;
    padding: 0;
  }
  .note-read-paper {
    padding: calc(var(--note-shell-pad-y) + 10px) var(--note-shell-pad-x) 36px;
    border-radius: 18px;
    border: 1px solid var(--note-border);
    background: var(--note-paper-bg);
    box-shadow: 0 4px 24px rgba(28, 25, 23, 0.06);
    position: relative;
  }
  html.web-theme-dark .note-read-paper {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  }

  .note-doc {
    position: relative;
  }
  .note-doc__title {
    margin: 0;
    font-family: var(--note-serif);
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--web-text);
  }
  .note-doc__meta {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--note-text-muted);
  }
  .note-doc__meta .mdi {
    font-size: 16px;
    color: var(--note-accent);
    opacity: 0.88;
  }
  .note-doc__sep {
    margin: 20px 0 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 113, 108, 0.22), transparent);
  }
  html.web-theme-dark .note-doc__sep {
    background: linear-gradient(90deg, transparent, rgba(168, 162, 158, 0.22), transparent);
  }
  .note-doc__body {
    padding-bottom: 4px;
    font-family: var(--note-serif);
    font-size: 16px;
    line-height: 1.85;
    color: var(--note-text-body);
    word-break: break-word;
  }
  .note-doc__body.web-md p {
    margin-bottom: 0.85em;
  }
  .note-doc__body.web-md h1,
  .note-doc__body.web-md h2,
  .note-doc__body.web-md h3 {
    font-family: var(--note-serif);
    font-weight: 800;
    margin-top: 1.2em;
    margin-bottom: 0.55em;
    line-height: 1.35;
  }
  .note-doc__body.web-md code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    padding: 0.12em 0.38em;
    border-radius: 6px;
    background: rgba(180, 83, 9, 0.08);
    color: #92400e;
    border: 1px solid rgba(180, 83, 9, 0.14);
  }
  html.web-theme-dark .note-doc__body.web-md code {
    background: rgba(251, 191, 36, 0.1);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.18);
  }
  .note-doc__body .web-code-block {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    border-color: var(--note-border);
    background: rgba(120, 113, 108, 0.04);
  }
  .note-doc__body .web-code-head {
    background: linear-gradient(180deg, rgba(180, 83, 9, 0.08), rgba(180, 83, 9, 0.03));
    border-bottom-color: var(--note-border);
  }
  .note-doc__body .web-md-table {
    border-color: var(--note-border);
  }
  .note-doc__body .web-md-table th,
  .note-doc__body .web-md-table td {
    border-color: var(--note-border);
  }
  .note-doc__body .web-mermaid-wrap {
    border-color: var(--note-border);
    background: rgba(120, 113, 108, 0.04);
  }
  .note-read-hint {
    position: relative;
    margin-top: 14px;
    font-size: 13px;
    color: var(--note-text-muted);
    text-align: center;
  }

  /* ── 文章 Wiki 模式（桌面：正文+目录双栏；移动：底部抽屉） ── */
  .note-read-stage {
    position: relative;
  }
  .note-wiki-aside {
    display: none;
    z-index: 15;
    width: 220px;
    overflow: visible;
    padding: 0;
    pointer-events: auto;
  }
  @media (min-width: 961px) {
    .note-page.is-wiki-mode .note-read-stage {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 220px;
      gap: 16px;
      align-items: start;
    }
    .note-page.is-wiki-mode .note-read-paper {
      grid-column: 1;
      min-width: 0;
    }
    .note-page.is-wiki-mode .note-wiki-aside.is-visible {
      display: block;
      grid-column: 2;
      grid-row: 1;
      position: sticky;
      top: var(--note-wiki-stick-top, 84px);
      width: 220px;
      align-self: start;
      will-change: top;
    }
  }
  @media (max-width: 960px) {
    .note-wiki-aside {
      position: fixed;
      will-change: top, left;
    }
  }
  .note-page.is-wiki-mode .note-wiki-aside.is-visible {
    display: block;
  }
  .note-page.is-wiki-mode .note-wiki-aside.is-visible .note-wiki-nav {
    height: calc(100vh - var(--web-nav-height, 64px) - 32px);
    max-height: calc(100vh - var(--web-nav-height, 64px) - 32px);
  }
  .note-wiki-nav {
    --note-wiki-pad-x: 12px;
    --note-wiki-head-icon: 18px;
    --note-wiki-head-gap: 6px;
    --note-wiki-text-x: calc(var(--note-wiki-pad-x) + var(--note-wiki-head-icon) + var(--note-wiki-head-gap));
    max-height: calc(100vh - var(--web-nav-height, 64px) - 32px);
    padding: 12px var(--note-wiki-pad-x) 10px;
    border-radius: 14px;
    border: 1px solid var(--note-border);
    background: color-mix(in srgb, var(--note-paper-bg) 94%, var(--note-accent-soft));
    box-shadow: 0 4px 20px rgba(28, 25, 23, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  html.web-theme-dark .note-wiki-nav {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.32);
  }
  .note-wiki-nav__head {
    display: flex;
    align-items: center;
    gap: var(--note-wiki-head-gap);
    flex-shrink: 0;
    margin: 0;
    padding: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--web-text);
    line-height: 1.35;
  }
  .note-wiki-nav__head .mdi {
    flex-shrink: 0;
    width: var(--note-wiki-head-icon);
    font-size: var(--note-wiki-head-icon);
    line-height: 1;
    color: var(--note-accent);
    text-align: center;
  }
  .note-wiki-nav__list,
  .note-wiki-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .note-wiki-nav > .web-custom-scroll-wrap {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
  }
  .note-wiki-nav__list {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    /* 勿用 scrollbar-width:thin，Chromium 会禁用下方 ::-webkit-scrollbar 胶囊圆角 */
    -ms-overflow-style: auto;
  }
  .note-wiki-nav__list::-webkit-scrollbar {
    width: 6px;
  }
  .note-wiki-nav__list::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
  }
  .note-wiki-nav__list::-webkit-scrollbar-thumb {
    background: var(--web-scroll-thumb);
    border-radius: 999px;
    min-height: 28px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }
  .note-wiki-nav__list::-webkit-scrollbar-thumb:hover {
    background: var(--web-scroll-thumb-hover);
    background-clip: padding-box;
  }
  .note-wiki-nav__list::-webkit-scrollbar-thumb:active {
    background: var(--web-scroll-thumb-active);
    background-clip: padding-box;
  }
  @supports (-moz-appearance: none) {
    .note-wiki-nav__list {
      scrollbar-width: thin;
      scrollbar-color: var(--web-scroll-thumb) transparent;
    }
  }
  .note-wiki-nav__link,
  .note-wiki-panel__link {
    display: block;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--note-text-body);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }
  .note-wiki-nav__link {
    padding-left: var(--note-wiki-text-x);
  }
  .note-wiki-nav__link.is-h3,
  .note-wiki-panel__link.is-h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--note-text-muted);
  }
  .note-wiki-nav__link.is-h3 {
    padding-left: calc(var(--note-wiki-text-x) + 10px);
  }
  .note-wiki-panel__link.is-h3 {
    padding-left: 18px;
  }
  .note-wiki-nav__link:hover,
  .note-wiki-panel__link:hover {
    background: var(--note-accent-soft);
    color: var(--note-accent);
    border-color: color-mix(in srgb, var(--note-accent) 22%, transparent);
  }
  .note-wiki-nav__link.is-active,
  .note-wiki-panel__link.is-active {
    background: var(--note-accent-soft);
    color: var(--note-accent);
    border-color: color-mix(in srgb, var(--note-accent) 30%, transparent);
  }
  .note-doc__body .note-wiki-heading {
    scroll-margin-top: calc(var(--web-nav-height, 64px) + 18px);
  }
  .note-wiki-fab {
    display: none;
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid var(--note-border);
    border-radius: 999px;
    background: var(--note-paper-bg);
    color: var(--note-accent);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.12);
    cursor: pointer;
  }
  html.note-wiki-active .note-wiki-fab.is-mobile-visible {
    display: inline-flex;
  }
  html.web-theme-dark .note-wiki-fab {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
  }
  .note-wiki-fab .mdi {
    font-size: 18px;
  }
  .note-wiki-panel {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  .note-wiki-panel.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
  }
  .note-wiki-panel__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(28, 25, 23, 0.38);
    cursor: pointer;
  }
  html.web-theme-dark .note-wiki-panel__backdrop {
    background: rgba(0, 0, 0, 0.55);
  }
  .note-wiki-panel__sheet {
    position: relative;
    width: min(100%, 480px);
    height: min(72vh, 560px);
    max-height: min(72vh, 560px);
    min-height: 280px;
    margin: 0 12px 12px;
    padding: 0 0 12px;
    border-radius: 16px 16px 14px 14px;
    border: 1px solid var(--note-border);
    background: var(--note-paper-bg);
    box-shadow: 0 -8px 40px rgba(28, 25, 23, 0.14);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(12px);
    transition: transform 0.22s ease;
    box-sizing: border-box;
  }
  .note-wiki-panel.is-open .note-wiki-panel__sheet {
    transform: translateY(0);
  }
  .note-wiki-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    padding: 14px 14px 10px;
    border-bottom: 1px solid var(--note-border);
  }
  .note-wiki-panel__head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--web-text);
  }
  .note-wiki-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--note-border);
    border-radius: 8px;
    background: transparent;
    color: var(--note-text-muted);
    cursor: pointer;
  }
  .note-wiki-panel__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px 4px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: auto;
  }
  .note-wiki-panel__list::-webkit-scrollbar {
    width: 6px;
  }
  .note-wiki-panel__list::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
  }
  .note-wiki-panel__list::-webkit-scrollbar-thumb {
    background: var(--web-scroll-thumb);
    border-radius: 999px;
    min-height: 28px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }
  .note-wiki-panel__list::-webkit-scrollbar-thumb:hover {
    background: var(--web-scroll-thumb-hover);
    background-clip: padding-box;
  }
  .note-wiki-panel__list::-webkit-scrollbar-thumb:active {
    background: var(--web-scroll-thumb-active);
    background-clip: padding-box;
  }
  @supports (-moz-appearance: none) {
    .note-wiki-panel__list {
      scrollbar-width: thin;
      scrollbar-color: var(--web-scroll-thumb) transparent;
    }
  }
  @media (max-width: 960px) {
    .note-page.is-wiki-mode .note-wiki-aside,
    html.note-wiki-active .note-wiki-aside {
      display: none !important;
    }
    html.note-wiki-active .note-wiki-fab.is-mobile-visible {
      display: inline-flex !important;
      z-index: 100;
    }
    .note-wiki-panel__sheet {
      width: 100%;
      max-width: none;
      margin: 0;
      height: min(78vh, 640px);
      max-height: min(78vh, 640px);
      background-color: #dedede;
      min-height: min(52vh, 360px);
      border-radius: 16px 16px 0 0;
      padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
    .note-wiki-panel__list {
      padding: 8px 12px 6px;
    }
    .note-wiki-panel__link {
      padding: 10px 8px;
      font-size: 14px;
    }
    .note-wiki-panel__link.is-h3 {
      padding-left: 20px;
      font-size: 13px;
    }
  }

  @media (min-width: 961px) {
    html.note-wiki-active .note-wiki-fab.is-mobile-visible {
      display: none !important;
    }
  }

  /* ── 编辑笔记弹窗 · 纸感 ── */
  #webNoteEditorBackdrop.web-note-editor-backdrop {
    background: rgba(28, 25, 23, 0.34);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  html.web-theme-dark #webNoteEditorBackdrop.web-note-editor-backdrop {
    background: rgba(0, 0, 0, 0.58);
  }

  #webNoteEditorPanel.web-note-editor-panel {
    --note-canvas-bg: #f5f0e8;
    --note-paper-bg: #fffef9;
    --note-accent: #b45309;
    --note-accent-soft: rgba(180, 83, 9, 0.12);
    --note-border: rgba(120, 113, 108, 0.18);
    --note-text-body: #292524;
    --note-text-muted: #78716c;
    --note-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", Georgia, "Times New Roman", serif;
    --web-scroll-thumb: color-mix(in srgb, var(--note-accent) 34%, rgba(120, 113, 108, 0.14));
    --web-scroll-thumb-hover: color-mix(in srgb, var(--note-accent) 50%, rgba(120, 113, 108, 0.10));
    --web-scroll-thumb-active: #92400e;
    background: var(--note-paper-bg);
    border: 1px solid var(--note-border);
    box-shadow: 0 16px 56px rgba(28, 25, 23, 0.16);
  }
  html.web-theme-dark #webNoteEditorPanel.web-note-editor-panel {
    --note-paper-bg: #2a2722;
    --note-accent: #fbbf24;
    --note-accent-soft: rgba(251, 191, 36, 0.14);
    --note-border: rgba(168, 162, 158, 0.2);
    --note-text-body: #e7e5e4;
    --note-text-muted: #a8a29e;
    --web-scroll-thumb: color-mix(in srgb, var(--note-accent) 40%, rgba(255, 255, 255, 0.08));
    --web-scroll-thumb-hover: color-mix(in srgb, var(--note-accent) 58%, rgba(255, 255, 255, 0.06));
    --web-scroll-thumb-active: #d97706;
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.48);
  }

  #webNoteEditorPanel.web-note-editor-panel .web-post-editor-head {
    background: var(--note-paper-bg);
    background-image: linear-gradient(180deg, rgba(180, 83, 9, 0.07), transparent 72%);
    border-bottom-color: var(--note-border);
  }
  html.web-theme-dark #webNoteEditorPanel.web-note-editor-panel .web-post-editor-head {
    background-image: linear-gradient(180deg, rgba(251, 191, 36, 0.1), transparent 75%);
  }
  #webNoteEditorPanel.web-note-editor-panel .web-post-editor-head .t {
    font-family: var(--note-serif);
    letter-spacing: 0.01em;
  }
  #webNoteEditorPanel.web-note-editor-panel .web-post-editor-close {
    border-color: var(--note-border);
    background: rgba(120, 113, 108, 0.06);
    color: var(--note-text-muted);
  }
  #webNoteEditorPanel.web-note-editor-panel .web-post-editor-close:hover {
    border-color: rgba(180, 83, 9, 0.32);
    background: rgba(180, 83, 9, 0.08);
    color: var(--note-accent);
  }
  html.web-theme-dark #webNoteEditorPanel.web-note-editor-panel .web-post-editor-close:hover {
    border-color: rgba(251, 191, 36, 0.32);
    background: rgba(251, 191, 36, 0.1);
    color: var(--note-accent);
  }

  #webNoteEditorPanel.web-note-editor-panel .web-post-editor-body {
    background: var(--note-paper-bg);
    padding-top: 0;
  }
  #webNoteEditorPanel.web-note-editor-panel #noteTitle {
    border: none;
    border-bottom: 1px solid var(--note-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--note-serif);
    font-size: 20px;
    font-weight: 800;
    padding: 14px 0 12px;
    color: var(--web-text);
  }
  #webNoteEditorPanel.web-note-editor-panel #noteTitle:focus {
    border-bottom-color: rgba(180, 83, 9, 0.42);
    box-shadow: none;
  }
  #webNoteEditorPanel.web-note-editor-panel #noteTitle::placeholder {
    color: var(--note-text-muted);
    font-weight: 600;
  }

  #webNoteEditorPanel.web-note-editor-panel .web-rt-toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 12px !important;
    padding: 8px 16px;
    background: var(--note-paper-bg) !important;
    border-color: var(--note-border) !important;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: 0 1px 0 var(--note-border);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html.web-theme-dark #webNoteEditorPanel.web-note-editor-panel .web-rt-toolbar {
    background: var(--note-paper-bg) !important;
  }
  #webNoteEditorPanel.web-note-editor-panel .web-rt-toolbar .btn-outline-secondary {
    border-color: var(--note-border);
    background: rgba(255, 254, 249, 0.72);
    color: var(--note-text-body);
  }
  #webNoteEditorPanel.web-note-editor-panel .web-rt-toolbar .btn-outline-secondary:hover {
    border-color: rgba(180, 83, 9, 0.28);
    background: rgba(180, 83, 9, 0.08);
    color: var(--note-accent);
  }
  html.web-theme-dark #webNoteEditorPanel.web-note-editor-panel .web-rt-toolbar .btn-outline-secondary {
    background: rgba(42, 39, 34, 0.55);
    color: var(--note-text-body);
  }
  html.web-theme-dark #webNoteEditorPanel.web-note-editor-panel .web-rt-toolbar .btn-outline-secondary:hover {
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.1);
    color: var(--note-accent);
  }

  #webNoteEditorPanel.web-note-editor-panel #rtEditor {
    background: rgba(255, 254, 249, 0.96) !important;
    border-color: var(--note-border) !important;
    border-radius: 12px !important;
    font-family: var(--note-serif);
    font-size: 15px;
    line-height: 1.78;
    color: var(--note-text-body);
  }
  html.web-theme-dark #webNoteEditorPanel.web-note-editor-panel #rtEditor {
    background: rgba(33, 31, 26, 0.72) !important;
  }
  #webNoteEditorPanel.web-note-editor-panel #rtMarkdownSource {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    border-color: var(--note-border);
    background: rgba(120, 113, 108, 0.04);
    border-radius: 12px;
  }

  #webNoteEditorPanel.web-note-editor-panel .btn.btn-primary {
    border: 1px solid rgba(180, 83, 9, 0.38);
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 8px 22px rgba(180, 83, 9, 0.28);
    font-weight: 800;
  }
  #webNoteEditorPanel.web-note-editor-panel .btn.btn-primary:hover {
    filter: brightness(1.04);
    box-shadow: 0 10px 26px rgba(180, 83, 9, 0.34);
  }
  #webNoteEditorPanel.web-note-editor-panel > .web-modal-foot {
    flex-shrink: 0;
    padding: 12px 16px;
    border-top: 1px solid var(--note-border);
    background: var(--note-paper-bg);
    box-shadow: 0 -10px 24px rgba(28, 25, 23, 0.06);
  }
  #webNoteEditorPanel.web-note-editor-panel > .web-note-editor-foot .web-modal-foot-actions {
    width: 100%;
    align-items: center;
  }
  #webNoteEditorPanel.web-note-editor-panel .web-note-editor-foot-tip {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 12px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--note-text-muted);
    text-align: left;
  }
  html.web-theme-dark #webNoteEditorPanel.web-note-editor-panel > .web-modal-foot {
    box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.35);
  }
  #webNoteEditorPanel.web-note-editor-panel #noteEditorHint {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: 12px;
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
  }
  #webNoteEditorPanel.web-note-editor-panel #noteEditorHint:empty {
    display: none;
  }
  #webNoteEditorPanel.web-note-editor-panel > .web-modal-foot #submitNote {
    border-radius: 999px;
    min-width: 88px;
  }
  #webNoteEditorPanel.web-note-editor-panel .muted {
    color: var(--note-text-muted) !important;
  }
