:root {
  /* 布局变量 */
  --header-height: 60px;
  --footer-height: 0px;
  --sidebar-width: 200px;
  --peek: 0;
  
  /* 浅色模式颜色变量（默认） */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #000000;
  --text-secondary: #6b7280;
  --text-tertiary: #888888;
  --border-color: #dee2e6;
  --border-light: #e5e7eb;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 18px rgba(0,0,0,.08);
  --card-shadow-hover: 0 6px 22px rgba(0,0,0,.12);
  --sidebar-bg: #ffffff;
  --sidebar-text: #000000;
  --nav-hover: #e9ecef;
  --input-bg: #ffffff;
  --link-color: #000000;
  --link-hover: #555555;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 深色模式颜色变量 */
html[data-theme="dark"] {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2d2d2d;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  --border-color: #374151;
  --border-light: #2d2d2d;
  --card-bg: #1f1f1f;
  --card-shadow: 0 4px 18px rgba(0,0,0,.3);
  --card-shadow-hover: 0 6px 22px rgba(0,0,0,.4);
  --sidebar-bg: #1a1a1a;
  --sidebar-text: #f3f4f6;
  --nav-hover: #2d2d2d;
  --input-bg: #2d2d2d;
  --link-color: #f3f4f6;
  --link-hover: #d1d5db;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 260ms cubic-bezier(.2,.9,.2,1), 
              color 260ms cubic-bezier(.2,.9,.2,1);
}

.navbar {
  height: var(--header-height);
  flex-shrink: 0;
  background: #000;
  color: #fff;
}

.footer {
  flex-shrink: 0;
  height: auto;
  line-height: 1.6;
  background: transparent;
  color: inherit;
  text-align: center;
  font-size: 13px;
  transition: background-color 260ms cubic-bezier(.2,.9,.2,1),
              color 260ms cubic-bezier(.2,.9,.2,1);
}


/* ====主题切换按钮样式==== */
.theme-toggle {
  position: fixed;
  top: calc(var(--header-height) + 70px);
  right: 20px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--card-shadow);
  transition: all 260ms cubic-bezier(.2,.9,.2,1);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--card-shadow-hover);
}

/* ====侧边栏主容器==== */
.sd-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100dvh - var(--header-height) - var(--footer-height));
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow: hidden;
  transition: transform .3s ease, 
              background-color 260ms cubic-bezier(.2,.9,.2,1),
              border-color 260ms cubic-bezier(.2,.9,.2,1);
}

.sd-sidebar.collapsed {
  transform: translateX(-100%);
}

.sd-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
}

/* ====顶部标题区==== */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 15px;
  font-weight: bold;
  font-size: 18px;
  border-bottom: 1px solid var(--border-color);
  transition: border-color 260ms cubic-bezier(.2,.9,.2,1);
}

.hamburger {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-primary);
  line-height: 1;
  margin-right: -5px;
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

/* 侧边栏标题文字链接样式 */
.sidebar-title-link {
  color: var(--sidebar-text);
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

.sidebar-title-link:hover {
  opacity: .8;
}

/* 收起时隐藏标题文字与箭头 */
.sd-sidebar.collapsed #sidebarTitle,
.sd-sidebar.collapsed .arrow {
  display: none;
}

/* ====导航区==== */
.sd-nav a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 15px;
  transition: background-color 200ms ease, 
              color 260ms cubic-bezier(.2,.9,.2,1);
}

.sd-nav a:hover {
  background: var(--nav-hover);
}

.sd-nav .parent {
  justify-content: space-between;
}

.sd-nav .arrow {
  cursor: pointer;
  padding: 4px 6px;
  margin-left: auto;
  transition: transform .3s, color 260ms cubic-bezier(.2,.9,.2,1);
  color: var(--text-secondary);
}

.sd-nav .open .arrow {
  transform: rotate(180deg);
}

.sd-nav .sub-menu {
  display: none;
  padding-left: 20px;
  background: var(--sidebar-bg);
  transition: background-color 260ms cubic-bezier(.2,.9,.2,1);
}

.sd-nav .sub-menu a {
  padding: 6px 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.sd-nav .sub-menu a:hover {
  color: var(--text-primary);
}

/* ====底部链接区==== */
.sd-sidebar-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--border-color);
  transition: border-color 260ms cubic-bezier(.2,.9,.2,1);
}

