/* 栏目标题页筛选条（只在 #category 内部生效，不动全局布局） */
#category .sf-bar {
  display: block; box-sizing: border-box; width: 100%;
  margin: 0 0 16px; padding: 13px 16px;
  background: #fff; border: 1px solid rgba(120, 160, 200, 0.18); border-radius: 12px;
}
#category .sf-author { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
#category .sf-author .avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: linear-gradient(150deg, #d7eaff, #8fc2ee);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
#category .sf-author .who { min-width: 0; line-height: 1.3; }
#category .sf-author .who b { display: block; font-size: 13.5px; color: #24405f; }
#category .sf-author .who span { font-size: 11.5px; color: #8497ab; }
#category .sf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
#category .sf-chip {
  padding: 4px 11px; border: 1px solid #dbe6f2; border-radius: 999px;
  background: #f7fbff; color: #3a556d; font-size: 12px; line-height: 1.6; cursor: pointer;
}
#category .sf-chip:hover { border-color: #9fcbe8; color: #2b6ea8; }
#category .sf-chip[aria-pressed="true"] { background: #27408b; border-color: #27408b; color: #fff; }
#category .sf-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#category .sf-input {
  flex: 1 1 160px; min-width: 0; padding: 8px 12px;
  border: 1px solid #dbe6f2; border-radius: 999px; background: #fff;
  font-size: 12.5px; outline: none;
}
#category .sf-input:focus { border-color: #7fb8dc; }
#category .sf-sort {
  flex: none; padding: 8px 13px; border: 1px solid #dbe6f2; border-radius: 999px;
  background: #fff; color: #3a556d; font-size: 12.5px; white-space: nowrap; cursor: pointer;
}
#category .sf-count { flex: none; margin-left: auto; font-size: 11.5px; color: #8fa6bd; white-space: nowrap; }
#category .sf-empty { padding: 16px 0 2px; text-align: center; color: #8fa6bd; font-size: 13px; }
html[data-theme="dark"] #category .sf-bar { background: #171b21; border-color: #262d38; }
html[data-theme="dark"] #category .sf-author .who b { color: #dce9f7; }
html[data-theme="dark"] #category .sf-chip,
html[data-theme="dark"] #category .sf-input,
html[data-theme="dark"] #category .sf-sort { background: #1b2531; border-color: #2d3c50; color: #cfe0f2; }
html[data-theme="dark"] #category .sf-chip[aria-pressed="true"] { background: #e6eefb; border-color: #e6eefb; color: #111; }
@media (max-width: 767px) {
  #category .sf-bar { padding: 12px 13px; }
  #category .sf-input { flex: 1 1 100%; }
  #category .sf-count { margin-left: 0; }
}
/* ---------- 署名徽标（与标签区分：描边 + 笔形图标） ---------- */
#category .sf-sign {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding: 1px 8px;
  border: 1px solid #cfe0f2;
  border-radius: 4px;
  background: #f4f9ff;
  color: #4a6b8c;
  font-size: 11px;
  line-height: 1.7;
  vertical-align: middle;
  white-space: nowrap;
}

#category .sf-sign::before {
  content: "✍";
  font-size: 10px;
  opacity: 0.7;
}

html[data-theme="dark"] #category .sf-sign {
  background: #1a2330;
  border-color: #2d3c50;
  color: #9cb8d6;
}

/* 文章页标题下的署名 */
#post-info .sf-sign.sf-sign-post {
  display: inline-flex;
  margin: 6px 0 0;
  padding: 2px 9px;
  font-size: 12px;
}

/* 首页卡片上的署名 */
.recent-post-item .sf-sign {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid #cfe0f2;
  border-radius: 4px;
  background: #f4f9ff;
  color: #4a6b8c;
  font-size: 11px;
  line-height: 1.7;
  vertical-align: middle;
  white-space: nowrap;
}

.recent-post-item .sf-sign::before {
  content: "✍";
  font-size: 10px;
  opacity: 0.7;
}

html[data-theme="dark"] .recent-post-item .sf-sign {
  background: #1a2330;
  border-color: #2d3c50;
  color: #9cb8d6;
}
