body {
    font-family: Arial, sans-serif;
    padding-top: 40px; /* 为导航栏留出空间 */
    font-size: 14px;
    background-color: #eee;
}
.banner img {
    width: 100%;
    height: auto;
}
.tab-nav {
    display: flex;
    justify-content: space-around;
    background-color: #f5f5f5;
    padding: 10px 0;
}
.tab-item {
    cursor: pointer;
    padding: 5px 10px;
    border: none;
    background: none;
    color: #333;
}
.tab-item.active {
    color: red;
}
.posts-list {
    padding: 20px;
}
.post-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}
.post-header {
    display: flex;
    align-items: center;
}
.post-category, .post-author, .post-time {
    margin-right: 10px;
}
.post-title {
    margin-top: 10px;
    font-size: 16px;
}
.post-content {
    margin-top: 5px;
    color: #999999;
}
.post-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}
.sticky-footer nav {
    display: flex;
    justify-content: space-around; /* 使按钮均匀分布 */
    width: 100%;
    padding: 10px 0; /* 根据需要调整内边距 */
}
.footer-link {
    display: flex;
    flex-direction: column; /* 使图标和文字垂直排列 */
    align-items: center;
    justify-content: center;
    flex: 1; /* 使每个按钮均匀分布 */
    text-align: center;
    padding: 10px; /* 根据需要调整内边距 */
}
.footer-link i {
    margin-bottom: 5px; /* 图标和文字之间的间距 */
    font-size: 16px; /* 根据需要调整大小 */
}
.add-post {
    background-color: #007bff; /* 根据需要调整背景颜色 */
    color: white; /* 根据需要调整文字颜色 */
    border-radius: 50%; /* 使按钮变成圆形 */
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px; /* 根据需要调整间距 */
    flex: 0 0 auto; /* 确保添加按钮不被压缩 */
}
.add-post i {
    font-size: 20px; /* 根据需要调整图标大小 */
}
.post-area {
    color: #999999;
}
.top-nav {
    background-color: #007bff; /* 蓝色背景 */
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 凸起效果 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.nav-title {
    color: white;
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap; /* 防止文字换行 */
    overflow: hidden; /* 隐藏溢出的文字 */
    text-overflow: ellipsis; /* 显示省略号 */
    max-width: 300px; /* 设置最大宽度，根据需要调整 */
}
.top-nav a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    margin-right: 20px;
}
.top-nav a:hover {
    opacity: 0.8;
}
/* 公告样式 */
.announcement {
    margin-top: 8px; /* 为导航栏留出空间，并加上50px的间距 */
    margin-bottom: 10px; /* 与帖子详情保持50px的间距 */
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}