/* 引入主题基线（页面标题 / 图片系统 / 灯箱 / 友链 / 足迹页 / 嵌入卡片等）。
   构建期由 sync-theme-styles.mjs 展开成真实内容，产出仍是单文件、零额外请求。
   基线整包在 @layer blog-base 内，本文件后面任何未分层的规则都能直接覆盖它，
   不需要 [data-theme="Azure"] 前缀。不想要这套基线可以直接删掉这一行。 */
/* ↓↓ 构建期内联自 ../_base/blog-components.css ↓↓ */
/* ═══════════════════════════════════════════════════════════════════
   Utterlog 主题基线样式（blog base kit）
   ═══════════════════════════════════════════════════════════════════

   这是**给主题用的**共享博客组件样式：页面标题、图片系统与宫格、灯箱、
   友链、足迹页、下载卡片、封面 hover、归档分类卡、动态与 X 嵌入卡。

   ── 怎么用 ──────────────────────────────────────────────────────

   在主题的 styles.css **最顶部**写：

       ⟨在最顶部写⟩ @import "../_base/blog-components.css";

   sync-theme-styles.mjs 会在**构建期**把它展开成真实内容，产出仍是单文件，
   浏览器只看到一个 <link>、零额外请求。**不要**指望浏览器去解析这条
   @import —— 主题样式表是运行时直接取的裸文件，不进 Vite 依赖图，真让
   浏览器解析会退化成串行请求（globals.css 顶部记着实测数字：晚 630ms）。

   ── 不想要可以不引 ──────────────────────────────────────────────

   这是 opt-in 的。主题完全可以不写那条 @import，自己从零实现全部组件样式
   —— 那正是「主题控制前端一切」的意思。引了之后想改哪条，直接在自己的
   styles.css 里写同名选择器覆盖即可，见下面「为什么整包在 layer 里」。

   ── 为什么整包裹在 @layer blog-base 里 ──────────────────────────

   CSS 层叠规则：**未分层的普通声明胜过任何分层的普通声明**，与特异性、
   与源码顺序都无关。基线整包在 layer 内，主题自己的规则（未分层）就自动
   压在它上面 —— 主题写 `.blog-image { ... }` 就能覆盖，不必再套
   `[data-theme="X"]` 前缀去拼特异性。

   历史包袱说明：这套前缀不是风格洁癖，是被逼的。主题 CSS 的 <link> 排在
   globals 之前（见 lib/document.ts），等特异性下 globals 恒赢，主题只能提
   特异性去压。改造前五套主题 1561 条顶层选择器**全部**带前缀。

   ── 下面这行 @layer 顺序声明不能删 ──────────────────────────────

   层的优先级由**首次出现顺序**决定，后声明的赢。主题样式表加载在 globals
   之前，如果不显式声明，blog-base 会注册在 Tailwind 各层（theme/base/
   components/utilities，由 globals 里的 @import "tailwindcss" 展开）之前，
   变成优先级**最低** —— 那样 @layer base 里那条 `* { padding:0; margin:0 }`
   会把这里所有的 padding / margin 全部压平，页面颜色边框都在、间距全塌。
   （2026-08-16 踩过一次一模一样的，当时是 reset 留在层外造成的。）

   写死这一行，blog-base 恒排最后 = 分层里最高：压得过 Tailwind 工具类
   （与改造前行为一致），又让位给主题自己的未分层规则。

   ── !important 的方向是反的 ──────────────────────────────────────

   分层后 important 的优先级反转：**分层的 important 胜过未分层的**。所以
   往这里加带 !important 的规则前，要先查主题侧有没有同属性的 !important，
   否则会反过来把主题压住。本文件现有的 !important 都已核实过无冲突。
   ═══════════════════════════════════════════════════════════════════ */

@layer theme, base, components, utilities, blog-base;

/* 页面级样式：视频文章正文、关于页。原先由 globals.css @import，属于前台
   内容样式而不是基础设施，2026-08-17 随基线一起归主题。
   这两份**没有**包进 @layer blog-base —— 它们是整页的专属排版，不是需要被
   主题逐条覆盖的组件基线；主题要改直接写同名选择器即可（同为未分层，靠源码
   顺序决定，主题自己的规则在本文件之后）。 */
/* ↓↓ 构建期内联自 ./video-post.css ↓↓ */
/* Video post body —— v2.4.2
   主题无关：6 个主题在 post.type === 'video' 时统一渲染。
   颜色全用 var(--color-*)，自动跟随主题（深 / 浅 / 强彩色都能匹配）。 */

.ul-video {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 0;
}

