/* 物联网心球 · diygod 风格
   明暗双主题：变量集中在 :root / html.dark，改颜色只动这里 */

:root {
  --bg: #F6F7F8;            /* B站页面底色：冷调浅灰 */
  --text: #18191C;          /* B站主文字：近黑 */
  --text-soft: #61666D;     /* B站次级文字 */
  --text-faint: #9499A0;    /* B站弱化文字 */
  --accent: #E87E10;        /* 主题色：品牌橙（取自物联网心球 logo 主色） */
  --accent-deep: #CC6C0A;   /* 悬停加深 */
  --accent-soft: rgba(232, 126, 16, 0.09);
  --border: #E3E5E7;        /* B站描边灰 */
  --card-bg: #FFFFFF;
  --pill-bg: #F1F2F3;
  --code-bg: #F6F7F8;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
html.dark {
  --bg: #111114;
  --text: #E4E4E7;
  --text-soft: #A1A1AA;
  --text-faint: #71717A;
  --accent: #F5A344;        /* 暗色下用亮橙保证可读 */
  --accent-deep: #E8891F;
  --accent-soft: rgba(245, 163, 68, 0.13);
  --border: #2A2A30;
  --card-bg: #1C1C21;
  --pill-bg: #26262B;
  --code-bg: #0E0E11;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* 全站预留滚动条槽位：无滚动条的页面（如课程列表）不再因视口变宽整体右移，消除页面切换抖动 */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  /* 全站唯一中文正文字体：思源黑体（SIL OFL 1.1，免费商用）；三个名称对应同一字体的不同发行版本，无商业字体声明 */
  font-family: "Source Han Sans SC", "Source Han Sans CN", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  transition: background 0.3s, color 0.3s;
}
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 44px 24px 96px;
}
/* 二级页、首页与阅读页版心统一，避免页面切换时组件跳动；文章正文由 .article-layout 内部保持窄版心 */
.page-docs .container, .page-home .container, .page-article .container { max-width: 1180px; }
.nav-current, .mainnav a.current { color: var(--accent) !important; background: var(--accent-soft); }

