* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #e6f7ff;
    color: white;
    padding-top: 80px; /* 确保有足够的空间，防止固定的导航栏遮挡内容 */
}

header {
    background-color: red;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* 固定导航栏 */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10000; /* 确保导航栏在页面最上层 */
    height: 80px; /* 导航栏的高度 */
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

nav .logo {
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 50px;
    background-image: url('./logo.png');
    background-size: cover;
    background-position: center;
}

nav .logo img {
    width: 60px;
    height: 50px;
    display: none;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
    width: 80%;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
    display: flex;
    align-items: center;
}

nav a:hover {
    background-color: #575757;
}

/* 确保内容不会被导航栏遮挡 */
.news-section {
    min-height: 500px; /* 设置最小高度，确保内容显示 */
    padding-bottom: 30px;
    margin-top: 0px; /* 让内容区从导航栏下方开始显示 */
}

.news-section header {
    text-align: left;
    margin-bottom: 20px;
}

.news-section h1 {
    font-size: 37px;
    color: white;
}

.news-section p {
    font-size: 18px;
    color: white;
}

/* 蓝色部分的容器 */
.post-container {
    margin-top: 20px;
    padding: 40px;
    background-color: #2b2d5d;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    min-height: 200px; /* 增加最小高度确保蓝色部分有足够的显示空间 */
    height: auto; /* 高度自适应 */
}

.post-container-xiangqing {
    margin-top: 20px;
    padding: 40px;
    background-color: #2b2d5d;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0
}

.details-btn {
    padding: 10px 20px;
    background-color: #f64b6a;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    color: white;
    text-align: center; /* 确保按钮文字居中 */
    display: inline-block; /* 使按钮宽度自适应 */
    box-sizing: border-box;
}

.details-btn:hover {
    background-color: #d63a59;
}

