/* 隐藏文章页面的日期（footline 区域） */
.footline {
    display: none;
}

/* 仅针对 children 短代码生成的列表缩进 */
.children-list {
    margin-left: 2rem !important;   /* 或者 padding-left: 2rem，根据实际效果调整 */
    padding-left: 0;                /* 避免双重缩进 */
}

/* 强制覆盖所有标题字体 */
/* #R-body-inner h1, */
/* #R-body-inner h2, */
/* #R-body-inner h3, */
/* #R-body-inner h4, */
/* article h1, */
/* .default h1, */
/* body h1 { */
/*     font-family: "SimHei", Arial, sans-serif !important; */
/* } */

/* 电脑端：5列网格 */
 #R-body-inner .children-list {
     display: grid !important;
     grid-template-columns: repeat(4, 1fr) !important;
     gap: 1rem !important;
     list-style: none !important;
     padding-left: 0 !important;
}

/* 手机端：双列 Grid 布局 */
@media (max-width: 768px) {
    #R-body-inner .children-list {
        display: grid !important;               /* 改为 grid */
        grid-template-columns: repeat(2, 1fr) !important;  /* 双列 */
        gap: 0.8rem !important;                /* 列间距 */
        padding-left: 0 !important;            /* 可选：去掉左侧内边距 */
    }
    #R-body-inner .children-list li {
        margin-bottom: 0.5rem !important;
        /* 如果需要去掉列表项前的圆点，可以加 list-style: none; */
    }
}

/* Grid 布局下用伪元素模拟圆点 */
.children-list li {
    position: relative;
    list-style: none;  /* 去掉原生圆点 */
    padding-left: 0.6rem;
    line-height: 1;
}
.children-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 30%;
    font-size: 30px;    /* 固定大小，不随字体缩放 */
    margin-top: -7px;    /* 使用 margin-top 微调垂直位置，基于当前字体大小 */
    color: #000;  /* 圆点颜色，可改 */
}


/* 仅侧边栏直接子元素增大，不穿透到 footer */
#R-sidebar {
    font-size: 1.2rem !important;
}
#R-sidebar > * {
    font-size: 1.2rem !important;
}
/* 标题字号，并用 !important 覆盖通配符 */
#R-logo .logo-title {
    font-size: 1.8rem !important;
    line-height: 1.8;          /* 增加行高，让标题本身更透气 */
}
@media (max-width: 768px) {
    #R-logo .logo-title {
        font-size: 1.5rem !important;
    }
}

/* 调整标签区域的下边距和左侧空白 */
.R-taxonomy.taxonomy-tags {
    margin-bottom: -10px !important;  /* 减小与正文的距离，原值可能较大 */
    padding-left: 0 !important;        /* 去除左侧空白 */
}
/* 如果内部 ul 也有左侧空白，一并去除 */
.R-taxonomy.taxonomy-tags ul {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* 返回搜搜结果按钮 */
.back-to-search-btn {
  position: fixed;
  bottom: 30px;
  right: 80px;
  z-index: 999;
  padding: 0.6rem 1.2rem;
  background: #1c90f3;       /* 可按需换色 */
  color: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.2s;
}
.back-to-search-btn:hover {
  background: #0e7ad9;
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

/* 返回顶部按钮 */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1c90f3;
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: opacity 0.3s;
}
#back-to-top:hover {
  background: #0e7ad9;
}


/* 隐藏搜索结果缩略图占位符 */
.pagefind-ui__result-thumb {
  display: none !important;
}
/* 搜索结果列表项增加左侧缩进 */
.pagefind-ui__result {
  padding-left: 1.5rem !important;  /* 可根据喜好调整数值 */
  margin-left: 0 !important;
}

/* 搜索结果层级 */
.result-breadcrumb {
  color: #888;
  margin: -0.1rem 0 0.2rem 0;  /* 稍微上移，更贴近标题 */
  font-weight: normal;
  font-size: inherit;           /* 与周围文本一致 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}