/* ========== 系统深色模式自动切换（仅头像区域） ========== */
@media (prefers-color-scheme: dark) {
  /* 1. 精准定位头像所在的card-content容器（通过子元素#author-info__sayhi锁定） */
  .card-content:has(#author-info__sayhi) {
    background-color: #080610 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid #2D2447 !important;
  }
  /* 2. 头像区域内的加粗文字样式 */
  .card-content:has(#author-info__sayhi) b {
    color: #B8A0FF !important;
  }
  /* 3. 头像区域内的author-status（状态图标背景） */
  .card-content:has(#author-info__sayhi) .author-status {
    background-color: #2D2447 !important;
  }

  /* 4. 强制重置非头像区域的card-content（避免污染底部） */
  .card-content:not(:has(#author-info__sayhi)) {
    background-color: initial !important;
    color: initial !important;
    border: initial !important;
  }
  .card-content:not(:has(#author-info__sayhi)) b {
    color: initial !important;
  }
  .card-content:not(:has(#author-info__sayhi)) .author-status {
    background-color: initial !important;
  }
}

/* ========== 手动切换深色模式（仅头像区域） ========== */
.dark .card-content:has(#author-info__sayhi) {
  background-color: #080610 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid #2D2447 !important;
}
.dark .card-content:has(#author-info__sayhi) b {
  color: #B8A0FF !important;
}

/* 5. 手动深色模式下重置非头像区域 */
.dark .card-content:not(:has(#author-info__sayhi)) {
  background-color: initial !important;
  color: initial !important;
  border: initial !important;
}
.dark .card-content:not(:has(#author-info__sayhi)) b {
  color: initial !important;
}