/* ============================================================
   站点自定义样式（css_custom）
   仿 Butterfly 卡片化侧栏：每模块独立白卡 / 圆角 / 阴影
   颜色一律用 Stun 的 CSS 变量，日间/夜间模式自动切换
   ============================================================ */

/* ---------- 卡片容器 ---------- */
.sidebar-ov .sidebar-ov-card {
  background: var(--color-card);
  border: 1px solid var(--color-gray-260);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: .9rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

/* 悬停：整卡上浮 + 阴影加深 + 淡蓝描边（与归档行卡片同语言） */
.sidebar-ov .sidebar-ov-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, .13), 0 3px 6px rgba(0, 0, 0, .06);
  transform: translateY(-3px);
  border-color: rgba(27, 158, 243, .35);
}

/* 卡片标题：淡蓝色块图标 + 文字 + 渐隐底线 */
.sidebar-card__headline {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-800);
  padding-bottom: .55rem;
  margin-bottom: .65rem;
  border-bottom: none;
  position: relative;
}
.sidebar-card__headline::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gray-300), transparent);
}
.sidebar-card__headline i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  color: #1b9ef3;
  font-size: 12px;
  background: rgba(27, 158, 243, .1);
}

/* ---------- 卡片 1：作者名片 ---------- */
.sidebar-card-author {
  text-align: center;
}

.sidebar-card-author .sidebar-ov-author__avatar {
  margin-bottom: .6rem;
}

/* 头像渐变光环（双层环：白缝 + 淡蓝晕） */
.sidebar-card-author .sidebar-ov-author__avatar_img {
  box-shadow: 0 0 0 3px var(--color-card), 0 0 0 5px rgba(27, 158, 243, .35);
}

.sidebar-card-author__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-800);
  line-height: 1.4;
}

.sidebar-card-author__desc {
  font-size: 12.5px;
  color: var(--color-gray-600);
  margin: .35rem 0 .8rem;
  line-height: 1.5;
}

/* 统计三项横排（项间细分隔线） */
.sidebar-card-author__data {
  display: flex;
  justify-content: space-around;
  padding: .55rem 0;
  margin-bottom: .8rem;
  border-top: 1px solid var(--color-gray-260);
  border-bottom: 1px solid var(--color-gray-260);
}

.sidebar-card-data__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  min-width: 56px;
  position: relative;
}
.sidebar-card-data__item + .sidebar-card-data__item::before {
  content: '';
  position: absolute; left: -.5rem; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 60%;
  background: var(--color-gray-260);
}

.sidebar-card-data__num {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #1b9ef3, #6366f1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter .2s ease;
}

.sidebar-card-data__label {
  font-size: 11px;
  color: var(--color-gray-600);
}

.sidebar-card-data__item:hover .sidebar-card-data__num {
  filter: brightness(1.15);
}

/* AI 工具箱入口按钮 */
.sidebar-card-author__follow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem 1.5rem;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .05em;
  color: #ffffff;
  background: linear-gradient(135deg, #1b9ef3, #0d7fd6);
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(27, 158, 243, .35);
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.sidebar-card-author__follow:hover {
  color: #ffffff;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(27, 158, 243, .5);
}

/* ---------- 卡片 2：最新文章 ---------- */
.sidebar-card-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-card-posts__item {
  padding: .42rem .5rem;
  margin: 0 -.5rem;
  border-radius: 8px;
  transition: background-color .18s ease;
}
.sidebar-card-posts__item + .sidebar-card-posts__item {
  margin-top: 2px;
}

/* 整行 hover 淡蓝反馈（同归档行卡片） */
.sidebar-card-posts__item:hover {
  background: rgba(27, 158, 243, .06);
}

.sidebar-card-posts__title {
  display: block;
  font-size: 13px;
  color: var(--color-gray-800);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .18s ease;
}

.sidebar-card-posts__item:hover .sidebar-card-posts__title {
  color: #1b9ef3;
}

/* 日期小胶囊（同归档日期胶囊语言） */
.sidebar-card-posts__date {
  display: inline-block;
  font-size: 11px;
  color: var(--color-gray-600);
  font-variant-numeric: tabular-nums;
  margin-top: .2rem;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--color-gray-200);
  transition: color .18s ease, background-color .18s ease;
}
.sidebar-card-posts__item:hover .sidebar-card-posts__date {
  color: #1b9ef3;
  background: rgba(27, 158, 243, .12);
}

/* ---------- 卡片 3：分类列表（色点呼应分类页 6 色板） ---------- */
.sidebar-card-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-card-cats__item {
  padding: .22rem .4rem;
  margin: 0 -.4rem;
  border-radius: 8px;
  transition: background-color .18s ease;
}
.sidebar-card-cats__item:hover {
  background: rgba(27, 158, 243, .06);
}

.sidebar-card-cats__item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: 13px;
  color: var(--color-gray-800);
  transition: color .18s ease;
}

