/* ==========================================================================
   Blog site type styles — scoped to body.site-type--blog
   依据设计稿：蓝色主题、hero 横幅、三栏布局、卡片式文章列表、右侧栏面板
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.site-type--blog {
  background: #f2f5fe;
  /* 设计稿主题蓝：覆盖全局 --color-primary，仅博客站点作用域 */
  --color-primary: #0d55e7;
  --blog-sticky-header-height: 70px;
}

/* 内容容器：设计稿 1310px（覆盖全局 .container 的 1200px，header/footer 内同样生效） */
body.site-type--blog .container {
  max-width: 1310px;
}

/* 博客主页 main 不需要上下 padding（hero 紧贴顶栏，参照 listing 的既有豁免写法） */
body.site-type--blog main[role="main"] {
  padding: 0;
}

/* --------------------------------------------------------------------------
   Header：蓝色顶栏 + 频道导航 + 搜索框 + 头像占位
   -------------------------------------------------------------------------- */
body.site-type--blog .site-header {
  background: var(--color-primary, #0d55e7);
  border-bottom: none;
}

body.site-type--blog .blog-header {
  gap: 2rem;
  height: 70px;
  padding-top: 0;
  padding-bottom: 0;
}

body.site-type--blog .blog-logo {
  display: inline-flex;
}

body.site-type--blog .blog-logo .logo-text {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

body.site-type--blog .blog-nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  /* 右缘渐隐提示可滚动 */
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}

body.site-type--blog .blog-nav::-webkit-scrollbar {
  display: none;
}

body.site-type--blog .blog-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

body.site-type--blog .blog-nav a:hover {
  color: #fff;
}

body.site-type--blog .blog-nav a[aria-current="page"] {
  color: #fff;
  border-bottom: 2px solid #fff;
}

body.site-type--blog .blog-search {
  display: flex;
  align-items: center;
  border: none;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  width: 100%;
  max-width: 396px;
  height: 47px;
}

body.site-type--blog .blog-search input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  padding: 0 1rem;
  font-size: 1rem;
  border: none;
  outline: none;
}

body.site-type--blog .blog-search button {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  color: #7183a0;
  padding: 0 1.125rem;
  cursor: pointer;
}

body.site-type--blog .blog-header-actions {
  margin-left: auto;
  align-items: center;
}

body.site-type--blog .blog-avatar {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #a4daff;
  flex-shrink: 0;
}

body.site-type--blog .blog-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 桌面档（≥992px）：导航与内联搜索直接展示，隐藏汉堡 checkbox 开关与图标 */
@media (min-width: 992px) {
  body.site-type--blog .blog-nav-toggle,
  body.site-type--blog .blog-burger {
    display: none;
  }
}

/* 1920px 设计稿：容器满宽 1310 时去掉默认 16px 内边距 */
@media (min-width: 1342px) {
  body.site-type--blog .container {
    padding: 0;
  }
}

/* ≥992px：弹性搜索框 + 导航横滚兜底，不再有固定像素偏移 */
@media (min-width: 992px) {
  body.site-type--blog .blog-nav {
    gap: 3.5rem; /* 设计稿项间距 56px */
  }

  body.site-type--blog .blog-nav a {
    padding: 0.25rem 0;
  }

  body.site-type--blog .blog-search {
    flex: 0 1 396px;
    min-width: 180px;
  }

  body.site-type--blog .blog-header-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

/* --------------------------------------------------------------------------
   Hero 横幅
   -------------------------------------------------------------------------- */
body.site-type--blog .blog-hero {
  background: #dbe7f7 url("/static/img/blog-hero.svg") center / cover no-repeat;
  height: auto;
  aspect-ratio: 21 / 9;
  max-height: 490px;
  margin-bottom: 15px;
  /* 全宽出血：突破 .container 的宽度限制 */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Hero 轮播：无 JS 时仅首张可见（.is-active 由 SSR 输出），JS 负责切换 */
body.site-type--blog .blog-hero--carousel {
  background: #dbe7f7;
}

body.site-type--blog .blog-hero__carousel,
body.site-type--blog .blog-hero__slides {
  position: relative;
  height: 100%;
}

body.site-type--blog .blog-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

body.site-type--blog .blog-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

body.site-type--blog .blog-hero__slide img,
body.site-type--blog .blog-hero__link {
  display: block;
  width: 100%;
  height: 100%;
}

body.site-type--blog .blog-hero__slide img {
  object-fit: cover;
}

body.site-type--blog .blog-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

body.site-type--blog .blog-hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}

body.site-type--blog .blog-hero__dot.is-active {
  width: 20px;
  background: #fff;
}

/* --------------------------------------------------------------------------
   两栏布局：文章列表 + 右侧栏
   -------------------------------------------------------------------------- */
body.site-type--blog .blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 324px;
  gap: 12px;
  align-items: start;
}

