/* 导航栏样式 */
.navbar {
    width: 100%;
    background-color: var(--color-background);  /* 确保有背景色 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 60px;  /* 与页脚保持一致 */
    pointer-events: none;  /* 让整个导航栏默认不接收鼠标事件 */
    /* 确保导航栏始终固定 */
    position: fixed !important;
}

.nav-container {
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.nav-left, .nav-right {
    display: flex;
    flex-direction: column;  /* 改为竖向排列 */
    align-items: flex-end;   
    gap: 8px;               /* 减小间距 */
}

/* 导航栏方块容器样式 */
.nav-box-container {
    display: flex;
    align-items: center;
    gap: 12px;  /* 方块和文字之间的间距 */
    pointer-events: auto;  /* 恢复链接的鼠标事件 */
}

/* 导航栏黑色方块样式 */
.nav-box {
    width: 12px;
    height: 12px;
    background-color: var(--color-text);
}

.nav-item {
    text-decoration: none;
    color: var(--color-text);
    font-family: "Roboto Mono", monospace;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;      /* 调整行高 */
    transition: color 0.05s ease;
    pointer-events: auto;  /* 恢复链接的鼠标事件 */
}

.nav-item:hover {
    color: white;
    background-color: black;
    transition: color 0.05s ease;
}

/* 确保导航栏右侧的链接也能接收鼠标事件 */
.nav-right {
    pointer-events: auto;
}

.footer {
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;  /* 添加这行使 footer 内容居中 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Roboto Mono", monospace;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -2px;
}

/* 页脚包装器样式 */
.footer-wrapper {
    position: fixed;
    padding: 40px 60px;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--color-background);
    z-index: 1000;  /* 确保足够高的层级 */
    pointer-events: auto;  /* 确保可以接收鼠标事件 */
}

/* 其他页脚样式保持不变 */
.footer,
.footer p,
.copyright,
.footer-link {
    font-family: "Roboto Mono", monospace;
    font-weight: 600;
    font-size: 16px;
}

/* 页脚左侧容器样式 */
.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;  /* 确保可以接收鼠标事件 */
}

/* 页脚方块样式 */
.footer-box {
    width: 12px;
    height: 12px;
    background-color: var(--color-text);
    cursor: pointer;
    position: relative;  /* 添加相对定位 */
    z-index: 1;  /* 确保在邮箱文本之上 */
    pointer-events: auto;  /* 确保可以接收鼠标事件 */
}

/* 版权信息样式 */
.copyright {
    text-align: right;
    pointer-events: none;
}

/* 邮箱样式 */
.footer-email {
    font-family: "Roboto Mono", monospace;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-darkgrey);
    opacity: 0;
    transition: opacity 0.2s ease;
    visibility: hidden;
    pointer-events: none;  /* 防止邮箱文本影响方块的点击 */
}

/* 显示邮箱的状态 */
.footer-left.show-email .footer-email {
    opacity: 1;
    visibility: visible;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .navbar {
        position: fixed;
        top: -30px;
        left: 0;
        right: 0;
        width: 100%;
        padding:  20px;
        margin: 0 auto;
        box-sizing: border-box;
        z-index: 1000;
        position: fixed !important;
    }p

    .nav-container {
        width: calc(100% - 40px);
        padding: 20px 0;
        margin: 0 auto;
        box-sizing: border-box;
        background-color: inherit;  /* 继承父元素的背景色 */
    }

    /* 在项目页面隐藏页脚 */
    .project-page .footer-wrapper {
        display: none;
    }


    /* 统一所有视图的页脚样式 */
    .footer {
        max-width: 1350px;
        width: 100%;
        margin: 0 auto;
        margin-bottom: 0%;
        padding: 0 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .footer-wrapper {
        padding: 40px 40px;
        padding-bottom: 4px;
    }

}