/* ===== 全局优化 ===== */

/* 导航栏渐变背景色 */
#nav {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

#nav.nav-fixed {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* 导航栏链接颜色 */
#nav a,
#nav .site-name,
#nav .menus_items .menus_item a {
  color: #fff !important;
}

#nav .menus_items .menus_item a:hover {
  color: #ffd700 !important;
}

/* 暗色模式导航栏 */
[data-theme="dark"] #nav {
  background: linear-gradient(135deg, #434975 0%, #4a3566 100%) !important;
}

/* 禁用 top_img 后的页面顶部间距 */
#page-header {
  background: transparent !important;
}

/* 文章卡片美化 */
#recent-posts > .recent-post-item {
  border-radius: 12px !important;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

#recent-posts > .recent-post-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-2px);
}

/* 侧边栏卡片美化 */
#aside-content .card-widget {
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

/* 页脚统计数字样式 */
#footer .footer-wrap .busuanzi {
  font-size: 0.9rem;
}

/* 标签云美化 */
.card-tag-cloud a {
  border-radius: 6px !important;
  padding: 4px 10px !important;
}

/* 页脚配色 — 与导航栏渐变呼应 */
#footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #fff !important;
}

#footer a,
#footer .copyright,
#footer .footer-copyright span {
  color: rgba(255, 255, 255, 0.9) !important;
}

#footer #busuanzi_container_site_pv,
#footer #busuanzi_container_site_uv {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* 暗色模式适配 */
[data-theme="dark"] #footer {
  background: linear-gradient(135deg, #434975 0%, #4a3566 100%) !important;
}

[data-theme="dark"] #recent-posts > .recent-post-item {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] #aside-content .card-widget {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

/* 文章内容美化 */
#article-container h2 {
  border-bottom: 2px solid #49B1F5;
  padding-bottom: 0.3em;
}

/* 代码块圆角 */
#article-container figure.highlight {
  border-radius: 10px !important;
}

/* 导航栏 Logo 头像 */
#site-name::before {
  content: none;
}
#nav .site-page:first-child img,
/* 导航栏头像 - 圆框包裹（高优先级覆盖 Butterfly 默认样式） */
#nav #blog-info .site-icon {
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  object-fit: cover !important;
  border: 2px solid #667eea !important;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35) !important;
  margin-right: 8px;
  vertical-align: middle;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#nav #blog-info .site-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5) !important;
}

/* 关于页头像 — 与导航栏同风格，只是尺寸更大 */
.avatar-circle {
  border-radius: 50% !important;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 3px solid #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
  display: block;
  margin: 0 auto 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

/* 站点标题字体美化 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap');

#nav .site-name {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff 0%, #e8d5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: #49B1F5;
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}