/* 分类色点：6 色板轮换（与分类页 category-card 一致） */
.sidebar-card-cats__name {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-card-cats__name::before {
  content: '';
  flex: 0 0 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}
.sidebar-card-cats__item:nth-child(6n+2) .sidebar-card-cats__name::before { background: #8b5cf6; }
.sidebar-card-cats__item:nth-child(6n+3) .sidebar-card-cats__name::before { background: #10b981; }
.sidebar-card-cats__item:nth-child(6n+4) .sidebar-card-cats__name::before { background: #f59e0b; }
.sidebar-card-cats__item:nth-child(6n+5) .sidebar-card-cats__name::before { background: #ef4444; }
.sidebar-card-cats__item:nth-child(6n+6) .sidebar-card-cats__name::before { background: #06b6d4; }

.sidebar-card-cats__item a:hover {
  color: #1b9ef3;
}

/* 计数胶囊 */
.sidebar-card-cats__count {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--color-gray-600);
  background: var(--color-gray-200);
  border-radius: 999px;
  padding: .1rem .55rem;
  font-variant-numeric: tabular-nums;
  transition: background-color .18s ease, color .18s ease;
}

.sidebar-card-cats__item a:hover .sidebar-card-cats__count {
  color: #ffffff;
  background: #1b9ef3;
}

/* ---------- 卡片 4：标签云（胶囊同标签页 tagcloud-chip 语言） ---------- */
.sidebar-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .4rem;
}

.sidebar-card-tags__item {
  font-size: 12px;
  color: var(--color-gray-700);
  background: var(--color-gray-200);
  border-radius: 999px;
  padding: .2rem .7rem;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.sidebar-card-tags__item:hover {
  color: #ffffff;
  background: #1b9ef3;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(27, 158, 243, .3);
}

/* 标签卡「查看全部」链接 */
.sidebar-card-tags__more {
  font-size: 12px;
  color: var(--color-gray-700);
  padding: .2rem .5rem;
  transition: color .18s ease;
}

.sidebar-card-tags__more:hover {
  color: #1b9ef3;
}

/* ---------- 卡片 5：RSS 订阅 ---------- */
.sidebar-card-feed a {
  font-size: 12.5px;
  color: var(--color-gray-700);
  transition: color .18s ease;
}

.sidebar-card-feed a:hover {
  color: #1b9ef3;
}

/* ---------- 夜间模式阴影适配（卡片本身已用变量换底色，阴影加深一档） ---------- */
html.nightmode .sidebar-ov .sidebar-ov-card {
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .25);
}

html.nightmode .sidebar-ov .sidebar-ov-card:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5), 0 3px 8px rgba(0, 0, 0, .3);
}

/* ============================================================
   文章页目录卡：概览常驻左栏，目录宽屏悬浮正文右侧
   ============================================================ */

/* 目录卡内列表适配窄卡（原样式按 300px 侧栏设计） */
.sidebar-ov .sidebar-toc .toc {
  font-size: 13px;
}

/* 宽屏：目录卡 fixed 到正文右侧，形成 概览(左)-正文(中)-目录(右) 三栏
   top = 导航栏 50px + 20px 间距，避免与 fixed 导航栏重叠 */
@media (min-width: 1680px) {
  .sidebar .sidebar-toc.sidebar-ov-card {
    position: fixed;
    top: 70px;
    right: max(20px, calc((100vw - 1138px) / 2 - 250px));
    width: 230px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    margin-bottom: 0;
  }
}

/* ============================================================
   侧栏滚动吸附：flex 布局 + 内层 sticky（照抄 Butterfly 方案）
   ============================================================
   根因修复（前几版不生效的两个真凶）：
   ① 主题 .container 带 overflow: hidden（macro.styl）——sticky 的滚动参照物
     会变成这个「永不滚动的滚动容器」，吸附永远不触发。
     改为 overflow: clip：视觉裁剪效果完全相同，但不产生滚动容器，sticky 恢复工作。
   ② sticky 的包含块 .sidebar-ov 高度是 auto（= 自身内容高度），没有吸附行程。
     flex 拉伸只到 .sidebar-wrap 这一层，中间的 #sidebar / .sidebar-ov 断了链。
     用 height:100% → min-height:100% 把列高传导到 sticky 的包含块。 */
.container {
  overflow: clip;
}

.main-inner {
  display: flex;
  align-items: stretch;
}

/* 正文列：中和 float，flex 弹性占满剩余空间 */
.content-wrap {
  float: none;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}

/* 侧栏列：DOM 在正文之后，用 order 提前实现左侧位；固定宽不收缩 */
.sidebar-wrap {
  float: none;
  order: -1;
  flex: 0 0 300px;
  width: auto;
  margin-right: 30px;
}

/* 高度传导链（根因②）：#sidebar 占满被 flex 拉伸的侧栏列，
   .sidebar-ov 至少撑满列高 —— sticky 从此获得全程吸附行程。
   同时去掉主题给 #sidebar 的白色卡壳（background/padding/border-radius），
   让卡片直接落在页面背景上，与 whitee.cn 的分离卡片形态一致 */
#sidebar.sidebar {
  height: 100%;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.sidebar-ov {
  min-height: 100%;
}

/* sticky 组：吸附于导航栏（50px）下方 20px 处 */
.sidebar-sticky {
  position: sticky;
  top: 70px;
}

/* 中和主题 JS 动态添加的 .sidebar--sticky（fixed 吸附）：
   类还会被加，但样式全部失效，吸附行为由上面的 sticky 接管 */
.sidebar.sidebar--sticky {
  position: static;
  transform: none;
  max-height: none;
  overflow-y: visible;
}

/* ============================================================
   上一篇 / 下一篇：单条深色横幅左右分布（仿 whitee.cn）
   ============================================================ */
.post-paginator-bar {
  display: flex;
  margin-top: 1.2rem;
  border-radius: 8px;
  background: #2d3e50;
  overflow: hidden;
}

.post-paginator-bar__item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: .7rem 1.05rem;
  color: #ffffff;
  transition: background-color .2s ease;
}

.post-paginator-bar__item--prev {
  text-align: left;
}

.post-paginator-bar__item--next {
  text-align: right;
}

.post-paginator-bar__item:hover {
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

.post-paginator-bar__label {
  font-size: 11px;
  color: rgba(255, 255, 255, .6);
}

.post-paginator-bar__title {
  font-size: 13.5px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* hover 时标题完整展开（仿 whitee.cn）：取消单行截断，自动换行显示全 */
.post-paginator-bar__item:hover .post-paginator-bar__title {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* 两块之间的细分隔线（仅两边都存在时出现） */
.post-paginator-bar__item--prev + .post-paginator-bar__item--next {
  border-left: 1px solid rgba(255, 255, 255, .14);
}

/* 夜间模式：底色提亮一档与页面背景区分 */
html.nightmode .post-paginator-bar {
  background: #3a4d63;
}

/* ============================================================
   相关文章：白卡 + 垂直列表，标题左/日期右（仿主站样式）
   ============================================================ */
.post-related {
  margin-top: 1.2rem;
  background: var(--color-card);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
}

.post-related__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-800);
  padding-bottom: .55rem;
  margin-bottom: .3rem;
  border-bottom: 1px solid var(--color-gray-260);
}

.post-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-related__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .42rem 0;
}

.post-related__link {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--color-gray-800);
  line-height: 1.5;
  transition: color .2s ease;
}

.post-related__link:hover {
  color: #54bcff;
}

.post-related__date {
  flex-shrink: 0;
  font-size: 11.5px;
  color: var(--color-gray-600);
}

html.nightmode .post-related {
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .25);
}

/* ---------- 文章 meta 区：阅读次数颜色统一 ----------
   Stun 主题默认给阅读次数上橙红强调色（$post-reading-count-color = $orange-dark），
   与发表时间/字数统计的灰色不一致——统一为主题灰 */
