/* 将所有元素的盒模型设置为 border-box，这意味着元素的内边距和边框不会增加元素的总宽度和总高度 */
* {
    margin: 0; /* 移除所有元素的外边距 */
    padding: 0; /* 移除所有元素的内边距 */
    box-sizing: border-box;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}
hr {
    border: 0.1vw solid #000;
}
h2,h5,p{
  margin-top: 10px;
  margin-bottom: 10px;
}

/* 样式化顶部导航栏 */
.navbar {
    font-family: Arial;
    overflow: hidden;
    background-color: #333;
    border-radius: 15px;
    font-size: 16px;
    position: fixed;
    top: 0;
    width: 100%;
}

/* 样式化导航栏链接 */
.navbar a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

/* 右对齐链接 */
.navbar a.right {
    float: right;
}
/* 悬停时改变颜色 */
.navbar a:hover {
    background-color: rgb(60,180,230);
}

/* 列容器 */
.row {  
    display: -ms-flexbox; /* IE10 */
    display: flex;
    -ms-flex-wrap: wrap; /* IE10 */
    flex-wrap: wrap;
}

/* 创建两个相邻的不相等的列 */
/* 侧边栏/左栏 */
.side {
    -ms-flex: 20%; /* IE10 */
    flex: 20%;
    background-color: #f1f1f1;
    padding: 20px;
    margin-top: 30px;
    height: 100%;
    font-size: 20px;
}
.side img {
    max-width: 90%;
    height: auto;
}

/* 主列 */
.main {   
    -ms-flex: 80%; /* IE10 */
    flex: 80%;
    background-color: white;
    padding: 20px;
    margin-top: 30px;
    font-size: 18px;
}
.main a {
    text-decoration: none;
    color: #000;
}
.main a :hover{
    background-color: #ddd;
}
.main img {
    max-width: 1000px;
    max-height: 300px;
}
.br {
    display: none;
}
/* 页脚 */
.footer {
    padding: 20px;
    text-align: center;
    background: #ddd;
    font-size: 17px;
}

/* 回到顶部 */
#backTop {
/* 固定定位 */
position: fixed;
bottom: 50px;
right: 0;
margin-right: 10px;
z-index: 999;
/* 回到顶部样式 */
width: 70px;
height: 70px;
background-color: #5e5c5c;
/* 字体在元素中水平垂直居中 */
line-height: 70px;
text-align: center;
font-size: 14px;
color: white;
/* 设置圆角 */
border-radius: 50%;
/* 设置过渡效果 */
transition: all linear 0.5s;
cursor: pointer;
/* 隐藏 透明度为0 */
opacity: 0;
}
/* 响应式布局 - 当屏幕宽度小于 1000px 时，使两列堆叠在彼此之上而不是彼此相邻 */
@media screen and (max-width: 1000px) {
    .row {   
    flex-direction: column;
    }
    .br {display: block;}
    .main img{max-width: 90%;}
}

