/* 蛋蛋博客视觉刷新：本地封面 + 文章页对比度修复 + 卡片动效 + 排版微调 */

/* 文章页顶部：封面图加载失败时也有渐变兜底，标题不再看不清 */
#page-header.post-bg {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed 60%, #c026d3);
}
#post-top-cover {
  position: relative;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}
#post-top-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(8, 12, 30, 0.18), rgba(8, 12, 30, 0.52));
  pointer-events: none;
}
#page-header.post-bg #post-info {
  position: relative;
  z-index: 1;
}
#page-header.post-bg #post-info .post-title,
#page-header.post-bg #post-info .post-meta,
#page-header.post-bg #post-info .post-meta a {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
#post-top-bg {
  object-fit: cover;
}

/* 列表卡片：封面加载时不再闪白，悬停有缩放和浮起 */
.post_cover {
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  overflow: hidden;
}
.post_cover .post_bg {
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.recent-post-item:hover .post_bg {
  transform: scale(1.07);
}
.recent-post-item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.recent-post-item:hover {
  transform: translateY(-3px);
}

/* 正文排版：行距更松，图片和代码块圆角统一 */
#article-container p {
  line-height: 1.95;
}
#article-container img {
  border-radius: 12px;
}
#article-container pre,
#article-container figure.highlight {
  border-radius: 12px;
}
#article-container table {
  display: block;
  overflow-x: auto;
}

::selection {
  background: #3b82f6;
  color: #fff;
}

/* 封面上的“置顶 / 最新”小标签：深色半透明胶囊 + 白字，任何底色都看得清 */
.recent-post-info-top-tips .sticky-warp,
.recent-post-info-top-tips .newPost {
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  border-radius: 999px;
  padding: 2px 9px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.recent-post-info-top-tips .sticky-warp .sticky,
.recent-post-info-top-tips .newPost span,
.recent-post-info-top-tips .sticky-warp i,
.recent-post-info-top-tips .newPost i {
  color: #fff;
}