.sd-sidebar-foot a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 15px;
  transition: background-color 200ms ease,
              color 260ms cubic-bezier(.2,.9,.2,1);
  position: relative;
}

.sd-sidebar-foot a:hover {
  background: var(--nav-hover);
}

.sd-sidebar-foot a i {
  position: absolute;
  right: 22px;
  color: var(--text-secondary);
}

/* ==== 主内容区过渡 ==== */
.container {
  margin-left: var(--sidebar-width);
  height: calc(100dvh - var(--header-height) - var(--footer-height));
  overflow-y: auto;
  padding: 20px 20px 100px;
  background: var(--bg-primary);
  transition: margin-left .3s ease,
              background-color 260ms cubic-bezier(.2,.9,.2,1);
  overflow-x: hidden;
}

/* ==== 独立悬浮按钮 ==== */
#floatToggleBtn {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  left: 12px;
  z-index: 20;
  width: 36px;
  height: 36px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: opacity .2s,
              background-color 260ms cubic-bezier(.2,.9,.2,1),
              border-color 260ms cubic-bezier(.2,.9,.2,1),
              color 260ms cubic-bezier(.2,.9,.2,1);
}

body:not(.sidebar-hidden) #floatToggleBtn {
  opacity: 0;
  pointer-events: none;
}

body.sidebar-hidden #floatToggleBtn {
  opacity: 1;
  pointer-events: auto;
}

/* ====卡片基础==== */
.card {
  width: 100%;
  max-width: 1500px;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 40px;
  margin: 0 auto 40px;
  transition: background-color 260ms cubic-bezier(.2,.9,.2,1),
              box-shadow 260ms cubic-bezier(.2,.9,.2,1);
}

.card-link .card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 16px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover .card {
  box-shadow: var(--card-shadow-hover);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

h1 {
  font-size: 34px;
  font-weight: 650;
  margin-bottom: 30px;
  text-align: center;
  white-space: nowrap;
  color: var(--text-primary);
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-secondary);
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

h4 {
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 3px;
  color: var(--text-secondary);
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

.mini-card {
  width: 80px;
  height: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-tertiary);
  transition: background-color 260ms cubic-bezier(.2,.9,.2,1),
              border-color 260ms cubic-bezier(.2,.9,.2,1),
              color 260ms cubic-bezier(.2,.9,.2,1);
}

.back {
  margin-top: 32px;
  text-align: center;
  font-size: 15px;
}

.back a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

.back a:hover {
  color: var(--link-hover);
}

/* ====SD 侧边入口==== */
.sd-cta {
  --sd-img: url('/static/images/placeholder.jpg');
  display: block;
  position: relative;
  height: 120px;
  margin: 10px 12px 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  text-decoration: none;
  transition: border-color 260ms cubic-bezier(.2,.9,.2,1);
}

.sd-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--sd-img);
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.03);
  transition: transform .25s ease;
}

.sd-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,.7), rgba(255,255,255,.1) 70%);
}

html[data-theme="dark"] .sd-cta::after {
  background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.1) 70%);
}

.sd-cta .sd-cta-glass {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.32);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  backdrop-filter: blur(6px) saturate(130%);
  border: 1px solid rgba(255,255,255,.55);
  color: #1f1f1f;
  font-weight: 600;
  line-height: 1;
  transition: background 260ms cubic-bezier(.2,.9,.2,1),
              color 260ms cubic-bezier(.2,.9,.2,1);
}

html[data-theme="dark"] .sd-cta .sd-cta-glass {
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(0,0,0,.55);
  color: #f3f4f6;
}

.sd-cta .sd-cta-glass i {
  font-size: 16px;
  color: #333;
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

html[data-theme="dark"] .sd-cta .sd-cta-glass i {
  color: #f3f4f6;
}

.sd-cta:hover::before {
  transform: scale(1.05);
}

.sd-cta:hover .sd-cta-glass {
  background: rgba(255,255,255,.38);
}

html[data-theme="dark"] .sd-cta:hover .sd-cta-glass {
  background: rgba(0,0,0,.38);
}

/* 横条版本 */
.sd-cta-strip {
  height: 72px;
  margin: 8px 0;
  padding: 0 20px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: border-color 260ms cubic-bezier(.2,.9,.2,1);
}

.sd-cta-strip .sd-cta-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

html[data-theme="dark"] .sd-cta-strip .sd-cta-title {
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
}

.sd-cta-strip .sd-cta-title i {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

.sd-sidebar.collapsed .sd-cta-strip {
  display: none;
}

/* 顶部大卡片入口 */
.card.sd-hero {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

.card.sd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--sd-hero, url('/static/images/placeholder.jpg'));
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.04);
  transition: transform .25s ease;
  z-index: 0;
}

