/* 全局设置 */
body {
    font-family: 'Nanum Gothic', sans-serif;
    margin: 0;
    padding: 0;
    background: url('/assets/images/anime-background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    margin-top: 80px;  /* 因为 header 固定，预留上边距 */
    
  }
  
  /* 遮罩层让内容更易阅读 */
  body::before {
    position: absolute; /* 改为 absolute 以确保覆盖整个 body */
    z-index: 0; /* 让内容层叠在它上面 */
  }
  
  
  /* Header 样式 */
  .site-header {
    background: linear-gradient(135deg, #4e94d7, #2b5876);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
  }
  
  .header-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .site-title {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    text-decoration: none;
  }
  
  /* 导航菜单 */
  .site-nav {
    position: relative;
  }
  
  .nav-trigger {
    display: none;
  }
  
  .nav-trigger-label {
    display: none;
    cursor: pointer;
    color: #fff;
  }
  
  .site-nav .page-link {
    margin: 0 15px;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s ease;
  }
  
  .site-nav .page-link:hover {
    color: #ffdd57;
  }
  

  /* 页脚样式 */
  .site-footer {
    background: linear-gradient(135deg, #2b5876, #4e4376);
    color: #fff;
    position: sticky;
    width: 100%;

  }
  
  /* 整体容器，采用 Flexbox 布局 */
  
  /* 卡片和按钮动画效果 */
  .btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2b5876, #4e94d7);
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
  }
  
  .btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #4e94d7, #2b5876);
  }

/* 修改 home-container 布局 */
/* 修改主容器为全屏宽度 */
.home-container {
  display: flex;
  min-height: 100vh;
}

/* 文章列表样式 */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.post-link {
  font-size: 1.2rem;
  color: #2b5876;
  text-decoration: none;
}

.post-link:hover {
  color: #4e94d7;
  text-decoration: underline;
}

.post-meta {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
}
  


/* 左侧边栏 */
.left-sidebar {
  position: absolute;
  left: 0;
  top: 80px;  /* 与 header 高度一致 */
  width: 250px;
  height: auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  z-index: 500;
}

/* 右侧边栏 */
.right-sidebar {
  position: absolute;
  right: 0;
  top: 80px;  /* 与 header 高度一致 */
  width: 250px;
  height: auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  z-index: 500;
}


/* 侧边栏通用样式 */

  
.sidebar h3 {
  margin-top: 0;
  color: #2b5876;
}

/* 侧边栏小部件优化 */
.sidebar-widget {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.widget-title {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 15px;
  color: #2b5876;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
  
/* 导航链接优化 */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-link:hover {
  background: #f0f7ff;
  color: #4e94d7;
}
  

/* 标签云优化 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 10px;
  background: #f5f8fa;
  border-radius: 15px;
  font-size: 0.85rem;
  color: #4e94d7;
  text-decoration: none;
  transition: all 0.2s;
}

.tag:hover {
  background: #4e94d7;
  color: white;
}

/* 作者卡片优化 */
.author-widget {
  text-align: center;
}

.author-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f1f1f1;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}
  
/* 社交链接优化 */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  font-size: 0.95rem;
  transition: transform 0.2s;
}

.social-link:hover {
  transform: translateX(3px);
}

.social-link i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.social-link.github {
  background: #333;
}

.social-link.gitee {
  background: #c71d23;
}

.social-link.email {
  background: #3498db;
}
  
  /* 近期文章列表 */
.recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-post {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

.recent-post:last-child {
  border-bottom: none;
}

.recent-post-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #34495e;
  transition: color 0.2s;
}

.recent-post-link:hover {
  color: #3498db;
}
  

  
  .rss-subscribe {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
    
    a {
      color: #e67e22;
      text-decoration: none;
      
      &:hover {
        text-decoration: underline;
      }
    }
  }