/* ---------- 首页：产品总览 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 52px;
}
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.product-card .p-icon { font-size: 26px; margin-bottom: 8px; }
.product-card .p-name { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.product-card .p-desc { font-size: 13px; color: var(--accent); margin-bottom: 10px; }
/* 首页产品卡：主题色头部横带（四板块四色相），呼应封面化视觉 */
.product-card .p-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -22px -22px 14px;
  padding: 16px 20px;
  border-radius: 15px 15px 0 0;
  position: relative;
  overflow: hidden;
}
.product-card .p-head::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -32px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 17px solid rgba(255, 255, 255, 0.16);
}
.product-card .p-head::before {
  content: "";
  position: absolute;
  left: -18px;
  bottom: -40px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 13px solid rgba(255, 255, 255, 0.1);
}
.product-card .p-emoji { font-size: 30px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18)); }
.product-card .p-head .p-name { color: #fff; font-size: 17px; font-weight: 700; margin: 0; }
.product-card .p-head .p-desc { color: rgba(255, 255, 255, 0.88); font-size: 12.5px; margin: 2px 0 0; }
.pc-book .p-head { background: linear-gradient(135deg, #C96F0E, #F0A24A); }
.pc-articles .p-head { background: linear-gradient(135deg, #3E8FB8, #67B3D9); }
.pc-courses .p-head { background: linear-gradient(135deg, #5470C6, #8A9BE8); }
.pc-camp .p-head { background: linear-gradient(135deg, #0FA373, #3FC492); }
.product-card .p-points {
  list-style: none;
  margin-bottom: 12px;
}
.product-card .p-points li {
  font-size: 13px;
  color: var(--text-soft);
  padding-left: 16px;
  position: relative;
  margin-bottom: 3px;
}
.product-card .p-points li::before { content: "·"; position: absolute; left: 4px; font-weight: 700; }
.product-card .p-more { font-size: 13.5px; color: var(--accent); font-weight: 600; }

/* 首页最近更新速览 */
.recent-strip .recent-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 9px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.recent-strip .recent-item:hover { background: var(--accent-soft); }
.recent-strip .recent-item + .recent-item { border-top: 1px dashed var(--border); }
.recent-strip .r-date { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.recent-strip .r-title {
  flex: 1;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-strip .recent-item:hover .r-title { color: var(--accent); }
.recent-strip .r-cat { font-size: 11.5px; color: var(--text-faint); flex-shrink: 0; }
.recent-strip .more-link { margin-top: 12px; }

/* ---------- 二级页：docs 三栏布局 ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 240px;
  gap: 32px;
  align-items: start;
}
.docs-sidebar { position: sticky; top: 78px; }
.docs-rail { position: sticky; top: 78px; }
.side-block { margin-bottom: 26px; }
.side-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.side-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.15s;
}
.side-link:hover { color: var(--accent); background: var(--accent-soft); }
.side-link.current { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.side-link .count { font-size: 11.5px; color: var(--text-faint); }
.side-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.side-tag {
  font-size: 12.5px;
  color: var(--text-soft);
  text-decoration: none;
  background: var(--pill-bg);
  border-radius: 999px;
  padding: 2px 10px;
  transition: all 0.15s;
}
.side-tag:hover { color: var(--accent); background: var(--accent-soft); }
.side-note { font-size: 12.5px; color: var(--text-faint); line-height: 1.7; }
/* 详情页顶部返回链接 */
.back-link {
  display: inline-block;
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 14px;
  transition: color .15s;
}
.back-link:hover { color: var(--accent); }
.side-tag.current { color: #fff; background: var(--accent); }

/* 分类/标签过滤页副标题里的返回链接 */
.back-all { color: var(--accent); text-decoration: none; margin-left: 8px; white-space: nowrap; }
.back-all:hover { text-decoration: underline; }

/* 分类/标签总览页卡片网格 */
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.term-card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.term-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.term-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.term-card:hover .term-name { color: var(--accent); }
.term-count { font-size: 12px; color: var(--text-faint); white-space: nowrap; }

.docs-h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.docs-sub { font-size: 14px; color: var(--text-soft); margin-bottom: 28px; }
.docs-section { margin-top: 36px; scroll-margin-top: 80px; }
.docs-section h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.plain-list { padding-left: 1.4em; }
.plain-list li { font-size: 14.5px; color: var(--text-soft); margin-bottom: 6px; }
.doc-note { font-size: 12.5px; color: var(--text-faint); margin-top: 10px; }

/* 右栏：快捷按钮 + 广告位 */
.rail-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.quick-btns { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
/* 右栏图书推广卡 */
.rail-book {
  display: block;
  background: linear-gradient(150deg, #B85C00, #F5A623);
  color: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 24px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.rail-book:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232, 126, 16, 0.35); }
.rail-book-tag {
  display: inline-block;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 8px;
}
.rail-book-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.rail-book-desc { font-size: 12.5px; line-height: 1.7; opacity: 0.92; margin-bottom: 10px; }
.rail-book-more { font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* 简化版：立体书封 + 书名横排（cover3d 有值时启用） */
.rail-book--cover {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: inherit;
  padding: 14px 16px;
}
.rail-book--cover:hover { box-shadow: 0 8px 20px rgba(232, 126, 16, 0.22); }
.rail-book--cover .rail-book-cover {
  width: 56px;
  flex: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}
.rail-book--cover .rail-book-info { flex: 1; min-width: 0; }
.rail-book--cover .rail-book-tag {
  font-size: 11px;
  color: var(--accent);
  background: none;
  padding: 0;
  margin-bottom: 3px;
}
.rail-book--cover .rail-book-title { font-size: 14.5px; line-height: 1.4; margin-bottom: 6px; }
.rail-book--cover .rail-book-more { font-size: 12.5px; color: var(--accent); text-decoration: none; }
/* 右栏公众号引导 */
.rail-note {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-soft);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 22px;
}
.rail-note b { color: var(--accent); }
.quick-btn {
  display: block;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-soft);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  background: var(--card-bg);
  transition: all 0.15s;
}
.quick-btn:hover { color: var(--accent); border-color: var(--accent); }
.quick-btn-todo { color: var(--text-faint); cursor: default; }
.quick-btn-todo i {
  font-style: normal;
  font-size: 10.5px;
  color: var(--text-faint);
  background: var(--pill-bg);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
}
.ad-slot {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}
.ad-slot.ad-tall { min-height: 240px; }
.ad-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
  letter-spacing: 0.1em;
}
.ad-label { font-size: 13px; color: var(--text-faint); }
.ad-hint { font-size: 11px; color: var(--text-faint); opacity: 0.7; }

/* 图书二级页 */
.book-hero { display: flex; gap: 26px; margin-bottom: 10px; }
.book-cover.big {
  width: 150px;
  height: 206px;
  font-size: 19px;
  box-shadow: 0 8px 22px rgba(232, 126, 16, 0.3);
}
.book-hero-info h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.book-hero-info p { font-size: 14.5px; color: var(--text-soft); margin-bottom: 14px; }
.toc-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
/* 图书宣传图画廊：双列图文卡 + 点击放大灯箱 */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-item {
  margin: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(24, 25, 28, .10); }
.gallery-item img { display: block; width: 100%; height: auto; }
.gallery-item figcaption { padding: 10px 14px; font-size: 13px; color: var(--text-soft); border-top: 1px solid var(--border); }
.gallery-placeholder {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 12, .88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  cursor: zoom-out;
}
/* hidden 属性会被上面的 display:flex 覆盖，必须显式关掉 */
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(920px, 92vw);
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
}
.lightbox .lb-caption { color: #ECECEE; font-size: 14px; margin: 0; }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: 1fr; } }
.toc-item {
  font-size: 14px;
  color: var(--text-soft);
  padding: 10px 16px;
  background: var(--card-bg);
}
.toc-item:nth-child(even) { background: var(--pill-bg); }
.toc-item + .toc-item { border-top: 1px solid var(--border); }
/* 可试读章节：整行链接 + 免费试读徽标 */
a.toc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
a.toc-item:hover { background: var(--accent-soft); color: var(--accent); }
a.toc-item:hover span:first-child { color: var(--accent); }
.sample-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
  flex-shrink: 0;
}
.voice-card {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.voice-card p { font-size: 14.5px; margin-bottom: 6px; }
.voice-card footer { font-size: 12.5px; color: var(--text-faint); border: none; padding: 0; margin: 0; display: block; }
/* 口碑双列网格：条数多时更紧凑热闹 */
.voice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.voice-grid .voice-card { margin-bottom: 0; }
@media (max-width: 860px) { .voice-grid { grid-template-columns: 1fr; } }

/* docs 布局响应式 */
@media (max-width: 1020px) {
  .docs-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .docs-rail { display: none; }
}
@media (max-width: 720px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; display: flex; gap: 18px; overflow-x: auto; }
  .side-block { min-width: 150px; margin-bottom: 0; }
  .book-hero { flex-direction: column; }
}

/* ---------- 吸顶导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 248, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
html.dark .site-header { background: rgba(17, 17, 20, 0.86); }
.header-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* 二级页与首页版心统一后，吸顶导航与内容区对齐 */
/* 版心全站统一 1180：页面切换不再跳动 */
.page-docs .header-inner, .page-home .header-inner, .page-article .header-inner { max-width: 1180px; }
.site-name {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* 导航栏品牌小图标 */
.site-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
  transition: transform 0.25s;
}
.site-name:hover .site-logo { transform: rotate(-8deg) scale(1.08); }
.site-name .en { color: var(--text-faint); font-weight: 400; margin-left: 8px; font-size: 12.5px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.mainnav { display: flex; gap: 4px; }
.mainnav a {
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text-soft);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 9px;
  transition: all 0.15s;
}
.mainnav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card-bg);
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { transform: rotate(20deg); }

@media (max-width: 560px) {
  .site-name .en { display: none; }
  .mainnav a { padding: 6px 8px; font-size: 13.5px; }
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 34px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-soft);
  font-size: 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, color 0.15s, border-color 0.15s, background 0.2s, box-shadow 0.25s;
  z-index: 90;
}
/* 脉冲光环：从按钮边缘向外扩散 */
.back-top::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
.back-top.show {
  opacity: 1;
  pointer-events: auto;
  border-color: var(--accent);
  color: var(--accent);
  /* 弹跳式出现（回弹曲线）+ 出现后持续绿色脉冲提示 */
  animation: backTopPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.back-top.show::after {
  animation: backTopRing 2.4s ease-out 0.6s infinite;
}
@keyframes backTopPop {
  0%   { transform: translateY(16px) scale(0.55); }
  60%  { transform: translateY(-4px) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes backTopRing {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.6);  opacity: 0; }
  100% { transform: scale(1.6);  opacity: 0; }
}
.back-top:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(232, 126, 16, 0.35);
}
/* 悬停时箭头轻轻上跳，强化「向上」暗示 */
.back-top:hover {
  animation: backTopNudge 0.7s ease-in-out infinite;
}
@keyframes backTopNudge {
  0%, 100% { transform: translateY(-3px); }
  50%      { transform: translateY(-6px); }
}

/* ---------- Hero ---------- */
.hero { margin-bottom: 56px; }
.avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-weight: 700;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.hero .bio { color: var(--text-soft); font-size: 15px; max-width: 560px; }
/* hero：首页主列顶部介绍区（与子页共用 docs 三栏骨架） */
.hero { margin-bottom: 40px; }
/* 试读页尾购买卡 */
.sample-buy {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 12px;
  background: var(--accent-soft);
}
.sample-buy .sb-title { font-weight: 700; margin-bottom: 6px; }
.sample-buy p { font-size: 13.5px; color: var(--text-soft); margin-bottom: 12px; }
.sample-page .f-tag { display: inline-block; margin-bottom: 10px; }
/* 试读页头部：书封 + 标题横排 */
.sample-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 26px; }
.sample-cover { width: 96px; height: 130px; font-size: 13px; padding: 12px 10px; }
.sample-head-info { flex: 1; min-width: 0; }
.sample-head-info h1 { margin-top: 6px; }
@media (max-width: 560px) {
  .sample-head { flex-direction: column; gap: 14px; }
}

/* 文末连接条：横排紧凑按钮 */
.article-connect {
  margin-top: 40px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
}
.article-connect .ac-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.article-connect .socials { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.article-connect .social-btn { flex: none; border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.article-connect .social-btn:not(.social-todo):hover { transform: translateY(-2px); }
/* 右栏社交按钮：竖排列表式 */
.docs-rail .socials { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-soft);
  text-decoration: none;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--card-bg);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.social-btn .sb-go { font-size: 13px; opacity: 0.55; transition: transform 0.2s, opacity 0.2s; }
.social-btn:not(.social-todo):hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(-3px);
  box-shadow: -3px 3px 10px rgba(232, 126, 16, 0.12);
}
.social-btn:not(.social-todo):hover .sb-go { transform: translateX(3px); opacity: 1; }
/* 待配置态：灰色弱化，不误导点击 */
.social-btn.social-todo {
  cursor: default;
  color: var(--text-faint);
  background: transparent;
  border-style: dashed;
}
/* 二维码弹出卡 */
.qr-pop {
  position: fixed;
  z-index: 60;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  padding: 12px;
  width: 176px;
  text-align: center;
}
.qr-pop img { width: 152px; height: 152px; display: block; border-radius: 8px; }
.qr-pop-tip { font-size: 12.5px; color: var(--text-soft); margin-top: 8px; }
.qr-pop-arrow {
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--card-bg);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* 弹卡翻转到按钮左侧时，箭头移到右侧指向按钮 */
.qr-pop.flip .qr-pop-arrow {
  left: auto;
  right: -6px;
  border-left: none;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- 板块：分隔线 + 统一间距 ---------- */
.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.section-title::after { content: " ———"; opacity: 0.5; }
section {
  margin-bottom: 0;
  padding: 52px 0 56px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 72px; /* 给吸顶导航留出空间 */
}

/* ---------- 文章分类 ---------- */
.taxonomies { margin-bottom: 36px; }
.tax-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin-bottom: 10px;
  font-size: 14px;
}
.tax-row .label { color: var(--text-faint); margin-right: 8px; }
.tax-row a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--pill-bg);
  transition: all 0.15s;
}
.tax-row a:hover { color: var(--accent); background: var(--accent-soft); }
.tax-row a .count { color: var(--text-faint); font-size: 12px; margin-left: 3px; }
.tax-row a.active { color: #fff; background: var(--accent); }
.tax-row a.active .count { color: rgba(255,255,255,0.75); }
.tag-list a { background: transparent; padding: 2px 4px; }

/* ---------- 文章条目 ---------- */
.post {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 20px 18px;
  margin: 0 -18px;
  border-radius: 12px;
  transition: background 0.15s;
}
.post:hover { background: var(--accent-soft); }
.post + .post { border-top: 1px solid var(--border); }
.post-thumb {
  flex-shrink: 0;
  width: 118px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--pill-bg);
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
  filter: hue-rotate(-175deg) saturate(0.95); /* 手绘图色调→品牌橙，贴合主题色 */
}
.post:hover .post-thumb img { transform: scale(1.05); }
/* 封面图已是品牌橙手绘风，不做色调转换 */
.post-thumb img[src*="/covers/"] { filter: none; }
/* 无封面时按分类配色的占位图（自定义分类走默认灰） */
.thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #E8EAED, #D3D7DC);
  color: #4B5563;
}
.thumb-fallback span {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  padding: 2px 10px;
}
html.dark .thumb-fallback span { background: rgba(0, 0, 0, 0.45); color: #E4E4E7; }
.cat-%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B          { background: linear-gradient(135deg, #DCEBFA, #B7D7F2); color: #1E4E79; }
.cat-system-v-ipc                                  { background: linear-gradient(135deg, #FDEBD3, #F8D9A8); color: #8A5A18; }
.cat-%E5%91%BD%E5%90%8D%E7%A9%BA%E9%97%B4          { background: linear-gradient(135deg, #E4DEF8, #C9BDEF); color: #4A3480; }
.cat-cgroup-%E4%B8%8E%E5%AE%89%E5%85%A8            { background: linear-gradient(135deg, #FADDDD, #F2B8B8); color: #8A2F2F; }
.cat-%E7%AE%A1%E9%81%93%E4%B8%8E-fifo              { background: linear-gradient(135deg, #D9F2E3, #AFDEc3); color: #1F6B44; }
.cat-ebpf                                          { background: linear-gradient(135deg, #D8F0EE, #ACDFDB); color: #145F5A; }
.post-body { flex: 1; min-width: 0; }
.post h2 {
  font-size: 17.5px;
  font-weight: 650;
  line-height: 1.5;
  margin-bottom: 6px;
  transition: color 0.15s;
}
.post:hover h2 { color: var(--accent); }
.post .excerpt {
  font-size: 13.5px;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.post .meta {
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}
.post .meta .cat { color: var(--accent); }
.post .meta .tag::before { content: "#"; opacity: 0.6; }
@media (max-width: 480px) {
  .post-thumb { width: 88px; height: 68px; }
  .post .excerpt { -webkit-line-clamp: 1; }
}
.more-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}
.more-link:hover { text-decoration: underline; }

/* ---------- 图书 ---------- */
.book-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.book-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }

/* 图书板块 = 全站第一推荐位：加高亮底色和强调边框 */
#book .book-card {
  background: linear-gradient(135deg, var(--accent-soft), var(--card-bg) 55%);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
}
#book .book-cover {
  width: 128px;
  height: 174px;
  box-shadow: 0 6px 18px rgba(232, 126, 16, 0.25);
}
#book .book-info h3 { font-size: 21px; }
.book-cover {
  flex-shrink: 0;
  width: 118px; height: 160px;
  border-radius: 8px;
  background: linear-gradient(160deg, #B85C00, #F5A623);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 12px;
  line-height: 1.5;
  display: flex; flex-direction: column; justify-content: space-between;
  text-align: center;
}
.book-cover small { opacity: 0.75; font-size: 9px; font-weight: 400; }
/* 立体书封（透明 PNG）：drop-shadow 替代 box-shadow，随书形走 */
.book-cover-img {
  flex-shrink: 0;
  display: block;
  height: 170px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 6px 16px rgba(232, 126, 16, 0.28));
}
.book-hero .book-cover-img { height: 230px; filter: drop-shadow(0 10px 24px rgba(232, 126, 16, 0.32)); }
#book .book-cover-img { height: 175px; }
@media (max-width: 720px) {
  .book-cover-img, .book-hero .book-cover-img, #book .book-cover-img { height: 150px; }
}
.book-info .f-tag { font-size: 12px; color: var(--text-faint); margin-bottom: 4px; }
.book-info h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.book-info p { font-size: 14px; color: var(--text-soft); margin-bottom: 12px; }
/* 购买渠道胶囊：span=无链接纯文字，a=外链（当当/京东） */
.buy-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.buy-links span {
  font-size: 12.5px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 12px;
  text-decoration: none;
}
/* 右栏「去京东买」：京东品牌红 */
.quick-btn--jd {
  background: linear-gradient(135deg, #E1251B, #C81623);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}
.quick-btn--jd:hover {
  background: linear-gradient(135deg, #D31E14, #B01318);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 5px 14px rgba(225, 37, 27, 0.4);
}

/* ---------- 课程 ---------- */
.course-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.course-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.course-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.course-cover {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--pill-bg);
}
.course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  filter: hue-rotate(-175deg) saturate(0.95); /* 手绘图色调→品牌橙，贴合主题色 */
}
/* 独立设计的科技风课程封面（/courses/ 目录）：配色本身即成品，不做色相旋转 */
.course-cover img[src*="/courses/"],
.course-hero-cover img[src*="/courses/"] { filter: none; }
.course-card:hover .course-cover img { transform: scale(1.04); }
.course-cover-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), var(--pill-bg));
}
.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(30, 30, 34, 0.62);
  color: #fff;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  padding-left: 2px;
}
.course-body { padding: 18px 22px 20px; }
.docs-main .course-card { margin-bottom: 18px; }
.course-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.course-head h3 { font-size: 17px; font-weight: 700; }
.course-chip {
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 10px;
}
.course-card p { font-size: 14px; color: var(--text-soft); margin-bottom: 8px; }
.course-card .c-more { font-size: 13px; color: var(--accent); }
.course-sub {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

/* ---------- 网校：课程大厅 / 详情页 / 章节目录 ---------- */
.course-grid--school { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.course-grid--school .course-card { margin-bottom: 0; }
@media (max-width: 900px) { .course-grid--school { grid-template-columns: 1fr; } }
.course-chip--cover {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}
.course-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-soft); margin-bottom: 10px; }
.course-status { font-size: 12px; border-radius: 999px; padding: 2px 10px; }
.course-status--更新中 { color: #1A7F37; background: #E8F5EC; }
.course-status--已完结 { color: var(--accent); background: var(--accent-soft); }
.course-status--筹备中 { color: var(--text-faint); background: var(--pill-bg); }

/* 课程详情页 hero */
.course-hero { display: flex; gap: 26px; align-items: flex-start; margin-bottom: 30px; }
.course-hero-cover { flex-shrink: 0; width: 300px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.course-hero-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: hue-rotate(-175deg) saturate(0.95); }
.course-hero-info { flex: 1; min-width: 0; }
.course-hero-info h1 { font-size: 23px; font-weight: 700; margin-bottom: 10px; }
.course-hero-info > p { font-size: 14.5px; color: var(--text-soft); margin-bottom: 14px; }
@media (max-width: 760px) { .course-hero { flex-direction: column; } .course-hero-cover { width: 100%; } }

/* 章节目录 */
.side-link-active { color: var(--accent); font-weight: 600; background: var(--accent-soft); border-radius: 8px; }
.ep-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ep-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  font-size: 14px;
  background: var(--card-bg);
}
.ep-item:nth-child(even) { background: var(--pill-bg); }
.ep-item + .ep-item { border-top: 1px solid var(--border); }
.ep-title { color: var(--text); }
.ep-free {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 12px;
  text-decoration: none;
}
.ep-free:hover { background: var(--accent-deep); }
/* 课程大纲：视频课形态（P 编号 + 播放圆钮 + 悬停播放态） */
.ep-vtag {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 12px;
}
.ep-list--video .ep-item { justify-content: flex-start; padding-left: 14px; transition: background .15s; }
.ep-play {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
}
.ep-idx {
  flex-shrink: 0;
  font-family: "JetBrains Mono", "Source Han Sans SC", monospace;
  font-size: 12.5px;
  color: var(--text-faint);
  min-width: 30px;
}
.ep-title { flex: 1; }
a.ep-title { text-decoration: none; }
a.ep-title:hover { color: var(--accent); }
.ep-dur { color: var(--text-faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.ep-list--video .ep-free { margin-left: auto; }
.ep-list--video .ep-item:hover { background: var(--accent-soft); }
.doc-note { font-size: 12.5px; color: var(--text-faint); margin-top: 10px; }

/* 充电计划营销区块 */
.plan-section { margin-top: 36px; }
.plan-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 30px 34px;
  background: linear-gradient(135deg, #00A1D6 0%, #2E7BD6 55%, #FB7299 130%);
  color: #fff;
}
.plan-hero::after {
  content: "⚡";
  position: absolute;
  right: 22px;
  top: -14px;
  font-size: 96px;
  opacity: .14;
  transform: rotate(12deg);
}
.plan-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 12px;
}
.plan-hero h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.plan-tagline { font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, 0.95); margin-bottom: 6px; }
.plan-desc { font-size: 13.5px; color: rgba(255, 255, 255, 0.82); max-width: 640px; line-height: 1.7; }
.plan-cta { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.plan-btn-main {
  background: #fff;
  color: #00A1D6;
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 26px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transition: transform .2s, box-shadow .2s;
}
.plan-btn-main:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.plan-btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background .2s;
}
.plan-btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.plan-rhythm { margin-top: 16px; font-size: 12.5px; color: rgba(255, 255, 255, 0.85); }
.plan-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.plan-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.plan-perks, .plan-audience {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}
.plan-perk-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.plan-perk { display: flex; gap: 12px; align-items: flex-start; }
.plan-perk-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  background: var(--accent-soft);
  border-radius: 10px;
}
.plan-perk-title { font-size: 14px; font-weight: 600; color: var(--text); }
.plan-perk-desc { font-size: 12.5px; color: var(--text-soft); line-height: 1.65; margin-top: 2px; }
.plan-audience ul { list-style: none; margin-bottom: 18px; }
.plan-audience li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 8px;
}
.plan-audience li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan-faq { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.plan-faq summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 10px 14px;
  list-style: none;
  position: relative;
  padding-right: 34px;
}
.plan-faq summary::-webkit-details-marker { display: none; }
.plan-faq summary::after { content: "+"; position: absolute; right: 14px; color: var(--text-faint); font-weight: 400; font-size: 16px; }
.plan-faq[open] summary::after { content: "−"; }
.plan-faq p { font-size: 12.5px; color: var(--text-soft); line-height: 1.7; padding: 0 14px 12px; margin: 0; }
@media (max-width: 860px) { .plan-body { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .plan-hero { padding: 24px 20px; } }

/* ---------- 训练营列表页 · 多营卡片 ---------- */
.camp-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 22px;
}
.camp-tile {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.camp-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(232, 126, 16, 0.14);
}
.camp-tile-cover { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--bg); }
.camp-tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.camp-tile:hover .camp-tile-cover img { transform: scale(1.03); }
.camp-tile-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  padding: 4px 14px;
  backdrop-filter: blur(3px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.camp-tile-badge--招生中 { background: rgba(232, 126, 16, 0.92); }
.camp-tile-badge--筹备中 { background: rgba(90, 107, 125, 0.88); }
.camp-tile-badge--录课中 { background: rgba(90, 107, 125, 0.88); }
.camp-tile-badge--进行中 { background: rgba(0, 161, 214, 0.9); }
.camp-tile-period {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(3px);
  border-radius: 999px;
  padding: 4px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.camp-tile-body { padding: 16px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.camp-tile-body h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.camp-tile-tagline { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.camp-tile-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--text-faint); margin-bottom: 12px; }
.camp-tile-more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); }
.camp-hero-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.camp-hero-badge {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  padding: 3px 14px;
}
.camp-hero-period { font-size: 12.5px; font-weight: 600; color: var(--text-soft); }

/* ---------- 训练营 ---------- */
/* 训练营模式 · 单列文字介绍 */
.camp-mode { margin: 26px 0 6px; }
.camp-mode h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.camp-mode-list { list-style: none; margin: 0; padding: 0; }
.camp-mode-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  font-size: 13.5px;
  line-height: 1.7;
}
.camp-mode-list b { flex-shrink: 0; font-weight: 700; color: var(--text); }
.camp-mode-list span { color: var(--text-soft); }
.camp-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
/* 总览卡融合封面：与列表卡视觉连续 */
.camp-card--hero { padding: 0; overflow: hidden; }
.camp-hero-cover { position: relative; aspect-ratio: 16 / 6; overflow: hidden; background: var(--bg); }
.camp-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.camp-card-body { padding: 20px 24px 24px; }
.side-link-back { font-weight: 600; margin-bottom: 6px; }
.camp-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.camp-card .camp-desc { font-size: 14px; color: var(--text-soft); margin-bottom: 16px; }
.camp-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
/* 打卡月历与下方阶段说明拉开间距 */
.cal-card .camp-steps { margin-top: 16px; }

/* ---------- 学习打卡 · 45 天月历 ---------- */
.cal-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 18px;
}
.cal-slogan {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.cal-wd,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-wd { margin-bottom: 5px; }
.cal-wd span {
  text-align: center;
  font-size: 10.5px;
  color: var(--text-faint);
  padding-bottom: 2px;
}
.cal-day {
  height: 30px;
  border-radius: 6px;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1;
}
.cal-day-flag {
  background: var(--accent-soft);
  border-color: rgba(232, 126, 16, 0.45);
  font-size: 12px;
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-faint);
  margin: 12px 0 16px;
}
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .cal-day { width: 13px; height: 13px; aspect-ratio: auto; flex: none; }
.camp-step { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--text-soft); }
.camp-step .wk {
  flex-shrink: 0;
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 1px 8px;
  font-variant-numeric: tabular-nums;
}

/* 训练营：总览统计条 */
.camp-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.camp-stats span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 14px;
}

/* 训练营：视频课模块头 */
.mod-head { margin: 22px 0 10px; }
.docs-section .mod-head:first-of-type { margin-top: 0; }
.mod-name {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}
.mod-desc { font-size: 13px; color: var(--text-soft); margin: 6px 0 0 13px; }

/* 训练营：迷你容器项目卡 */
.proj-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.proj-desc { font-size: 14px; color: var(--text-soft); line-height: 1.8; margin-bottom: 18px; }
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--pill-bg);
}
.proj-t { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 5px; }
.proj-d { font-size: 13px; color: var(--text-soft); line-height: 1.7; }
.proj-flow {
  margin-top: 18px;
  font-family: "JetBrains Mono", "Source Han Sans SC", monospace;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--pill-bg);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
}

/* 训练营：学完你将拥有（获得感清单） */
.harvest-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.harvest-list li {
  position: relative;
  padding: 13px 16px 13px 44px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}
.harvest-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}
.camp-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 10px;
  padding: 9px 22px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.camp-cta:hover { background: var(--accent-deep); }