.card.sd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.36);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  backdrop-filter: blur(8px) saturate(125%);
  z-index: 0;
  transition: background 260ms cubic-bezier(.2,.9,.2,1);
}

html[data-theme="dark"] .card.sd-hero::after {
  background: rgba(0,0,0,.36);
}

.sd-hero .sd-hero-title {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

html[data-theme="dark"] .sd-hero .sd-hero-title {
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
}

.sd-hero .sd-hero-title {
  font-size: 20px;
  color: var(--text-secondary);
}

.card.sd-hero:hover {
  box-shadow: var(--card-shadow-hover);
}

@media (max-width:640px) {
  .card.sd-hero {
    min-height: 130px;
    padding: 22px;
  }
  .sd-hero .sd-hero-title {
    font-size: 19px;
  }
}

/* ====内容区宽度扩展==== */
:root {
  --content-max: 980px;
}

.container .doc {
  max-width: var(--content-max);
  margin: 0 auto;
  max-width: 100%;
  overflow-x: hidden;
  transition: max-width .25s ease;
}

.container .doc .card {
  max-width: none;
}

body.sidebar-hidden {
  --content-max: 1180px;
}

@media (min-width:1640px) {
  :root { --content-max: 1100px; }
  body.sidebar-hidden { --content-max: 1280px; }
}

@media (min-width:1800px) {
  :root { --content-max: 1180px; }
  body.sidebar-hidden { --content-max: 1420px; }
}

@media (min-width:1920px) {
  :root { --content-max: 1240px; }
  body.sidebar-hidden { --content-max: 1560px; }
}



/* 680px以下样式 */
@media (max-width: 680px) {
  body:not(.sidebar-hidden) #floatToggleBtn {
    opacity: 0;
    pointer-events: none;
  }
  body.sidebar-hidden #floatToggleBtn {
    opacity: 1;
    pointer-events: auto;
  }
  
  .theme-toggle {
    top: calc(var(--header-height) + 20px);
    right: 10px;
    width: 40px;
    height: 40px;
  }
}



/* 530px以下极端小屏额外样式 */
@media (max-width: 530px) {
  .tag-row {
    flex-wrap: wrap;
    transform: none;
  }
  .tag-row .mini-card {
    width: 100%;
    flex: none;
    height: 32px;
  }
  .card h1 {
    font-size: 22px;
    line-height: 1.3;
    white-space: normal !important;
    overflow: visible !important;
  }
}

/* ====Document typography (all gray, no bold)==== */
.doc-card p,
.doc-card li {
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

.doc-card h4 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 18px;
  margin-bottom: 8px;
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

/* 浮动形状颜色适配 */
.shape {
  opacity: 0.1;
}

html[data-theme="dark"] .shape {
  opacity: 0.05;
}

/* Featured Card 样式 */
.featured-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: background-color 260ms cubic-bezier(.2,.9,.2,1),
              border-color 260ms cubic-bezier(.2,.9,.2,1);
}

.featured-overlay {
  background: linear-gradient(to right, var(--card-bg) 0%, transparent 100%);
}

.featured-text h2 {
  color: var(--text-primary);
}

.featured-text p {
  color: var(--text-secondary);
}

/* Doc Card 样式 */
.doc-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: background-color 260ms cubic-bezier(.2,.9,.2,1),
              border-color 260ms cubic-bezier(.2,.9,.2,1),
              box-shadow 260ms cubic-bezier(.2,.9,.2,1);
}

.doc-card h3 {
  color: var(--text-primary);
}

.doc-card p {
  color: var(--text-secondary);
}

.card-tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  transition: background-color 260ms cubic-bezier(.2,.9,.2,1),
              color 260ms cubic-bezier(.2,.9,.2,1);
}

