/* ==================== 一图流基础 ==================== */

/* 全局背景图固定 */
body {
  background: url('/img/back.jpg') center/cover no-repeat fixed;
}

/* 页脚与头图透明 */
#footer,
#page-header {
  background: transparent !important;
}

/* 移除原有遮罩 */
#footer::before,
#page-header::before {
  background: transparent !important;
}

/* 夜间模式同样透明 */
[data-theme="dark"] #footer::before,
[data-theme="dark"] #page-header::before {
  background: transparent !important;
}

/* ==================== 背景动画（从模糊到清晰） ==================== */

/* 给 body 加模糊动画层 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/img/back.jpg') center/cover no-repeat;
  filter: blur(20px) brightness(0.3);
  transform: scale(1.2);
  animation: bg-focus 3s ease-out forwards;
  z-index: -1;
}

@keyframes bg-focus {
  0% {
    filter: blur(20px) brightness(0.3);
    transform: scale(1.2);
  }
  100% {
    filter: blur(0) brightness(0.8);
    transform: scale(1);
  }
}

/* ==================== 标题动画 ==================== */

#site-title {
  font-family: 'Noto Serif SC', 'SimSun', serif;
  font-size: 3rem;
  font-weight: 900;
  color: #0f0e0e;
  letter-spacing: 0.2em;
  text-shadow: 3px 3px 0 #e60012;
  transform: skewX(-5deg);
  animation: title-focus 2s ease-out 0.5s forwards;
  opacity: 0;
}

@keyframes title-focus {
  0% {
    opacity: 0;
    transform: skewX(-5deg) scale(0.3);
    filter: blur(30px);
  }
  100% {
    opacity: 1;
    transform: skewX(-5deg) scale(1);
    filter: blur(0);
  }
}

#site-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  color: #e60012;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  margin-top: 1rem;
  opacity: 0;
  animation: fade-in 1s ease-out 2s forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

/* ==================== 内容区域透明 ==================== */

/* 文章卡片背景透明 */
.layout > .recent-posts .article-content,
.layout > .recent-posts .recent-post-info {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px);
}

/* 侧边栏透明 */
.aside-content .card-widget {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px);
}

/* 夜间模式内容区 */
[data-theme="dark"] .layout > .recent-posts .article-content,
[data-theme="dark"] .layout > .recent-posts .recent-post-info,
[data-theme="dark"] .aside-content .card-widget {
  background: rgba(0, 0, 0, 0.7) !important;
}

/* 贡献图统计列布局修复 */
#git_container .contrib-column {
  min-width: 150px;          /* 防止列被压缩 */
  text-align: center;
  border-left: 1px solid #ddd;
  padding: 10px;
  display: table-cell;        /* 保持三列并排 */
  vertical-align: top;
}

#git_container .contrib-column-first {
  border-left: 0;
}

/* 确保父容器 flex 不干扰 */
.gitcalendar-graph + div[style*="display:flex"] {
  display: flex !important;
  flex-wrap: wrap !important;   /* 窄屏时允许换行 */
  justify-content: space-between;
}