.camp-cta-todo {
  background: var(--pill-bg);
  color: var(--text-faint);
  cursor: default;
}
.camp-cta-todo:hover { background: var(--pill-bg); }
.camp-cta-todo i {
  font-style: normal;
  font-size: 12px;
  background: var(--border);
  border-radius: 5px;
  padding: 1px 8px;
  margin-left: 8px;
}
/* 弹二维码卡的 button 形态：重置原生按钮样式，可点态提示 */
button.camp-cta { border: 0; font-family: inherit; cursor: pointer; }
button.quick-btn { font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; }
button.quick-btn:hover { border-color: var(--accent); color: var(--accent); }
/* 详情页卡片 CTA 行：多个按钮并排 */
.camp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ---------- 训练营社群 · 知识星球 ---------- */
.zsxq-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
}
.zsxq-logo {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #00A86D, #33C08F);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 168, 109, 0.28);
}
/* 知识星球品牌绿容器：绿色渐变 + 绿色光晕 */
.zsxq-logo--tech {
  background: linear-gradient(135deg, #00A86D, #2FBE8A);
  box-shadow: 0 4px 14px rgba(0, 168, 109, 0.3);
}
.zsxq-info { flex: 1; min-width: 0; }
.zsxq-name { font-size: 16px; font-weight: 700; color: var(--text); }
.zsxq-chip {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #008A59;
  background: rgba(0, 168, 109, 0.09);
  border: 1px solid rgba(0, 168, 109, 0.3);
  border-radius: 999px;
  padding: 1px 9px;
}
.zsxq-desc { margin: 6px 0 10px; font-size: 13.5px; color: var(--text-soft); line-height: 1.6; }
.zsxq-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
}
.zsxq-perks li { padding-left: 20px; position: relative; }
.zsxq-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #856404;
  background: #FFF8E6;
  border-left: 3px solid #E8B54D;
  border-radius: 8px;
  padding: 8px 12px;
}
.zsxq-perks li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: #00A86D;
  font-weight: 700;
}
.zsxq-action { flex: none; padding-top: 4px; }
/* 知识星球品牌绿按钮（覆盖 camp-cta 橙色） */
.zsxq-btn { background: #00A86D; }
.zsxq-btn:hover { background: #009461; }
.zsxq-btn.camp-cta-todo { background: var(--pill-bg); }
.zsxq-btn.camp-cta-todo:hover { background: var(--pill-bg); }
@media (max-width: 720px) {
  .zsxq-card { flex-direction: column; }
  .zsxq-action { padding-top: 0; }
}

/* ---------- 首页右栏 · 关于我 ---------- */
.rail-about {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  margin-bottom: 18px;
  padding: 20px 18px 16px;
  text-align: center;
}
.about-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
  border: 3px solid var(--accent-soft);
}
.about-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.about-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-soft);
  text-align: left;
  margin: 0 0 8px;
}
.about-text:last-child { margin-bottom: 0; }

