/**
 * 博客设计优化 - 保留玻璃态
 * 增强字体、动效、布局，不覆盖现有玻璃态效果
 */

/* ========================================
   TYPOGRAPHY - 独特的字体选择
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;600;700&display=swap');

/* 标题 - 优雅衬线 */
h1, h2, h3, h4, h5, h6,
.article-title,
.site-title {
  font-family: 'Noto Serif SC', 'Georgia', serif !important;
  letter-spacing: -0.01em !important;
  font-weight: 600 !important;
}

h1 { font-size: 2.2rem !important; line-height: 1.3 !important; }
h2 { font-size: 1.8rem !important; line-height: 1.35 !important; }
h3 { font-size: 1.4rem !important; line-height: 1.4 !important; }

/* 正文 - 现代无衬线 */
body,
.article-content,
.recent-post-info,
.aside-content {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* 代码 - 等宽字体 */
pre, code,
.hljs {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace !important;
}

/* ========================================
   COLOR THEME - 和谐配色
   ======================================== */

:root {
  --accent-primary: #7aa2f7;
  --accent-secondary: #bb9af7;
}

/* ========================================
   MOTION - 精致动效
   ======================================== */

/* 页面加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 文章卡片进入动画 */
.recent-post-item {
  animation: fadeInUp 0.5s ease-out backwards !important;
}

.recent-post-item:nth-child(1) { animation-delay: 0.05s !important; }
.recent-post-item:nth-child(2) { animation-delay: 0.1s !important; }
.recent-post-item:nth-child(3) { animation-delay: 0.15s !important; }
.recent-post-item:nth-child(4) { animation-delay: 0.2s !important; }
.recent-post-item:nth-child(5) { animation-delay: 0.25s !important; }
.recent-post-item:nth-child(6) { animation-delay: 0.3s !important; }

/* 微交互 - 悬停效果 */
.recent-post-item:hover {
  transform: translateY(-3px) !important;
  transition: all 0.25s ease !important;
}

.article-title {
  position: relative;
  padding-left: 12px !important;
}

.article-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  border-radius: 1.5px;
}

.article-title:hover {
  color: var(--accent-primary) !important;
  transition: color 0.2s ease !important;
}

/* 链接动画 */
a {
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

/* ========================================
   SPATIAL COMPOSITION - 空间布局
   ======================================== */

/* 优化间距 */
article {
  padding: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.aside-list-item {
  padding: 12px 0 !important;
}

/* ========================================
   SCROLL - 滚动美化
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1b26;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #3b4261, #565f89);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #565f89, #7aa2f7);
}

/* ========================================
   ACCESSIBILITY - 无障碍改进
   ======================================== */

*:focus-visible {
  outline: 2px solid var(--accent-primary) !important;
  outline-offset: 2px !important;
}

/* 隐藏主题自带的复制按钮 */
.copy-button,
figure.highlight button[class*="copy"],
.highlight-copy-btn {
  display: none !important;
}



/* ========================================
   RESPONSIVE - 响应式优化
   ======================================== */

@media (max-width: 768px) {
  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.25rem !important; }

  .article-title::before {
    width: 2px;
  }

  article {
    padding: 1rem !important;
  }
}