body.site-type--blog .blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 324px;
  gap: 12px;
  align-items: start;
}

/* 文章列表主体（白色面板）：内边距 上19 右15 下22 左16 */
body.site-type--blog .blog-main {
  background: #fff;
  border-radius: 2px;
  padding: 19px 15px 22px 16px;
  min-width: 0;
}

body.site-type--blog .blog-list-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2329;
  padding: 1rem 0 0.25rem;
}

/* --------------------------------------------------------------------------
   文章卡片行：标题 + 摘要 + meta + 右侧封面（整卡周期 ≈164px）
   -------------------------------------------------------------------------- */
body.site-type--blog .blog-card {
  display: flex;
  gap: 1.25rem;
  padding: 13px 0 12px;
  border-bottom: 1px solid #e9ebef;
  align-items: flex-start;
}

body.site-type--blog .blog-card:last-child {
  border-bottom: none;
}

body.site-type--blog .blog-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

body.site-type--blog .blog-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 11px;
  overflow-wrap: anywhere;
}

body.site-type--blog .blog-card__title a {
  color: #484a4f;
}

body.site-type--blog .blog-card__title a:hover {
  color: var(--color-primary, #0d55e7);
}

body.site-type--blog .blog-card__summary {
  font-size: 0.875rem;
  color: #a3aabd;
  line-height: 20px;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.site-type--blog .blog-card__meta {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.75rem;
  color: #bababa;
}

body.site-type--blog .blog-card__author {
  color: inherit;
}

body.site-type--blog .blog-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.site-type--blog .blog-card__cover {
  flex-shrink: 0;
  width: 184px;
  height: 138px;
  border-radius: 2px;
  overflow: hidden;
}

body.site-type--blog .blog-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   右侧栏面板（热门阅读 / 推荐作者 / 文章目录 / 官方博客）
   -------------------------------------------------------------------------- */
body.site-type--blog .blog-panel {
  background: #fff;
  border-radius: 2px;
  padding: 15px;
  margin-bottom: 12px;
}

body.site-type--blog .blog-panel__title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ebef;
}

body.site-type--blog .blog-panel__icon--flame {
  color: #f74040;
}

body.site-type--blog .blog-panel__icon--official {
  color: #ff8000;
}

body.site-type--blog .blog-panel__icon--related {
  color: var(--color-primary, #0d55e7);
}

/* 热门阅读：条目周期 78px */
body.site-type--blog .blog-hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.site-type--blog .blog-hot-list li {
  display: flex;
  gap: 0.625rem;
  padding: 8px 0 7px;
  border-bottom: 1px solid #e9ebef;
}

body.site-type--blog .blog-hot-list li:last-child {
  border-bottom: none;
}

body.site-type--blog .blog-hot-list__rank {
  font-size: 0.875rem;
  font-weight: 700;
  color: #959db3;
  line-height: 1.4;
  flex-shrink: 0;
  width: 1em;
  text-align: center;
}

body.site-type--blog .blog-hot-list__body {
  flex: 1;
}

body.site-type--blog .blog-hot-list__rank--1 {
  color: var(--color-primary, #0d55e7);
}

body.site-type--blog .blog-hot-list__rank--2 {
  color: #5588ee;
}

body.site-type--blog .blog-hot-list__rank--3 {
  color: #9ebbf5;
}

body.site-type--blog .blog-hot-list__title {
  font-size: 0.875rem;
  color: #585a5f;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.site-type--blog .blog-hot-list__title:hover {
  color: var(--color-primary, #0d55e7);
}

body.site-type--blog .blog-hot-list__meta {
  display: flex;
  align-items: center;
  font-size: 0.625rem;
  color: #bcbcbc;
  margin-top: 8px;
}

body.site-type--blog .blog-hot-list__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* 官方博客卡片：左图右文横排，关注按钮右下对齐 */
body.site-type--blog .blog-official {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

body.site-type--blog .blog-official__cover {
  width: 84px;
  height: 72px;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
}

body.site-type--blog .blog-official__body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 72px;
  display: flex;
  flex-direction: column;
}

body.site-type--blog .blog-official__name {
  font-size: 0.75rem;
  color: #696a6f;
  line-height: 1.5;
  margin: 0;
}

body.site-type--blog .blog-official__desc {
  font-size: 0.75rem;
  color: #9aa1af;
  margin: 0 0 0.5rem;
}

/* 按钮 */
body.site-type--blog .blog-btn {
  display: inline-block;
  padding: 0.375rem 1.25rem;
  font-size: 0.8125rem;
  border-radius: 6px;
  cursor: pointer;
}

body.site-type--blog .blog-btn--primary {
  background: var(--color-primary, #0d55e7);
  color: #fff;
  border: 1px solid var(--color-primary, #0d55e7);
}

body.site-type--blog .blog-btn--outline {
  background: #fff;
  color: var(--color-primary, #0d55e7);
  border: 1px solid var(--color-primary, #0d55e7);
}

body.site-type--blog .blog-btn[disabled] {
  opacity: 0.75;
  cursor: default;
}

/* 官方博客关注按钮：61×28、圆角 2（保持 disabled 占位，P0 登录只预留） */
body.site-type--blog .blog-official .blog-btn {
  align-self: flex-end;
  margin-top: auto;
  width: 61px;
  height: 28px;
  padding: 0;
  font-size: 0.75rem;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   分页（沿用 components/pagination.html 结构，覆盖为设计稿样式，右对齐）
   -------------------------------------------------------------------------- */
body.site-type--blog .pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 0.8125rem;
  color: #474569;
}

body.site-type--blog .pagination__total {
  color: #474569;
  margin-right: 0;
}

body.site-type--blog .pagination__page,
body.site-type--blog .pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  color: #474569;
  background: #fff;
}

body.site-type--blog .pagination__page--active {
  background: var(--color-primary, #0d55e7);
  border-color: var(--color-primary, #0d55e7);
  color: #fff;
}

body.site-type--blog .pagination__arrow--disabled {
  color: #c3c9d4;
}

body.site-type--blog .pagination__size {
  height: 36px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  color: #474569;
  background: #fff;
}

body.site-type--blog .pagination__goto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  color: #474569;
}

body.site-type--blog .pagination__input {
  width: 48px;
  height: 36px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  text-align: center;
  color: #474569;
}

/* --------------------------------------------------------------------------
   详情页
   -------------------------------------------------------------------------- */
body.site-type--blog .blog-detail-main {
  min-width: 0;
}

/* 文章本体：独立白色卡片（与相关推荐卡片分列） */
body.site-type--blog .blog-article {
  background: #fff;
  border-radius: 2px;
  padding: 1.75rem 2rem;
}

body.site-type--blog .blog-article__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1f2329;
  line-height: 1.4;
  margin: 0 0 1rem;
}

body.site-type--blog .blog-article__meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: #9aa1af;
  margin-bottom: 1.25rem;
}

body.site-type--blog .blog-article__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

body.site-type--blog .blog-article__meta-main {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

body.site-type--blog .blog-article__author {
  color: #1f2329;
  font-weight: 600;
}

body.site-type--blog .blog-article__tags {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.site-type--blog .blog-article__tags-label {
  color: #9aa1af;
}

body.site-type--blog .blog-tag {
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  color: var(--color-primary, #0d55e7);
  background: #eaf1fe;
  border-radius: 999px;
}

body.site-type--blog .blog-article__lead {
  font-size: 0.875rem;
  color: #8a919f;
  line-height: 1.8;
  margin: 0 0 1.25rem;
}

body.site-type--blog .blog-article__cover {
  margin: 0 0 1.5rem;
  border-radius: 2px;
  overflow: hidden;
}

body.site-type--blog .blog-article__cover img {
  width: 100%;
  height: auto;
}

body.site-type--blog .blog-article__body {
  font-size: 0.9375rem;
  color: #3c4149;
  line-height: 1.9;
}

body.site-type--blog .blog-article__body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2329;
  margin: 1.75rem 0 0.75rem;
  padding-left: 0.625rem;
  border-left: 3px solid var(--color-primary, #0d55e7);
}

body.site-type--blog .blog-article__body :is(h2, h3)[id] {
  scroll-margin-top: calc(var(--blog-sticky-header-height) + 1.5rem);
}

body.site-type--blog .blog-article__body p {
  margin: 0 0 1rem;
}

/* 文章操作条 */
body.site-type--blog .blog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  margin: 1rem 0;
  border-top: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
  font-size: 0.8125rem;
  color: #9aa1af;
}

body.site-type--blog .blog-actions__stats {
  display: flex;
  gap: 1.25rem;
}

body.site-type--blog .blog-actions__btns {
  display: flex;
  gap: 0.625rem;
}

/* 评论区 */
body.site-type--blog .blog-comments {
  padding-top: 0.5rem;
}

body.site-type--blog .blog-comment {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f5f6f8;
}

body.site-type--blog .blog-comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

body.site-type--blog .blog-comment--reply .blog-comment__avatar {
  width: 28px;
  height: 28px;
}

body.site-type--blog .blog-comment__author {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2329;
  margin: 0 0 0.25rem;
}

body.site-type--blog .blog-comment__content {
  font-size: 0.8125rem;
  color: #4e5566;
  line-height: 1.7;
  margin: 0 0 0.375rem;
}

body.site-type--blog .blog-comment__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #9aa1af;
}

body.site-type--blog .blog-comment__replies {
  margin-top: 0.75rem;
  padding: 0.25rem 0 0.25rem 1rem;
  background: #f7f8fa;
  border-radius: 6px;
}

body.site-type--blog .blog-comment--reply {
  border-bottom: none;
  padding: 0.625rem 0.75rem;
}

body.site-type--blog .blog-comments__hint {
  text-align: center;
  font-size: 0.8125rem;
  color: #9aa1af;
  padding: 1rem 0 0.5rem;
}

/* 相关推荐：独立白色卡片，与文章区间距 12px */
body.site-type--blog .blog-related {
  background: #fff;
  border-radius: 2px;
  padding: 1.75rem 2rem;
  margin-top: 12px;
}

body.site-type--blog .blog-related__item {
  padding: 0.875rem 0;
  border-bottom: 1px solid #f5f6f8;
}

body.site-type--blog .blog-related__item:last-child {
  border-bottom: none;
}

body.site-type--blog .blog-related__item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
}

body.site-type--blog .blog-related__item-title a {
  color: #1f2329;
}

body.site-type--blog .blog-related__item-title a:hover {
  color: var(--color-primary, #0d55e7);
}

body.site-type--blog .blog-related__item-summary {
  font-size: 0.8125rem;
  color: #8a919f;
  line-height: 1.6;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.site-type--blog .blog-related__item-meta {
  font-size: 0.75rem;
  color: #9aa1af;
}

/* 推荐作者 */
body.site-type--blog .blog-author-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.site-type--blog .blog-author-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0;
}

body.site-type--blog .blog-author-list__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

body.site-type--blog .blog-author-list__info {
  min-width: 0;
}

body.site-type--blog .blog-author-list__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1f2329;
  margin: 0;
}

body.site-type--blog .blog-author-list__role {
  font-size: 0.75rem;
  color: #9aa1af;
  margin: 0;
}

body.site-type--blog .blog-author-list__count {
  margin-left: auto;
  font-size: 0.75rem;
  color: #9aa1af;
  flex-shrink: 0;
}

/* 文章目录 */
body.site-type--blog .blog-toc {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.site-type--blog .blog-toc li {
  padding: 0.375rem 0;
  font-size: 0.8125rem;
}

body.site-type--blog .blog-toc__num {
  color: #1f2329;
  font-weight: 600;
}

body.site-type--blog .blog-toc a {
  color: #4e5566;
}

body.site-type--blog .blog-toc a:hover {
  color: var(--color-primary, #0d55e7);
}

/* 页脚：设计稿为钢蓝通栏单条带三栏（网站导航/联系我们/站点简介），版权与备案并入中栏
   背景钢蓝 #004e84，栏目间半透明白竖线分隔；标题带英文后缀与白色短横线 */
body.site-type--blog .site-footer {
  background: #004e84;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2rem;
  /* 覆盖全局 1.5rem 上下 padding，高度由 .blog-footer 控制 */
  padding: 0;
}

body.site-type--blog .site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

body.site-type--blog .site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* 三栏主体：等宽三列，栏目间半透明白竖线
   align-items: start — 覆盖全局 .footer-inner 的居中，三栏标题顶对齐 */
body.site-type--blog .blog-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  padding: 3.75rem 0 3rem;
}

/* 列间竖线：第二/三列左侧半透明白色实线 */
body.site-type--blog .blog-footer__col {
  padding: 0 2rem;
}

body.site-type--blog .blog-footer__col + .blog-footer__col {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

/* 标题：中文 + 英文后缀（对齐 SC-WEB-0008 .footer-lc__title-en 惯例），下方白色短横线 */
body.site-type--blog .blog-footer__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

body.site-type--blog .blog-footer__title-en {
  margin-left: 0.75rem;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.15em;
}

body.site-type--blog .blog-footer__title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.75rem;
  background: #fff;
}

body.site-type--blog .blog-footer__text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  margin: 0;
  white-space: pre-line;
}

/* 导航：横向排列自然换行，白色无下划线 */
body.site-type--blog .blog-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.9375rem;
}

body.site-type--blog .blog-footer__list a {
  color: #fff;
}

/* 联系我们：单列键值对 + 版权/备案行（备案号保留官方链接，样式为纯文本） */
body.site-type--blog .blog-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

body.site-type--blog .blog-footer__contact li {
  padding: 0.35rem 0;
  word-break: break-word;
}

body.site-type--blog .blog-footer__label {
  color: #fff;
}

body.site-type--blog .blog-footer__beian {
  color: rgba(255, 255, 255, 0.88);
}

/* --------------------------------------------------------------------------
   响应式降级（参照 news 的断点模式）
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Header 移动档（<992px）：☰ 汉堡 + 常显搜索，导航 checkbox 纯 CSS 抽屉
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  body.site-type--blog {
    --blog-sticky-header-height: 56px;
  }

  body.site-type--blog .blog-header {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    gap: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  body.site-type--blog .blog-nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  body.site-type--blog .blog-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary, #0d55e7);
    cursor: pointer;
    flex-shrink: 0;
  }

  /* 键盘 Tab 到隐形 checkbox 时，焦点落在 ☰ 图标上可见 */
  body.site-type--blog .blog-nav-toggle:focus-visible ~ .blog-burger {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  /* 搜索常显：吃掉汉堡与头像之间的剩余宽度，basis:0 + min-width:0 防 max-content 撑换行/溢出 */
  body.site-type--blog .blog-header-actions {
    flex: 1 1 0%;
    min-width: 0;
    margin-left: 0;
  }

  body.site-type--blog .blog-search {
    flex: 1 1 0%;
    width: auto; /* 覆盖基态 width:100%，否则 flex-basis 解析为整行宽导致换行 */
    min-width: 0;
    max-width: none;
    height: 40px;
  }

  /* 导航默认收起；checkbox 勾选后以整列抽屉展开在 header 下方 */
  body.site-type--blog .blog-nav {
    display: none;
    overflow-x: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body.site-type--blog .blog-nav-toggle:checked ~ .blog-nav {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    order: 5;
    gap: 0;
  }

  body.site-type--blog .blog-nav-toggle:checked ~ .blog-nav a {
    display: block;
    padding: 0.625rem 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  /* 抽屉内当前页用下划线标记（避免与分隔线叠成双横线） */
  body.site-type--blog
    .blog-nav-toggle:checked
    ~ .blog-nav
    a[aria-current="page"] {
    border-bottom: none;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media (max-width: 1199px) {
  body.site-type--blog .blog-hero {
    aspect-ratio: 16 / 9;
  }

  /* <1200px 不再做「列表+右侧栏」两栏：与 <768 一致单列堆叠，侧栏挪到列表下方 */
  body.site-type--blog .blog-layout,
  body.site-type--blog .blog-detail-layout {
    /* minmax(0,1fr)：子元素的 min-content 不得撑宽单列轨道 */
    grid-template-columns: minmax(0, 1fr);
  }

  body.site-type--blog .blog-sidebar {
    order: 2;
  }

  /* 三栏 → 两栏：第三栏（站点简介）换到下一行占满 */
  body.site-type--blog .blog-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 0;
    padding: 2.5rem 0 2rem;
  }

  body.site-type--blog .blog-footer__col {
    padding: 0 1.5rem;
  }

  /* 第三栏换行后位于新行行首，去掉多余的左竖线 */
  body.site-type--blog .blog-footer__col:nth-child(3) {
    border-left: none;
  }
}

@media (max-width: 768px) {
  body.site-type--blog .blog-hero {
    aspect-ratio: 16 / 10;
  }

  /* 单列堆叠：去掉列间竖线，标题之间加分隔间距 */
  body.site-type--blog .blog-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 2rem 0 1.5rem;
  }

  body.site-type--blog .blog-footer__col {
    padding: 0 1rem;
    /* 覆盖全局 .footer-inner 移动档的 text-align: center：页脚内容左对齐，短横线与标题齐左 */
    text-align: left;
  }

  body.site-type--blog .blog-footer__col + .blog-footer__col {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem;
  }

  body.site-type--blog .blog-card {
    flex-direction: column-reverse;
  }

  body.site-type--blog .blog-card__cover {
    width: 100%;
    height: 180px;
  }

  body.site-type--blog .blog-main,
  body.site-type--blog .blog-article,
  body.site-type--blog .blog-related {
    padding: 0.5rem 1rem 1rem;
  }

  body.site-type--blog .blog-article__meta {
    flex-wrap: wrap;
  }

  body.site-type--blog .blog-article__tags {
    margin-left: 0;
  }

  body.site-type--blog .blog-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 小屏分页精简：仅留 ‹ 当前页 ›，其余隐藏（DOM 保留，桌面不受影响） */
  body.site-type--blog .pagination {
    justify-content: center;
  }

  body.site-type--blog .pagination__total,
  body.site-type--blog .pagination__size,
  body.site-type--blog .pagination__goto,
  body.site-type--blog .pagination__page {
    display: none;
  }

  body.site-type--blog .pagination__page--active {
    display: inline-flex;
  }
}

/* ============ blog 关于我们页：banner（header 兄弟节点，天然全宽） ============ */
body.site-type--blog .blog-about-banner {
  width: 100%;
  margin-bottom: .75rem;
  overflow: hidden;
}
body.site-type--blog .blog-about-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* API 未下发 cover_url 时的主题色渐变占位 */
body.site-type--blog .blog-about-banner--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, #1e40af 100%);
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: .1em;
}
