/* 通用样式 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 1rem;
    background-color: #fff; /* 背景颜色 */
    color: #000; /* 文字颜色 */
}

header {
    background-color: #fff; /* 菜单背景颜色 */
    color: #000; /* 菜单文字颜色 */
    text-align: center;
    padding: 1rem;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin-right: 1rem;
}

a {
    color: #000; /* 链接颜色 */
    text-decoration: none;
}

/* 响应式布局 */
@media screen and (min-width: 768px) {
    body {
        margin: 2rem;
        max-width: 816px; /* A4纸宽度 */
        margin-left: auto;
        margin-right: auto;
        background-color: #f0f0f0; /* 四周留白部分背景颜色 */
        padding: 2rem; /* 四周留白宽度 */
    }

    main {
        background-color: #fff; /* A4部分背景颜色 */
        padding: 4rem; /* A4部分留白宽度 */
    }
}

/* 文章列表样式 */
.posts {
    display: flex;
    flex-direction: column;
}

.post {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.post h2 {
    margin: 0;
}

.post p {
    margin: 0.5rem 0;
    color: #6b7380; /* 文章摘要颜色 */
}

/* 鼠标悬停时放大显示 */
.post:hover {
    transform: scale(1.05); /* 放大比例 */
    transition: transform 0.5s ease; /* 过渡效果 */
}

/* 主页图片样式 */
.index-image {
    width:100%; /* 图片宽度 */
    height: 300px; /* 图片高度 */
    object-fit: cover; /* 图片裁剪方式 */
}

/* 文章图片样式 */
img {
    width: 100%; /* 图片宽度 */
    height: auto; /* 图片高度 */
    object-fit: cover; /* 图片裁剪方式 */
}

.add p {
    color: #384152; /* 文章详情页正文颜色 */
}

/* QQ图标样式 */
.qq-icon {
    display: block; /* 将图标设置为块级元素 */
    margin: 0 auto; /* 水平居中图标 */
    width: 100px; /* 图标宽度 */
    height: 100px; /* 图标高度 */
    border-radius: 50%; /* 圆形图标 */
}

.qq-icon:hover{
        transform: scale(1.2); /* 放大比例 */
    transition: transform 0.5s ease; /* 过渡效果 */
}

.zhaopian {
    display: block; /* 将图标设置为块级元素 */
    margin: 0 auto; /* 水平居中图标 */
    width: 200px; /* 图标宽度 */
    height: 200px; /* 图标高度 */
    border-radius: 50%; /* 圆形图标 */
}
/* 添加切换模式按钮样式 */
#mode-toggle-button {
    background-color: transparent;
    border: none;
    color: #000; /* 链接颜色 */
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 1rem;
}

/* 鼠标悬停时改变按钮颜色 */
#mode-toggle-button:hover {
    color: #6b7380; /* 链接颜色 */
}

#header-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; /* 根据需要调整 */
}

#header-image {
  background-image: url('../img/si.png');
  background-size: cover;
  background-position: center;
  width: 300px; /* 设置宽度，根据需要调整 */
  height: 150px; /* 设置高度，根据需要调整 */
}
