/* 覆盖 CSS 变量 - 卡片背景色 */
:root {
  --card-bg: rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] {
  --card-bg: rgba(30, 30, 30, 0.35) !important;
}

/* 主页文章卡片容器透明效果 */
#recent-posts .recent-post-item {
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* 文章信息区域透明效果 - 关键！直接覆盖背景 */
#recent-posts .recent-post-item > .recent-post-info {
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* 侧边栏卡片透明效果 */
#aside-content .card-widget {
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* 其他页面卡片 */
#page .card-widget,
.layout > div:first-child:not(.recent-posts),
#archive,
#tag,
#category {
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* 深色模式下的透明效果 */
[data-theme="dark"] #recent-posts .recent-post-item,
[data-theme="dark"] #recent-posts .recent-post-item > .recent-post-info,
[data-theme="dark"] #aside-content .card-widget,
[data-theme="dark"] #page .card-widget,
[data-theme="dark"] .layout > div:first-child:not(.recent-posts),
[data-theme="dark"] #archive,
[data-theme="dark"] #tag,
[data-theme="dark"] #category {
  background: rgba(30, 30, 30, 0.55) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* 文章页面透明效果 */
#post {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

[data-theme="dark"] #post {
  background: rgba(30, 30, 30, 0.55) !important;
}
