/* 横向导航菜单样式 */
.nav-main-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-links-v2 {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 2rem !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
}

.nav-links-v2 li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    float: left !important;
}

.nav-links-v2 a {
    display: inline-block !important;
    padding: 10px 20px !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

.nav-links-v2 a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-main-v2 {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary, #333);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-main-v2.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links-v2 {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }

    .nav-links-v2 li {
        display: block !important;
        width: 100% !important;
    }

    .nav-links-v2 a {
        display: block !important;
        width: 100% !important;
        padding: 0.8rem 1rem !important;
    }

    .menu-toggle-v2 {
        display: block;
    }

/* Logo容器 */
.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 10px;
}

/* Logo链接 */
.logo-v2 {
    display: block;
    height: 100%;
}

/* Logo图片 */
.logo-img {
    height: 30px;
    width: auto;
    max-height: 100%;
    object-fit: contain;
}

/* 导航栏整体布局调整 */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.nav-main-v2 {
    display: flex;
    flex-grow: 1;
    min-width: 0;
}

.nav-links-v2 {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 0;
}

.logo-v2:hover {
    color: #76D7C4; /* 悬停时稍深的绿色 */
}

.logo-img {
    height: 30px;
    margin-right: 10px;
}

.logo-text {
    color: #90EE90; /* 浅绿色 */
}
}