/* ---------- 头部 ---------- */
.ul-video__head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}
.ul-video__poster {
  width: 220px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--color-bg-soft, #f4f4f5);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.ul-video__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ul-video__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.ul-video__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ul-video__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-bg-soft, rgba(0, 0, 0, 0.05));
  color: var(--color-text-sub, #555);
  font-size: 12px;
  line-height: 1.6;
}
.ul-video__chip--type {
  background: var(--color-primary, #2b6cb0);
  color: #fff;
}
.ul-video__chip--rating {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}
.ul-video__chip--rating .fa-star {
  color: #f59e0b;
}
.ul-video__genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ul-video__tag {
  font-size: 12px;
  color: var(--color-text-sub, #666);
  padding: 2px 8px;
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  border-radius: 4px;
}
.ul-video__row {
  font-size: 13px;
  color: var(--color-text-main, #333);
  line-height: 1.7;
  display: flex;
  gap: 10px;
}
.ul-video__row b {
  flex-shrink: 0;
  color: var(--color-text-sub, #666);
  font-weight: 500;
  min-width: 36px;
}
.ul-video__links {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}
.ul-video__links a {
  font-size: 13px;
  color: var(--color-primary, #2b6cb0);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ul-video__links a:hover {
  text-decoration: underline;
}

/* ---------- 播放器 ---------- */
.ul-video__player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}
.ul-video__iframe,
.ul-video__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.ul-video__video {
  object-fit: contain;
}
.ul-video__player-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-bg-soft, #f3f4f6);
  color: var(--color-text-dim, #999);
  border: 1px dashed var(--color-border, #ddd);
  border-radius: 6px;
  padding: 60px 24px;
}
.ul-video__player-empty i {
  font-size: 32px;
}

/* ---------- 线路切换（主线 + 备线） ---------- */
.ul-video__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ul-video__sources-label {
  font-size: 13px;
  color: var(--color-text-sub, #555);
  margin-right: 2px;
}
.ul-video__src {
  background: var(--color-bg-soft, #f3f4f6);
  color: var(--color-text-main, #222);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  padding: 5px 14px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.ul-video__src:hover {
  border-color: var(--color-primary, #2b6cb0);
}
.ul-video__src.is-active {
  background: var(--color-primary, #2b6cb0);
  color: #fff;
  border-color: var(--color-primary, #2b6cb0);
}

/* ---------- 集数网格 ---------- */
.ul-video__episodes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ul-video__episodes-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main, #222);
}
.ul-video__episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.ul-video__ep {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  background: var(--color-bg-soft, #f3f4f6);
  color: var(--color-text-main, #222);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  min-height: 44px;
}
.ul-video__ep:hover {
  border-color: var(--color-primary, #2b6cb0);
  color: var(--color-primary, #2b6cb0);
}
.ul-video__ep.is-active {
  background: var(--color-primary, #2b6cb0);
  color: #fff;
  border-color: var(--color-primary, #2b6cb0);
}
.ul-video__ep-no {
  font-variant-numeric: tabular-nums;
}
.ul-video__ep-title {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.85;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 提示卡片 ---------- */
.ul-video__tips {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  background: var(--color-bg-soft, rgba(0, 0, 0, 0.03));
  border-left: 3px solid var(--color-primary, #2b6cb0);
  border-radius: 4px;
  font-size: 13px;
  color: var(--color-text-sub, #555);
  line-height: 1.7;
}
.ul-video__tips i {
  font-size: 15px;
  margin-top: 2px;
  color: var(--color-primary, #2b6cb0);
}

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
  .ul-video__head {
    grid-template-columns: 120px 1fr;
    gap: 16px;
  }
  .ul-video__poster {
    width: 120px;
  }
  .ul-video__episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  }
  .ul-video__ep {
    min-height: 38px;
    font-size: 13px;
  }
}

/* ↑↑ ./video-post.css 结束 ↑↑ */
/* ↓↓ 构建期内联自 ./about-content.css ↓↓ */
.about-page .about-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 32px 32px;
}

.about-page .about-hero,
.about-page .about-section {
  position: relative;
  border: 1px solid var(--color-border, #d9d9d9);
  background: var(--color-bg-card, #fff);
}

.about-page .about-hero {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 220px;
  align-items: stretch;
  min-height: 240px;
}

.about-page .about-hero::before,
.about-page .about-section::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 24px;
  width: 3px;
  height: 40px;
  background: var(--color-primary, #0052d9);
}

.about-page .about-avatar-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--color-border, #d9d9d9);
  color: var(--color-primary, #0052d9);
  font-size: 56px;
}

.about-page .about-avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 3px solid var(--color-primary, #0052d9);
}

.about-page .about-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 36px 40px;
}

.about-page .about-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 82, 217, 0.18);
  color: var(--color-primary, #0052d9);
  font-size: 13px;
  font-weight: 600;
  background: rgba(0, 82, 217, 0.06);
}

.about-page .about-status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.about-page .about-hero-copy h2 {
  margin: 0;
  color: var(--color-text-main, #111827);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.about-page .about-lead {
  margin: 14px 0 0;
  color: var(--color-text-sub, #556070);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.about-page .about-bio {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--color-text-dim, #8a94a6);
  font-size: 14px;
  line-height: 1.8;
}

.about-page .about-stat-panel {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  border-left: 1px solid var(--color-border, #d9d9d9);
}

.about-page .about-stat-panel div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--color-border, #d9d9d9);
}

.about-page .about-stat-panel div:last-child {
  border-bottom: 0;
}

.about-page .about-stat-panel strong {
  color: var(--color-primary, #0052d9);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.about-page .about-stat-panel span {
  margin-top: 8px;
  color: var(--color-text-dim, #9aa4b2);
  font-size: 12px;
}

.about-page .about-section {
  padding: 28px 32px 32px;
}

.about-page .about-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.about-page .about-section-head i {
  color: var(--color-primary, #0052d9);
  font-size: 22px;
}

.about-page .about-section-head h3 {
  margin: 0;
  color: var(--color-text-main, #111827);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.about-page .about-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--color-border, #d9d9d9);
  border-left: 1px solid var(--color-border, #d9d9d9);
}

.about-page .about-detail-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 84px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 14px 16px;
  border-right: 1px solid var(--color-border, #d9d9d9);
  border-bottom: 1px solid var(--color-border, #d9d9d9);
}

.about-page .about-detail-item i {
  color: var(--color-primary, #0052d9);
  font-size: 17px;
}

.about-page .about-detail-item span {
  color: var(--color-text-dim, #9aa4b2);
  font-size: 12px;
}

.about-page .about-detail-item strong {
  overflow: hidden;
  color: var(--color-text-main, #111827);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-page .about-hobby-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.about-page .about-hobby-card {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--color-border, #d9d9d9);
  transition: border-color 0.18s, transform 0.18s;
}

.about-page .about-hobby-card:hover {
  border-color: var(--color-primary, #0052d9);
  transform: translateY(-2px);
}

.about-page .about-hobby-card i {
  color: var(--color-primary, #0052d9);
  font-size: 24px;
}

.about-page .about-hobby-card h4 {
  margin: 18px 0 8px;
  color: var(--color-text-main, #111827);
  font-size: 17px;
  font-weight: 800;
}

.about-page .about-hobby-card p {
  margin: 0;
  color: var(--color-text-dim, #8a94a6);
  font-size: 13px;
  line-height: 1.7;
}

.about-page .about-music-list {
  border-top: 1px solid var(--color-border, #d9d9d9);
}

.about-page .about-music-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(120px, 180px) minmax(0, 220px);
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--color-border, #d9d9d9);
  color: inherit;
  text-decoration: none;
}

.about-page .about-music-item:hover .about-music-title {
  color: var(--color-primary, #0052d9);
}

.about-page .about-music-index {
  color: var(--color-primary, #0052d9);
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
}

.about-page .about-music-title {
  overflow: hidden;
  color: var(--color-text-main, #111827);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}

.about-page .about-music-artist,
.about-page .about-music-note {
  overflow: hidden;
  color: var(--color-text-dim, #9aa4b2);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-page .about-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-page .about-timeline-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--color-border, #d9d9d9);
}

.about-page .about-timeline-item:last-child {
  border-bottom: 1px solid var(--color-border, #d9d9d9);
}

.about-page .about-timeline-item time {
  color: var(--color-primary, #0052d9);
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
}

.about-page .about-timeline-item span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 8px;
  color: var(--color-primary, #0052d9);
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 82, 217, 0.07);
}

.about-page .about-timeline-item h4 {
  margin: 0;
  color: var(--color-text-main, #111827);
  font-size: 16px;
  font-weight: 800;
}

.about-page .about-timeline-item p {
  margin: 8px 0 0;
  color: var(--color-text-dim, #8a94a6);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 1023px) {
  .about-page .about-hero {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .about-page .about-stat-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    border-top: 1px solid var(--color-border, #d9d9d9);
    border-left: 0;
  }

  .about-page .about-stat-panel div {
    border-right: 1px solid var(--color-border, #d9d9d9);
    border-bottom: 0;
    padding: 18px;
  }

  .about-page .about-detail-grid,
  .about-page .about-hobby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .about-page .about-wrap {
    gap: 18px;
    padding: 0 16px 24px;
  }

  .about-page .about-hero {
    grid-template-columns: 1fr;
  }

  .about-page .about-avatar-box {
    min-height: 148px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border, #d9d9d9);
  }

  .about-page .about-hero-copy,
  .about-page .about-section {
    padding: 24px 20px;
  }

  .about-page .about-hero-copy h2 {
    font-size: 32px;
  }

  .about-page .about-lead {
    font-size: 16px;
  }

  .about-page .about-stat-panel,
  .about-page .about-detail-grid,
  .about-page .about-hobby-grid,
  .about-page .about-music-item,
  .about-page .about-timeline-item {
    grid-template-columns: 1fr;
  }

  .about-page .about-stat-panel div {
    border-right: 0;
    border-bottom: 1px solid var(--color-border, #d9d9d9);
  }

  .about-page .about-music-item {
    gap: 6px;
    padding: 14px 0;
  }
}

/* ↑↑ ./about-content.css 结束 ↑↑ */

/* ┌─────────────────────────────────────────────────────────────────────┐
   │ @layer blog-base —— 把控制权交给主题                                 │
   └─────────────────────────────────────────────────────────────────────┘

   为什么需要这一层：主题 CSS 的 <link> 排在 globals 之前（见 lib/document.ts
   的 startDocumentLinks，主题那条在前、Vite 的 manifest CSS 在后），所以**等
   特异性下 globals 恒赢**。主题想覆盖只能靠提特异性 —— 五套主题 1561 条顶层
   选择器**全部**带 `[data-theme="X"]` 前缀，不是风格是被逼的。

   CSS 层叠规则：**未分层的普通声明胜过任何分层的普通声明**，与特异性、与源码
   顺序都无关。所以这一段进了 layer 之后，主题（未分层）自动压在它上面，新写
   主题规则不必再套前缀去打特异性战争。

   不写 `@layer blog-base;` 顺序声明：那条语句必须在所有规则之前，而本文件顶部
   的 @import 会被内联展开，声明就落到几千行 CSS 后面成了非法位置，被构建丢弃
   （实测）。改为靠 block 首次出现的位置定序 —— 本文件的内容恒在内联的 tailwind
   之后，所以 blog-base 恒排最后 = 分层里优先级最高：对 Tailwind 工具类仍然赢
   （与分层前行为一致），对主题让位。

   ⚠️ 往这一层里加规则前先查 `!important`。分层后 important 的优先级是**反的**
   （分层的 important 胜过未分层的），主题里同属性的 !important 会反被压住。
   已知一处：Nebula 的 .comment-hint（globals:699 vs Nebula:2562），尚未处理，
   所以评论区那段还没进这一层。

   不该进这一层的：html/body reset、滚动条、.blog-main 滚动容器、CSS 变量 token、
   路由过渡（.route-*）、滚动显现（[data-reveal]）、图片效果（[data-img-effect]）
   —— 那些是跨主题基础设施，主题不该覆盖。 */
@layer blog-base {

/* Shared blog page title. Themes can override this shell without each
   route re-implementing the same icon/title/count layout. */
.blog-page-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
}
.blog-page-title-rail {
  display: none;
}
.blog-page-title-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.blog-page-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--color-primary, #0052D9);
  font-size: 24px;
}
.blog-page-title-copy {
  min-width: 0;
}
.blog-page-title-text {
  margin: 0;
  color: var(--color-text-main, #1a1a1a);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.blog-page-title-subtitle {
  margin-top: 4px;
  color: var(--color-text-dim, #999);
  font-size: 13px;
  line-height: 1.4;
}
.blog-page-title-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}
.blog-page-title-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 14px;
  border: 1px solid var(--color-border, #d9d9d9);
  color: var(--color-text-sub, #666);
  font-size: 13px;
  line-height: 1.3;
}
.blog-page-title-meta strong {
  color: var(--color-text-main, #1a1a1a);
  font-weight: 600;
}
.blog-page-title-stat {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .blog-page-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px;
  }
  .blog-page-title-side {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .blog-page-title-meta {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* Site title — display font for the header brand. Loads the variable
   Alimama FangYuanTi from static.bluecdn.com (linked in layout.tsx);
   falls back to Noto Sans SC + system if the woff2 slice for a given
   character isn't there. Themes apply this class on their site-name
   <span>; future v1.2.4+ may expose font choice in admin settings. */
.site-title {
  font-family: "Alimama FangYuanTi VF", "Noto Sans SC", "Ubuntu",
               "PingFang SC", "Microsoft YaHei", sans-serif;
  font-feature-settings: "palt";
}

} /* ── @layer blog-base 结束 ── */

/* Archive category card — background icon hover

   **别删这段，也别当成后台样式搬走。** 使用者是前台的
   components/blog/defaults/DefaultArchivePage.tsx，经 PublicPage 的
   `theme.ArchivePage || DefaultArchivePage` 兜底渲染 —— 五个主题里只有
   Nebula 自带 ArchivePage，其余四个全部落到这里。

   而且 Nebula 和 Renascent 的主题 CSS 是**依赖这个基类**的拦截层，不是
   独立实现：Nebula 那条 `.archive-cat-card::after { display: none }` 能
   生效的前提，是下面 `content: ''` 把伪元素生成出来；基类没了，伪元素
   根本不存在，那条覆盖变成空转（不报错，静默失效）。 */
@layer blog-base {

.archive-cat-card { transition: box-shadow 0.3s ease; }
.archive-cat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.archive-cat-card:hover > i:first-child {
  transform: translateY(-50%) scale(1.25);
  opacity: 0.1;
}
.archive-cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.archive-cat-card:hover::after {
  backdrop-filter: blur(1.5px);
  background: rgba(255,255,255,0.15);
}

} /* ── @layer blog-base 结束（归档分类卡）── */

/* ── 进 @layer blog-base（第二批：图片系统）──
   图片的呈现方式该由主题定：有的想全宽、有的想圆角、有的想换宫格比例。
   主题侧对 .blog-image / .image-grid* 零处 !important（已核实），本段
   globals 侧那几处 grid-column: span 1 !important 只在窄屏 media query
   里压自家的多列布局，分层后仍然有效且更稳。 */
@layer blog-base {

/* Blog image: lazy load with blur-fade effect.
   Single image = 80% width centered + 16:9. Multi-image grid images
   get their own aspect-ratio overrides below. */
.blog-image {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 1.5rem 0;
  border-radius: 0;
  min-height: 80px;
  cursor: zoom-in;
  background: var(--color-bg-soft);
}
.blog-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--color-bg-soft);
  /* blur 与 transition 已不在这里硬写 —— 改由全局 html[data-img-effect="fade"]
     的 `img[data-blog-image][data-loaded][data-img-visible]` 规则统一接管，
     这样文章内图与封面/banner 都走同一条 fade 路径，能正确响应「视口外
     的 lazy lookahead 不解模糊，进视口才淡入」的需求。`.blog-image.loaded`
     类仍由 LazyImage 写入，但只用于控制 spinner / caption / EXIF 的显隐
     （见下方对应规则），不再驱动图本身的模糊。 */
}

/* Loading spinner — stays mounted; opacity fades in sync with the
   image's `filter` transition so the two visual states cross-fade
   instead of the spinner snapping out a frame before the image
   starts to un-blur (that one-frame gap read as a "double load"). */
.blog-image-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--color-text-dim);
  opacity: 1;
  transition: opacity 0.35s ease-out;
  pointer-events: none;
}
.blog-image.loaded .blog-image-loader {
  opacity: 0;
}

/* Post list hover — title changes to primary color */

/* Image caption — bottom-right overlay inside image */
.blog-image-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  margin-bottom: 4px;
  z-index: 5;
  padding: 8px;
  font-size: 13px;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0;
  cursor: default;
  line-height: 1.4;
  max-width: 70%;
}

/* ========================================
   Image Grid Layout
   ======================================== */
.image-grid {
  display: grid;
  gap: 6px;
  margin: 1.5rem 0;
  border-radius: 0;
  overflow: hidden;
}
.image-grid .blog-image {
  margin: 0;
  border-radius: 0;
  min-height: 0;
  /* Grid children should fill their cell, not inherit the single-
     image 80% width cap. */
  width: 100%;
}
.image-grid .blog-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* 1 image: centered, natural aspect ratio */
.image-grid-1 {
  max-width: 65%;
  margin-left: auto;
  margin-right: auto;
}
.image-grid-1 .blog-image img {
  aspect-ratio: auto;
  object-fit: contain;
}

/* 2 images: side by side, 4:3 each */
.image-grid-2 { grid-template-columns: 1fr 1fr; }
.image-grid-2 .blog-image img { aspect-ratio: 4 / 3; }

/* 3 images: 3 columns, square each */
.image-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.image-grid-3 .blog-image img { aspect-ratio: 1 / 1; }

/* 4 images: single row */
.image-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 5 images: 2 on top (span 3 each) + 3 on bottom (span 2 each) */
.image-grid-5 { grid-template-columns: repeat(6, 1fr); }
.image-grid-5 .blog-image:nth-child(-n+2) { grid-column: span 3; }
.image-grid-5 .blog-image:nth-child(n+3) { grid-column: span 2; }

/* 6 images: 3 + 3 */
.image-grid-6 { grid-template-columns: repeat(3, 1fr); }

/* 7 images: 3 (top) + 4 (bottom) over 12-col LCM */
.image-grid-7 { grid-template-columns: repeat(12, 1fr); }
.image-grid-7 .blog-image:nth-child(-n+3) { grid-column: span 4; }
.image-grid-7 .blog-image:nth-child(n+4) { grid-column: span 3; }

/* 8 images: 4 + 4 */
.image-grid-8 { grid-template-columns: repeat(4, 1fr); }

/* 9 images: 3 x 3 */
.image-grid-9 { grid-template-columns: repeat(3, 1fr); }

/* 10 images: 3 + 3 + 4 over 12-col LCM */
.image-grid-10 { grid-template-columns: repeat(12, 1fr); }
.image-grid-10 .blog-image:nth-child(-n+6) { grid-column: span 4; }
.image-grid-10 .blog-image:nth-child(n+7) { grid-column: span 3; }

/* 11+ images: 3 columns flowing */
.image-grid-overflow { grid-template-columns: 1fr 1fr 1fr; }

/* Responsive: mobile collapse — single-row layouts (2/3/4) wrap, and
   the larger custom grids drop back to a plain 2-column flow. */
@media (max-width: 640px) {
  .image-grid-3,
  .image-grid-4,
  .image-grid-5,
  .image-grid-6,
  .image-grid-7,
  .image-grid-8,
  .image-grid-9,
  .image-grid-10,
  .image-grid-overflow {
    grid-template-columns: 1fr 1fr;
  }
  .image-grid-5 .blog-image,
  .image-grid-7 .blog-image,
  .image-grid-10 .blog-image {
    grid-column: span 1 !important;
  }
  .image-grid-1 { max-width: 100%; }
}
@media (max-width: 400px) {
  .image-grid { grid-template-columns: 1fr !important; }
  .image-grid .blog-image img { aspect-ratio: 16 / 9; }
  .image-grid-5 .blog-image { grid-column: span 1 !important; }
}

/* ========================================
   EXIF Info Overlay
   ======================================== */
.blog-image-exif-trigger {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 4;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 12px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.blog-image:hover .blog-image-exif-trigger { opacity: 1; }

.blog-image-exif-panel {
  position: absolute;
  bottom: 44px;
  left: 8px;
  z-index: 5;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 0;
  white-space: nowrap;
}
.blog-image-exif-panel .exif-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.blog-image-exif-panel .exif-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  min-width: 48px;
}
.blog-image-exif-panel .exif-params {
  display: flex;
  gap: 10px;
  margin: 4px 0;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  font-size: 13px;
}

} /* ── @layer blog-base 结束（图片系统）── */

/* ── 进 @layer blog-base（第二批：灯箱）──
   主题侧对 .vi-* 零处 !important（已核实），本段自身也无 !important。 */
@layer blog-base {

/* Lightbox — ViewImage-inspired layout: backdrop with soft frosted
   blur, image zone that slides in from above on open / down on close,
   a bottom toolbar with prev/next/close + image counter, and a thin
   horizontal loading bar. All corners sharp (border-radius: 0) per
   the site's overall square-edge aesthetic. */
.vi-overlay {
  position: fixed;
  inset: 0;
  /* Above AI reader / floating previews, which use 9999-99999 inline z-index. */
  z-index: 1000000;
  padding: 5vh 1rem;
  display: flex;
  flex-direction: column;
  /* Solid-ish dark backdrop instead of `backdrop-filter: blur()`.
     The blur forced a new compositor layer that was re-rasterized
     every frame of the opacity fade, producing a visible flicker on
     Chrome + Safari. An almost-opaque color reads as "focused"
     without any GPU cost. */
  background: rgba(18, 20, 24, 0.96);
  /* 开图：稍长的曲线 + spring-out 缓动（cubic-bezier 是 expo-out 的
     近似），后段慢慢收住，比 linear 视觉重量更"软"。 */
  animation: vi-in 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity;
}
.vi-overlay.vi-closing {
  /* 关图：用加速曲线 (ease-in 风) 快收，"果断"感强；JS 端 closeSoft
     的 setTimeout 与此处时长保持一致（240ms）。 */
  animation: vi-out 240ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes vi-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes vi-out { from { opacity: 1; } to { opacity: 0; } }

/* Main stage — fills the whole overlay; tools bar is absolutely
   positioned over the bottom so the stage never loses room to it
   and the image can always reach the overlay's full inner width. */
.vi-stage {
  flex: 1;
  height: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.vi-stage .vi-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  border-radius: 0;
  position: relative;
  z-index: 1;
  /* 开图：scale 呼吸 + spring-out 缓动 —— 从 0.92 弹到 1，配合 overlay
     的 opacity 渐入形成"软弹出"。比原来的 translateY(-20→0) 更有
     重量感，少了"从天而降"的方向感问题。 */
  animation: vi-img-in 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}
/* 关图：跟随 overlay 一起收缩 + 淡出（240ms 与 vi-out 同步收尾）。 */
.vi-overlay.vi-closing .vi-img {
  animation: vi-img-close 240ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
/* 翻页：保留原 300ms 节奏（与 JS step 函数里的 setTimeout 一致），
   只把 translateY 换成 translateY + 轻微 scale，曲线收尾更软。 */
.vi-stage.vi-img-out .vi-img {
  animation: vi-img-out 300ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes vi-img-in   { from { opacity: 0; transform: scale(0.92); }              to { opacity: 1; transform: scale(1); } }
@keyframes vi-img-close { from { opacity: 1; transform: scale(1); }                 to { opacity: 0; transform: scale(0.95); } }
@keyframes vi-img-out  { from { opacity: 1; transform: translateY(0) scale(1); }    to { opacity: 0; transform: translateY(16px) scale(0.98); } }

/* Click-outside catch layer — sits behind the image but above the
   backdrop, so clicks miss the img and fire a close. */
.vi-stage .vi-backstop {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
  z-index: 0;
}

/* Lightbox loading bar — compact SVG strip shown while the next image
   is decoding during prev/next navigation. */
.vi-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 4px;
  margin: -2px -20px;
  color: rgba(255, 255, 255, 0.88);
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}
.vi-loading-react {
  animation: vi-loading-moving 1s ease-in-out infinite;
}
@keyframes vi-loading-moving {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
    transform: translate(0%, 0);
  }
  100% {
    width: 0;
    transform: translate(100%, 0);
  }
}

/* Bottom toolbar — floats over the stage bottom so the image zone
   keeps its full width. Capped at 600px and horizontally centered
   within the viewport. */
.vi-tools {
  position: absolute;
  bottom: calc(clamp(48px, 10vh, 120px) + env(safe-area-inset-bottom));
  left: 1rem;
  right: 1rem;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.26);
  color: rgba(255, 255, 255, 0.72);
  border-radius: 0;
  /* No backdrop-filter here either — matches .vi-overlay removal;
     keeps a single cheap compositing layer for the whole overlay. */
  z-index: 2;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.vi-tools:hover,
.vi-tools:focus-within {
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.vi-count {
  min-width: 60px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.vi-nav {
  display: flex;
  gap: 10px;
}
.vi-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.68);
  transition: background 0.15s ease, color 0.15s ease;
}
.vi-tools:hover .vi-btn,
.vi-tools:focus-within .vi-btn {
  color: rgba(255, 255, 255, 0.9);
}
.vi-btn:hover,
.vi-btn:focus-visible {
  background: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.vi-btn:disabled { opacity: 0.35; cursor: not-allowed; }

} /* ── @layer blog-base 结束（灯箱）── */

/* ── 进 @layer blog-base（下载卡片）──
   注释里本来就写着「可由主题覆盖」，分层后主题不必再套 [data-theme] 前缀。
   本段那两处 !important 是**故意**用来压主题的 .blog-prose a 链接样式的，
   分层不影响它 —— important 永远胜过 normal，与层无关。 */
@layer blog-base {

.md-download-card {
  /* 默认视觉：深色 panel + 橙色 accent，跟原 inline 视觉一致 */
  --md-download-bg: #1a1a1a;
  --md-download-accent: #f5a623;
  --md-download-text: #fff;
  margin: 16px 0;
  padding: 16px 20px;
  background: var(--md-download-bg);
  color: var(--md-download-text);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.md-download-icon {
  width: 44px;
  height: 44px;
  background: var(--md-download-accent);
  color: var(--md-download-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.md-download-info {
  flex: 1;
  min-width: 0;
}
.md-download-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  /* 标题过长时单行省略，避免破坏 layout */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.md-download-desc {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
  line-height: 1.5;
  /* 简介双行省略 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* `!important` 用于覆盖各主题的 .blog-prose a 链接样式（下划线、prose
   primary color）。否则 a.md-download-btn 在 Azure / Nebula / Renascent
   下都会被主题加上 text-decoration: underline + 主题色 —— 看上去像链接
   不像按钮。这里是按钮自有视觉，不该被 prose 链接规则染色。 */
.md-download-btn {
  padding: 8px 20px;
  background: var(--md-download-accent);
  color: var(--md-download-bg) !important;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.md-download-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: var(--md-download-bg) !important;
  text-decoration: none !important;
}
.md-download-btn:active {
  transform: translateY(0);
}
/* 移动端窄屏：按钮换行避免挤压标题 */
@media (max-width: 480px) {
  .md-download-card {
    flex-wrap: wrap;
    padding: 14px;
    gap: 12px;
  }
  .md-download-info {
    flex-basis: calc(100% - 56px);
  }
  .md-download-btn {
    flex-basis: 100%;
    text-align: center;
  }
}

} /* ── @layer blog-base 结束（下载卡片）── */

/* ── 进 @layer blog-base（封面 hover 放大）──
   注释里写着这是「theme-agnostic」的统一实现，取代了各主题原来那几个
   私有类。分层让想改幅度/曲线的主题可以直接覆盖。 */
@layer blog-base {

.cover-zoom :where([data-blog-image] img, img[data-blog-image]) {
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.cover-zoom:hover :where([data-blog-image] img, img[data-blog-image]) {
  transform: translate3d(0, 0, 0) scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .cover-zoom :where([data-blog-image] img, img[data-blog-image]),
  .cover-zoom:hover :where([data-blog-image] img, img[data-blog-image]) {
    transform: none !important;
    transition: none !important;
  }
}

} /* ── @layer blog-base 结束（封面 hover 放大）── */

/* ── 进 @layer blog-base（第三批：足迹页）──
   整页的版式、地图、时间线、卡片，都是主题该能改的东西。
   主题侧对 .footprint-* 零处 !important（已核实）。

   注意本段里的 `.footprint-page .blog-page-title-side` —— 它和已分层的
   .blog-page-title-side 在同一层里，靠特异性 (0,2,0) > (0,1,0) 继续赢，
   层内相对顺序不变，行为与分层前一致。 */
@layer blog-base {

.footprint-page {
  background: var(--color-bg-card, #fff);
}

/* 间距由布局出，不由子元素各自的 margin 出 —— 原来地图靠自己的
   margin-bottom: 24px 撑开与卡片网格的距离，占位符靠另一个 20px，
   两个数还不一样；地图有 520px 高，24px 在它下面读起来就是「贴着」。
   改成 flex 列 + gap，所有直接子元素（禁用提示 / 错误条 / 地图 /
   时间线）拿到同一个间距，子元素那两处 margin-bottom 已相应删除。 */
.footprint-page-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 32px 40px;
}

.footprint-page .blog-page-title-side {
  width: min(420px, 42vw);
  max-width: 100%;
}

.footprint-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(420px, 100%);
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--color-border, #ddd);
  background: var(--color-bg-soft, #fafafa);
}

.footprint-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text-main, #111);
  font-size: 14px;
}

.footprint-search button {
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--color-primary, #0052d9);
  color: #fff;
  background: var(--color-primary, #0052d9);
  font-size: 12px;
  cursor: pointer;
}

.footprint-disabled,
.footprint-empty,
.footprint-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  border: 1px dashed var(--color-border, #ddd);
  color: var(--color-text-dim, #888);
  background: var(--color-bg-soft, #fafafa);
  font-size: 13px;
}

.footprint-map {
  width: 100%;
  height: min(56vh, 520px);
  min-height: 320px;
  border: 1px solid var(--color-border, #ddd);
}

.footprint-map-marker {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary, #0052d9);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary, #0052d9) 28%, transparent), 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.footprint-mapbox-popup {
  max-width: min(360px, calc(100vw - 36px));
}

.footprint-mapbox-popup .mapboxgl-popup-content {
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-border, #ddd) 78%, #fff);
  border-radius: 4px;
  color: var(--color-text-main, #111);
  background: var(--color-bg-card, #fff);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.footprint-mapbox-popup .mapboxgl-popup-close-button {
  right: 8px;
  top: 7px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--color-text-dim, #888);
  font-size: 18px;
  line-height: 20px;
}

.footprint-mapbox-popup .mapboxgl-popup-close-button:hover {
  color: var(--color-text-main, #111);
  background: var(--color-bg-soft, #f5f5f5);
}

.footprint-map-popup {
  min-width: 260px;
}

.footprint-map-popup-card {
  display: block;
  min-width: 0;
  padding: 16px 18px 14px;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--color-border, #e5e7eb);
  background: var(--color-bg-card, #fff);
}

.footprint-map-popup-card:first-child {
  border-top: 0;
}

.footprint-map-popup-card:hover {
  background: color-mix(in srgb, var(--color-primary, #0052d9) 5%, var(--color-bg-card, #fff));
}

.footprint-map-popup-title {
  display: block;
  overflow: hidden;
  padding-right: 22px;
  color: var(--color-text-main, #111);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footprint-map-popup-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  margin-top: 9px;
  color: var(--color-text-sub, #666);
  font-size: 13px;
}

.footprint-map-popup-location {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.footprint-map-popup-location img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.footprint-map-popup-location span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footprint-map-popup-meta time {
  flex: 0 0 auto;
  color: var(--color-text-dim, #9ca3af);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.footprint-timeline-wrap {
  position: relative;
}

.footprint-link-lines {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  color: var(--color-primary, #0052d9);
  overflow: visible;
  pointer-events: none;
}

.footprint-link-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  opacity: 0.82;
}

.footprint-timeline {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.footprint-card {
  position: relative;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--color-border, #ddd);
  background: var(--color-bg-card, #fff);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.footprint-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.footprint-card.is-linkable {
  cursor: pointer;
}

.footprint-card.is-active {
  z-index: 4;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.footprint-card-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 58px;
  height: 58px;
  color: var(--color-primary, #0052d9);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.footprint-card-pulse svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  filter: drop-shadow(0 2px 8px rgba(0, 82, 217, 0.2));
}

.footprint-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-soft, #f5f5f5);
}

.footprint-card-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.footprint-card-order {
  position: absolute;
  right: 8px;
  bottom: 4px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.footprint-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
}

.footprint-card-body strong {
  display: block;
  overflow: hidden;
  color: var(--color-text-main, #111);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footprint-card-title {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.footprint-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.footprint-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-sub, #666);
  font-size: 12px;
  text-align: left;
}

.footprint-card-location span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footprint-card-location img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  flex: 0 0 auto;
}

.footprint-card-location i {
  color: var(--color-primary, #0052d9);
  font-size: 11px;
  flex: 0 0 auto;
}

.footprint-card-meta time {
  flex: 0 0 auto;
  color: var(--color-text-dim, #999);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

@media (max-width: 720px) {
  .footprint-page-body {
    /* 窄屏 gap 收到 28px —— 地图在这里只有 360px 高，40px 会显得散 */
    gap: 28px;
    padding: 0 18px 28px;
  }
  .footprint-page .blog-page-title-side {
    width: 100%;
  }
  .footprint-map {
    height: 360px;
  }
}

} /* ── @layer blog-base 结束（足迹页）── */

/* ── 进 @layer blog-base（第三批：友链徽章 + 友链页）──

   为什么这份共享默认值留在 globals 而不是搬进各主题：同一时刻浏览器只加载
   **激活主题那一份** styles.css（见 lib/document.ts）。写进 Azure 的表里，
   站点换到 Nebula 时这条规则根本不存在 —— 不是 FOUC，是永久没有。四份
   CommentList 都要用它，逐个主题抄一份既重复又必然漏。

   （原注释这里写的是「换主题就会掉样式」，措辞不准：不是切换的瞬间掉，是
   没写那一份的主题从来就没有。结论没错，理由改准。）

   分层解决的正是这个两难：默认值留在 globals 保证每个主题都有可用基线，但
   放进 layer 之后，想改的主题直接写 `.friend-badge { ... }` 就能覆盖，不必
   再靠 [data-theme] 前缀去拼特异性；不想改的自动继承这份。

   主题侧对 .friend-* 零处 !important（已核实），本段自身也无 !important。

   tooltip 走 ::after + data-tip，纯 CSS，不为一枚徽章拖进 tooltip 组件。 */
@layer blog-base {

.friend-badge {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary, #0052d9);
  color: #fff;
  font-size: 9px;
  line-height: 1;
  cursor: help;
}

.friend-badge::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 4px 8px;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.friend-badge:hover::after,
.friend-badge:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.friend-link-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.friend-link-compact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.friend-link-card-item,
.friend-link-compact-item {
  min-width: 0;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.friend-link-card-item:hover,
.friend-link-compact-item:hover {
  border-color: var(--color-primary, #0052D9);
  box-shadow: 0 2px 12px rgba(0, 82, 217, 0.08);
}

.friend-link-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.friend-link-compact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.friend-link-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #f5f5f5;
}

.friend-link-compact-item .friend-link-logo {
  width: 30px;
  height: 30px;
}

.friend-link-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.friend-link-description {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #888;
  font-size: 12px;
}

.friend-link-external {
  color: #ccc;
  flex: 0 0 auto;
  font-size: 12px;
}

/* ---- 友链行式布局：一行一个（图标 · 站名 · 描述 · 最后更新）---- */

.friend-link-row-list {
  display: flex;
  flex-direction: column;
}

/* 用负 margin 折叠相邻边框，避免两行之间出现 2px 的双线 */
.friend-link-row + .friend-link-row {
  margin-top: -1px;
}

.friend-link-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.friend-link-row:hover {
  z-index: 1;                        /* 边框变色时压住相邻行，否则被下一行的灰边盖掉 */
  border-color: var(--color-primary, #0052D9);
  background: #fbfcff;
}

.friend-link-row .friend-link-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.friend-link-row-name {
  flex: 0 0 auto;
  max-width: 30%;
  overflow: hidden;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 描述吃掉剩余空间并负责收缩 —— min-width:0 不能少，
   否则 flex 子项按内容撑开，长描述会把时间挤出行外 */
.friend-link-row-desc {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #888;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-link-row-time {
  flex: 0 0 auto;
  color: #aaa;
  font-size: 12px;
  font-variant-numeric: tabular-nums;  /* 日期右侧对齐成一列 */
  white-space: nowrap;
}

@media (max-width: 640px) {
  /* 窄屏描述先让位，站名和时间是主信息 */
  .friend-link-row-desc {
    display: none;
  }
  .friend-link-row-name {
    flex: 1 1 auto;
    max-width: none;
  }
}

} /* ── @layer blog-base 结束（友链）── */

/* ── 进 @layer blog-base（动态嵌入卡）──
   主题侧对 .utter-moment-embed* 零处 !important（已核实）。Nebula 有一组
   [data-theme] 覆盖，分层后它照旧赢（未分层胜分层），行为不变。 */
@layer blog-base {

.blog-prose .utter-moment-embed,
.utter-moment-embed {
  --moment-accent: var(--color-primary, #0052d9);
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid rgba(0, 82, 217, 0.18);
  border-left: 4px solid var(--moment-accent);
  background: linear-gradient(135deg, rgba(0, 82, 217, 0.06), rgba(255, 255, 255, 0.95));
  color: inherit;
  overflow: hidden;
}

.utter-moment-embed__head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.utter-moment-embed__head:hover {
  color: var(--moment-accent);
}

.utter-moment-embed__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--moment-accent);
  color: #fff;
  font-size: 13px;
}

.utter-moment-embed__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.utter-moment-embed__meta {
  margin-left: auto;
  color: #8a94a6;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
}

.utter-moment-embed__content {
  margin-top: 14px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.utter-moment-embed__images {
  position: relative;
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.utter-moment-embed__images--1 {
  grid-template-columns: 1fr;
}

.utter-moment-embed__images--2,
.utter-moment-embed__images--3,
.utter-moment-embed__images--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.utter-moment-embed__images img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.utter-moment-embed__more {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 12px;
}

.utter-moment-embed__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #64748b;
  font-size: 12px;
}

.utter-moment-embed__footer span {
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.utter-moment-embed--loading,
.utter-moment-embed--missing {
  background: #f8fafc;
  border-left-color: #94a3b8;
}

} /* ── @layer blog-base 结束（动态嵌入卡）── */

/* ── 进 @layer blog-base（X 帖子嵌入）──
   主题侧零处 !important。注意本段那两条 text-decoration 的 !important 在
   globals 侧，是压 .blog-prose a 下划线用的，分层不影响（important 胜过
   normal 与层无关）。 */
@layer blog-base {

.blog-prose .x-post-embed,
.x-post-embed {
  margin: 24px 0;
}

.x-post-embed :where(.twitter-tweet) {
  margin: 0 auto !important;
}

.blog-prose .x-post-embed__fallback,
.x-post-embed__fallback {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  text-decoration: none !important;
}

.x-post-embed__fallback span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
}

.x-post-embed__fallback strong {
  font-size: 15px;
  font-weight: 650;
}

.x-post-embed.is-loaded .x-post-embed__fallback {
  display: none;
}

} /* ── @layer blog-base 结束（X 帖子嵌入）── */

/* 友链网格的窄屏覆盖 —— 跟着上面的基础规则一起进 layer。
   这两条原先和 github-repo-card 的窄屏覆盖挤在同一个 @media 块里；基础规则
   分层而响应式覆盖留在层外的话，主题能改宽屏改不了窄屏，迁移只做了一半。
   github-repo-card 那部分暂不动（它有一批「globals 用 !important 反压主题」
   的规则，分层后语义会变强，要单独评估），所以这里把 @media 拆成两个。 */
@layer blog-base {

@media (max-width: 1200px) {
  .friend-link-compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .friend-link-card-grid,
  .friend-link-compact-grid {
    grid-template-columns: 1fr;
  }
}

} /* ── @layer blog-base 结束（友链响应式）── */


/* ── GitHub 仓库卡片 ──
   带 !important 的那组是**有意**压主题的 .blog-prose a 链接样式（卡片是个
   <a>，被主题的正文链接规则套上下划线会很难看）。进 layer 后这个意图**加强**
   了：分层的 important 胜过未分层的 important，也胜过一切 normal。

   ⚠️ 代价要说清楚：主题**无法**用普通规则改掉这两条 text-decoration，写
   !important 也压不过。这是本基线里唯一一处「主题控制不了」的地方，属于
   组件完整性而非风格选择。真要放开，得把 !important 去掉、改由组件不落在
   .blog-prose a 的匹配面里解决。 */
@layer blog-base {

.blog-prose .github-repo-card,
.github-repo-card {
  --github-card-height: 176px;
  --github-language-color: #94a3b8;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--github-card-height);
  gap: 0;
  height: var(--github-card-height);
  margin: 24px 0;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

/* 这里原本还并列着三条 [data-theme] 前缀的同义选择器，纯粹是为了提特异性
   压过主题的 .blog-prose a 下划线 —— 军备竞赛的痕迹。进 @layer 之后不需要了：
   分层的 !important 胜过一切未分层声明，普通选择器已经够。2026-08-17 删。 */
.blog-prose a.github-repo-card,
.blog-prose a.github-repo-card:hover,
.blog-prose a.github-repo-card * {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

.blog-prose .github-repo-card:hover,
.github-repo-card:hover {
  border-color: rgba(0, 82, 217, 0.32);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.github-repo-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.github-repo-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-bottom: 10px;
  color: #0052d9;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.github-repo-card__title {
  overflow: hidden;
  color: #0f172a;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-repo-card__desc {
  margin: 10px 0 14px;
  overflow: hidden;
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-repo-card__meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: auto;
  overflow: hidden;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
}

.github-repo-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.76);
}

.github-repo-card__loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: auto 0;
  padding: 5px 10px;
  border: 1px solid rgba(0, 82, 217, 0.16);
  background: rgba(0, 82, 217, 0.05);
  color: #0052d9;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1;
}

.github-repo-card__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin: auto 0;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1;
}

.github-repo-card__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 82, 217, 0.18);
  border-top-color: #0052d9;
  border-radius: 999px;
  animation: github-repo-card-spin 0.75s linear infinite;
}

@keyframes github-repo-card-spin {
  to {
    transform: rotate(360deg);
  }
}

.github-repo-card__visual {
  position: relative;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.2);
  background: #f8fafc;
}

.github-repo-card__avatar-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  margin: auto;
  color: #0f172a;
  font-size: 38px;
  overflow: hidden;
}

.blog-prose .github-repo-card__avatar,
.github-repo-card__avatar {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: cover;
}

.github-repo-card__language-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  display: flex;
  overflow: hidden;
  background: var(--github-language-color);
  z-index: 2;
}

.github-repo-card__language-bar span {
  display: block;
  height: 100%;
  min-width: 1px;
}


@media (max-width: 720px) {
  .blog-prose .github-repo-card,
  .github-repo-card {
    grid-template-columns: 1fr;
    height: auto;
    gap: 14px;
    padding: 0;
  }

  .github-repo-card__title {
    font-size: 17px;
    white-space: normal;
  }

  .github-repo-card__visual {
    width: 100%;
    height: 96px;
    aspect-ratio: auto;
    min-height: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
  }

  .github-repo-card__avatar-shell {
    width: 54px;
    height: 54px;
    font-size: 28px;
  }

}

} /* ── @layer blog-base 结束（GitHub 卡片）── */


@layer blog-base {

/* 评论 @昵称 悬浮卡片。
   这里的 !important 不是用来压主题的，是用来压**行内样式**的 ——
   CommentList.tsx 在元素上直接写了 display:'none'，只有 !important 盖得住。
   已核实五个主题都不设这个元素的 display（Nebula 只改配色），无冲突。 */
.reply-mention:hover .reply-mention-card { display: block !important; }

/* 评论区礼仪提示 hover 提亮。
   **不再需要 !important。** 原来那条 `opacity: .75 !important` 存在的唯一
   理由是 CommentForm.tsx 把 opacity: 0.55 写在了 style 属性上，行内样式
   压过一切普通规则。现在把默认值收进这里、组件那行删掉，两边都不用
   !important 了 —— 这也解开了本基线搬迁的最后一处卡点：分层后 important
   的优先级是反的（分层的胜过未分层的），globals 那条会反压 Nebula 的
   `opacity: 1 !important`，让 Nebula 的悬停态静默失效。
   现在 Nebula 那条（未分层 important）照旧赢，行为不变。 */
.comment-hint {
  opacity: 0.55;
  transition: opacity 0.2s;
}
div:hover > .comment-hint { opacity: 0.75; }

/* 评论表单的昵称 / 邮箱 / 网址三格。
   窄屏改成竖排：三格并排时每格只剩三分之一宽度，中文占位符加图标根本放不下，
   网址那格直接被挤出屏幕（原因是 flex 项默认 min-width:auto，撑不住就溢出而
   不是收缩）。布局写在这里而不是内联 style，内联样式没法带媒体查询，
   优先级还压过类选择器。 */
.comment-info-fields {
  display: flex;
  border-bottom: 1px solid var(--color-border, #eee);
}

.comment-info-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 50px;
  border-right: 1px solid var(--color-border, #eee);
}

.comment-info-field:last-child {
  border-right: none;
}

/* 输入控件的字号单独拎出来：窄屏下必须 >= 16px。
   iOS Safari 只要输入框字号小于 16px，聚焦时就会强制放大整个页面，放大后
   版心被推出视口、要手动缩回去 —— 表单「尺寸不对」多半是这个而不是真的样式写错。
   桌面端不受影响，仍用 13/14px。 */
.comment-field-input {
  font-size: 13px;
}

.comment-textarea-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 12px 12px 16px;
  min-height: 250px;
}

.comment-textarea {
  font-size: 14px;
  min-height: 220px;
}

/* 点「回复」弹出的紧凑表单。字号比完整版还小（12/13px），iOS 上放大得更狠，
   而移动端恰恰是回复用得最多的地方。 */
.comment-compact-input {
  font-size: 12px;
}

.comment-compact-textarea {
  font-size: 13px;
}

@media (max-width: 640px) {
  .comment-info-fields {
    flex-direction: column;
  }
  /* 竖排后格与格之间要横线，右侧竖线反而多余 */
  .comment-info-field {
    border-right: none;
    border-bottom: 1px solid var(--color-border, #eee);
    /* 54px：原来是 46px，**比桌面端的 50px 还矮** —— 方向反了，触屏上这三格
       是要用手指点的，理应比鼠标端更高。46px 也压在 44px 触控目标下限的边上，
       加上 16px 的字（iOS 必须 ≥16px 否则聚焦时整页会被强制放大），行高几乎
       贴着边框，看起来就是挤。 */
    height: 54px;
  }
  .comment-info-field:last-child {
    border-bottom: none;
  }

  .comment-field-input,
  .comment-textarea,
  .comment-compact-input,
  .comment-compact-textarea {
    font-size: 16px;
  }

  /* 三格竖排吃掉 162px（3 × 54），输入区再占 250px 的话小屏上整个表单要
     410px 起，一屏基本只剩表单。缩到 160px，够写几行又不至于挤掉下面的
     提交按钮。 */
  .comment-textarea-row {
    padding: 12px;
    min-height: 160px;
  }
  .comment-textarea {
    min-height: 130px;
  }
}

} /* ── @layer blog-base 结束（评论）── */

/* ↑↑ ../_base/blog-components.css 结束 ↑↑ */

/* Azure Theme Styles */

/* Navigation dropdown */
[data-theme="Azure"] .nav-dropdown-wrap:hover .nav-dropdown { display: block; }

/* ========================================
   Theme chrome + responsive layout
   ======================================== */
[data-theme="Azure"] .azure-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  background: #f5f5f5;
  color: var(--color-text-main);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
[data-theme="Azure"] .azure-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
[data-theme="Azure"] .azure-frame {
  width: 100%;
  max-width: 1400px;
  min-height: calc(100vh - 60px);
  margin: 0 auto;
  background: var(--color-bg-card);
  border-left: 1px solid #d9d9d9;
  border-right: 1px solid #d9d9d9;
}
[data-theme="Azure"] .blog-page-title {
  align-items: center;
  gap: 16px;
  margin: 0 0 32px;
  padding: 24px 32px;
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
}
[data-theme="Azure"] .blog-page-title-rail {
  position: absolute;
  left: 0;
  top: 50%;
  display: block;
  width: 3px;
  height: 32px;
  transform: translateY(-50%);
  background: var(--color-primary);
}
[data-theme="Azure"] .blog-page-title-main {
  gap: 10px;
}
[data-theme="Azure"] .blog-page-title-icon {
  color: var(--color-primary);
  font-size: 24px;
  transform-origin: center;
  transition: transform 0.18s ease, color 0.18s ease;
}
[data-theme="Azure"] .blog-page-title-icon:hover {
  transform: scale(1.16);
}
[data-theme="Azure"] .blog-page-title-text {
  color: var(--color-text-main);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}
[data-theme="Azure"] .blog-page-title-subtitle {
  margin-top: 4px;
  color: var(--color-text-dim);
  font-size: 13px;
}
[data-theme="Azure"] .blog-page-title-side {
  align-self: center;
  flex-wrap: wrap;
}
[data-theme="Azure"] .blog-page-title-meta {
  padding: 7px 14px;
  border-color: #d9d9d9;
  color: #666;
  background: var(--color-bg-card);
  font-size: 13px;
}
[data-theme="Azure"] .azure-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-right: 10px;
  /* 停在顶部时是实心白 —— 那会儿 header 跟页面顶端连成一片，
     透明反而显得没边界。滚起来才转成半透明（见下面的 [data-scrolled]）。 */
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  /* 磨砂常驻，只让 background 过渡。
     backdrop-filter 从 none 变到 blur() 是跳变、没法补间，滚动那一下会
     「啪」地糊一层；让它一直挂着，不透明时本来也看不出效果，
     变透明的瞬间磨砂就自然显形了。

     **先 webkit 后标准。** CSS 压缩器会把两条认作重复只留后写的那条，
     反过来写产物里就只剩前缀版，而 Chrome 只认标准属性。 */
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  transition: background 0.28s ease, border-color 0.28s ease;
}
/* 滚动之后：透出底下的内容。
   0.62 是权衡出来的 —— 再低文字对比度就不够了（导航是 13px 细字，
   底下滚过深色封面图时会发飘），saturate 把透出的颜色提一点，
   不至于灰蒙蒙。 */
[data-theme="Azure"] .azure-header[data-scrolled] {
  background: rgba(255, 255, 255, 0.62);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
@media (prefers-reduced-motion: reduce) {
  [data-theme="Azure"] .azure-header { transition: none; }
}
[data-theme="Azure"] .azure-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1400px;
  height: 56px;
  margin: 0 auto;
  padding: 0;
}
[data-theme="Azure"] .azure-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--color-primary);
  text-decoration: none;
  flex-shrink: 0;
  transform-origin: center;
  transition: transform 0.216s ease;
  will-change: transform;
}
[data-theme="Azure"] .azure-brand:hover {
  transform: scale(1.1);
}
[data-theme="Azure"] .azure-brand-img {
  display: block;
  max-width: 180px;
  height: 28px;
  object-fit: contain;
}
[data-theme="Azure"] .azure-brand-mark {
  display: block;
  flex-shrink: 0;
}
[data-theme="Azure"] .azure-brand-title {
  max-width: 220px;
  overflow: hidden;
  color: var(--color-primary);
  font-size: 20px;
  /* 400 = 常规字重。阿里妈妈方圆体是可变字体，权重轴 200–700，这里取哪个
     值它就渲染哪档 —— 原来是 700，也就是这个字体的上限。 */
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-theme="Azure"] .azure-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
[data-theme="Azure"] .azure-nav-parent {
  position: relative;
}
[data-theme="Azure"] .azure-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 56px;
  padding: 0 14px;
  color: #555;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
[data-theme="Azure"] .azure-nav-item::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}
[data-theme="Azure"] .azure-nav-item:hover,
[data-theme="Azure"] .azure-nav-item.active,
[data-theme="Azure"] .azure-nav-parent:hover .azure-nav-trigger,
[data-theme="Azure"] .azure-nav-parent.active .azure-nav-trigger {
  color: var(--color-primary);
}
[data-theme="Azure"] .azure-nav-item.active,
[data-theme="Azure"] .azure-nav-parent.active .azure-nav-trigger {
  font-weight: 700;
}
[data-theme="Azure"] .azure-nav-item:hover::after,
[data-theme="Azure"] .azure-nav-item.active::after,
[data-theme="Azure"] .azure-nav-parent:hover .azure-nav-trigger::after,
[data-theme="Azure"] .azure-nav-parent.active .azure-nav-trigger::after {
  width: calc(100% - 28px);
}
[data-theme="Azure"] .azure-nav-trigger {
  cursor: default;
}
[data-theme="Azure"] .azure-nav-trigger i {
  font-size: 9px;
  opacity: 0.5;
}
[data-theme="Azure"] .azure-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 100;
  display: none;
  min-width: 120px;
  padding: 6px 0;
  /* 磨砂，跟 header 本身同一套观感（header 用的是 blur(12px)）。
     原来是不透明的 --color-bg-card，一块实心白板压在页面上，
     跟半透明的 header 接不上。

     **两条声明的顺序不能反：先 webkit 后标准。** CSS 压缩器会把它认作
     重复声明只留后写的那条 —— 反过来写的话产物里只剩前缀版，
     而 Chrome 只认标准属性，磨砂直接失效。全屏遮罩那处踩过这个坑。 */
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  background: color-mix(in srgb, var(--color-bg-card, #fff) 82%, transparent);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateX(-50%);
}
[data-theme="Azure"] .azure-nav-dropdown-link {
  display: block;
  padding: 8px 20px;
  color: #555;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.1s, color 0.15s;
}
[data-theme="Azure"] .azure-nav-dropdown-link:hover {
  background: #f5f5f5;
}
[data-theme="Azure"] .azure-nav-dropdown-link.active {
  color: var(--color-primary);
  font-weight: 600;
}
[data-theme="Azure"] .azure-desktop-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
  min-width: 0;
}
[data-theme="Azure"] .azure-header-custom-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
  flex: 0 1 auto;
}
[data-theme="Azure"] .azure-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--color-text-dim);
  background: var(--color-bg-card);
  border: 1px solid #ddd;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex: 0 0 34px;
}
[data-theme="Azure"] .azure-header-button:hover,
[data-theme="Azure"] .azure-header-button:focus-visible,
[data-theme="Azure"] .azure-search.open .azure-search-button {
  color: var(--color-primary);
  background: var(--color-bg-card);
  border-color: var(--color-primary);
  outline: none;
}
[data-theme="Azure"] .azure-header-button:disabled {
  opacity: 0.55;
  cursor: wait;
}
[data-theme="Azure"] .azure-random-button.loading {
  color: var(--color-primary);
  border-color: var(--color-primary);
  opacity: 1;
}
[data-theme="Azure"] .azure-random-button.loading svg {
  flex-shrink: 0;
}
[data-theme="Azure"] .azure-header-button i {
  font-size: 15px;
  line-height: 1;
}
[data-theme="Azure"] .azure-header-action-custom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}
[data-theme="Azure"] .azure-header-action-custom-icon svg {
  width: 16px;
  height: 16px;
}
[data-theme="Azure"] .azure-header-action-img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}
[data-theme="Azure"] .azure-search {
  position: relative;
  flex-shrink: 0;
}
[data-theme="Azure"] .azure-search-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  width: 320px;
  height: 42px;
  background: var(--color-bg-card);
  border: 1px solid #d9d9d9;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
[data-theme="Azure"] .azure-search-popover-icon {
  flex-shrink: 0;
  margin-left: 13px;
  stroke: var(--color-text-dim);
}
[data-theme="Azure"] .azure-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  color: var(--color-text-main);
  font-size: 13px;
  background: transparent;
  border: 0;
  outline: none;
}
[data-theme="Azure"] .azure-search-kbd {
  flex-shrink: 0;
  margin-right: 9px;
  padding: 1px 5px;
  color: #aaa;
  font-size: 10px;
  line-height: 16px;
  background: var(--color-bg-card);
  border: 1px solid #ddd;
}
[data-theme="Azure"] .azure-header-loading {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  pointer-events: none;
}
[data-theme="Azure"] .azure-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000001;
}
[data-theme="Azure"] .azure-search-modal-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 0;
  cursor: default;
}
[data-theme="Azure"] .azure-search-modal-panel {
  position: absolute;
  top: 80px;
  left: 50%;
  display: flex;
  align-items: center;
  width: min(560px, calc(100vw - 32px));
  height: 56px;
  background: var(--color-bg-card);
  border: 1px solid #d9d9d9;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  transform: translateX(-50%);
}
[data-theme="Azure"] .azure-search-modal-icon {
  flex-shrink: 0;
  margin-left: 18px;
  stroke: var(--color-text-dim);
}
[data-theme="Azure"] .azure-search-modal-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  color: var(--color-text-main);
  font-size: 18px;
  background: transparent;
  border: 0;
  outline: 0;
}
[data-theme="Azure"] .azure-search-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-right: 6px;
  color: var(--color-text-dim);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
[data-theme="Azure"] .azure-search-modal-close:hover {
  color: var(--color-text-main);
  background: #f5f5f5;
}
[data-theme="Azure"] .azure-mobile-actions {
  display: none;
}
[data-theme="Azure"] .azure-mobile-bar-button {
  display: none;
}
[data-theme="Azure"] .azure-mobile-toc-layer {
  display: none;
}
[data-theme="Azure"] .azure-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #111;
  background: none;
  border: none;
  cursor: pointer;
}
[data-theme="Azure"] .azure-menu-toggle svg {
  stroke: currentColor;
}
[data-theme="Azure"] .azure-mobile-menu {
  display: none;
}

/* Home */
[data-theme="Azure"] .azure-home {
  background: var(--color-bg-card);
}
[data-theme="Azure"] .azure-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

/* 侧栏和社交栏的右侧分隔线。
   这两个选择器原本和 .azure-hero-tabs 共用一条规则，删 hero tabs 时把整条
   规则一起删掉了 —— tabs 是没了，但侧栏的右边框是它自己的，被误伤。 */
[data-theme="Azure"] .azure-social-cell,
[data-theme="Azure"] .azure-sidebar-cell {
  border-right: 1px solid var(--color-border);
}[data-theme="Azure"] .azure-hero-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin-left: -1px;
}
[data-theme="Azure"] .azure-hero {
  position: relative;
  overflow: hidden;
  /* 满宽 + 固定高。**不要写 aspect-ratio + max-height** —— 两者同时生效时
     浏览器会按 max-height 反推宽度（420 × 16/9 ≈ 747px），banner 就只占
     左边一截、右边一大片空白。比例是「出图规格」，不是显示约束：图按
     16:9 出，这里固定高度，由 .azure-hero-cover 的 object-fit:cover 裁切。 */
  width: 100%;
  height: 420px;
}
[data-theme="Azure"] .azure-hero-link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  /* 撑满 .azure-hero —— 它夹在 hero 和封面图中间，不给高度的话图片的
     height:100% 会参照它的内容高（图片原始比例算出的 845px），
     结果图片没被压到 420，只是被 hero 的 overflow 裁掉下半截。 */
  height: 100%;
}
[data-theme="Azure"] .azure-hero-cover {
  /* 填满容器，多出来的部分裁掉。图按 16:9 出（1920×1080 这类标准尺寸直接
     用），重要内容放中间 —— 上下会被裁。 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
[data-theme="Azure"] .azure-hero-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
[data-theme="Azure"] .azure-hero-loading.active {
  opacity: 1;
  pointer-events: auto;
}
[data-theme="Azure"] .azure-hero-titlebar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: var(--azure-hero-title-height, 56px);
  padding: 0 24px;
  pointer-events: none;
}
[data-theme="Azure"] .azure-hero-title {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

/* 标题前的分类图标。跟标题同色同阴影 —— 图片背景什么颜色都有，
   少一层阴影就会在浅色图上糊掉。flex-shrink:0 保证长标题省略时
   图标不被压扁。 */
[data-theme="Azure"] .azure-hero-title-icon {
  flex-shrink: 0;
  margin-right: 9px;
  color: #fff;
  font-size: 17px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.8);
}
[data-theme="Azure"] .azure-hero-mode {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 8px 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  background: var(--azure-hero-mode-color, var(--color-primary));
  transition: background 0.3s;
  writing-mode: vertical-rl;
}



[data-theme="Azure"] .azure-weather-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  min-width: 0;
  padding: 0 16px;
  color: #555;
  font-size: 13px;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
[data-theme="Azure"] .azure-weather-strip > i {
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 14px;
}
[data-theme="Azure"] .azure-weather-city,
[data-theme="Azure"] .azure-weather-condition,
[data-theme="Azure"] .azure-weather-muted {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-theme="Azure"] .azure-weather-city {
  flex: 1;
}
[data-theme="Azure"] .azure-weather-temp {
  flex-shrink: 0;
  color: #222;
  font-weight: 700;
}
[data-theme="Azure"] .azure-weather-condition,
[data-theme="Azure"] .azure-weather-muted {
  flex-shrink: 0;
  color: var(--color-text-dim);
  font-size: 12px;
}
[data-theme="Azure"] .azure-weather-loading {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 82, 217, 0.18);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: azure-weather-spin 0.75s linear infinite;
}
@keyframes azure-weather-spin {
  to { transform: rotate(360deg); }
}
[data-theme="Azure"] .azure-moment-cell,
[data-theme="Azure"] .azure-post-list {
  min-width: 0;
}
[data-theme="Azure"] .azure-moment-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 20px;
  font-size: 13px;
  background: #fafafa;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
[data-theme="Azure"] .azure-moment-ticker > i {
  flex-shrink: 0;
  color: var(--color-primary);
}
[data-theme="Azure"] .azure-moment-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #555;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-theme="Azure"] .azure-moment-time {
  flex-shrink: 0;
  color: #bbb;
  font-size: 11px;
}
[data-theme="Azure"] .azure-sidebar-sticky {
  position: sticky;
  top: 0;
}
[data-theme="Azure"] .azure-profile-card {
  position: relative;
  min-height: 238px;
  /* 右侧 -1px 让蓝色背景盖住 .azure-sidebar-cell 的灰色 border-right,
     避免欢迎卡片和右侧文章之间出现明显分割线;下方其它侧栏卡片不受影响。 */
  margin: 0 -1px 0 0;
  padding: 18px 16px 16px;
  overflow: hidden;
  color: #fff;
  background: var(--color-primary);
  border-radius: 0;
}
[data-theme="Azure"] .azure-profile-welcome {
  display: block;
  max-width: 100%;
  width: fit-content;
  margin: 0 auto;
  padding: 6px 10px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.96);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
}
[data-theme="Azure"] .azure-profile-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  margin-top: 14px;
}
[data-theme="Azure"] .azure-profile-face,
[data-theme="Azure"] .azure-profile-intro {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
[data-theme="Azure"] .azure-profile-avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
}
[data-theme="Azure"] .azure-profile-avatar,
[data-theme="Azure"] .azure-profile-avatar-fallback {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.18);
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
}
[data-theme="Azure"] .azure-profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
}
[data-theme="Azure"] .azure-profile-mood {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  background: var(--color-bg-card);
  border: 3px solid #fff;
  border-radius: 50%;
}
[data-theme="Azure"] .azure-profile-intro {
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.96);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.75;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
[data-theme="Azure"] .azure-profile-card[data-has-intro="true"]:hover .azure-profile-face {
  opacity: 0;
  transform: scale(0.94);
}
[data-theme="Azure"] .azure-profile-card[data-has-intro="true"]:hover .azure-profile-intro {
  opacity: 1;
  transform: translateY(0);
}
[data-theme="Azure"] .azure-profile-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
[data-theme="Azure"] .azure-profile-text {
  min-width: 0;
}
[data-theme="Azure"] .azure-profile-name {
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-theme="Azure"] .azure-profile-tagline {
  margin-top: 4px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-theme="Azure"] .azure-profile-socials {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}
[data-theme="Azure"] .azure-profile-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}
[data-theme="Azure"] .azure-profile-social:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}
[data-theme="Azure"] .azure-profile-social-svg,
[data-theme="Azure"] .azure-profile-social-img {
  display: inline-flex;
  width: 17px;
  height: 17px;
}
[data-theme="Azure"] .azure-profile-social-svg svg,
[data-theme="Azure"] .azure-profile-social-img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}
[data-theme="Azure"] .azure-post-list-item {
  border-bottom: 1px solid var(--color-border);
}
/* ---- 分页换页：新一页淡入 ---- */

/* 上移距离故意小，翻页是高频操作，动作大了会显得比实际更慢。
   原来这里还有一条 [data-loading] 的「旧内容压暗」规则，配合的是手写
   PJAX 的等待态；分页已改回路由导航，等待期间由全局磨砂层接管，
   那条规则再没有来源了。 */
[data-theme="Azure"] .azure-page-swap {
  animation: azurePageSwap 0.26s ease-out;
}

@keyframes azurePageSwap {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="Azure"] .azure-page-swap {
    animation: none;
  }
}

[data-theme="Azure"] .azure-empty {
  padding: 80px 0;
  color: var(--color-text-dim);
  font-size: 14px;
  text-align: center;
}
[data-theme="Azure"] .azure-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 20px;
}

/* Post list cards */
[data-theme="Azure"] .azure-post-card {
  position: relative;
  background: var(--color-bg-card);
}
[data-theme="Azure"] .azure-post-card-title-row {
  display: flex;
  align-items: stretch;
  height: 50px;
}
[data-theme="Azure"] .azure-post-date-badge {
  position: relative;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  color: #fff;
  line-height: 1;
  background: var(--color-primary);
  cursor: default;
}
[data-theme="Azure"] .azure-post-date-month {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}
[data-theme="Azure"] .azure-post-date-day {
  font-size: 22px;
  font-weight: 400;
}
[data-theme="Azure"] .azure-post-date-tooltip {
  position: absolute;
  bottom: -24px;
  left: 0;
  z-index: 10;
  padding: 4px 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--color-primary);
  opacity: 0;
  pointer-events: none;
}
[data-theme="Azure"] .azure-post-card:hover .azure-post-date-tooltip {
  opacity: 1;
}
[data-theme="Azure"] .azure-post-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 0 20px;
}
[data-theme="Azure"] .azure-post-card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
}
[data-theme="Azure"] .azure-post-card-title {
  margin: 0;
  overflow: hidden;
  color: var(--color-text-main);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}
[data-theme="Azure"] .azure-post-card:hover .azure-post-card-title,
[data-theme="Azure"] .azure-post-card-link:focus-visible .azure-post-card-title {
  color: var(--color-primary);
}
[data-theme="Azure"] .azure-new-badge {
  flex-shrink: 0;
  padding: 1px 6px;
  color: var(--color-warning-text);
  font-size: 10px;
  font-weight: 600;
  background: var(--color-warning-bg);
  border: 1px solid #ffe0b2;
}
[data-theme="Azure"] .azure-post-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
}
[data-theme="Azure"] .azure-post-card:hover .azure-post-card-stats,
[data-theme="Azure"] .azure-post-card:focus-within .azure-post-card-stats {
  opacity: 1;
}
[data-theme="Azure"] .azure-post-card-stats span,
[data-theme="Azure"] .azure-post-card-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
[data-theme="Azure"] .azure-post-card-stats i {
  font-size: 12px;
}
[data-theme="Azure"] .azure-post-card-category {
  flex-shrink: 0;
  gap: 5px;
  color: var(--color-primary);
  font-size: 13px;
  text-decoration: none;
}
[data-theme="Azure"] .azure-post-card-cover {
  position: relative;
  display: block;
  height: 320px;
  overflow: hidden;
  background: var(--color-bg-soft);
}
/* 卡片封面的加载圆圈已整体移除（PostCard.tsx 不再渲染 .azure-post-card-cover-loader）。
   转圈表达的是「还没加载好」，而封面图几乎总是命中缓存，圆圈在那种情况
   下只是噪音；且 data-loaded 要等 JS 才翻成 "1"，hydration 稍慢圆圈就会
   在已经画好的图上露一下脸，无论怎么调延迟都堵不住。封面现在只保留
   globals.css 的 blur→sharp 淡入，容器自带的 --color-bg-soft 底色负责
   图没到时的占位。 */
[data-theme="Azure"] .azure-post-card-excerpt {
  padding: 12px 20px;
}
[data-theme="Azure"] .azure-post-card-excerpt p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Post detail */
[data-theme="Azure"] .azure-post-page {
  padding: 0;
}
[data-theme="Azure"] .azure-post-hero {
  position: relative;
  border-bottom: 1px solid var(--color-border);
}
[data-theme="Azure"] .azure-post-hero-cover {
  width: 100%;
  height: 400px;
}
[data-theme="Azure"] .azure-post-hero-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 60px 32px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}
[data-theme="Azure"] .azure-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}
[data-theme="Azure"] .azure-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
[data-theme="Azure"] .azure-post-title {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}
[data-theme="Azure"] .azure-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 32px;
  color: var(--color-text-dim);
  font-size: 13px;
  border-bottom: 1px solid #eee;
}
[data-theme="Azure"] .azure-post-meta-item,
[data-theme="Azure"] .azure-post-meta-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
[data-theme="Azure"] .azure-post-meta-item i.hot {
  color: var(--color-primary);
}
[data-theme="Azure"] .azure-post-meta-category {
  gap: 4px;
  margin-left: auto;
  color: var(--color-primary);
  text-decoration: none;
}
[data-theme="Azure"] .azure-post-content-wrap {
  padding: 32px;
}
[data-theme="Azure"] .azure-post-content-shell {
  position: relative;
}
[data-theme="Azure"] .azure-post-license {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 32px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
[data-theme="Azure"] .azure-post-license-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--color-text-dim);
  font-size: 13px;
}
[data-theme="Azure"] .azure-post-author-avatar {
  width: 20px;
  height: 20px;
  object-fit: cover;
  background: #f0f0f0;
  clip-path: url(#squircle);
}
[data-theme="Azure"] .azure-post-author-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
[data-theme="Azure"] .azure-post-license-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-dim);
  text-decoration: none;
}
[data-theme="Azure"] .azure-post-tags {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
[data-theme="Azure"] .azure-post-tag-wrap {
  display: inline-flex;
  align-items: baseline;
}
[data-theme="Azure"] .azure-post-tag {
  display: inline-flex;
  align-items: baseline;
  font-size: 13px;
  text-decoration: none;
}
[data-theme="Azure"] .azure-post-tag-hash {
  color: var(--color-primary);
  font-weight: 500;
}
[data-theme="Azure"] .azure-post-tag-name {
  color: var(--color-text-main);
}
[data-theme="Azure"] .azure-post-tag sup {
  margin-left: 1px;
  color: var(--color-text-dim);
  font-size: 10px;
  font-weight: 400;
}
[data-theme="Azure"] .azure-post-tag-comma {
  margin-left: 2px;
  color: #ccc;
}

@media (max-width: 1023px) {
  [data-theme="Azure"] .blog-page-title {
    padding: 24px 32px;
  }
  [data-theme="Azure"] .blog-page-title-rail {
    height: 32px;
  }
  [data-theme="Azure"] .blog-page-title-main {
    gap: 10px;
  }
  [data-theme="Azure"] .azure-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  [data-theme="Azure"] .azure-desktop-nav,
  [data-theme="Azure"] .azure-desktop-actions {
    display: none;
  }
  [data-theme="Azure"] .azure-mobile-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 16px;
  }
  [data-theme="Azure"] .azure-mobile-bar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    padding: 0 8px;
    color: var(--color-text-main);
    font-size: 13px;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: 0;
    cursor: pointer;
  }
  [data-theme="Azure"] .azure-mobile-bar-button i {
    color: var(--color-primary);
    font-size: 15px;
  }
  [data-theme="Azure"] .azure-mobile-bar-button.active {
    color: var(--color-primary);
    font-weight: 600;
  }
  [data-theme="Azure"] .azure-menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }
  [data-theme="Azure"] .azure-mobile-menu {
    display: block;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 6px 16px 12px;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
  }
  [data-theme="Azure"] .azure-mobile-menu-heading,
  [data-theme="Azure"] .azure-mobile-menu-link {
    display: block;
    border-bottom: 1px solid #f0f0f0;
  }
  [data-theme="Azure"] .azure-mobile-menu-heading {
    padding: 11px 0 8px;
    color: var(--color-text-dim);
    font-size: 13px;
  }
  [data-theme="Azure"] .azure-mobile-menu-link {
    padding: 12px 0;
    color: var(--color-text-main);
    font-size: 15px;
    text-decoration: none;
  }
  [data-theme="Azure"] .azure-mobile-menu-link.child {
    padding-left: 18px;
    font-size: 14px;
  }
  [data-theme="Azure"] .azure-mobile-menu-link.active {
    color: var(--color-primary);
    font-weight: 600;
  }
  [data-theme="Azure"] .azure-social-cell,
  [data-theme="Azure"] .azure-sidebar-cell {
    display: none;
  }
  [data-theme="Azure"] .azure-hero-panel {
    margin-left: 0;
  }
  [data-theme="Azure"] .azure-hero {
    height: 360px;
  }
  [data-theme="Azure"] .azure-hero-titlebar {
    height: auto;
    min-height: 58px;
    padding: 26px 16px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.46));
  }
  [data-theme="Azure"] .azure-hero-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 19px;
    line-height: 1.35;
    text-overflow: unset;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  [data-theme="Azure"] .azure-hero-mode {
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    font-size: 11px;
    letter-spacing: 0;
    writing-mode: horizontal-tb;
  }
  [data-theme="Azure"] .azure-moment-ticker {
    height: 40px;
    padding: 0 14px;
    border-top: 0;
  }
  [data-theme="Azure"] .azure-pagination-wrap {
    height: 56px;
  }
  [data-theme="Azure"] .azure-mobile-toc-layer {
    position: fixed;
    inset: 56px 0 0;
    z-index: 49;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }
  [data-theme="Azure"] .azure-mobile-toc-layer.open {
    opacity: 1;
    pointer-events: auto;
  }
  [data-theme="Azure"] .azure-mobile-toc-backdrop {
    position: absolute;
    inset: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.18);
    border: 0;
    cursor: pointer;
  }
  [data-theme="Azure"] .azure-mobile-toc-panel {
    position: absolute;
    top: 8px;
    right: 10px;
    width: min(320px, calc(100vw - 20px));
    max-height: min(520px, calc(100vh - 80px));
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    transform: translateY(-6px);
    transition: transform 0.18s ease;
  }
  [data-theme="Azure"] .azure-mobile-toc-layer.open .azure-mobile-toc-panel {
    transform: translateY(0);
  }
  [data-theme="Azure"] .azure-mobile-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 10px 0 14px;
    color: var(--color-text-main);
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
  }
  [data-theme="Azure"] .azure-mobile-toc-header span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  [data-theme="Azure"] .azure-mobile-toc-header i {
    color: var(--color-primary);
  }
  [data-theme="Azure"] .azure-mobile-toc-header button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #777;
    background: none;
    border: 0;
    cursor: pointer;
  }
  [data-theme="Azure"] .azure-mobile-toc-list {
    max-height: calc(min(520px, calc(100vh - 80px)) - 44px);
    margin: 0;
    padding: 6px 0;
    overflow-y: auto;
    list-style: none;
  }
  [data-theme="Azure"] .azure-mobile-toc-item {
    display: block;
    padding: 9px 14px;
    overflow: hidden;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-left: 3px solid transparent;
  }
  [data-theme="Azure"] .azure-mobile-toc-item.active {
    color: var(--color-primary);
    font-weight: 600;
    background: #f5f8ff;
    border-left-color: var(--color-primary);
  }
  [data-theme="Azure"].azure-mobile-toc-open .blog-main {
    overflow-y: hidden !important;
  }
}

@media (max-width: 767px) {
  [data-theme="Azure"] .blog-page-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
    padding: 20px 16px;
  }
  [data-theme="Azure"] .blog-page-title-rail {
    width: 3px;
    height: 28px;
  }
  [data-theme="Azure"] .blog-page-title-subtitle {
    font-size: 12px;
  }
  [data-theme="Azure"] .blog-page-title-side {
    justify-content: flex-start;
    flex-wrap: wrap;
    width: auto;
    padding-left: 0;
  }
  [data-theme="Azure"] .azure-shell {
    background: var(--color-bg-card);
  }
  [data-theme="Azure"] .azure-header {
    padding-right: 0;
  }
  [data-theme="Azure"] .azure-frame {
    min-height: calc(100vh - 52px);
    border-right: 0;
    border-left: 0;
  }
  [data-theme="Azure"] .azure-header-inner {
    height: 52px;
    gap: 10px;
    padding: 0;
  }
  [data-theme="Azure"] .azure-brand {
    margin-left: 14px;
    max-width: calc(100% - 54px);
  }
  [data-theme="Azure"] .azure-mobile-actions {
    margin-right: 14px;
  }
  [data-theme="Azure"] .azure-header-loading {
    top: 12px;
    right: 14px;
  }
  [data-theme="Azure"] .azure-search-modal-panel {
    top: 64px;
    width: calc(100vw - 24px);
    height: 52px;
  }
  [data-theme="Azure"] .azure-search-modal-input {
    font-size: 16px;
  }
  [data-theme="Azure"] .azure-brand-img {
    max-width: 150px;
    height: 26px;
  }
  [data-theme="Azure"] .azure-brand-title {
    max-width: 190px;
    font-size: 17px;
  }
  [data-theme="Azure"] .azure-mobile-menu {
    max-height: calc(100vh - 52px);
  }
  [data-theme="Azure"] .azure-mobile-toc-layer {
    inset: 52px 0 0;
  }
  [data-theme="Azure"] .azure-mobile-toc-panel {
    max-height: min(520px, calc(100vh - 76px));
  }
  [data-theme="Azure"] .azure-mobile-toc-list {
    max-height: calc(min(520px, calc(100vh - 76px)) - 44px);
  }
  [data-theme="Azure"] .azure-footer {
    overflow: hidden;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
  [data-theme="Azure"] .azure-footer-inner {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 20px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
  }
  [data-theme="Azure"] .azure-footer-meta {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1.65 !important;
    text-align: center !important;
  }
  [data-theme="Azure"] .azure-footer-meta > * {
    max-width: 100% !important;
    min-width: 0 !important;
  }
  [data-theme="Azure"] .azure-footer-stats {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    width: 100% !important;
    white-space: nowrap !important;
  }
  [data-theme="Azure"] .azure-footer-actions {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    flex-shrink: 1 !important;
    gap: 8px !important;
  }
  [data-theme="Azure"] .azure-footer-powered,
  [data-theme="Azure"] .azure-footer-music-button,
  [data-theme="Azure"] .azure-footer-reader-button,
  [data-theme="Azure"] .azure-footer-scroll-top {
    display: none !important;
  }
  /* .azure-footer-online-popover 已删（2026-08-17）：Footer.tsx:404-411 的注释
     写明这个在线访客弹层是出于隐私考虑主动砍掉的（不再展示访客头像/城市），
     组件已经不渲染它了。.azure-footer-login-popover 是活的，保留。 */
  [data-theme="Azure"] .azure-footer-login-popover {
    width: min(280px, calc(100vw - 40px)) !important;
    max-width: calc(100vw - 40px) !important;
  }
  [data-theme="Azure"] .azure-footer-login-popover {
    position: fixed !important;
    right: 20px !important;
    bottom: max(20px, env(safe-area-inset-bottom)) !important;
    left: 20px !important;
    width: auto !important;
    max-width: none !important;
  }













  [data-theme="Azure"] .azure-hero {
    height: clamp(200px, 52vw, 280px);
  }
  [data-theme="Azure"] .azure-moment-ticker {
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    font-size: 12.5px;
  }
  [data-theme="Azure"] .azure-moment-time {
    font-size: 10.5px;
  }
  [data-theme="Azure"] .azure-post-card-title-row {
    height: auto;
    min-height: 62px;
  }
  [data-theme="Azure"] .azure-post-date-badge {
    width: 52px;
  }
  [data-theme="Azure"] .azure-post-date-tooltip {
    display: none;
  }
  [data-theme="Azure"] .azure-post-card-main {
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 8px 12px;
  }
  [data-theme="Azure"] .azure-post-card-link {
    width: 100%;
    flex-basis: 100%;
  }
  [data-theme="Azure"] .azure-post-card-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 20px;
    line-height: 1.28;
    text-overflow: unset;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  [data-theme="Azure"] .azure-post-card-stats {
    gap: 8px;
    font-size: 12px;
    opacity: 1;
  }
  [data-theme="Azure"] .azure-post-card-category {
    margin-left: auto;
    font-size: 12px;
  }
  [data-theme="Azure"] .azure-post-card-cover {
    height: clamp(180px, 58vw, 260px);
  }
  [data-theme="Azure"] .azure-post-card-excerpt {
    padding: 10px 14px;
  }
  [data-theme="Azure"] .azure-post-card-excerpt p {
    font-size: 13.5px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
  }
  [data-theme="Azure"] .azure-post-hero-cover {
    height: clamp(240px, 64vw, 360px);
  }
  [data-theme="Azure"] .azure-post-hero-overlay {
    padding: 56px 18px 18px;
  }
  [data-theme="Azure"] .azure-breadcrumb {
    flex-wrap: wrap;
    gap: 5px;
    font-size: 11px;
  }
  [data-theme="Azure"] .azure-post-title {
    font-size: 22px;
    line-height: 1.32;
  }
  [data-theme="Azure"] .azure-post-meta {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px 14px;
    padding: 10px 14px;
    font-size: 12.5px;
  }
  [data-theme="Azure"] .azure-post-meta-category {
    margin-left: 0;
  }
  [data-theme="Azure"] .azure-post-content-wrap {
    padding: 18px 16px;
  }
  [data-theme="Azure"] .azure-post-license {
    align-items: flex-start;
    padding: 12px 14px;
  }
  [data-theme="Azure"] .azure-post-license-author,
  [data-theme="Azure"] .azure-post-tags {
    width: 100%;
  }
  [data-theme="Azure"] .blog-prose {
    font-size: 1rem;
    line-height: 1.78;
  }
  [data-theme="Azure"] .blog-prose h1 {
    font-size: 1.6rem;
  }
  /* 移动端标题字号梯度。原来 h2 是 1.22rem（19.52px），而 h3 没有移动端覆盖、
     一直用桌面的 1.1875rem（19px）—— **两级只差 0.5px，手机上几乎分不出来**。
     所以不能只调小 h2，那会直接跌到 h3 以下、层级倒挂；两个一起往下压。

     压后的梯度：h1 25.6 → h2 18.4 → h3 17 → 正文 16px。
     h3 与正文只差 1px，靠字重拉开（h3 600 / 正文 400），h2 是 700。 */
  [data-theme="Azure"] .blog-prose h2 {
    font-size: 1.15rem;
    padding-left: 0.625rem;
  }
  [data-theme="Azure"] .blog-prose h3 {
    font-size: 1.0625rem;
  }
  [data-theme="Azure"] .blog-prose h2::before {
    left: -16px;
  }
}

@media (max-width: 360px) {
  [data-theme="Azure"] .azure-brand-title {
    max-width: 140px;
  }
  [data-theme="Azure"] .azure-mobile-actions {
    gap: 2px;
  }
  [data-theme="Azure"] .azure-mobile-bar-button {
    width: 38px;
    padding: 0;
  }
  [data-theme="Azure"] .azure-mobile-bar-button span {
    display: none;
  }
}

@media (max-width: 900px) {
  [data-theme="Azure"] .post-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  [data-theme="Azure"] .post-prev-next {
    grid-template-columns: 1fr;
  }
  [data-theme="Azure"] .post-prev-next-link {
    min-height: 72px;
  }
  [data-theme="Azure"] .post-prev-next-text {
    padding: 14px 16px;
  }
  [data-theme="Azure"] .post-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  [data-theme="Azure"] .post-related-card-bottom {
    transform: translateY(0);
  }
  [data-theme="Azure"] .post-related-card-stats {
    opacity: 1;
  }
}

[data-theme="Azure"] .blog-prose {
  color: var(--color-text-main);
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.9;
  word-break: break-word;
}

/* Headings — no links, clean typography */
[data-theme="Azure"] .blog-prose h1, [data-theme="Azure"] .blog-prose h2, [data-theme="Azure"] .blog-prose h3, [data-theme="Azure"] .blog-prose h4 {
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text-main);
  letter-spacing: 0;
}
[data-theme="Azure"] .blog-prose h1 { font-size: 1.875rem; font-weight: 700; margin-top: 3rem; margin-bottom: 1.5rem; }

/* H2 — left color bar (touches card edge) + animated underline on hover */
[data-theme="Azure"] .blog-prose h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding: 0 0 0.75rem 0.75rem;
  position: relative;
  background-image:
    linear-gradient(var(--color-border), var(--color-border)),
    linear-gradient(var(--color-primary), var(--color-primary));
  background-size: 100% 1px, 0% 2px;
  background-position: left bottom, left bottom;
  background-repeat: no-repeat;
  transition: background-size 0.45s ease;
}
[data-theme="Azure"] .blog-prose h2::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
}
[data-theme="Azure"] .blog-prose h2:hover {
  background-size: 100% 1px, 100% 2px;
}

/* H3 — square dot before text */
[data-theme="Azure"] .blog-prose h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
[data-theme="Azure"] .blog-prose h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 1px;
  flex-shrink: 0;
}

[data-theme="Azure"] .blog-prose h4 { font-size: 1.0625rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--color-text-sub); }
/* Strip heading links from rehype-autolink */
[data-theme="Azure"] .blog-prose h1 a, [data-theme="Azure"] .blog-prose h2 a, [data-theme="Azure"] .blog-prose h3 a, [data-theme="Azure"] .blog-prose h4 a {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

[data-theme="Azure"] .blog-prose p { margin-bottom: 1.5rem; }

/* Links — external icon + mshots preview on hover */
[data-theme="Azure"] .blog-prose a:not(h1 a):not(h2 a):not(h3 a):not(h4 a) {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s, text-decoration-color 0.15s;
  position: relative;
}
[data-theme="Azure"] .blog-prose a:not(h1 a):not(h2 a):not(h3 a):not(h4 a):hover { color: var(--color-primary-active); }

/* .blog-link-icon 已删（2026-08-17）：全前台没有这个类的任何生产者，
   PostContent.tsx:119 的外链里只有 favicon <img> 和一个 fa 图标，透明度改内联控制了。
   下面 .blog-external-link 是活的，别一起删。 */

/* Mshots preview bubble tooltip */
[data-theme="Azure"] .blog-external-link { position: relative; }



@keyframes preview-in {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
[data-theme="Azure"] .new-badge-pulse {
  animation: new-shake 1.5s ease-in-out infinite;
}
@keyframes new-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
[data-theme="Azure"] .blog-prose strong { font-weight: 600; color: var(--color-text-main); }

/* Blockquote */
[data-theme="Azure"] .blog-prose blockquote {
  position: relative;
  padding: 0.875rem 3.5rem 0.875rem 2.125rem;
  margin: 1.5rem 0;
  background: color-mix(in srgb, var(--color-primary) 4%, var(--color-bg-soft));
  border-radius: 0;
  color: var(--color-text-sub);
  font-style: normal;
  overflow: hidden;
}
[data-theme="Azure"] .blog-prose blockquote::before {
  content: '\f10d';
  font-family: 'Font Awesome 7 Pro', 'Font Awesome 6 Pro', 'Font Awesome 6 Free';
  font-weight: 900;
  font-style: normal;
  position: absolute;
  top: 0.5rem;
  left: 0.45rem;
  font-size: 0.6rem;
  color: var(--color-primary);
  opacity: 0.65;
  line-height: 1;
}
[data-theme="Azure"] .blog-prose blockquote::after {
  content: '\f10e';
  font-family: 'Font Awesome 7 Pro', 'Font Awesome 6 Pro', 'Font Awesome 6 Free';
  font-weight: 900;
  font-style: normal;
  position: absolute;
  bottom: -0.375rem;
  right: 0.5rem;
  font-size: 3.75rem;
  color: var(--color-primary);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
[data-theme="Azure"] .blog-prose blockquote:hover::after {
  opacity: 0.2;
}
[data-theme="Azure"] .blog-prose blockquote p:last-child { margin-bottom: 0; }

[data-theme="Azure"] .blog-prose ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; }
[data-theme="Azure"] .blog-prose ol { list-style-type: decimal; padding-left: 1.5rem; margin-bottom: 1.5rem; }
[data-theme="Azure"] .blog-prose li { line-height: 1.7; margin-bottom: 0.375rem; }
[data-theme="Azure"] .blog-prose li::marker { color: var(--color-primary); }

/* Inline code */
[data-theme="Azure"] .blog-prose code:not(pre code) {
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-bg-soft));
  color: var(--color-primary-active);
  padding: 0.15rem 0.45rem;
  border-radius: 0;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
}

/* AI Summary */

/* Table of Contents — positioned outside content */

/* ========================================
   Post Navigation (prev/next + related)
   ======================================== */
[data-theme="Azure"] .post-nav-section {
  margin-top: 0;
  padding-top: 0;
}

/* Prev / Next */
[data-theme="Azure"] .post-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
}
[data-theme="Azure"] .post-prev-next-link {
  position: relative;
  display: flex;
  align-items: stretch;
  text-decoration: none;
  min-height: 80px;
  overflow: hidden;
}
[data-theme="Azure"] .post-prev-next-link.next { text-align: right; }
[data-theme="Azure"] .post-prev-next-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}
[data-theme="Azure"] .post-prev-next-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* hover transform/transition unified into globals.css :.cover-zoom */
}
[data-theme="Azure"] .post-prev-next-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
[data-theme="Azure"] .post-prev-next-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 16px 24px;
  position: relative;
  z-index: 1;
}
[data-theme="Azure"] .post-prev-next-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
[data-theme="Azure"] .post-prev-next-link.next .post-prev-next-label { justify-content: flex-end; }
[data-theme="Azure"] .post-prev-next-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Related posts tabs */
[data-theme="Azure"] .post-related-section {
  margin-bottom: 1rem;
}
[data-theme="Azure"] .post-related-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}
[data-theme="Azure"] .post-related-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-sub);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
[data-theme="Azure"] .post-related-tab:hover:not(:disabled) { color: var(--color-text-main); }
[data-theme="Azure"] .post-related-tab:disabled { opacity: 0.4; cursor: default; }
[data-theme="Azure"] .post-related-tab.active {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom-color: var(--color-primary);
}

[data-theme="Azure"] .post-related-refresh {
  margin-left: auto;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--color-text-dim);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
[data-theme="Azure"] .post-related-refresh:hover { color: var(--color-primary); }

/* Related posts — 5 column card grid.
   gap: 0 是有意为之 —— 卡片紧贴排列，不要 12px 间隙。
   padding 也清掉，让整组卡片直接接到 tabs 下边沿。 */
[data-theme="Azure"] .post-related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 0;
}
[data-theme="Azure"] .post-related-card {
  text-decoration: none;
  display: block;
  overflow: hidden;
}
[data-theme="Azure"] .post-related-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-soft);
}
[data-theme="Azure"] .post-related-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
[data-theme="Azure"] .post-related-card-date {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  font-size: 10px;
  color: #fff;
  background: rgba(0,0,0,0.45);
}
[data-theme="Azure"] .post-related-card-cat {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  gap: 3px;
}
[data-theme="Azure"] .post-related-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.75));
  display: flex;
  align-items: flex-end;
}
[data-theme="Azure"] .post-related-card-bottom {
  padding: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(16px);
  transition: transform 0.25s;
}
[data-theme="Azure"] .post-related-card:hover .post-related-card-bottom {
  transform: translateY(0);
}
[data-theme="Azure"] .post-related-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-theme="Azure"] .post-related-card-stats {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.25s;
}
[data-theme="Azure"] .post-related-card:hover .post-related-card-stats {
  opacity: 1;
}
[data-theme="Azure"] .post-related-empty {
  grid-column: 1 / -1;
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-dim);
}

[data-theme="Azure"] .post-list-link:hover .post-list-title { color: var(--color-primary) !important; }

/* Pre blocks without language class */
[data-theme="Azure"] .blog-prose pre:not([class*="language-"]) { background-color: var(--color-bg-code-block); color: var(--color-text-code-block); }
[data-theme="Azure"] .blog-prose pre:not([class*="language-"]) code { background: none; padding: 0; color: inherit; font-family: var(--font-mono); }

/* HR, Table */
[data-theme="Azure"] .blog-prose hr { margin: 2rem 0; border: none; border-top: 1px solid var(--color-border); }
[data-theme="Azure"] .blog-prose table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
[data-theme="Azure"] .blog-prose th { background-color: var(--color-bg-soft); text-align: left; padding: 0.5rem 1rem; font-weight: 600; font-size: 0.875rem; border: 1px solid var(--color-border); }
[data-theme="Azure"] .blog-prose td { padding: 0.5rem 1rem; font-size: 0.875rem; border: 1px solid var(--color-border); }

/* Cover hover-zoom is now system-level: see .cover-zoom in
   app/globals.css. Theme-prefixed .azure-img-hover* classes were
   removed; main-content covers should wrap in .cover-zoom instead. */

/* 文章页侧边目录的样式在 components/blog/toc-styles.css —— 那是 TOC 组件
   自带的一份，多个主题共用（左侧竖线 + 12.5px 条目 + active 主色竖条）。
   这里曾经加过一套 Azure 专属覆写，但它是在没找到那个文件的前提下写的，
   等于把原样式盖掉了，已移除。要调 TOC 请改 toc-styles.css。 */

/* ---- 认出访客后：等级徽章挂在大头像右下角 ----
   位置沿用博主的「心情表情」那个角标（.azure-profile-mood）。
   卡片是主色蓝底，评论列表那套浅底徽章配色在这里会脏，所以改用
   白底 + 主色字，跟卡片本身的对比关系一致。 */

[data-theme="Azure"] .azure-profile-level-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* ---- 访客徽章（沙发 / 覆盖率 / 资历）----
   挂在副标题下面，只在达到门槛时出现。卡片是主色蓝底，所以用半透明白底 +
   白字，比彩色徽章干净，也不跟头像右下角那个白底等级牌抢注意力。 */

[data-theme="Azure"] .azure-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

[data-theme="Azure"] .azure-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.94);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  cursor: default;
}

[data-theme="Azure"] .azure-profile-badge i {
  font-size: 10px;
  opacity: 0.85;
}

/* ============ 首页 Hero：图片通栏 ============

   原来是 280px | 1fr 两栏：左边一列分类 tabs，右边图片只占剩下的宽度。
   tabs 已经整块删掉（分类入口在文章卡片和 /archives 上都有），图片独占
   整行，可以按标准横幅比例出图。

   .azure-grid 是共享类（社交栏、侧栏也在用它的 280px | 1fr），所以只在
   .azure-hero-grid 这一层覆写，不动基类。 */

[data-theme="Azure"] .azure-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

[data-theme="Azure"] .azure-hero-grid > .azure-hero-panel {
  width: 100%;
}

/* 不要给图片底部加压暗遮罩。
   通栏后一度担心浅色图上白字读不清，加过一层 45% 高的黑色渐变，但
   .azure-hero-title 本来就带两层 text-shadow（0 2px 6px / 0 1px 2px），
   足够兜底；叠上遮罩反而把图片底部压得发灰、细节糊掉。 */
