
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* 导航条上方样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f6f7ff; /* 淡蓝背景色 */
    grid-area: header;
}

.logo img {
    height: 50px;
}

input[type="text"] {
    outline: none;
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 5px 10px;
    border: 1px solid #cccccc;
    /*border-radius: 5px 0 0 5px;*/
    border-right: none;
}

button {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    /*border-radius: 0 5px 5px 0;*/
    border-left: none;
}

.icon {
    stroke: #ffffff;
    width: 20px;
    height: 25px;
}

/* 导航条样式 */
.navbar {
    background-color: #0a5cad; /* 主题蓝色 */
    grid-area: navbar;
}

.navbar ul {
    display: flex;
    justify-content: space-around;
}

.navbar ul li {
    padding: 10px 0;
}

.navbar ul li a {
    color: #fff;
    font-weight: bold;
}

.navbar ul li a:hover {
    color: #0068b7; /* 主要黑色字体 hover */
}

/* Banner图片样式 */
.banner img {
    width: 100%;
    height: auto;
}

/* footer样式 */
footer {
    background-color: #003366;
    color: white;
    padding: 20px;
    grid-area: footer;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.address {
    text-align: right;
}

/* 列表页样式 */
.sidebar {
    width: 200px;
    float: left;
    background-color: #f6f7ff; /* 淡蓝背景色 */
    padding: 10px;
}

/* 树型菜单 */
.tree-menu li a::after {
    display: inline-block;
    transform: rotate(90deg);
    margin-left: 5px;
    font-size: 23px;
}

.tree-menu li ul {
    display: none;
    padding-left: 20px;
}

.tree-menu li.expanded ul {
    display: block;
    padding-left: 20px;
}

.tree-menu li.expanded > ul li a::after {
    display: none; /* 当父级li有expanded类，即菜单展开时，隐藏其子菜单li元素后的小圆点 */
}

.tree-menu li {
    margin-bottom: 5px;
}

.tree-menu li a:hover {
    color: #0068b7; /* 主要黑色字体 hover */
}

.content-area {
    margin-left: 0px;
}

.content-list li:before {
    content: "•";
    color: #0a5cad; /* 主题蓝色 */
    margin-right: 5px;
}

.header.school-img {
    float: right;
    margin-right: 20px;
}

.header.school-img img {
    width: 200px;
    height: auto;
}

#content-details {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ccc;
}

footer {
    clear: both;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.content-area {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 垂直对齐到顶部 */
    padding: 20px;
}

#content-details {
    width: 100%;
    max-width: 800px; /* 控制最大宽度 */
    text-align: center; /* 默认将内容居中对齐 */
}

#title {
    font-size: 24px;
    margin-bottom: 10px;
}

#meta-info, #additional-info {
    display: flex;
    justify-content: center; /* 水平居中对齐 */
    gap: 20px; /* 设置两列之间的间距 */
    margin-bottom: 20px;
}

#meta-info p, #additional-info p {
    margin: 5px 0;
}

#article-content {
    margin-top: 20px;
    text-align: left; /* 正文内容左对齐 */
    padding: 15px;
    border: 1px solid #ccc;
    /*border-radius: 5px;*/
}

#publish-date, #views, #doc-number, #publisher {
    font-weight: bold;
}

/* 树形菜单 */
.sidebar {
    width: 250px;
    background-color: #ffffff; /* 整体页面背景 */
    padding: 20px;
    box-shadow: none; /* 取消阴影效果 */
    border: none; /* 取消边框 */
}

.tree-menu {
    list-style-type: none; /* 去除默认的列表样式 */
    padding-left: 0;
    margin: 0;
}

.tree-menu > li {
    margin: 10px 0;
}

/* 树形菜单项的样式 */
.tree-menu > li > a {
    text-decoration: none;
    font-size: 16px;
    color: #fff; /* 文字颜色改为白色 */
    padding: 8px 30px; /* 增加右侧的内边距，使圆点和文字之间的距离增大 */
    display: flex; /* 使用flex布局来对齐圆点和文字 */
    align-items: center; /* 垂直居中对齐文字和圆点 */
    position: relative;
    background-color: #0a5cad; /* 背景色为#0a5cad */
    /*border-radius: 5px;*/
    transition: background-color 0.3s ease;
}
.tree-menu > li > a:hover {
    background-color: #d0e7ff; /* 悬停时改变背景颜色 */
}

/* 小圆点样式 */
/* 调整小圆点的位置，增大圆点与文字之间的距离 */
.tree-menu > li > a::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #0a5cad; /* 小圆点颜色保持为#0a5cad */
    /*border-radius: 50%;*/
    position: absolute;
    left: 15px; /* 调整左边距，使圆点和文字的距离更大 */
    top: 50%;
    transform: translateY(-50%);
}
/* 为子级列表添加小圆点 */
.tree-menu > li > ul > li > a::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #0a5cad;
    /*border-radius: 50%;*/
    position: absolute;
    left: 10px; /* 同样调整位置 */
    top: 50%;
    transform: translateY(-50%);
}

/* 为 content-area 或 tree-menu 增加底部间距 */
.content-area {
    padding-bottom: 500px; /* 适当调整底部间距，确保下拉框可以完全显示 */
}

.tree-menu {
    margin-bottom: 50px; /* 给树形菜单增加底部间距 */
}