.read-more {
  color: var(--text-secondary);
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

.arrow-icon {
  color: var(--text-tertiary);
  transition: color 260ms cubic-bezier(.2,.9,.2,1);
}

/* 图标颜色适配 */
.icon-purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.icon-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.icon-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.icon-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.icon-orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.icon-cyan { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.icon-pink { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.icon-indigo { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.icon-teal { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }

html[data-theme="dark"] .icon-purple { background: rgba(139, 92, 246, 0.2); }
html[data-theme="dark"] .icon-blue { background: rgba(59, 130, 246, 0.2); }
html[data-theme="dark"] .icon-green { background: rgba(16, 185, 129, 0.2); }
html[data-theme="dark"] .icon-red { background: rgba(239, 68, 68, 0.2); }
html[data-theme="dark"] .icon-orange { background: rgba(249, 115, 22, 0.2); }
html[data-theme="dark"] .icon-cyan { background: rgba(6, 182, 212, 0.2); }
html[data-theme="dark"] .icon-pink { background: rgba(236, 72, 153, 0.2); }
html[data-theme="dark"] .icon-indigo { background: rgba(99, 102, 241, 0.2); }
html[data-theme="dark"] .icon-teal { background: rgba(20, 184, 166, 0.2); }


html[data-theme="dark"] .step {
  background: rgba(34, 197, 94, 0.08);
  border-left-color: #22c55e;
}

html[data-theme="dark"] .step .num {
  background: var(--card-bg);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--text-primary);
}

/* .call.tips 组件 - 紫色提示框 */
html[data-theme="dark"] .call.tips {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
}

html[data-theme="dark"] .call.tips strong {
  color: #a78bfa;
}

/* 其他 .call 变体 */
html[data-theme="dark"] .call.tip {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

html[data-theme="dark"] .call.warn {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.3);
}

html[data-theme="dark"] .call.note {
  background: rgba(107, 114, 128, 0.08);
  border-color: rgba(107, 114, 128, 0.3);
}

/* .call 标题文字深色模式适配 */
html[data-theme="dark"] .call.tip strong {
  color: #60a5fa;
}

html[data-theme="dark"] .call.warn strong {
  color: #fb923c;
}

html[data-theme="dark"] .call.note strong {
  color: #9ca3af;
}

/* 文档页面基础元素 */
html[data-theme="dark"] .doc .hero {
  background: var(--card-bg);
}

html[data-theme="dark"] .doc .body {
  background: var(--card-bg);
}

html[data-theme="dark"] .doc .hero h1 {
  color: var(--text-primary);
}

html[data-theme="dark"] .doc .hero p {
  color: var(--text-secondary);
}

/* 代码块适配 */
html[data-theme="dark"] .doc .body pre {
  background: #0d1117;
  border-color: #30363d;
}

/* 表格适配 */
html[data-theme="dark"] th {
  background: var(--bg-tertiary);
}

html[data-theme="dark"] td {
  border-bottom-color: var(--border-color);
}

/* 图片边框 */
html[data-theme="dark"] .figure img {
  border-color: var(--border-color);
}

/* 返回链接 */
html[data-theme="dark"] .doc .back a {
  color: var(--text-primary);
}

html[data-theme="dark"] .doc .back a:hover {
  color: var(--link-hover);
}

/* 目录 */
html[data-theme="dark"] .toc {
  background: var(--card-bg);
  border-color: var(--border-color);
}

html[data-theme="dark"] .toc h4 {
  color: var(--text-primary);
}

html[data-theme="dark"] .toc a {
  color: var(--text-secondary);
}

html[data-theme="dark"] .toc a.active {
  color: var(--text-primary);
}

/* 文档内标题 */
html[data-theme="dark"] .doc .body h2,
html[data-theme="dark"] .doc .body h3 {
  color: var(--text-primary);
}

html[data-theme="dark"] .doc .body p,
html[data-theme="dark"] .doc .body li {
  color: var(--text-secondary);
}

html[data-theme="dark"] .doc .body a {
  color: #60a5fa;
}

html[data-theme="dark"] .doc .body a:hover {
  color: #93c5fd;
}

/* 小标签卡片 */
html[data-theme="dark"] .mini-card {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-tertiary);
}

/* 响应式覆盖 */
@media (max-width: 1024px) {
  html[data-theme="dark"] .toc {
    background: var(--card-bg);
  }
}