.post-meta-item--visitors {
  color: var(--color-gray-700);
}

/* ---------- 列表页文章标题（SEO 将 h1 降级 h2 后的视觉兜底） ---------- */
h2.post-title {
  font-size: 1.6em;
}

/* ---------- 薄内容页 H1（归档/分类/标签/关于，SEO 补充） ---------- */
h1.page-h1,
h1.tagcloud-total,
h1.category-total {
  margin: 0 0 1rem;
  font-size: 1.7em;
  font-weight: 600;
  color: var(--color-gray-800);
  line-height: 1.4;
}

h1.tagcloud-total span,
h1.category-total span {
  font-size: .65em;
  font-weight: 400;
  color: var(--color-gray-500);
}

/* ---------- 分类页列表美化（Butterfly 风：图标+名称+徽章，整行 hover） ---------- */
ul.category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-list__item {
  margin: 0 0 10px;
}

.category-list__item:last-child {
  margin-bottom: 0;
}

.category-list__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--color-card);
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.category-list__link:hover {
  border-color: #54bcff;
  box-shadow: 0 3px 10px rgba(84, 188, 255, .18);
  transform: translateY(-1px);
}

.category-list__icon {
  font-size: 16px;
  color: #54bcff;
  flex-shrink: 0;
}

.category-list__name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-gray-800);
}

.category-list__count {
  min-width: 26px;
  padding: 1px 9px;
  border-radius: 13px;
  font-size: 12.5px;
  text-align: center;
  color: #54bcff;
  background: rgba(84, 188, 255, .12);
  transition: color .2s ease, background .2s ease;
}

.category-list__link:hover .category-list__count {
  color: #ffffff;
  background: #54bcff;
}