/* ---------- 列表空状态 ---------- */
.empty-state {
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--pill-bg);
  padding: 48px 24px;
  text-align: center;
  margin: 24px 0;
}
.empty-title { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.empty-note { font-size: 13px; color: var(--text-faint); margin: 0; }

/* ---------- 文章详情页 ---------- */
/* 三栏网格与 docs 二级页完全同构（208 + 主列 + 240），正文列宽与课程/图书等页一致，
   页面切换时标题与内容块左缘不再跳动；主列宽 = 1132 - 208 - 240 - 64 = 620px */
/* 注意：display:none 必须写在媒体查询之前，否则会覆盖桌面端的 display:block */
.toc-side { display: none; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  /* 窄屏：正文保持 700px 窄版心，避免一行文字过长 */
  max-width: 700px;
  margin: 0 auto;
}
@media (min-width: 1021px) {
  .article-layout {
    max-width: none;
    grid-template-columns: 208px minmax(0, 1fr) 240px;
    gap: 0 32px;
  }
  .toc-side {
    display: block;
    grid-area: 1 / 1;
    /* 粘性挂在容器上：返回卡 + 目录卡作为一个整体吸附，不再各自 sticky 互相覆盖 */
    position: sticky;
    top: 96px;
    align-self: start;
  }
  .article-layout .article-full { grid-area: 1 / 2; }
  /* 无目录的文章：左栏只保留返回卡，网格列宽不变 */
}
.article-cover {
  margin-bottom: 24px;
}
.article-cover img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}
.article-full h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 14px;
}
/* 目录导航（移动端折叠卡 + 桌面端右栏共用样式内核） */
.article-content h2, .article-content h3 { scroll-margin-top: 80px; }
.toc-inline {
  margin: 0 0 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  font-size: 14px;
}
.toc-inline summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 16px;
  color: var(--text);
}
.toc-inline ul { padding: 2px 16px 12px 30px; margin: 0; }
.toc-inline li { margin: 4px 0; list-style: none; }
.toc-inline a { color: var(--text-soft); text-decoration: none; }
.toc-inline a:hover { color: var(--accent); }
.toc-inline ul ul { padding-left: 18px; }
.toc-inline { display: block; }
@media (min-width: 1200px) { .toc-inline { display: none; } }
/* 桌面端左侧目录卡（粘性由 .toc-side 容器统一承担，卡片自身不再 sticky） */
.toc-card {
  border-right: 2px solid var(--border);
  padding-right: 18px;
  font-size: 13.5px;
}
/* 目录卡超高时内部滚动；返回卡内容矮不限制 */
.toc-card:not(.toc-back-card) {
  max-height: calc(100vh - 190px);
  overflow-y: auto;
}
.toc-card .toc-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 14px;
}
.toc-card ul { padding-left: 12px; margin: 0; }
.toc-card ul ul { padding-left: 14px; }
.toc-card li { list-style: none; margin: 5px 0; line-height: 1.5; }
.toc-card a {
  color: var(--text-soft);
  text-decoration: none;
  display: block;
  border-left: 2px solid transparent;
  margin-left: -20px;
  padding-left: 18px;
  transition: color 0.15s;
}
.toc-card a:hover { color: var(--accent); }
.toc-card a.toc-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.article-full .meta {
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-full .meta .cat, .article-full .meta a { color: var(--accent); text-decoration: none; }
.article-full .meta .tag::before { content: "#"; opacity: 0.6; }
.article-content { font-size: 15.5px; line-height: 1.9; }
.article-content h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 14px;
  padding-top: 4px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}
