#container::after {
  content: "";
  display: block;
  clear: both;
}
* {
  margin: 0px;
  padding: 0px;
}
#intro {
  padding: 20px;
}
#container {
  width: 1400px;
  margin: 0px auto;
}
/*页首*/
header {
  height: 50px;
  padding:20px 10px 10px 10px;
  border-bottom: 4px #000000  solid;
}

header a{
	text-decoration: none;
	color:black;
}

header a:hover {
  text-decoration: underline; /* 鼠标悬停时添加下划线 */
  color: blue; 
}

header div{
  float: right;
  margin-right: -70px;
}
.user{
  display: flex;
  align-items: center;
}
.user img {
  width: 45px; /* 用户图片宽度 */
  height: 45px; /* 用户图片高度 */
  margin-left : 0px; /* 图片与文本之间的间距 */
}

/*logo图片*/
header img{
  float: left;
  width: 140px;
  height: 50px;
  margin-right: 60px;
  margin-top: 5px;
}

nav{
  float:left;
}

nav ul li{
  list-style-type: none;
  float: left;
  height: 33px;
  line-height: 50px;
  margin: 0px 55px;
}

ul li a{
  text-decoration: none; /* 默认没有下划线 */
  color: black; 
  font-family: "幼圆";
  font-size: 18px;
  font-weight: bold;
}

ul li a:hover {
  text-decoration: underline; /* 鼠标悬停时添加下划线 */
  color: blue; /* 可以设置鼠标悬停时的文字颜色 */
}
/*内容*/
.container {
    width: 80%;
    margin: auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* 项目之间的间距 */
    margin-top: 20px;
}

.item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.item h2, .item p {
	font-size: 18px;
    margin: 0;
    text-align: center;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.item img {
    width: 100%;
    height: auto;
    display: block;
}

.item h2 {
    margin: 10px;
    color: #333;
}

.item p {
    margin: 10px;
    color: #666;
    font-size: 14px;
}

/* 页脚样式 */
footer {
  background-color: #333; /* 页脚背景颜色 */
  color: white; /* 文字颜色 */
  text-align: center; /* 文字居中 */
  margin-top: 50px;
}