/* ================= AI 工具箱导航页 ================= */
.ai-nav { max-width: 900px; margin: 0 auto; }
.ai-nav-intro { color: var(--color-gray-700, #666); font-size: 15px; margin: -8px 0 18px; }

/* 搜索框：聚焦光晕 + 框内计数胶囊 + 快捷键/清除双态按钮 */
.ai-nav-search {
  position: relative; display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.ai-nav-search-icon { position: absolute; left: 15px; color: #999; font-size: 14px; pointer-events: none; transition: color 0.2s; }
.ai-nav-search:focus-within .ai-nav-search-icon { color: #1b9ef3; }
#ai-nav-filter {
  flex: 1; width: 100%; padding: 13px 92px 13px 40px; border-radius: 12px; font-size: 14.5px;
  border: 1px solid var(--color-gray-300, #ddd);
  background: var(--color-card-bg, #fff); color: var(--color-text, #333);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
#ai-nav-filter::placeholder { color: #aaa; }
#ai-nav-filter:hover { border-color: #b6d8f5; }
#ai-nav-filter:focus { border-color: #1b9ef3; box-shadow: 0 0 0 3px rgba(27, 158, 243, 0.12); }
.ai-nav-count {
  position: absolute; right: 44px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; line-height: 1.4; color: var(--color-gray-700, #888);
  background: var(--color-gray-300, #eef1f4);
  pointer-events: none; font-variant-numeric: tabular-nums;
}
.ai-nav-search-btn {
  position: absolute; right: 12px; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-gray-300, #ddd); border-radius: 6px;
  background: transparent; color: #999; font-size: 13px; line-height: 1;
  cursor: pointer; padding: 0; transition: all 0.15s;
}
.ai-nav-search-btn[hidden] { display: none; }
.ai-nav-search-btn.is-kbd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.ai-nav-search-btn.is-kbd:hover { color: #1b9ef3; border-color: #1b9ef3; }
.ai-nav-search-btn.is-clear { border-color: transparent; font-size: 16px; }
.ai-nav-search-btn.is-clear:hover { color: #ef4444; background: rgba(239, 68, 68, 0.06); }

/* 分类锚点条：单行 + 横向滚动 + 磨砂吸顶，右缘渐隐提示可滑动 */
.ai-nav-tabs {
  display: flex; flex-wrap: nowrap; gap: 10px;
  position: sticky; top: 70px; z-index: 10;
  padding: 12px 0; margin-bottom: 10px;
  background: var(--body-bg, #f6f8fa);
  background: color-mix(in srgb, var(--body-bg, #f6f8fa) 82%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent 100%);
}
.ai-nav-tabs::-webkit-scrollbar { display: none; }
.ai-nav-tab {
  display: inline-flex; align-items: center; gap: 6px;
  flex: 0 0 auto; white-space: nowrap;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--color-card-bg, #fff); color: var(--color-text, #555);
  border: 1px solid var(--color-gray-300, #e2e6ea);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  text-decoration: none; transition: all 0.18s;
}
.ai-nav-tab i { font-size: 12px; opacity: 0.55; transition: opacity 0.18s; }
.ai-nav-tab:hover { border-color: #1b9ef3; color: #1b9ef3; }
.ai-nav-tab:hover i { opacity: 1; }
.ai-nav-tab.active {
  background: linear-gradient(135deg, #1b9ef3, #0d7fd6);
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 10px rgba(27, 158, 243, 0.35);
}
.ai-nav-tab.active i { opacity: 1; }

/* 分类区块 */
.ai-nav-section { margin-top: 40px; scroll-margin-top: 130px; }
.ai-nav-section-title { font-size: 19px; margin: 0 0 4px; }
.ai-nav-section-desc { font-size: 13px; font-weight: normal; color: #999; margin-left: 10px; }

/* 卡片网格 */
.ai-nav-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px;
  margin-top: 16px;
}
.ai-nav-card {
  display: flex; align-items: stretch;
  border-radius: 10px; overflow: hidden;
  background: var(--color-card-bg, #fff);
  border: 1px solid var(--color-gray-300, #e2e6ea);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.ai-nav-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.09); border-color: #b6d8f5; }
.ai-nav-card-main {
  flex: 1; display: flex; align-items: center; gap: 14px;
  padding: 15px 16px; text-decoration: none; min-width: 0;
}
.ai-nav-avatar {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; font-weight: 600; letter-spacing: 0.5px;
}
.ai-nav-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ai-nav-name {
  font-size: 14.5px; font-weight: 600; color: var(--color-text, #333);
  display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden;
}
.ai-nav-hot { color: #ff6b35; font-size: 12px; }
.ai-nav-desc {
  font-size: 12.5px; color: #888; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 实测徽章 */
.ai-nav-badge {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 0 12px; font-size: 11px; color: #10b981; text-decoration: none;
  border-left: 1px dashed var(--color-gray-300, #e2e6ea); white-space: nowrap;
  transition: background 0.15s;
}
.ai-nav-badge i { font-size: 15px; }
.ai-nav-badge:hover { background: #10b98114; color: #0a9e6c; }

/* 空状态 */
.ai-nav-empty { text-align: center; color: #999; padding: 40px 0; font-size: 14px; }

/* 网络问题横幅卡：置顶提示卡（数据在 ai-nav.yml 的 network_card 块，缺席不渲染） */
.ai-nav-netcard {
  margin: 14px 0 4px;
  padding: 11.5px 18px;
  border: 1px solid rgba(27, 158, 243, .3);
  border-radius: 12px;
  background: rgba(27, 158, 243, .06);
}
.ai-nav-netcard-head { display: flex; align-items: center; gap: 9px; margin: 0 0 3px; }
.ai-nav-netcard-icon { color: #1b9ef3; font-size: 16px; }
.ai-nav-netcard-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.ai-nav-netcard-desc { margin: 0 0 9px; font-size: 13px; color: #999; }
.ai-nav-netcard-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
/* 徽章与链接芯片同一几何（padding/描边/字号），仅颜色区分：绿=主行动，蓝=次级 */
.ai-nav-netcard-badge,
.ai-nav-netcard-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid rgba(27, 158, 243, .28);
  background: rgba(27, 158, 243, .1);
  color: #1b9ef3;
  transition: background .15s, color .15s, border-color .15s;
}
.ai-nav-netcard-badge {
  border-color: rgba(16, 185, 129, .28);
  background: rgba(16, 185, 129, .1);
  color: #10b981;
}
.ai-nav-netcard-badge i { font-size: 12px; }
.ai-nav-netcard-badge:hover {
  color: #0a9e6c;
  background: rgba(16, 185, 129, .2);
  border-color: #10b981;
}
.ai-nav-netcard-link:hover {
  color: #ffffff;
  background: #1b9ef3;
  border-color: #1b9ef3;
}

@media (max-width: 600px) {
  .ai-nav-tabs { top: 60px; }
  .ai-nav-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .ai-nav-badge { padding: 0 8px; }
  .ai-nav-netcard { padding: 10px 14px; }
}

/* AI 工具箱页正文块（选型指南 + FAQ，渲染在工具列表下方） */
.ai-nav-content { margin-top: 44px; font-size: 15px; line-height: 1.85; }
.ai-nav-content h2 {
  font-size: 20px; margin: 30px 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--color-gray-300, #e2e6ea);
}
.ai-nav-content h3 { font-size: 16.5px; margin: 22px 0 8px; }
.ai-nav-content p { margin: 10px 0; color: var(--color-text, #444); }
.ai-nav-content ul { padding-left: 22px; margin: 10px 0; }
.ai-nav-content li { margin: 7px 0; color: var(--color-text, #444); }
.ai-nav-content a { color: #1b9ef3; }
.ai-nav-updated {
  margin-top: 28px; padding: 10px 14px; font-size: 13px; color: #999;
  background: var(--color-card-bg, #f6f8fa); border-radius: 8px;
}
/* 访问次数数字：等宽数字 + 主色，加载前显示 -- */
.ai-nav-pv {
  font-variant-numeric: tabular-nums;
  color: #1b9ef3;
  font-weight: 600;
}

/* ================= 标签页：统一胶囊云（替换默认字号云） ================= */
.tagcloud-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tagcloud-chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 400;
  background: var(--color-card-bg, #fff); color: var(--color-text, #555);
  border: 1px solid var(--color-gray-300, #e2e6ea);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  text-decoration: none; transition: all 0.18s;
}
.tagcloud-chip.is-hot .tagcloud-chip__name { font-weight: 600; }
.tagcloud-chip__count { font-size: 11.5px; color: #999; font-variant-numeric: tabular-nums; }
.tagcloud-chip:hover {
  border-color: #1b9ef3; color: #1b9ef3; transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 158, 243, 0.15);
}
.tagcloud-chip:hover .tagcloud-chip__count { color: #1b9ef3; }

/* ================= 分类页：彩色卡片网格 ================= */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
  margin-top: 20px;
}
.category-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 12px;
  background: var(--color-card-bg, #fff);
  border: 1px solid var(--color-gray-300, #e2e6ea);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  text-decoration: none; transition: all 0.2s;
}
.category-card:hover {
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: var(--cat-color, #1b9ef3);
}
.category-card__icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--cat-color, #3b82f6);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.12));
  color: #fff; font-size: 17px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.category-card__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.category-card__name { font-size: 15.5px; font-weight: 600; color: var(--color-text, #333); }
.category-card__desc { font-size: 12.5px; color: #999; }
.category-card__arrow { color: #bbb; font-size: 13px; transition: all 0.2s; }
.category-card:hover .category-card__arrow { color: var(--cat-color, #1b9ef3); transform: translateX(3px); }

/* 分类/标签页标题计数徽章 */
.category-total span, .tagcloud-total span {
  display: inline-block; padding: 2px 12px; margin-left: 6px;
  border-radius: 999px; font-size: 14px; vertical-align: middle;
  color: var(--color-gray-700, #888); background: var(--color-gray-300, #eef1f4);
}

/* ================= 归档页：年份徽章 + 行卡片时间线（同标签/分类页设计语言） ================= */
.archive { margin-left: 0; }
.archive .archive-title { text-align: center; }
.archive .archive-title span {
  display: inline-block; padding: 2px 12px; margin-left: 6px;
  border-radius: 999px; font-size: 14px; vertical-align: middle;
  font-weight: 400; color: var(--color-gray-700, #888);
  background: var(--color-gray-250, #efefef);
}
.archive .archive-sub {
  margin: 6px 0 30px; text-align: center;
  font-size: 13px; color: var(--color-gray-600, #8d949e);
}

/* 年份分组徽章 */
.archive .timeline-year {
  display: flex; align-items: center; gap: 10px;
  margin: 26px 0 12px; padding-left: 1.5rem;
}
.archive .timeline-year:first-child { margin-top: 0; }
.archive .timeline-year__num {
  font-size: 22px; font-weight: 700; letter-spacing: .5px; line-height: 1;
  background: linear-gradient(135deg, #1b9ef3, #6366f1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.archive .timeline-year__count {
  padding: 2px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 1.5;
  color: #1b9ef3; background: rgba(27, 158, 243, .1);
}
.archive .timeline-year::after {
  content: ''; flex: 1; height: 1px; margin-right: 4px;
  background: linear-gradient(90deg, var(--color-gray-300, #dadada), transparent);
}

/* 时间线主体：淡蓝渐变竖线 + 光晕节点 */
.archive .archive-timeline { position: relative; }
.archive .archive-timeline::before {
  content: ''; position: absolute; top: 1em; bottom: 1em; left: 0;
  width: 2px; border: none; border-radius: 2px;
  background: linear-gradient(180deg, rgba(27, 158, 243, .35), rgba(27, 158, 243, .06));
  transform: translateX(-50%);
}

/* 文章行卡片 */
.archive .timeline-item {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 6px; padding: 10px 14px 10px 1.5rem;
  border-radius: 10px; border: 1px solid transparent;
  transition: background-color .18s, border-color .18s;
}
.archive .timeline-item::before {
  border: none; width: 7px; height: 7px; border-radius: 50%;
  background-color: #1b9ef3;
  box-shadow: 0 0 0 3px rgba(27, 158, 243, .15);
  transition: box-shadow .18s ease;
}
.archive .timeline-item:hover {
  background: rgba(27, 158, 243, .06);
  border-color: rgba(27, 158, 243, .25);
}
.archive .timeline-item:hover::before {
  box-shadow: 0 0 0 5px rgba(27, 158, 243, .18);
}
.archive .timeline-item:last-child { margin-bottom: 0; }

/* 日期胶囊 */
.archive .timeline-item__time {
  flex: 0 0 auto; width: auto; padding: 2px 9px;
  border-radius: 6px; font-size: 12px; font-weight: 500;
  color: var(--color-gray-600, #8d949e);
  font-variant-numeric: tabular-nums;
  background: var(--color-gray-200, #f5f6f7);
  transition: color .18s, background-color .18s;
}
.archive .timeline-item:hover .timeline-item__time {
  color: #1b9ef3; background: rgba(27, 158, 243, .12);
}

/* 标题 */
.archive .timeline-item__title {
  flex: 1; min-width: 0; width: auto; margin: 0;
  font-size: 1em; font-weight: 500;
  display: flex; align-items: center;
}
.archive .timeline-item__link { flex: 1; min-width: 0; color: var(--color-gray-900); transition: color .18s; }
.archive .timeline-item:hover .timeline-item__link { color: #1b9ef3; }

/* 阅读数胶囊（数字 + 「阅读」后缀，pv.js 批量填充内层 [data-pv-num]，异常保持 --）
   与左侧日期胶囊呼应：灰底小胶囊，hover 行时同步变蓝 */
.archive .timeline-item__pv {
  margin-left: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center;
  padding: 1px 8px; border-radius: 999px;
  font-size: 12px; line-height: 1.6;
  color: var(--color-gray-600, #8d949e);
  background: var(--color-gray-200, #f5f6f7);
  font-variant-numeric: tabular-nums;
  transition: color .18s, background-color .18s;
}
.archive .timeline-item__pv-num { font-weight: 500; }
.archive .timeline-item__pv-label { margin-left: 3px; font-size: 11px; color: var(--color-gray-500, #a6abb2); transition: color .18s; }
.archive .timeline-item:hover .timeline-item__pv {
  color: #1b9ef3; background: rgba(27, 158, 243, .12);
}
.archive .timeline-item:hover .timeline-item__pv-label { color: #1b9ef3; }

/* 移动端适配 */
@media (max-width: 600px) {
  .archive .timeline-year { padding-left: 1rem; }
  .archive .timeline-item { padding: 9px 10px 9px 1rem; }
}

/* ================= 文章页正文高级化（同四页设计语言） ================= */

/* 内容大卡片：圆角 + 细边框 + 柔和阴影（首页列表卡透明，排除） */
.content:not(.content-home) {
  border-radius: 12px;
  border: 1px solid var(--color-gray-260);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .03);
}

/* 文章标题下装饰：居中渐变蓝短杠 */
.post-header .post-title::after {
  content: '';
  display: block;
  width: 38px; height: 3px;
  margin: 14px auto 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1b9ef3, #6366f1);
}

/* meta 行：改居中小胶囊组（图标 + 数值） */
.post-header .post-meta { margin-top: 8px; }
.post-header .post-meta-item {
  display: inline-block;
  padding: 2.5px 11px;
  margin: 2px 3px;
  border-radius: 999px;
  background: var(--color-gray-200);
  color: var(--color-gray-600);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.post-header .post-meta-item:not(:first-child)::before { content: none; }
.post-header .post-meta-item .post-meta-item__icon { color: #1b9ef3; }

/* 正文 h2：左侧渐变蓝竖条 */
.post-body h2 {
  position: relative;
  padding-left: 14px;
}
.post-body h2::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 68%;
  border-radius: 3px;
  background: linear-gradient(180deg, #1b9ef3, #6366f1);
}

/* 正文 h3：左侧蓝色小圆点 */
.post-body h3 {
  position: relative;
  padding-left: 14px;
}
.post-body h3::before {
  content: '';
  position: absolute; left: 1px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1b9ef3;
}

/* 修正：标题 hover 锚点图标原挂在左侧 -20px，与竖条/圆点重叠——移到标题行右端 */
.post-body h2 .heading-link,
.post-body h3 .heading-link {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  margin: 0;
  width: auto; height: auto;
  line-height: 1;
  color: var(--color-gray-500);
}
.post-body h2:hover .heading-link,
.post-body h3:hover .heading-link { color: #1b9ef3; }

/* 引用块：渐变蓝左条 + 淡蓝底圆角 */
.post-body blockquote {
  border-left: 4px solid #1b9ef3;
  border-radius: 0 8px 8px 0;
  padding: .6rem 1rem;
  background: rgba(27, 158, 243, .06);
}

/* 图片：去相框感，圆角 + 阴影 + hover 微上浮 */
.post-body img {
  border: none;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-body img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
}

/* 行内 code 圆角（代码块内部由 .highlight 覆盖，不受影响） */
.post-body code { border-radius: 6px; }

/* 代码块：圆角 + 阴影 */
.post-body .highlight {
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
  overflow: hidden;
}

/* 表格：圆角外框 + 表头底色 */
.post-body table {
  border: 1px solid var(--color-gray-260);
  border-radius: 8px;
  overflow: hidden;
}
.post-body th { background: var(--color-gray-200); }

/* 分隔线：渐隐线 */
.post-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gray-300), transparent);
}

/* 文末标签：999px 胶囊（同标签页语言） */
.post-tags { text-align: center; }
.post-tags-item {
  display: inline-block;
  margin: 0 4px;
}
.post-tags-item__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 13px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--color-gray-700);
  background: var(--color-gray-200);
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.post-tags-item__link i { font-size: 10.5px; color: #1b9ef3; transition: color .18s ease; }
.post-tags-item:hover .post-tags-item__link {
  color: #ffffff;
  background: #1b9ef3;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(27, 158, 243, .3);
}
.post-tags-item:hover .post-tags-item__link i { color: #ffffff; }

/* ================= 顶部导航栏高级化（胶囊 + 磨砂玻璃） ================= */

/* 菜单项：垂直居中胶囊，白玻璃 hover（替代主题灰块 hover） */
.header-nav-menu-item {
  display: flex;
  align-items: center;
}
.header-nav-menu-item__link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  line-height: 1;
  background: transparent;
  transition: background-color .2s ease, color .2s ease;
}
/* 菜单项 hover：白玻璃胶囊 + 内描边质感 */
.header-nav-menu-item__link:hover {
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}
/* 当前页激活态：淡蓝玻璃（主色呼应，与 hover 明确区分） */
.header-nav-menu-item__link.active {
  background: rgba(27, 158, 243, .32);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(96, 176, 255, .45);
}

/* 搜索按钮：同款胶囊 hover */
.header-nav-search {
  display: flex;
  float: right;
  align-items: center;
  height: 34px;
  margin: 8px .25rem 0 0;
  padding: 0 14px;
  border-radius: 999px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
/* 搜索/主题切换按钮：同款胶囊 hover（带内描边） */
.header-nav-search:hover {
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}

/* 主题切换按钮：同款胶囊 hover */
.header-nav-mode {
  display: flex;
  float: right;
  align-items: center;
  height: 34px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 999px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease;
}
.header-nav-mode:hover {
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}

/* 常驻深色导航（文章页 + 首页滚动后吸顶）：Apple 风磨砂玻璃 */
.header-nav--sticky {
  background-color: rgba(28, 30, 34, .78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07), 0 4px 18px rgba(0, 0, 0, .14);
}

/* banner 高度压矮（与 _config.stun.yml header.height: 35% 一致；CSS 覆盖以支持热加载）
   :not() 排除文章页——文章页 .header-inner 带 --height 修饰类（50px 导航条），不能被撑高 */
.header-inner:not(.header-inner--height) {
  height: 35vh !important;
}

/* ================= 无障碍：键盘焦点可见（仅键盘触发，不影响鼠标点击） ================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #1b9ef3;
  outline-offset: 2px;
}

/* ================= 文章页面包屑（首页 › 分类 › 当前文） ================= */
.post-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  margin-bottom: 12px; font-size: 12.5px; line-height: 1.5;
}
.post-breadcrumb a {
  color: var(--color-gray-600, #8d949e);
  transition: color .15s ease;
}
.post-breadcrumb a:hover { color: #1b9ef3; }
.post-breadcrumb__sep { color: var(--color-gray-400, #c9cdd4); font-size: 11px; }
.post-breadcrumb__current {
  color: var(--color-gray-600, #8d949e);
  max-width: 24em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ================= 夜间模式开关高级化：大号 iOS 风滑块（玻璃拟态轨道） ================= */
/* 轨道 62x30：白天半透明白玻璃（融于任意背景）、夜间淡靛蓝玻璃；图标刻在滑块上 */
.mode .mode-track {
  width: 62px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(255, 255, 255, .2);
  transition: background .3s ease;
}
.mode--checked .mode-track {
  background: rgba(99, 102, 241, .4);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.mode .mode-track-moon::before,
.mode .mode-track-sun::before { content: none; }

/* 滑块：白圆 + 图标随行（白天太阳/夜间月亮），位移与轨道尺寸联动 */
.mode .mode-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 2px;
  left: 2px;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .28);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .25s ease;
}
.mode .mode-thumb::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f185';
  font-size: 13px;
  color: #f59e0b;
}
.mode--checked .mode-thumb { transform: translateX(32px); }
.mode--checked .mode-thumb::before {
  content: '\f186';
  color: #4f46e5;
}
.mode:hover .mode-thumb {
  box-shadow: 0 3px 9px rgba(0, 0, 0, .4);
}
.mode:hover .mode-track {
  background: rgba(255, 255, 255, .3);
}
.mode--checked:hover .mode-track {
  background: rgba(99, 102, 241, .5);
}
.mode--focus .mode-thumb {
  box-shadow: 0 0 2px 3px #0099e0;
}

/* ================= 搜索弹窗高级化（同 ai-nav 搜索框语言） ================= */
/* 遮罩：轻模糊 */
.search-mask {
  background-color: rgba(20, 22, 26, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* 弹窗：大圆角 + 边框 + 层次阴影 */
.search-popup {
  border-radius: 16px;
  background-color: var(--color-card);
  border: 1px solid var(--color-gray-260);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25), 0 6px 18px rgba(0, 0, 0, .15);
}

/* 输入框：浅灰底 + 聚焦蓝光晕 */
.search-input input {
  height: 2.6rem;
  border: 1.5px solid var(--color-gray-300);
  border-radius: 12px;
  padding: .3rem 1rem;
  background-color: var(--color-gray-200);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.search-input input:hover { border-color: #1b9ef3; }
.search-input input:focus {
  border-color: #1b9ef3;
  background-color: var(--color-card);
  box-shadow: 0 0 0 3px rgba(27, 158, 243, .12);
}

/* 结果关键词高亮：黄底改淡蓝底 */
.search-results em {
  font-style: normal;
  color: #0d7fd6;
  background-color: rgba(27, 158, 243, .15);
  border-radius: 3px;
  padding: 0 2px;
}

/* 辅助按钮：胶囊 + hover 实心 */
.search-btns-item {
  border-radius: 999px;
  color: #1b9ef3;
  background-color: rgba(27, 158, 243, .12);
  transition: background-color .2s ease, color .2s ease;
}
.search-btns-item:hover {
  color: #ffffff;
  background-color: #1b9ef3;
}

/* ============================================================
   Footer 精修：三行信息（版权 / 浏览总量胶囊 / 社区链接）
   footer 深底在日间/夜间模式不变，颜色可写死浅色系
   ============================================================ */

/* 整体：缩小字号、拉开行距，信息密度降下来 */
.footer-inner {
  padding: 1.7rem 1rem 1.5rem;
  font-size: .8rem;
  letter-spacing: .03em;
  color: rgba(245, 246, 247, .5);
}
.footer-inner > div {
  margin: .32rem 0;
  line-height: 1.75;
}

/* 版权行心形：柔玫瑰色 + 缓慢呼吸（主题自带 1.2s 太躁，改 3.2s 轻起伏） */
.footer .footer__icon {
  color: #f87171;
  animation: footer-heart-breathe 3.2s ease-in-out infinite;
}
@keyframes footer-heart-breathe {
  0%, 100% { transform: scale(1); opacity: .82; }
  50%      { transform: scale(1.14); opacity: 1; }
}

/* footer 内链接：去掉主题的暗红（#c20808），改中性灰白 */
.footer .footer-inner a {
  color: rgba(245, 246, 247, .62);
  transition: color .2s ease;
}
.footer .footer-inner a:hover {
  color: #ffffff;
}

/* 浏览总量：胶囊徽章（细描边 + 微底色 + hover 泛蓝） */
.footer .busuanzi .busuanzi-sitepv {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .26em 1.05em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  font-size: .7rem;
  color: rgba(245, 246, 247, .55);
  transition: border-color .25s ease, background-color .25s ease;
}
.footer .busuanzi .busuanzi-sitepv:hover {
  border-color: rgba(77, 163, 240, .55);
  background: rgba(77, 163, 240, .1);
}
/* 胶囊内：图标用站牌蓝，数字与标签同字体同字重（等宽数字防跳动） */
.footer .busuanzi-sitepv .busuanzi-siteuv__icon {
  color: #5cabf5;
}
.footer .busuanzi-sitepv .busuanzi-siteuv__value {
  font-variant-numeric: tabular-nums;
}

/* 版权行友链（IT码农）：与主文案间用间隔点，链接略亮于正文 */
.footer .footer-inner > div:first-child a {
  margin-left: .35em;
  color: rgba(245, 246, 247, .72);
}
.footer .footer-inner > div:first-child a:hover {
  color: #ffffff;
}


/* ============================================
   About 页「大家都在看」热门榜单
   行卡片：序号徽章 + 标题 + 右侧实时阅读胶囊
   （阅读数由 pv.js 批量接口填充，与归档时间线胶囊同语言）
   ============================================ */
.hot-list { margin: 0.9em 0 0.4em; }
.hot-item {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px; padding: 9px 12px;
  border-radius: 10px; border: 1px solid transparent;
  text-decoration: none;
  transition: background-color .18s, border-color .18s;
}
.hot-item:last-child { margin-bottom: 0; }
.hot-item:hover {
  background: rgba(27, 158, 243, .06);
  border-color: rgba(27, 158, 243, .25);
}
.hot-rank {
  flex: 0 0 auto; width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-size: 12px; font-weight: 600; line-height: 1;
  color: var(--color-gray-600, #8d949e);
  background: var(--color-gray-200, #f5f6f7);
  transition: color .18s, background-color .18s;
}
/* 领奖台式阶梯：冠军橙金（呼应站内 HOT 橙）、亚军蓝、季军靛，4-5 灰色入围 */
.hot-item:nth-child(1) .hot-rank {
  color: #fff;
  background: linear-gradient(135deg, #ff6b35, #f59e0b);
}
.hot-item:nth-child(2) .hot-rank {
  color: #fff;
  background: #1b9ef3;
}
.hot-item:nth-child(3) .hot-rank {
  color: #fff;
  background: #6366f1;
}
.hot-item:hover .hot-rank { color: #1b9ef3; background: rgba(27, 158, 243, .12); }
.hot-item:nth-child(1):hover .hot-rank,
.hot-item:nth-child(2):hover .hot-rank,
.hot-item:nth-child(3):hover .hot-rank {
  color: #fff;
}
.hot-title {
  flex: 1; min-width: 0;
  font-size: .95em; font-weight: 500;
  color: var(--color-gray-900, #3c4650);
  transition: color .18s;
}
.hot-item:hover .hot-title { color: #1b9ef3; }
.hot-pv {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  padding: 1px 8px; border-radius: 999px;
  font-size: 12px; line-height: 1.6;
  color: var(--color-gray-600, #8d949e);
  background: var(--color-gray-200, #f5f6f7);
  font-variant-numeric: tabular-nums;
  transition: color .18s, background-color .18s;
}
.hot-item:hover .hot-pv {
  color: #1b9ef3; background: rgba(27, 158, 243, .12);
}
@media (max-width: 600px) {
  .hot-item { padding: 8px 10px; gap: 8px; }
  .hot-title { font-size: .9em; }
}

/* ===== About 页结构升级：统计徽章 / 内容线卡片 / 流程步骤 / H2 杂志化 ===== */

/* 统计徽章行 */
.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 1.6em 0 .8em;
}
.about-stats .stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 13px 8px 11px;
  border: 1px solid var(--color-gray-250, #efefef);
  border-radius: 12px;
  background: var(--color-gray-150, #f9f9f9);
}
.about-stats .stat b {
  font-size: 26px; font-weight: 700; line-height: 1.15;
  color: #1b9ef3;
  font-variant-numeric: tabular-nums;
}
.about-stats .stat b i { font-style: normal; font-size: 17px; }
.about-stats .stat span { margin-top: 2px; font-size: 12px; color: var(--color-gray-600, #8d949e); }
.about-stats .stat-hot b { color: #ff6b35; }

/* H2 杂志化：左侧渐变强调条（仅 About 三个中文锚点，不影响其他 page） */
.custompage h2#这里写什么,
.custompage h2#内容怎么来的,
.custompage h2#大家都在看 { position: relative; padding-left: 14px; }
/* 锚点图标绝对定位到色条左侧、垂直居中：脱离文档流，任何字体/行高渲染下都不与色条、标题、英文小标重叠 */
.custompage h2#这里写什么 .heading-link,
.custompage h2#内容怎么来的 .heading-link,
.custompage h2#大家都在看 .heading-link {
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
}
.custompage h2#这里写什么::before,
.custompage h2#内容怎么来的::before,
.custompage h2#大家都在看::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 1.05em; border-radius: 2px;
  background: linear-gradient(180deg, #1b9ef3, #6366f1);
}
.custompage h2#这里写什么::after { content: 'WHAT I WRITE'; }
.custompage h2#内容怎么来的::after { content: 'HOW IT WORKS'; }
.custompage h2#大家都在看::after { content: 'MOST READ'; }
.custompage h2#这里写什么::after,
.custompage h2#内容怎么来的::after,
.custompage h2#大家都在看::after {
  margin-left: 10px;
  font-size: 11px; font-weight: 500;
  letter-spacing: .16em;
  color: var(--color-gray-600, #8d949e);
  vertical-align: 2px;
  white-space: nowrap;
}

/* 内容线卡片 */
.lane-card {
  margin: 0 0 12px;
  padding: 15px 18px 13px;
  border: 1px solid var(--color-gray-250, #efefef);
  border-radius: 12px;
  background: var(--color-gray-150, #f9f9f9);
  transition: border-color .18s, box-shadow .18s;
}
.lane-card:hover {
  border-color: rgba(27, 158, 243, .4);
  box-shadow: 0 2px 12px rgba(27, 158, 243, .08);
}
.lane-card:last-of-type { margin-bottom: 0; }
.lane-head { display: flex; align-items: center; gap: 10px; }
.lane-name {
  font-size: 1.02em; font-weight: 700;
  color: var(--color-gray-900, #2c323c);
}
.lane-badge {
  flex-shrink: 0;
  padding: 1px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.7;
  color: #fff; background: #1b9ef3;
}
.lane-badge-outline {
  color: #1b9ef3; background: rgba(27, 158, 243, .1);
  border: 1px solid rgba(27, 158, 243, .35);
}
.lane-desc {
  margin: .5em 0 .2em;
  font-size: .92em; line-height: 1.75;
  color: var(--color-gray-700, #606770);
}
.lane-links { margin: .55em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lane-links a {
  padding: 1px 10px; border-radius: 999px;
  font-size: 12.5px;
  color: var(--color-gray-700, #606770);
  background: var(--color-card, #ffffff);
  border: 1px solid var(--color-gray-260, #e5e7ea);
  text-decoration: none;
  transition: color .18s, border-color .18s, background-color .18s;
}
.lane-links a:hover {
  color: #1b9ef3; border-color: rgba(27, 158, 243, .45);
  background: rgba(27, 158, 243, .06);
}

/* 工具箱横幅卡：蓝紫渐变底 + 主 CTA */
.lane-wide {
  border-color: rgba(27, 158, 243, .3);
  background: linear-gradient(135deg, rgba(27, 158, 243, .07), rgba(99, 102, 241, .07));
}
.lane-wide .lane-links a {
  padding: 3px 15px;
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, #1b9ef3, #4f8ef7);
  border: none;
}
.lane-wide .lane-links a:hover {
  color: #fff; filter: brightness(1.08);
}

/* 写作流程四步 */
.flow-steps {
  list-style: none; margin: 1.2em 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.flow-steps li {
  position: relative;
  display: flex; flex-direction: column;
  padding: 13px 12px 11px;
  border: 1px solid var(--color-gray-250, #efefef);
  border-radius: 12px;
  background: var(--color-gray-150, #f9f9f9);
}
.step-no {
  width: 22px; height: 22px; margin-bottom: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #1b9ef3, #6366f1);
}
.flow-steps b { font-size: .95em; color: var(--color-gray-900, #2c323c); }
.flow-steps li > span:last-child {
  margin-top: 2px;
  font-size: 12px; line-height: 1.6;
  color: var(--color-gray-600, #8d949e);
}
@media (min-width: 601px) {
  .flow-steps li:not(:last-child)::after {
    content: '→'; position: absolute; right: -11px; top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400, #ccd0d5); font-size: 14px; z-index: 1;
  }
}

/* 移动端 */
@media (max-width: 600px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .lane-card { padding: 13px 14px 11px; }
}

/* ===== 文末版权卡重设计（与 About 渐变体系同语言） ===== */
.post-copyright.copyright {
  position: relative;
  border: 1px solid var(--color-gray-250, #e8eaed);
  border-radius: 12px;
  padding: 1.05rem 1.25rem 1rem 1.7rem;
  margin-top: 1.6rem;
  background:
    linear-gradient(135deg, rgba(27, 158, 243, .055), rgba(99, 102, 241, .05) 55%, transparent 90%),
    var(--color-card, #fff);
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.post-copyright.copyright::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #1b9ef3, #6366f1);
}
.post-copyright.copyright:hover {
  border-color: rgba(27, 158, 243, .35);
  box-shadow: 0 4px 18px rgba(27, 158, 243, .12);
}

/* 三行间距 */
.post-copyright .copyright-author,
.post-copyright .copyright-link,
.post-copyright .copyright-notice {
  display: flex;
  align-items: baseline;
  gap: .45em;
  line-height: 1.75;
}
.post-copyright .copyright-link,
.post-copyright .copyright-notice {
  margin-top: .3rem;
}

/* 标签：图标 + 加粗，去冒号后的松散感 */
.post-copyright .copyright-author__name,
.post-copyright .copyright-link__name,
.post-copyright .copyright-notice__name {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-weight: 600;
  font-size: .92em;
  color: var(--color-gray-600, #5f6672);
}
.post-copyright .copyright-author__name::before,
.post-copyright .copyright-link__name::before,
.post-copyright .copyright-notice__name::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  background-color: #1b9ef3;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.post-copyright .copyright-link__name::before { background-color: #6366f1; }
.post-copyright .copyright-notice__name::before { background-color: #f59e0b; }
.post-copyright .copyright-author__name { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.post-copyright .copyright-link__name { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E"); }
.post-copyright .copyright-notice__name { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }

/* 值：作者加粗、链接等宽小号、版权声明灰字小号 */
.post-copyright .copyright-author__value { font-weight: 600; }
.post-copyright .copyright-link__value {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Consolas, monospace);
  font-size: .86em;
}
.post-copyright .copyright-notice__value {
  font-size: .88em;
  color: var(--color-gray-600, #5f6672);
}

/* 暗色下等宽 URL 提亮一档（小字号+mono 在暗底易发闷） */
.nightmode .post-copyright .copyright-link__value a {
  color: #6db4f6;
}
