body {
    margin: 0;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    min-height: 100vh;      /* 至少占据视口高度 */
    background-color: #f0f0f0;
}
a {
    text-decoration: none;
}

.top {
    text-align: center;
}


a:link {
    color: black; /* 未访问链接的颜色 */
    text-decoration: none; /* 去掉下划线 */
}
a:visited {
    color: black; /* 已访问链接的颜色 */
}
a:hover {
    color: #10a151; /* 鼠标悬停时链接的颜色 */
}
a:active {
    color: black; /* 被点击时链接的颜色 */
}

.container {
    max-width: 800px;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-around; /* 在容器内部水平分配空间 */
    gap: 1rem;                    /* 间隔 */
    margin-bottom: 50px;         /* 底部外边距 */
}

.nav-item {
    position: relative;
    width: 25%;                  /* 根据需要调整宽度 */
    text-align: center;          /* 文本居中 */
    height: 200px;               /* 加高以容纳标题 */
    overflow: hidden;            /* 隐藏超出的部分 */
    transition: all 0.3s ease-in-out;
}

.nav-item .title {
    font-weight: bold;           /* 加粗 */
    margin-top: 10px;            /* 与图片之间留空隙 */
}

.nav-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;          /* 图片覆盖整个容器 */
}

.nav-item:hover {
    transform: scale(1.1);      /* 鼠标悬停时放大 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* 阴影效果 */
}

.copyright {
    margin-top: auto;           /* 使版权信息顶到底部 */
    margin-bottom: 20px;        /* 与上层元素之间的间距 */
    text-align: center;         /* 居中文本 */
    font-size: 0.8em;           /* 缩小字体大小 */
}
