html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 60px; /* 与导航栏高度相同 */
}

.recentupdate{
    font-size: 1.4em;
    padding: 30px;
}
.title{
    padding-left: 30px;
}
/** 导航栏 **/
nav {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    /* 导航栏位于页面其他内容上，请确认页面内容高度与导航栏同步！padding-top=60px */
}

nav img {
    width: 120px;
    height: 50px;
    margin-left: 10px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    position: absolute;
    left: 50px;
    margin-left: 120px;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

nav div {
    display: flex;
    align-items: center;
}

nav div a {
    text-decoration: none;
    color: #fff;
    margin-left: 20px;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    margin-right: 10px;
}

nav ul li a:hover {
    color: skyblue;
}

.main-content {
    flex: 1 0 auto;
}

/**footer**/
.footer {
    /* 移除 position: fixed 以及相关定位属性 */
    width: 100%;
    background-color: #333;
    /* 灰色背景 */
    color: white;
    /* 白色文字 */
    padding: 20px 0;
    /* 移除或者降低 z - index 值 */
    z-index: auto;
}

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

.footer-logo img {
    max-height: 50px;
    /* 调整logo大小 */
}

.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-contact {
    margin: 10px 0;
}

.footer-contact span {
    margin-right: 15px;
}

.footer-copyright {
    font-size: 0.9em;
}

/* 响应式样式 */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        /* 保持这个值,确保菜单在导航栏下方 */
        left: 20px;
        /* 与导航栏的左内边距对齐 */
        width: auto;
        /* 改为自动宽度 */
        background: rgba(0, 0, 0, 0.8);
        flex-direction: column;
        padding: 10px;
        border-radius: 0 0 5px 5px;
        /* 可选:添加圆角 */
    }

    .nav-menu li {
        margin: 5px 0;
        text-align: left;
        /* 左对齐文本 */
        white-space: nowrap;
        /* 防止文本换行 */
    }

    .nav-menu.active {
        display: flex;
    }

    main-content {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }

    .qrcode {
        max-width: 150px;
    }

    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 6px;
    }
}

@media screen and (max-width: 900px) {
    h1 {
        font-size: 20px;
    }

    .qrcode {
        max-width: 120px;
    }

    .thanks p {
        font-size: 14px;
    }

    table {
        font-size: 12px;
    }

    th,
    td {
        padding: 4px;
    }
}