/* 样式重置 */
body, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#headbar{
    display: flex;
}

#title{
    height: 46px;
    width: 200px;
    background-color: rgb(0, 0, 0);
    padding-top: 6px;
    padding-bottom: 3px;
    padding-left: 0;
    padding-right: 2px;
    text-align: center;
    margin: 0 0;
}

#title a{
    font-size: 28px;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
}


/* 中心对齐 */
.center {
    text-align: center;
}

/* 导航栏样式 */
.navbar {
    height: 55px;
    width: 100%;
    background-color: #525151c4;
    overflow: hidden;
}

.navbar p{
    display: flex;
    justify-content: right; 
    color: white;
    font-size: 14px;
}

#poem{
    width: 60%;
    padding: 3px 20px;
}

#poem p{
    text-align: right;
    opacity: 0.3; /* 初始状态为透明 */
    transition: opacity 3s; /* 渐变效果持续2秒 */
}

.navbar ul {
    display: flex;
    justify-content: left; /* 居中对齐 */
}

.navbar li {
    float: left;
    margin: 0 0; /* 增加项目间的间隔 */
    width: 120px;
    font-size: 90%;
}

.navbar a {
    display: block;
    color: white;
    text-align: center;
    padding: 16px 20px;
    height: 200px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease; /* 添加背景颜色和文字颜色的渐变效果 */
}

.navbar a:hover {
    height: 200px;
    background-color: #ddd; /* 背景变亮 */
    color: black; /* 文字变黑 */
}

/* 标题链接样式 */
h1 a {
    text-decoration: none;
    color: inherit;
}

.content {
    flex: 1; /* 使内容区域扩展以占据可用空间 */
}

/* 页脚样式 */
.bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: rgba(137, 137, 137, 0.293);
    padding: 4px; /* 调整容器内边距以控制logo与顶部、版权声明与底部的距离 */
}

.bottom img {
    width: 22px;
    height: 22px;
    margin: 0; /* 确保img的上下间距为0 */
}

.bottom a {
    height: 22px;
    display: inline-block; /* 确保a标签与img标签重合 */
    margin: 0; /* 确保a标签的上下间距为0 */
    margin-bottom: 2px;
}

.bottom span {
    display: block;
    margin: 0; /* 确保span的上下间距为0 */
    font-size: 12px;
    padding-top: 0px; /* 如果需要的话可以去掉这个 */
}



