.niaodun-source-docs { background: #f7f8fa; }
.niaodun-source-docs [class*="cluetalk"],
.niaodun-source-docs iframe[src*="cluetalk"] { display: none !important; }
.niaodun-docs-page { min-height: calc(100vh - 64px); background: #f7f8fa; color: #27272a; }
.niaodun-docs-layout { display: flex; width: min(calc(100% - 48px), 1320px); min-height: calc(100vh - 64px); margin: 0 auto; align-items: flex-start; }

.niaodun-docs-sidebar { position: sticky; top: 64px; width: 260px; height: calc(100vh - 64px); flex-shrink: 0; overflow-y: auto; border-right: 1px solid #e4e4e7; background: #f7f8fa; padding: 24px 10px 28px 2px; }
.niaodun-docs-sidebar__head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 12px; }
.niaodun-docs-sidebar__head p { margin: 0; color: #71717a; font-size: 13px; font-weight: 600; }
.niaodun-docs-sidebar__head button { display: none; color: #71717a; font-size: 28px; line-height: 1; }
.niaodun-docs-sidebar nav { display: flex; flex-direction: column; }
.niaodun-docs-home { display: block; border-radius: 7px; padding: 10px 16px; color: #52525b; font-size: 14px; font-weight: 500; }
.niaodun-docs-home:hover,
.niaodun-docs-home.is-active { background: #fff; color: #0891b2; }
.niaodun-docs-group { border-bottom: 1px solid #e4e4e7; }
.niaodun-docs-group > button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 15px 16px; color: #3f3f46; font-size: 14px; font-weight: 600; text-align: left; transition: color 180ms ease, background 180ms ease; }
.niaodun-docs-group > button:hover { background: rgba(255,255,255,.7); color: #0891b2; }
.niaodun-docs-group > button svg { width: 15px; height: 15px; color: #a1a1aa; transition: transform 180ms ease; }
.niaodun-docs-group.is-open > button svg { transform: rotate(180deg); }
.niaodun-docs-subnav { display: none; padding: 0 10px 12px 20px; }
.niaodun-docs-group.is-open .niaodun-docs-subnav { display: flex; flex-direction: column; }
.niaodun-docs-subnav a { border-left: 1px solid #d4d4d8; padding: 7px 10px; color: #71717a; font-size: 13px; line-height: 1.4; }
.niaodun-docs-subnav a:hover,
.niaodun-docs-subnav a.is-active { border-left-color: #06b6d4; color: #0891b2; }
.niaodun-docs-subheading { padding: 9px 10px 3px; color: #a1a1aa; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.niaodun-docs-empty { border-left: 1px solid #e4e4e7; padding: 7px 10px; color: #a1a1aa; font-size: 12px; }

.niaodun-docs-article { min-width: 0; flex: 1; align-self: stretch; background: #fff; padding: 32px 40px 72px; }
.niaodun-docs-breadcrumb { display: flex; align-items: center; gap: 9px; color: #a1a1aa; font-size: 14px; }
.niaodun-docs-breadcrumb a { color: #52525b; }
.niaodun-docs-breadcrumb a:hover { color: #0891b2; }
.niaodun-docs-article > h1 { margin: 26px 0 0; color: #18181b; font-size: 36px; font-weight: 750; line-height: 1.15; }
.niaodun-docs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px; border-bottom: 1px solid #e4e4e7; padding-bottom: 26px; color: #71717a; font-size: 13px; }
.niaodun-docs-meta > * { display: inline-flex; align-items: center; gap: 7px; }
.niaodun-docs-meta svg { width: 15px; height: 15px; flex-shrink: 0; color: #a1a1aa; }
.niaodun-docs-meta strong { margin-left: auto; border: 1px solid #e4e4e7; border-radius: 999px; padding: 7px 12px; color: #0891b2; font-size: 12px; font-weight: 600; }
.niaodun-docs-meta strong::before { width: 1px; height: 36px; margin: -8px 8px -8px -24px; background: #e4e4e7; content: ""; }
.niaodun-docs-meta strong svg { color: #06b6d4; }

.niaodun-docs-content { color: #3f3f46; font-size: 15px; line-height: 1.85; }
.niaodun-docs-content h2 { scroll-margin-top: 92px; margin: 44px 0 14px; border-bottom: 1px solid #e4e4e7; padding-bottom: 10px; color: #18181b; font-size: 24px; font-weight: 700; line-height: 1.3; }
.niaodun-docs-content h3 { scroll-margin-top: 92px; margin: 30px 0 10px; color: #27272a; font-size: 19px; font-weight: 650; }
.niaodun-docs-content p { margin: 14px 0; }
.niaodun-docs-content ul,
.niaodun-docs-content ol { margin: 16px 0; padding-left: 24px; }
.niaodun-docs-content ul { list-style: disc; }
.niaodun-docs-content ol { list-style: decimal; }
.niaodun-docs-content li { margin: 6px 0; }
.niaodun-docs-content a { color: #0891b2; text-decoration: underline; text-underline-offset: 3px; }
.niaodun-docs-content img { display: block; max-width: 100%; height: auto; border: 1px solid #e4e4e7; border-radius: 8px; }
.niaodun-docs-images { display: grid; grid-template-columns: 1fr; gap: 14px; }
.niaodun-docs-content blockquote { position: relative; overflow: hidden; margin: 28px 0; border: 1px solid #a5f3fc; border-radius: 10px; background: linear-gradient(120deg, #ecfeff, #fff); padding: 22px 54px 22px 22px; color: #52525b; }
.niaodun-docs-content blockquote::after { position: absolute; right: 16px; top: -8px; color: #a5f3fc; content: "\201D"; font-family: Georgia, serif; font-size: 108px; font-weight: 700; line-height: 1; }
.niaodun-docs-content blockquote p { position: relative; z-index: 1; margin: 0; }
.niaodun-docs-content pre { overflow-x: auto; border-radius: 8px; background: #18181b; padding: 18px; color: #e4e4e7; }
.niaodun-docs-content code { border-radius: 4px; background: #f4f4f5; padding: 2px 5px; color: #be185d; }
.niaodun-docs-content pre code { background: transparent; padding: 0; color: inherit; }
.niaodun-docs-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.niaodun-docs-content :where(th, td) { border: 1px solid #e4e4e7; padding: 9px 12px; }
.niaodun-docs-content th { background: #f4f4f5; text-align: left; }

.niaodun-docs-catalog { margin-top: 48px; border-top: 1px solid #f4f4f5; padding-top: 32px; }
.niaodun-docs-catalog > h2 { margin: 0; color: #18181b; font-size: 18px; font-weight: 650; }
.niaodun-docs-catalog > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.niaodun-docs-catalog button { display: grid; grid-template-columns: 34px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 12px; border: 1px solid #e4e4e7; border-radius: 8px; background: #fff; padding: 14px; text-align: left; transition: border-color 180ms ease, box-shadow 180ms ease; }
.niaodun-docs-catalog button:hover { border-color: #67e8f9; box-shadow: 0 8px 22px rgba(8,145,178,.08); }
.niaodun-docs-catalog button > span { display: grid; width: 34px; height: 34px; grid-row: 1 / 3; place-items: center; border-radius: 8px; background: #f4f4f5; color: #71717a; }
.niaodun-docs-catalog strong { min-width: 0; color: #27272a; font-size: 14px; }
.niaodun-docs-catalog small { margin-top: 3px; color: #a1a1aa; font-size: 11px; }

.niaodun-docs-toc-aside { width: 220px; flex-shrink: 0; }
.niaodun-docs-toc-aside > div { position: sticky; top: 80px; padding: 32px 12px 32px 20px; }
.niaodun-docs-toc > p,
.niaodun-docs-share > p { margin: 0 0 12px; color: #3f3f46; font-size: 13px; font-weight: 650; }
.niaodun-docs-toc > div { display: flex; flex-direction: column; }
.niaodun-docs-toc a { border-left: 2px solid #e4e4e7; padding: 7px 10px; color: #71717a; font-size: 12px; line-height: 1.4; }
.niaodun-docs-toc a.is-subsection { padding-left: 20px; }
.niaodun-docs-toc a:hover,
.niaodun-docs-toc a.is-active { border-left-color: #06b6d4; color: #0891b2; }
.niaodun-docs-toc span { color: #a1a1aa; font-size: 12px; }
.niaodun-docs-share { margin-top: 34px; border-top: 1px solid #e4e4e7; padding-top: 24px; }
.niaodun-docs-share > div { display: flex; flex-wrap: nowrap; gap: 6px; }
.niaodun-docs-share :where(a, button) { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid #e4e4e7; border-radius: 9px; background: #fff; color: #71717a; font-size: 12px; font-weight: 650; }
.niaodun-docs-share :where(a, button):hover { border-color: #67e8f9; color: #0891b2; }
.niaodun-docs-share svg { width: 16px; height: 16px; }
.niaodun-docs-mobile-trigger,
.niaodun-docs-overlay { display: none; }

@media (max-width: 1023px) {
  .niaodun-docs-layout { width: 100%; }
  .niaodun-docs-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 90; height: 100vh; border-right: 1px solid #d4d4d8; box-shadow: 16px 0 40px rgba(24,24,27,.14); transform: translateX(-105%); transition: transform 220ms ease; }
  .niaodun-docs-sidebar.is-open { transform: none; }
  .niaodun-docs-sidebar__head button { display: block; }
  .niaodun-docs-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(9,9,11,.35); }
  .niaodun-docs-overlay.is-open { display: block; }
  .niaodun-docs-mobile-trigger { position: sticky; top: 64px; z-index: 20; display: block; width: 100%; border-bottom: 1px solid #e4e4e7; background: rgba(247,248,250,.96); padding: 12px 20px; color: #3f3f46; font-size: 13px; font-weight: 600; text-align: left; backdrop-filter: blur(10px); }
  .niaodun-docs-toc-aside { display: none; }
  .niaodun-docs-article { width: 100%; padding: 30px 24px 64px; }
}

@media (max-width: 639px) {
  .niaodun-docs-article { padding: 24px 18px 56px; }
  .niaodun-docs-article > h1 { margin-top: 20px; font-size: 30px; }
  .niaodun-docs-meta strong { width: fit-content; margin-left: 0; }
  .niaodun-docs-meta strong::before { display: none; }
  .niaodun-docs-catalog > div { grid-template-columns: 1fr; }
}
