/* 英文导航菜单样式调整 */
/* 导航容器居中 */
.nav-container {
    justify-content: center;
    gap: 1rem;
}

.nav-menu {
    white-space: nowrap;
    gap: 0.5rem;
    display: flex;
    align-items: center;
}

.nav-menu li {
    white-space: nowrap;
}

/* logo文字不换行 */
.logo {
    white-space: nowrap;
    margin: 0 5rem 0 0;
}

/* 确保导航项目不换行且适应宽度 */
.nav-menu li a {
    color: #FFD700;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0.5rem;
    border-radius: 4px;
    position: relative;
    white-space: nowrap;
}

@media (max-width: 1280px) {
    .nav-container {
        justify-content: flex-start;
        gap: 0;
    }

    .logo {
        margin: 0;
        margin-right: auto;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(to bottom, #8b0000, #e60012);
        padding: 1rem 0;
        flex-direction: column;
        gap: 0;
        white-space: normal;
    }

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

    .nav-menu li {
        width: 100%;
        text-align: center;
        white-space: normal;
    }

    .nav-menu li a {
        display: block;
        padding: 0.8rem 1rem;
        width: 100%;
        white-space: normal;
    }
}