/* 设置页面背景为透明，让粒子动画显示出来 */
body {
    background: transparent;
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif; /* 使用Roboto字体 */
    color: #333;
}

/* 设置粒子动画的容器 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* 确保内容在粒子动画之上 */
}
/* 卡片样式 */
.card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 卡片标题 */
.card-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* 卡片内容 */
.card-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 侧边栏卡片 */
#blogSideBar .sideBarContent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#blogSideBar .sideBarContent .card {
    width: 100%;
}

/* 主内容区卡片 */
.post {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post .card {
    width: 100%;
}
/* 响应式设计 */
@media (max-width: 768px) {
    #sideBarMain {
        width: 100%;
        margin-bottom: 20px;
    }

    #mainContent {
        margin-left: 0;
    }

    .card {
        padding: 15px;
    }
}
/* 自定义按钮样式 */
.button {
    background-color: #4CAF50; /* 绿色背景 */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #45a049;
}

/* 侧边栏链接图标 */
#blogSideBar a {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 5px;
    background-color: #34495e;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

#blogSideBar a:hover {
    background-color: #2c3e50;
}
/* 悬停动画 */
.postTitle:hover, .sideBarTitle:hover {
    color: #e74c3c; /* 红色 */
    transition: color 0.3s ease;
}

/* 滚动效果 */
body {
    scroll-behavior: smooth;
}