.article-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 14px;
  padding-top: 4px;
}
.article-content h3 { font-size: 17px; font-weight: 700; margin: 30px 0 12px; }
.article-content h4, .article-content h5 { font-size: 16px; font-weight: 700; margin: 26px 0 10px; }
.article-content p { margin-bottom: 14px; }
/* 图题/表题：居中、弱化 */
.article-content .fig-caption {
  text-align: center;
  color: var(--soft);
  font-size: 14px;
  margin: -8px 0 18px;
}
.article-content img + .fig-caption, p.fig-caption { text-align: center; }
.article-content ul, .article-content ol { padding-left: 1.6em; margin-bottom: 14px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  padding: 10px 16px;
  margin: 16px 0;
  color: var(--text-soft);
  font-size: 14.5px;
}
/* 公众号样式：图片占满正文栏宽（100%），居中，不限高，文字随宽度等比放大；点击可放大（公众号同款） */
.article-content img { max-width: 100%; width: auto; height: auto; display: block; margin: 16px auto; border-radius: 10px; cursor: zoom-in; }
.article-content a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed var(--accent); }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.article-content th, .article-content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
.article-content th { background: var(--pill-bg); }
.article-content code {
  font-family: "JetBrains Mono", "Source Han Sans SC", monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}
.article-content pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 18px 0;
  font-size: 13.5px;
  line-height: 1.6;
}
.article-content pre code { background: none; border: none; padding: 0; font-size: inherit; }
.article-back {
  display: inline-block;
  margin-top: 48px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}
