body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    overflow: hidden;
}


 /* 顶部header样式 */
 .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f8f8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 60px; /* 固定的header高度 */
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 65px;
    margin-right: 10px;
}

/* 语言和版本切换的样式 */
.language-version {
    display: flex;
    align-items: center;
    margin-right: 200px; /* 设置离右边的距离 */
}

.language, .version {
    margin-left: 20px; /* 设置间隔 */
}

.language select, .version select {
    margin-left: 10px; /* 设置select与label之间的间隔 */
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* 左侧导航栏 */
.navbar {
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    height: 100vh; /* Full height */
    overflow-y: auto;
    position: relative;
}

.navbar a {
    display: block;
    color: #333;
    padding: 10px;
    text-decoration: none;
    margin-bottom: 10px;
    border-radius: 4px;
}

.navbar a:hover {
    background-color: #ddd;
}


/* 美化滚动条 */
.navbar::-webkit-scrollbar {
    width: 8px; /* 滚动条宽度 */
}

.navbar::-webkit-scrollbar-track {
    background: #f1f1f1; /* 滚动条轨道的颜色 */
    border-radius: 4px; /* 轨道的圆角 */
}

.navbar::-webkit-scrollbar-thumb {
    background: #888; /* 滚动条的颜色 */
    border-radius: 4px; /* 滚动条的圆角 */
}

.navbar::-webkit-scrollbar-thumb:hover {
    background: #555; /* 悬停时滚动条的颜色 */
}

/* 设置下拉菜单的样式 */
.dropdown {
    position: relative;
    display: block;
    margin-bottom: 10px;
}

/* 隐藏下拉内容，直到用户悬停 */
.dropdown-content {
 
    position: relative; /* 使用相对定位 */
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding-left: 20px; /* 添加缩进 */
}

/* 下拉菜单的链接样式 */
.dropdown-content a {
    display: block;
    color: #333;
    padding: 10px;
    text-decoration: none;
    border-radius: 4px;
}

/* 鼠标悬停时显示下拉菜单 */
.dropdown:hover .dropdown-content {
    display: block;
}

/* 鼠标悬停时改变主菜单项的样式 */
.dropdown:hover .dropbtn {
    background-color: #ddd;
}





/* 右侧内容区 */
.content {
    flex-grow: 1;
    padding: 20px;
    margin-left: 50px;
    height: 100vh;
    overflow-y: auto;
    position: relative;
}

.content a:hover {
    background-color: #ddd;
}


/* 美化滚动条 */
.content::-webkit-scrollbar {
    width: 8px; /* 滚动条宽度 */
}

.content::-webkit-scrollbar-track {
    background: #f1f1f1; /* 滚动条轨道的颜色 */
    border-radius: 4px; /* 轨道的圆角 */
}

.content::-webkit-scrollbar-thumb {
    background: #888; /* 滚动条的颜色 */
    border-radius: 4px; /* 滚动条的圆角 */
}

.content::-webkit-scrollbar-thumb:hover {
    background: #555; /* 悬停时滚动条的颜色 */
}

h1 {
    color: #333;
    font-size: 2.5em;
}

h2 {
    color: #333;
    font-size: 2em;
}

h3 {
    color: #333;
    font-size: 1.8em;
}

h4 {
    color: #333;
    font-size: 1.5em;
}

p {
    line-height: 1.6;
    font-size: 1.2em;
}

/* 模态框的基本样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed; /* 固定位置 */
    z-index: 1000; /* 显示在顶层 */
    left: 0;
    top: 0;
    width: 100%; /* 占满全屏宽度 */
    height: 100%; /* 占满全屏高度 */
    background-color: rgba(0, 0, 0, 0.8); /* 半透明背景 */
}

/* 模态框中图片的样式 */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%; /* 图片最大宽度为90%屏幕宽 */
    max-height: 90%; /* 图片最大高度为90%屏幕高 */
    width: auto;
    height: auto;
}

/* 关闭按钮的样式 */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* 图片说明文字的样式 */
#caption {
    margin: auto;
    display: block;
    text-align: center;
    color: #ccc;
    font-size: 18px;
    padding: 10px 0;
}

/* 动画效果 */
.modal-content, #caption {  
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

/* 控制页面上普通显示的图片大小，防止它们在页面上显示过大 */
.clickable-image {
    max-width: 600px; /* 页面上的图片最大宽度 */
    max-height: 400px; /* 页面上的图片最大高度 */
    cursor: pointer; /* 鼠标移上去显示为手形，提示可以点击 */
}


/* 给锚点目标增加偏移量 */
[id]:target::before {
    content: "";
    display: block;
    height: 80px; /* 与header高度相同 */
    margin-top: -80px; /* 负的header高度，使内容从header下方开始 */
}
