/* ==========================================================================
   前台补充样式（不动原站 style.css / mirror.css，方便以后对比与升级）
   ========================================================================== */

/* 无图标时的首字占位，尺寸与 .tutorial-card img 一致 */
.tutorial-icon-fallback {
  width: 36px;
  height: 36px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-ll);
  border: 1px solid #e7f1e2;
  border-radius: 9px;
  color: var(--green-d);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

/* 栏目页分页 */
.pager {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 22px 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.pager a {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-ll);
  color: #40584a;
}
.pager a:hover {
  border-color: var(--green);
  color: var(--green-d);
}

/* 页内搜索框（搜索页 / 404 页） */
.search-box-page {
  margin: 18px 0 6px;
  max-width: 560px;
  width: 100%;
}
.search-box-page input {
  width: 100%;
  padding: 4px 0;
  font-size: 14px;
}

/* 搜索结果里的栏目名 */
.extra-link em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

/* 文章页左侧目录当前项（与原站 .current 对齐） */
.doc-sidebar .side-list a.current {
  background: var(--green-l);
  color: var(--green-d);
  font-weight: 600;
}

/* 正文图片：避免超大图撑破版面 */
.doc-main img {
  height: auto;
}