.article-back:hover { text-decoration: underline; }

/* ---------- 列表页 / 分页 ---------- */
.list-page .taxonomies { margin-top: 8px; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
  font-size: 14px;
}
.pagination a, .pagination span {
  color: var(--text-soft);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
}
.pagination a:hover { color: var(--accent); border-color: var(--accent); }
.pagination .current { color: #fff; background: var(--accent); border-color: var(--accent); }
.pagination .pg-dots { border: none; background: none; padding: 4px 2px; }

/* ---------- 文章页左侧返回卡（样式与底部 .article-back 一致） ---------- */
.toc-back-card { padding: 12px 14px; margin-bottom: 12px; }
.toc-back {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}
.toc-back:hover { text-decoration: underline; }

/* ---------- 页脚 ---------- */
footer {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
footer a { color: var(--text-faint); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ---------- Chroma 代码高亮（light/dark 各一套变量，简化处理：跟随主题底色） ---------- */
.article-content .highlight { margin: 18px 0; }
.article-content .highlight pre { margin: 0; }

/* 小屏导航：两行式（站名一行，菜单铺满第二行），保证不溢出视口 */
@media (max-width: 620px) {
  .site-logo { width: 22px; height: 22px; border-radius: 6px; }
  .site-name { font-size: 14px; }
  .header-inner { flex-wrap: wrap; padding: 10px 16px 8px; row-gap: 2px; }
  .topbar-right { width: 100%; gap: 0; }
  .mainnav { flex: 1; justify-content: space-between; margin-right: 10px; }
  .mainnav a { font-size: 13.5px; padding: 5px 8px; }
  .theme-toggle { width: 30px; height: 30px; font-size: 14px; }
}



/* ---------- 代码高亮：chroma 双主题（明 github / 暗 onedark），noClasses=false ---------- */
.article-content .bg { background-color:#f7f7f7; }
.article-content .chroma { background-color:var(--code-bg);-webkit-text-size-adjust:none; }
.article-content .chroma .err { color:#f6f8fa;background-color:#82071e }
.article-content .chroma .lnlinks { outline:none;text-decoration:none;color:inherit }
.article-content .chroma .lntd { vertical-align:top;padding:0;margin:0;border:0; }
.article-content .chroma .lntable { border-spacing:0;padding:0;margin:0;border:0; }
.article-content .chroma .hl { background-color:#dedede }
.article-content .chroma .lnt { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f }
.article-content .chroma .ln { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f }
.article-content .chroma .line { display:flex; }
.article-content .chroma .k { color:#cf222e }
.article-content .chroma .kc { color:#cf222e }
.article-content .chroma .kd { color:#cf222e }
.article-content .chroma .kn { color:#cf222e }
.article-content .chroma .kp { color:#cf222e }
.article-content .chroma .kr { color:#cf222e }
.article-content .chroma .kt { color:#cf222e }
.article-content .chroma .na { color:#1f2328 }
.article-content .chroma .nc { color:#1f2328 }
.article-content .chroma .no { color:#0550ae }
.article-content .chroma .nd { color:#0550ae }
.article-content .chroma .ni { color:#6639ba }
.article-content .chroma .nl { color:#900;font-weight:bold }
.article-content .chroma .nn { color:#24292e }
.article-content .chroma .nx { color:#1f2328 }
.article-content .chroma .nt { color:#0550ae }
.article-content .chroma .nb { color:#6639ba }
.article-content .chroma .bp { color:#6a737d }
.article-content .chroma .nv { color:#953800 }
.article-content .chroma .vc { color:#953800 }
.article-content .chroma .vg { color:#953800 }
.article-content .chroma .vi { color:#953800 }
.article-content .chroma .vm { color:#953800 }
.article-content .chroma .nf { color:#6639ba }
.article-content .chroma .fm { color:#6639ba }
.article-content .chroma .s { color:#0a3069 }
.article-content .chroma .sa { color:#0a3069 }
.article-content .chroma .sb { color:#0a3069 }
.article-content .chroma .sc { color:#0a3069 }
.article-content .chroma .dl { color:#0a3069 }
.article-content .chroma .sd { color:#0a3069 }
.article-content .chroma .s2 { color:#0a3069 }
.article-content .chroma .se { color:#0a3069 }
.article-content .chroma .sh { color:#0a3069 }
.article-content .chroma .si { color:#0a3069 }
.article-content .chroma .sx { color:#0a3069 }
.article-content .chroma .sr { color:#0a3069 }
.article-content .chroma .s1 { color:#0a3069 }
.article-content .chroma .ss { color:#032f62 }
.article-content .chroma .m { color:#0550ae }
.article-content .chroma .mb { color:#0550ae }
.article-content .chroma .mf { color:#0550ae }
.article-content .chroma .mh { color:#0550ae }
.article-content .chroma .mi { color:#0550ae }
.article-content .chroma .il { color:#0550ae }
.article-content .chroma .mo { color:#0550ae }
.article-content .chroma .o { color:#0550ae }
.article-content .chroma .ow { color:#0550ae }
.article-content .chroma .or { color:#0550ae }
.article-content .chroma .p { color:#1f2328 }
.article-content .chroma .c { color:#57606a }
.article-content .chroma .ch { color:#57606a }
.article-content .chroma .cm { color:#57606a }
.article-content .chroma .c1 { color:#57606a }
.article-content .chroma .cs { color:#57606a }
.article-content .chroma .cp { color:#57606a }
.article-content .chroma .cpf { color:#57606a }
.article-content .chroma .gd { color:#82071e;background-color:#ffebe9 }
.article-content .chroma .ge { color:#1f2328 }
.article-content .chroma .gi { color:#116329;background-color:#dafbe1 }
.article-content .chroma .go { color:#1f2328 }
.article-content .chroma .gl { text-decoration:underline }
.article-content .chroma .w { color:#fff }
html.dark .article-content .bg { color:#abb2bf;background-color:#282c34; }
html.dark .article-content .chroma { color:#abb2bf;background-color:var(--code-bg);-webkit-text-size-adjust:none; }
html.dark .article-content .chroma .lnlinks { outline:none;text-decoration:none;color:inherit }
html.dark .article-content .chroma .lntd { vertical-align:top;padding:0;margin:0;border:0; }
html.dark .article-content .chroma .lntable { border-spacing:0;padding:0;margin:0;border:0; }
html.dark .article-content .chroma .hl { background-color:#3d4148 }
html.dark .article-content .chroma .lnt { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#55595f }
html.dark .article-content .chroma .ln { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#55595f }
html.dark .article-content .chroma .line { display:flex; }
html.dark .article-content .chroma .k { color:#c678dd }
html.dark .article-content .chroma .kc { color:#e5c07b }
html.dark .article-content .chroma .kd { color:#c678dd }
html.dark .article-content .chroma .kn { color:#c678dd }
html.dark .article-content .chroma .kp { color:#c678dd }
html.dark .article-content .chroma .kr { color:#c678dd }
html.dark .article-content .chroma .kt { color:#e5c07b }
html.dark .article-content .chroma .n { color:#e06c75 }
html.dark .article-content .chroma .na { color:#e06c75 }
html.dark .article-content .chroma .nc { color:#e5c07b }
html.dark .article-content .chroma .no { color:#e06c75 }
html.dark .article-content .chroma .nd { color:#61afef }
html.dark .article-content .chroma .ni { color:#e06c75 }
html.dark .article-content .chroma .ne { color:#e06c75 }
html.dark .article-content .chroma .nl { color:#e06c75 }
html.dark .article-content .chroma .nn { color:#e06c75 }
html.dark .article-content .chroma .nx { color:#e06c75 }
html.dark .article-content .chroma .py { color:#e06c75 }
html.dark .article-content .chroma .nt { color:#e06c75 }
html.dark .article-content .chroma .nb { color:#e5c07b }
html.dark .article-content .chroma .bp { color:#e5c07b }
html.dark .article-content .chroma .nv { color:#e06c75 }
html.dark .article-content .chroma .vc { color:#e06c75 }
html.dark .article-content .chroma .vg { color:#e06c75 }
html.dark .article-content .chroma .vi { color:#e06c75 }
html.dark .article-content .chroma .vm { color:#e06c75 }
html.dark .article-content .chroma .nf { color:#61afef;font-weight:bold }
html.dark .article-content .chroma .fm { color:#56b6c2;font-weight:bold }
html.dark .article-content .chroma .s { color:#98c379 }
html.dark .article-content .chroma .sa { color:#98c379 }
html.dark .article-content .chroma .sb { color:#98c379 }
html.dark .article-content .chroma .sc { color:#98c379 }
html.dark .article-content .chroma .dl { color:#98c379 }
html.dark .article-content .chroma .sd { color:#98c379 }
html.dark .article-content .chroma .s2 { color:#98c379 }
html.dark .article-content .chroma .se { color:#98c379 }
html.dark .article-content .chroma .sh { color:#98c379 }
html.dark .article-content .chroma .si { color:#98c379 }
html.dark .article-content .chroma .sx { color:#98c379 }
html.dark .article-content .chroma .sr { color:#98c379 }
html.dark .article-content .chroma .s1 { color:#98c379 }
html.dark .article-content .chroma .ss { color:#98c379 }
html.dark .article-content .chroma .m { color:#d19a66 }
html.dark .article-content .chroma .mb { color:#d19a66 }
html.dark .article-content .chroma .mf { color:#d19a66 }
html.dark .article-content .chroma .mh { color:#d19a66 }
html.dark .article-content .chroma .mi { color:#d19a66 }
html.dark .article-content .chroma .il { color:#d19a66 }
html.dark .article-content .chroma .mo { color:#d19a66 }
html.dark .article-content .chroma .o { color:#56b6c2 }
html.dark .article-content .chroma .ow { color:#56b6c2 }
html.dark .article-content .chroma .or { color:#56b6c2 }
html.dark .article-content .chroma .p { color:#abb2bf }
html.dark .article-content .chroma .c { color:#7f848e }
html.dark .article-content .chroma .ch { color:#7f848e }
html.dark .article-content .chroma .cm { color:#7f848e }
html.dark .article-content .chroma .c1 { color:#7f848e }
html.dark .article-content .chroma .cs { color:#7f848e }
html.dark .article-content .chroma .cp { color:#7f848e }
html.dark .article-content .chroma .cpf { color:#7f848e }
html.dark .article-content .chroma .gd { color:#e06c75 }
html.dark .article-content .chroma .gi { color:#98c379;font-weight:bold }
