﻿.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 820px;
    height: 60px;
    background-color: #388E3C;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 18px;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* 确保padding不增加总宽度 */
}

    .navbar a {
        color: white;
        margin-left: 20px;
        text-decoration: none;
        font-weight: 500;
        white-space: nowrap; /* 防止链接文字换行 */
    }

        .navbar a:hover {
            text-decoration: underline;
        }

.top-banner {
    margin-top: 60px; /* 调整为与导航栏高度一致 */
    width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* 响应式调整 - 当屏幕小于800px时 */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        left: 0;
        transform: none;
        padding: 0 15px;
        font-size: 16px;
    }

    .top-banner {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .navbar a {
        margin-left: 10px; /* 小屏幕减少间距 */
    }
}

/* 版权栏链接样式统一 */
/* 版权栏样式 */
.footer-bar {
    width: 820px;
    background-color: #388E3C; /* 使用调浅后的绿色 */
    color: #fff;
    text-align: center;
    padding: 14px 0;
    font-size: 20px;
    margin: 40px auto 0; /* 上下40px，左右auto实现水平居中 */
    box-sizing: border-box; /* 确保padding不增加总宽度 */
}

    .footer-bar a {
        color: inherit;
        text-decoration: none;
        margin: 0 8px; /* 链接间添加间距 */
        transition: all 0.2s ease; /* 添加悬停过渡效果 */
    }

        .footer-bar a:hover {
            text-decoration: underline;
            opacity: 0.9; /* 悬停时轻微透明效果 */
        }

/* 响应式设计 - 当屏幕小于800px时 */
@media (max-width: 800px) {
    .footer-bar {
        width: 100%;
        padding: 14px 15px; /* 添加左右内边距 */
        font-size: 16px;
    }

        .footer-bar a {
            display: inline-block; /* 小屏幕下更好的间距控制 */
            margin: 0 5px;
        }
}
