/* 导航栏样式 */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 鼠标悬停时的样式 */
.navbar:hover {
    background-color: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 200px;
}

.logo {
    z-index: 1001;
    position: relative;
}

.logo img {
    height: 40px;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-item {
    
    padding: 30px 0;
    cursor: pointer;
}

.nav-item>a {
    text-decoration: none;
    color: #333;
    margin-left: 30px;
    font-size: 16px;
    padding: 30px 0;
    position: relative;
    cursor: default;
    cursor: pointer;
}

.nav-item > a:not([href]) {
    pointer-events: none;
}

.submenu {
    position: absolute;
    top: 85%;
    left: 0;
    background: #fff;
    width: 100%;
    padding: 40px 200px 60px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.submenu-list {
    display: flex;
    flex-direction: column;
    width: 260px;
    margin-top: 20px;
}

.submenu .item-imgs {
    display: flex;
    align-items: center;
    margin-left: 80px;
    margin-top: 20px;
}

.item-imgs img {
    width: 292px;
    height: 200px;
    margin-right: 10px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.item-imgs img:hover {
    opacity: 1;
}

.submenu-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    width: 100%;
    justify-content: space-between;
}

.submenu-item a {
    padding: 0 30px;
    font-size: 16px;
    position: relative;
    border: none !important;
}

.submenu-item a.active {
    color: #DA251C;
    border: none !important;
}

.submenu-item a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background:rgba(0, 0, 0, 0.0) !important;
}

.submenu-item.active {
    border-bottom-color: #DA251C;
}

.submenu-item img {
    margin-right: 30px;
    opacity: 1;
    transition: all 0.3s ease;
}

.submenu-item:hover img {
    opacity: 1;
}

.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item:hover .submenu-backdrop {
    opacity: 1;
    visibility: visible;
}

.submenu a {
    display: block;
    padding: 12px 30px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
   
}

.submenu a:hover {
    color: #DA251C;
}

.submenu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #DA251C;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submenu a:hover::before {
    opacity: 1;
}

.nav-links a.active {
    color: #DA251C;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #DA251C;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .navbar .container,
    .submenu {
        padding: 40px 100px 60px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.0);
        padding: 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-item {
        padding: 0;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-item>a {
        display: block;
        padding: 15px 20px;
        margin: 0;
    }

    .submenu {
        position: static;
        padding: 0 !important;
        box-shadow: none;
        flex-direction: column;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-item:hover .submenu {
        display: block;
    }

    .submenu-backdrop {
        display: none;
    }

    .submenu-list {
        width: 100%;
        margin-top: 0;
        background: #f9f9f9;
    }

    .item-imgs {
        margin: 20px 0;
        flex-direction: column;
        width: 100%;
    }

    .item-imgs img {
        width: 100%;
        height: auto;
        margin: 10px 0;
    }

    .submenu-item {
        padding: 10px 20px;
        background: #f9f9f9;
    }

    .submenu-item img {
        display: block;
        opacity: 1;
    }

    .menu-toggle {
        display: block;
        margin-right: 15px;
    }

    .nav-links a.active::after {
        bottom: 0;
    }

    .navbar .container {
        padding: 0 20px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        height: 60px;
    }
	
	.nav-links {
		display:none;
	}
    .logo img {
        height: 30px;
    }
}

/* 移动端导航样式 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #fff;
    overflow-y: auto;
    z-index: 1000;
}

.mobile-nav.active {
    display: block;
}

/* 移动端子菜单样式 */
.mobile-submenu {
    display: none;
    width: 100%;
    background: #f9f9f9;
}

.mobile-submenu.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 两列布局 */
    gap: 8px;
    padding: 10px;
}

.mobile-submenu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    background: #fff;
    border-radius: 4px;
    text-align: center;
}

.mobile-submenu-item.active {
    color: #DA251C;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-title {
    font-size: 16px;
    color: #333;
    text-decoration: none;
}

.mobile-menu-title.active {
    color: #DA251C;
}

/* 移动端箭头样式 */
.mobile-submenu-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.arrow.active {
    transform: rotate(-135deg);
}

/* 响应式调整 */
@media screen and (max-width: 480px) {
    .mobile-submenu.active {
        gap: 6px;
        padding: 8px;
    }

    .mobile-submenu-item {
        padding: 10px;
        font-size: 13px;
    }
}

/* 语言切换按钮 */
.lang-switch {
    margin-left: 30px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
}